mirror of
https://github.com/foss42/apidash.git
synced 2025-06-04 09:16:02 +08:00
Rename & remove padding
This commit is contained in:
@ -79,7 +79,7 @@ class Codegen {
|
||||
case CodegenLanguage.rubyFaraday:
|
||||
return RubyFaradayCodeGen().getCode(rM);
|
||||
case CodegenLanguage.rubyNetHttp:
|
||||
return rubyCodeGen().getCode(rM);
|
||||
return RubyNetHttpCodeGen().getCode(rM);
|
||||
case CodegenLanguage.rustActix:
|
||||
return RustActixCodeGen().getCode(rM, boundary: boundary);
|
||||
case CodegenLanguage.rustCurl:
|
||||
|
@ -1,10 +1,10 @@
|
||||
import 'package:jinja/jinja.dart' as jj;
|
||||
import 'package:apidash/utils/utils.dart'
|
||||
show padMultilineString, requestModelToHARJsonRequest;
|
||||
show requestModelToHARJsonRequest;
|
||||
import 'package:apidash/models/models.dart' show RequestModel;
|
||||
import 'package:apidash/consts.dart';
|
||||
|
||||
class rubyCodeGen {
|
||||
class RubyNetHttpCodeGen {
|
||||
String kTemplateStart = """require "uri"
|
||||
require "net/http"
|
||||
{% if type == "application/json" %}require "json"{% endif %}
|
||||
|
Reference in New Issue
Block a user