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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cae6ab9b245218bd4d1d4582ef6bbf1a48e4ea9
|
4
|
+
data.tar.gz: 62290e20d2a03730aa60404b05fa66e24e84a9c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
238
|
+
}[ method.to_s ] || Object.const_get("Moneta::Api::Requests::#{ method.to_s.camelize }Request")
|
239
239
|
end
|
240
240
|
end
|
241
241
|
end
|
data/lib/moneta/api/version.rb
CHANGED
@@ -7,15 +7,15 @@ module Moneta
|
|
7
7
|
end
|
8
8
|
|
9
9
|
module Extension
|
10
|
-
def
|
10
|
+
def camelize_with_lower
|
11
11
|
str = dup
|
12
|
-
str = str.
|
12
|
+
str = str.camelize
|
13
13
|
str[0] = str[0].downcase
|
14
14
|
|
15
15
|
str
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
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.
|
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-
|
12
|
+
date: 2016-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|