http-client-generator 0.1.18 → 0.1.19

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: 34acc8da4293a489562f3d1c19e610344592ccee766f3172fceb1a5906311d55
4
- data.tar.gz: 7d552173fce4777eb338d8e8b0633c66273e5fdea8ff165493b445cb7a03a371
3
+ metadata.gz: 796fa455e62adaafc95d3c213d52f5c0647efcbc96597c1cb52b4d4116eb7bf7
4
+ data.tar.gz: 2a6763039f05c5b6720ab163420f133f432355c5bf5604cd213ffd40cd63435d
5
5
  SHA512:
6
- metadata.gz: 62522568c0933ae7084549b00d6cdd74cfe72eee36926b0c9b9b1935f8404b528f1e7e3cfeced936faca5e8c79c52445d21b69cca67026244ed47545a657cfc7
7
- data.tar.gz: dfa1cc9dcef1bfe3bcbc39b4c689b04304e4a2638e275e251986816d4cdc052d8ea95add0c59eff7d7acd1186227d4420ab9e52fe0479466220e9e509b1135ca
6
+ metadata.gz: 7888c6ae59d9721a417c37394daf294382aad6d37f72d7cd2f8322e1322fb12c3d600db4b206625735bce0273e1e92e804a5617973e1c625f3870186a4a98fa3
7
+ data.tar.gz: c3c5f66284c72cb9bd524fd229c5681d3889c24027591220f74c9bf4a23548510d1ef948156295d9d4040490c8c6c528529219a575cc091b53cb9b5b9793a176
@@ -14,4 +14,3 @@ module HttpClientGenerator
14
14
  end
15
15
  end
16
16
  end
17
-
@@ -7,6 +7,8 @@ module HttpClientGenerator
7
7
 
8
8
  module SchemaBuilder
9
9
  def schema_for(name, &block)
10
+ require 'datacaster'
11
+
10
12
  @schemas ||= {}
11
13
  @schemas[name] = Datacaster.choosy_schema(&block)
12
14
 
@@ -24,7 +26,7 @@ module HttpClientGenerator
24
26
  def call(req)
25
27
  schema_name = :"#{req.name}_#{req.verb}"
26
28
 
27
- return req unless @schema_helper.responds_to?(schema_name)
29
+ return req unless @schema_helper.respond_to?(schema_name)
28
30
 
29
31
  req.response_body = @schema_helper.public_send(schema_name)
30
32
  .value_or { |e| req.raise_message(e) }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HttpClientGenerator
4
- VERSION = '0.1.18'
4
+ VERSION = '0.1.19'
5
5
  end
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.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Egorov