lemon_way 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lemon_way/client.rb +1 -1
- data/lib/lemon_way/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 219030e94c963d419b300b3e6b9dbb1a81348289
|
|
4
|
+
data.tar.gz: dc71ce6031b142e7ea6cf19197b67914398965a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24e92bc0df8a12ea0b74af8c57967e92d8bf725e09544cf78eea765a24c610dea68f1e0dd3a72128ea33d21d2a7f8149c5e14bed4c47669181497c170b92363c
|
|
7
|
+
data.tar.gz: d648753c19fb5c7999fac6a3e62bd49eba5b7365e976950ab7816d7639bfbde8d71c9fe895ee1f7a5831a9f2249a491b05640834825df783ce3c5ce0fffd1313
|
data/lib/lemon_way/client.rb
CHANGED
|
@@ -99,7 +99,7 @@ module LemonWay
|
|
|
99
99
|
def attrs_from_options attrs
|
|
100
100
|
attrs.symbolize_keys!.camelize_keys!
|
|
101
101
|
[:amount, :amountTot, :amountCom].each do |key|
|
|
102
|
-
attrs[key] = sprintf("%.2f",attrs[key]) if attrs.key?(key) and attrs[key].is_a?(
|
|
102
|
+
attrs[key] = sprintf("%.2f",attrs[key]) if attrs.key?(key) and attrs[key].is_a?(Numeric)
|
|
103
103
|
end
|
|
104
104
|
[:updateDate].each do |key|
|
|
105
105
|
attrs[key] = attrs[key].utc.to_i.to_s if attrs.key?(key) and attrs[key].is_a?(Time)
|
data/lib/lemon_way/version.rb
CHANGED