pagseguro_v2 0.0.8 → 0.0.9

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: 1004fb7bc709e2a0a92ebe107db6ef9c65d715b1
4
- data.tar.gz: 51ee1a8eb74f157a8cf1a22b9e35e7efc3804ca8
3
+ metadata.gz: c4805d9a1e1d3b1e017cca1a73a0be7997a524bb
4
+ data.tar.gz: 219ba6c4a0541ca39173ad220d5366f2d9d82884
5
5
  SHA512:
6
- metadata.gz: 15a623155e92c369bbcf5972496bd56a31dd526c486b189ecb8033942856adef45406ca689fe36e24424417c45bce925ec3ae6c4bd2b7a8aaff6d22026d65bb6
7
- data.tar.gz: e47d191e495e83c19d0caefbe2c0d1080e6ad2738c250077cde6c8692a5119f8937f732f8e972b600633f24c0d1629b408b139e6ee96049fdb2e07b27d9460c6
6
+ metadata.gz: bf864ec87dd5c87044de958d42e930bf38bb5371eec347f7a0dd4716f96efed26bc651fce262ec5533c2c39fe5726a42fa6090bc3d78e4e1d8efdc200a309a23
7
+ data.tar.gz: 44d6054e3a264f17b87adc368857fd760095f7ce6ca344e2599d2f0b73127eff2b211eacdbe22d34081f06f02daab380987c4627159e10c0d746ccafe3015675
@@ -1,24 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pagseguro_v2 (0.0.0)
4
+ pagseguro_v2 (0.0.8)
5
5
  builder
6
- hashie (>= 1.2.0)
6
+ hashie (>= 3.2.0)
7
7
  httparty
8
8
  nokogiri
9
9
 
10
10
  GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
- builder (3.0.0)
13
+ builder (3.2.2)
14
14
  diff-lcs (1.1.3)
15
- hashie (1.2.0)
16
- httparty (0.8.3)
17
- multi_json (~> 1.0)
18
- multi_xml
19
- multi_json (1.3.6)
20
- multi_xml (0.5.1)
21
- nokogiri (1.5.4)
15
+ hashie (3.2.0)
16
+ httparty (0.13.1)
17
+ json (~> 1.8)
18
+ multi_xml (>= 0.5.2)
19
+ json (1.8.1)
20
+ mini_portile (0.6.0)
21
+ multi_xml (0.5.5)
22
+ nokogiri (1.6.2.1)
23
+ mini_portile (= 0.6.0)
22
24
  rspec (2.10.0)
23
25
  rspec-core (~> 2.10.0)
24
26
  rspec-expectations (~> 2.10.0)
@@ -7,8 +7,8 @@ module PagseguroV2
7
7
 
8
8
  def transaction
9
9
  response = self.client.query_transaction(self)
10
- transaction = Transaction.new response['transaction']
10
+ transaction = PagseguroV2::Transaction.new(response['transaction'])
11
11
  transaction
12
12
  end
13
13
  end
14
- end
14
+ end
@@ -1,6 +1,5 @@
1
1
  module PagseguroV2
2
2
  class Transaction < Hashie::Trash
3
- include Hashie::Extensions::IgnoreUndeclared
4
3
  property :date
5
4
  property :code
6
5
  property :reference
@@ -29,7 +28,8 @@ module PagseguroV2
29
28
 
30
29
  def initialize(options)
31
30
  translate_status(options)
32
- super(options)
31
+ options_sym = Hash[options.map { |k, v| [k.to_sym, v] }]
32
+ super(options_sym)
33
33
  end
34
34
 
35
35
  def translate_status(options)
@@ -1,3 +1,3 @@
1
1
  module PagseguroV2
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_dependency('nokogiri')
24
24
  s.add_development_dependency "rspec", "~> 2.10.0"
25
- s.add_runtime_dependency "hashie", '>= 1.2.0'
25
+ s.add_runtime_dependency "hashie", '>= 3.2.0'
26
26
  s.add_runtime_dependency "httparty"
27
27
  s.add_runtime_dependency "builder"
28
- end
28
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagseguro_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cirdes Henrique
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 1.2.0
48
+ version: 3.2.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 1.2.0
55
+ version: 3.2.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: httparty
58
58
  requirement: !ruby/object:Gem::Requirement