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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd4199c88095416464c53ed94e3090b45d05fe9be355c1bd1b2bcc88028b80e4
4
- data.tar.gz: 6a338d9883dc24fd62e89ba20123449ed34be1ebfa50a8dd5a80464760d500d4
3
+ metadata.gz: cfb3c191569bc0574276bb2e6ad52cd246a4d16f284551e8371830d8acde85db
4
+ data.tar.gz: fe6cfa627ae6336503755291262d3f8e74ed46f6c03e29b361f384bc96b504e0
5
5
  SHA512:
6
- metadata.gz: 843142bf98fa45cc08e907087a8e734f741ff9c2211dcaa722c4199fd3210960481e1d28e2010dfbb9b266509fac51c76b6bcf54c9c0eb23461d944c0fef801f
7
- data.tar.gz: e8fdc7462c2c700ba6492948d89070829f3c518ba9612d06d72f59baa4628d48a2c7e198e1226cdcecc7f2c6e9c96d43815ebf157f56a549c9101fb99e2ed421
6
+ metadata.gz: f9eb9a3e4c08307ae3e73b4661089adf9bf3e297771be838ce810b84aa876e8d2161bb0df3373847877cf7b85cba5ee1aff9a929b4a13c9141145f7fa1b7b1c1
7
+ data.tar.gz: 935b816317d16a559bb167ba25a18772f72d06ac9b6cff9909a298f668cb3b0343be983518c1f0912c1b5864290f2810748dfb1032f49ba85fbbb7b2c27bc834
@@ -19,4 +19,3 @@ module HttpClientGenerator
19
19
  end
20
20
  end
21
21
  end
22
-
@@ -22,4 +22,3 @@ module HttpClientGenerator
22
22
  end
23
23
  end
24
24
  end
25
-
@@ -22,4 +22,3 @@ module HttpClientGenerator
22
22
  end
23
23
  end
24
24
  end
25
-
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HttpClientGenerator
4
- VERSION = '0.1.26'
4
+ VERSION = '0.1.28'
5
5
  end
@@ -33,6 +33,8 @@ module HttpClientGenerator
33
33
  end
34
34
  end
35
35
 
36
+ attr_reader :config
37
+
36
38
  def configure(&configure)
37
39
  @config = self::Configuration.new
38
40
  .tap(&configure)
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.26
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-22 00:00:00.000000000 Z
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: []