portmone 0.0.6 → 0.0.7

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: 04dadd59d3e9aad76804e56529058ca14ef764c5
4
- data.tar.gz: bb169993f06d91f10ce4e4ea2820961bb9c85aa4
3
+ metadata.gz: 3434d99ffbe6b472a16aa590a92d163d0e1db9d9
4
+ data.tar.gz: 7e9bf6cbcb2d4925fa778b20562c7102bb281c90
5
5
  SHA512:
6
- metadata.gz: 13c4d5ae5bdc764e1db8d34661f08e9bf210162675378ca7f4e866e21a4198c205ca1e59527daa032ea9d1dc6db1854fd043f5fa40d79878d507d97c95de5782
7
- data.tar.gz: 89859891b8fd046a5f994f371072c4aeacf8b0edb502eb4a0a16853bd4ba9cef0d7316719dad1b5275cb1e5cc3ddc091bb8a8e2a311cc94647c612b339b9095d
6
+ metadata.gz: 0a9215af9650670ac4e589c55d9b75f8cdef67902c79a4f56ee00060e473bbc854983e3d8f7b100db4d3a96aafafc7e6eb6bf7d47219e2bba995cc16e3a8fc0d
7
+ data.tar.gz: 88daac8d69c11fb19f129368186f7a4dba21a22ba3f7dc78d0cd8437dc4e365911f22308dd5ce9372e4a417abe3405ef16ae8dd87f1fca7e52815da00cdc01ef
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- portmone (0.0.6)
4
+ portmone (0.0.7)
5
5
  activesupport
6
6
  faraday (~> 0.9)
7
7
  money (~> 6.0)
@@ -85,4 +85,4 @@ DEPENDENCIES
85
85
  webmock (~> 3.0)
86
86
 
87
87
  BUNDLED WITH
88
- 1.14.6
88
+ 1.17.2
@@ -80,6 +80,6 @@ private
80
80
  def data
81
81
  data = @xml_data.dig('portmoneresult', 'orders', 'order') || @xml_data.dig('portmoneresult', 'order')
82
82
  data = [data] if data.is_a?(Hash) # cannot use Array() on Hash
83
- data
83
+ data&.sort_by { |h| h['pay_date'] && ActiveSupport::TimeZone[@timezone].parse(h['pay_date']) }
84
84
  end
85
85
  end
@@ -1,3 +1,3 @@
1
1
  module Portmone
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portmone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Sviridov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-10 00:00:00.000000000 Z
11
+ date: 2019-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport