http-client-generator 0.1.28 → 0.1.30

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: cfb3c191569bc0574276bb2e6ad52cd246a4d16f284551e8371830d8acde85db
4
- data.tar.gz: fe6cfa627ae6336503755291262d3f8e74ed46f6c03e29b361f384bc96b504e0
3
+ metadata.gz: 438bc8f1ea685db474f035bf63f255ab08dca8a04c29cdb6257989fac8131200
4
+ data.tar.gz: 28f34fbea182ee2d04ea761ad795356e1c479615e73abe70812a92b919845927
5
5
  SHA512:
6
- metadata.gz: f9eb9a3e4c08307ae3e73b4661089adf9bf3e297771be838ce810b84aa876e8d2161bb0df3373847877cf7b85cba5ee1aff9a929b4a13c9141145f7fa1b7b1c1
7
- data.tar.gz: 935b816317d16a559bb167ba25a18772f72d06ac9b6cff9909a298f668cb3b0343be983518c1f0912c1b5864290f2810748dfb1032f49ba85fbbb7b2c27bc834
6
+ metadata.gz: 61286bf0e127604db8cbf95622e1341841fb8ee600f646b2b096059a731d8f44762943c9868e775e44b6a74b19418252b9795586093f5937d3770a42124ef9a8
7
+ data.tar.gz: b9452428bdb610ca52630a2d85163695f59f7071f08f409b4125447efc02aa7015ca94668af6d14729563391ef30582b96b3624fc0d35dd08b78507d08ce3db5
@@ -4,7 +4,9 @@ module HttpClientGenerator
4
4
  module UrlBuilder
5
5
  def self.included(base)
6
6
  super
7
+
7
8
  base.extend(self)
9
+ base.extend(base)
8
10
  end
9
11
 
10
12
  def url_for(name, &block)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HttpClientGenerator
4
- VERSION = '0.1.28'
4
+ VERSION = '0.1.30'
5
5
  end
@@ -25,7 +25,7 @@ module HttpClientGenerator
25
25
  resources = resources_definition.resources
26
26
 
27
27
  resources.each do |resource|
28
- method_name = :"#{resource.name}_#{resource.verb}"
28
+ method_name = :"#{resource.verb}_#{resource.name}"
29
29
 
30
30
  define_singleton_method(method_name) do |url_options = {}, body: nil, **rest_args|
31
31
  resource.perform_request(@url_helper, url_options, body, rest_args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-client-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Egorov