http-client-generator 0.1.26 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/http_client_generator/plugs/set_bearer_token.rb +0 -1
- data/lib/http_client_generator/plugs/validate_request.rb +0 -1
- data/lib/http_client_generator/plugs/validate_response.rb +0 -1
- data/lib/http_client_generator/url_builder.rb +15 -0
- data/lib/http_client_generator/version.rb +1 -1
- data/lib/http_client_generator.rb +2 -0
- metadata +4 -3
- /data/lib/http_client_generator/{base_schema_builder.rb → schema_builder.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfb3c191569bc0574276bb2e6ad52cd246a4d16f284551e8371830d8acde85db
|
4
|
+
data.tar.gz: fe6cfa627ae6336503755291262d3f8e74ed46f6c03e29b361f384bc96b504e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9eb9a3e4c08307ae3e73b4661089adf9bf3e297771be838ce810b84aa876e8d2161bb0df3373847877cf7b85cba5ee1aff9a929b4a13c9141145f7fa1b7b1c1
|
7
|
+
data.tar.gz: 935b816317d16a559bb167ba25a18772f72d06ac9b6cff9909a298f668cb3b0343be983518c1f0912c1b5864290f2810748dfb1032f49ba85fbbb7b2c27bc834
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module HttpClientGenerator
|
4
|
+
module UrlBuilder
|
5
|
+
def self.included(base)
|
6
|
+
super
|
7
|
+
base.extend(self)
|
8
|
+
end
|
9
|
+
|
10
|
+
def url_for(name, &block)
|
11
|
+
define_singleton_method(name, &block)
|
12
|
+
define_method(name, &block)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http-client-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Egorov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -47,7 +47,6 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- README.md
|
49
49
|
- lib/http_client_generator.rb
|
50
|
-
- lib/http_client_generator/base_schema_builder.rb
|
51
50
|
- lib/http_client_generator/plugs.rb
|
52
51
|
- lib/http_client_generator/plugs/camelize_body.rb
|
53
52
|
- lib/http_client_generator/plugs/encode_json_response.rb
|
@@ -61,6 +60,8 @@ files:
|
|
61
60
|
- lib/http_client_generator/request.rb
|
62
61
|
- lib/http_client_generator/resource.rb
|
63
62
|
- lib/http_client_generator/resources_definition.rb
|
63
|
+
- lib/http_client_generator/schema_builder.rb
|
64
|
+
- lib/http_client_generator/url_builder.rb
|
64
65
|
- lib/http_client_generator/version.rb
|
65
66
|
homepage:
|
66
67
|
licenses: []
|
File without changes
|