http-client-generator 0.1.27 → 0.1.29

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: dd074a8cbd648b5b594dd0ef0fd9814100c671367d3e08e6de86fc004d209af4
4
+ data.tar.gz: 31b08db03a1635e2ed14e637b0d21583db65245dfb1948fe0c0fff725aaa431d
5
5
  SHA512:
6
- metadata.gz: 387710c3410320184a5338d03cb28c7051576996fc168cd3f9c5d2b7fdc2cbe4987bac57688a2196517dd75d1c6c2f0ed5fe701402be9f63758aac22f61f4609
7
- data.tar.gz: e97d773976c7ba0f5b9600e550d04b6adf477f2c77a8627e9c96c963cc653f73617309a30a298f93317d407d295681d0a9ce6f7d4187d1ca88fa1386ad3a3d69
6
+ metadata.gz: b2e3ba7c6ac9722ecb4bdd4b85735e78c22fa521451a83ca34f752800d7834b1a9bd79e96ee81afbdddf211679b38e1aadec23c827b6fae25d73738c467dc488
7
+ data.tar.gz: c2215f837cc1c320c9850236d8c805b6c122c7065cbe650f14a629f31ca24382a5fd428c771695367df4c4468dd4de8cd4d2b70480f2327e1f6a9370e17992e3
@@ -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,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module HttpClientGenerator
4
+ module UrlBuilder
5
+ def self.included(base)
6
+ super
7
+
8
+ base.extend(self)
9
+ base.extend(base)
10
+ end
11
+
12
+ def url_for(name, &block)
13
+ define_singleton_method(name, &block)
14
+ define_method(name, &block)
15
+ end
16
+ end
17
+ 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.29'
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.29
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: []