moneta-api 1.12.0 → 1.12.1

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
  SHA1:
3
- metadata.gz: 6788035839976aa3d43c70d921646fb62a2c6d0d
4
- data.tar.gz: 527b46c5e311f7d7a1d45fec1cddc81a7db61eef
3
+ metadata.gz: 0cae6ab9b245218bd4d1d4582ef6bbf1a48e4ea9
4
+ data.tar.gz: 62290e20d2a03730aa60404b05fa66e24e84a9c7
5
5
  SHA512:
6
- metadata.gz: 85c6f0d49ed497eb4c14bb3d2f9755c69911acf80eae46585c3b9d13924873a0550679cdc5cfee977c783ab68e2d8ce7bb1d77739414eafd6c93d1d1619b309e
7
- data.tar.gz: 04cd16f7f1ec77980f1be417c29597a3951ae87e1cbde44e865bb82847d15b61c42f2c6d61e7ae1713c6a926a5e1501ca902441dbf226ef42059b06a5c15c232
6
+ metadata.gz: 4de3c503daeca31feb0752092f1f4aba8801e6e211e025ebbb217136f2481608463080894f78e4dac741e5d10bc64364ac05a7e94eaa5791948ea65b5236bb6e
7
+ data.tar.gz: a1a081e3b7d57bacaf05848160eaef44e778b18286226004207dca905ce3e5ad54761dfe08384ab592ed3db2edd88c6afd7a373c6258f0a3e324003df8ea070a
@@ -56,7 +56,7 @@ module Moneta
56
56
  properties.each_with_object({}) do |(property, _), hash|
57
57
  value = send(property)
58
58
  unless value.nil?
59
- hash[ property.to_s.classify_with_lower ] = to_hash_complex_value(value)
59
+ hash[ property.to_s.camelize_with_lower ] = to_hash_complex_value(value)
60
60
  end
61
61
  end
62
62
  end
@@ -7,7 +7,7 @@ module Moneta
7
7
  def build(response)
8
8
  klass, data = response.to_hash.to_a.first
9
9
 
10
- Object.const_get("Moneta::Api::Responses::#{ klass.to_s.classify }").build(data)
10
+ Object.const_get("Moneta::Api::Responses::#{ klass.to_s.camelize }").build(data)
11
11
  end
12
12
  end
13
13
  end
@@ -235,7 +235,7 @@ module Moneta
235
235
  'find_account_by_alias' => String,
236
236
  'find_account_by_id' => Integer,
237
237
  'get_operation_details_by_id' => Integer
238
- }[ method.to_s ] || Object.const_get("Moneta::Api::Requests::#{ method.to_s.classify }Request")
238
+ }[ method.to_s ] || Object.const_get("Moneta::Api::Requests::#{ method.to_s.camelize }Request")
239
239
  end
240
240
  end
241
241
  end
@@ -1,5 +1,5 @@
1
1
  module Moneta
2
2
  module Api
3
- VERSION = '1.12.0'
3
+ VERSION = '1.12.1'
4
4
  end
5
5
  end
@@ -7,15 +7,15 @@ module Moneta
7
7
  end
8
8
 
9
9
  module Extension
10
- def classify_with_lower
10
+ def camelize_with_lower
11
11
  str = dup
12
- str = str.classify
12
+ str = str.camelize
13
13
  str[0] = str[0].downcase
14
14
 
15
15
  str
16
16
  end
17
17
 
18
- def classify
18
+ def camelize
19
19
  defined?(super) ? super : dup.split('_').map(&:capitalize).join
20
20
  end
21
21
  end
@@ -24,4 +24,4 @@ module Moneta
24
24
  end
25
25
  end
26
26
 
27
- String.send :include, Moneta::CoreExt::String
27
+ String.send :include, Moneta::CoreExt::String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moneta-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ssnikolay
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-24 00:00:00.000000000 Z
12
+ date: 2016-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon