http-client-generator 0.1.29 → 0.1.31

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: dd074a8cbd648b5b594dd0ef0fd9814100c671367d3e08e6de86fc004d209af4
4
- data.tar.gz: 31b08db03a1635e2ed14e637b0d21583db65245dfb1948fe0c0fff725aaa431d
3
+ metadata.gz: be3eb6ef45916a7b1b90b8b34950392ef0b99078ad7c9b8fbe4b7d93a0106d4f
4
+ data.tar.gz: 607b434cd895cd29d3b32dab40e63f6ef17b78395c7b07dfa48296987a9974a6
5
5
  SHA512:
6
- metadata.gz: b2e3ba7c6ac9722ecb4bdd4b85735e78c22fa521451a83ca34f752800d7834b1a9bd79e96ee81afbdddf211679b38e1aadec23c827b6fae25d73738c467dc488
7
- data.tar.gz: c2215f837cc1c320c9850236d8c805b6c122c7065cbe650f14a629f31ca24382a5fd428c771695367df4c4468dd4de8cd4d2b70480f2327e1f6a9370e17992e3
6
+ metadata.gz: ca1b2793f3ddbc32253b700364be7fc779aea3fee0d18067c74f6d01cc2bcf2b81573a464ed93bdb7a101d305fcd7cdbd6301674cefbf102d5a7de54a86e7be1
7
+ data.tar.gz: 02dd797c99e5eb112939d6a4b9a4f5ec4ba9f2c23d828eac1081afc359f3e186109268d092b1a55280a7c1fb1116847a41341a431770dbb6709a078786207c2e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HttpClientGenerator
4
- VERSION = '0.1.29'
4
+ VERSION = '0.1.31'
5
5
  end
@@ -2,6 +2,9 @@
2
2
 
3
3
  require 'zeitwerk'
4
4
 
5
+ require 'active_support/core_ext/string/inflections'
6
+ require 'active_support/core_ext/hash/keys'
7
+
5
8
  Zeitwerk::Loader.for_gem.setup
6
9
 
7
10
  Dir["#{__dir__}/http_client_generator/plugs/*.rb"].each { |f| require f }
@@ -25,7 +28,7 @@ module HttpClientGenerator
25
28
  resources = resources_definition.resources
26
29
 
27
30
  resources.each do |resource|
28
- method_name = :"#{resource.name}_#{resource.verb}"
31
+ method_name = :"#{resource.verb}_#{resource.name}"
29
32
 
30
33
  define_singleton_method(method_name) do |url_options = {}, body: nil, **rest_args|
31
34
  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.29
4
+ version: 0.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Egorov