http-client-generator 0.1.27 → 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: ae73c35b127935b814ee29b6f5fcb55f8afda0b1af73c9b005c545f924fb0b60
4
- data.tar.gz: 6564a377fbe9b4ac20b8477ef81ca0dccaa784c91ec5a13f8d98fb74d12323f3
3
+ metadata.gz: cfb3c191569bc0574276bb2e6ad52cd246a4d16f284551e8371830d8acde85db
4
+ data.tar.gz: fe6cfa627ae6336503755291262d3f8e74ed46f6c03e29b361f384bc96b504e0
5
5
  SHA512:
6
- metadata.gz: 387710c3410320184a5338d03cb28c7051576996fc168cd3f9c5d2b7fdc2cbe4987bac57688a2196517dd75d1c6c2f0ed5fe701402be9f63758aac22f61f4609
7
- data.tar.gz: e97d773976c7ba0f5b9600e550d04b6adf477f2c77a8627e9c96c963cc653f73617309a30a298f93317d407d295681d0a9ce6f7d4187d1ca88fa1386ad3a3d69
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.27'
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.27
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
@@ -61,6 +61,7 @@ files:
61
61
  - lib/http_client_generator/resource.rb
62
62
  - lib/http_client_generator/resources_definition.rb
63
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: []