pagarme 1.10.0 → 2.0.0

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.
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "pagarme"
7
- spec.version = "1.10.0"
7
+ spec.version = "2.0.0"
8
8
  spec.authors = ["Pedro Franceschi", "Henrique Dubugras"]
9
9
  spec.email = ["pedrohfranceschi@gmail.com", "henrique@pagar.me"]
10
10
  spec.description = %q{Pagar.me's ruby gem}
@@ -75,18 +75,6 @@ module PagarMe
75
75
  test_subscription_transaction_response(subscription.current_transaction, 1500, 3)
76
76
  end
77
77
 
78
- should 'be able to search by anything' do
79
- subscription = test_subscription_with_customer
80
- subscription.create
81
-
82
- subscriptions = PagarMe::Subscription.find_by({'customer[name]' => 'Jose da Silva'})
83
- assert subscriptions.size
84
- subscriptions.each do |s|
85
- # puts s.inspect unless s.customer.name == 'Jose da Silva'
86
- # assert s.customer.name == 'Jose da Silva'
87
- end
88
- end
89
-
90
78
  should 'be able to update subscription' do
91
79
  subscription = test_subscription
92
80
  subscription.create
@@ -53,16 +53,6 @@ module PagarMe
53
53
  assert transaction.status == 'refunded'
54
54
  end
55
55
 
56
- should 'be able to search by anything' do
57
- transaction = test_transaction_with_customer
58
- transaction.charge
59
- transactions = PagarMe::Transaction.find_by({'customer[document_number]' => 36433809847}, 2, 10)
60
- assert transactions.size == 10
61
- transactions.each do |t|
62
- assert t.customer.document_number == '36433809847'
63
- end
64
- end
65
-
66
56
  should 'be able to create transaciton with boleto' do
67
57
  transaction = PagarMe::Transaction.new({
68
58
  :payment_method => "boleto",
@@ -85,9 +85,9 @@ def test_transaction_with_customer(params = {})
85
85
  :amount => 1000,
86
86
  :card_number => '4901720080344448',
87
87
  :card_holder_name => "Jose da Silva",
88
- :card_expiration_month => 11,
88
+ :card_expiration_month => "11",
89
89
  :card_expiration_year => "19",
90
- :card_cvv => 356,
90
+ :card_cvv => "356",
91
91
  :customer => {
92
92
  :name => "Jose da Silva",
93
93
  :document_number => "36433809847",
@@ -96,10 +96,10 @@ def test_transaction_with_customer(params = {})
96
96
  :street => 'Av. Brigadeiro Faria Lima',
97
97
  :neighborhood => 'Itaim bibi',
98
98
  :zipcode => '01452000',
99
- :street_number => 2941,
99
+ :street_number => "2941",
100
100
  },
101
101
  :phone => {
102
- :ddd => 12,
102
+ :ddd => "12",
103
103
  :number => '981433533',
104
104
  },
105
105
  :sex => 'M',
@@ -113,9 +113,9 @@ def test_subscription_with_customer(params = {})
113
113
  :amount => 1000,
114
114
  :card_number => '4901720080344448',
115
115
  :card_holder_name => "Jose da silva",
116
- :card_expiration_month => 11,
117
- :card_expiration_year => 19,
118
- :card_cvv => 356,
116
+ :card_expiration_month => "11",
117
+ :card_expiration_year => "19",
118
+ :card_cvv => "356",
119
119
  :customer => {
120
120
  :name => "Jose da Silva",
121
121
  :document_number => "36433809847",
@@ -124,10 +124,10 @@ def test_subscription_with_customer(params = {})
124
124
  :street => 'Av. Brigadeiro Faria Lima',
125
125
  :neighborhood => 'Itaim bibi',
126
126
  :zipcode => '01452000',
127
- :street_number => 1000,
127
+ :street_number => "1000",
128
128
  } ,
129
129
  :phone => {
130
- :ddd => 12,
130
+ :ddd => "12",
131
131
  :number => '981444444',
132
132
  } ,
133
133
  :sex => 'M',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagarme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Franceschi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-09 00:00:00.000000000 Z
12
+ date: 2015-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -108,7 +108,7 @@ files:
108
108
  - Gemfile
109
109
  - README.md
110
110
  - Rakefile
111
- - certs/public_key.pem
111
+ - certs/cabundle.pem
112
112
  - lib/pagarme.rb
113
113
  - lib/pagarme/address.rb
114
114
  - lib/pagarme/bank_account.rb
@@ -169,3 +169,4 @@ test_files:
169
169
  - test/pagarme/transaction.rb
170
170
  - test/pagarme/transfer.rb
171
171
  - test/test_helper.rb
172
+ has_rdoc:
@@ -1,9 +0,0 @@
1
- -----BEGIN PUBLIC KEY-----
2
- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3+L/5UB2xen6FnMjpQo7
3
- ZOfoeYd4DFW7OtdQKqGRXdI4JYctZlbBbU5OoNH5clIZxUYi9sG15g8iieYxc77E
4
- ZLSJFx+H7NuzeOBBQuCT7liYFiCm7LH0iyqPnFYQOoYHvibB+zVEm9/H5+qE3i1i
5
- ZBuvT/5v0o4iemVLNzIGJs360atEHHnKjfqhpobzXQ0+BdqYu2VWEsCzhFRDt+yp
6
- O8ZBcI+Fd0+SZYjOw0tyE1NousG5TvnST1SApucb44bD2PEIQ1RzTNRzhc+NVoTu
7
- LYvotLGCm/SxJUkX/0RIMw6VJq1gXAGUdKE/W1ScFkGBbtyoqWvtlvvg9gQdmFLC
8
- XwIDAQAB
9
- -----END PUBLIC KEY-----