pagseguro-oficial 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +9 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE-2.0.txt +177 -0
  7. data/README.md +320 -0
  8. data/Rakefile +5 -0
  9. data/examples/abandoned_transactions.rb +26 -0
  10. data/examples/boot.rb +9 -0
  11. data/examples/invalid_transaction_by_notification_code.rb +9 -0
  12. data/examples/payment_request.rb +49 -0
  13. data/examples/transaction_by_notification_code.rb +5 -0
  14. data/examples/transactions_by_date.rb +23 -0
  15. data/lib/pagseguro/address.rb +40 -0
  16. data/lib/pagseguro/errors.rb +28 -0
  17. data/lib/pagseguro/exceptions.rb +3 -0
  18. data/lib/pagseguro/extensions/ensure_type.rb +9 -0
  19. data/lib/pagseguro/extensions/mass_assignment.rb +11 -0
  20. data/lib/pagseguro/item.rb +30 -0
  21. data/lib/pagseguro/items.rb +27 -0
  22. data/lib/pagseguro/notification.rb +21 -0
  23. data/lib/pagseguro/payment_method.rb +38 -0
  24. data/lib/pagseguro/payment_request/response.rb +30 -0
  25. data/lib/pagseguro/payment_request/serializer.rb +91 -0
  26. data/lib/pagseguro/payment_request.rb +96 -0
  27. data/lib/pagseguro/payment_status.rb +33 -0
  28. data/lib/pagseguro/phone.rb +12 -0
  29. data/lib/pagseguro/report.rb +124 -0
  30. data/lib/pagseguro/request.rb +78 -0
  31. data/lib/pagseguro/sender.rb +23 -0
  32. data/lib/pagseguro/shipping.rb +57 -0
  33. data/lib/pagseguro/transaction/response.rb +12 -0
  34. data/lib/pagseguro/transaction/serializer.rb +115 -0
  35. data/lib/pagseguro/transaction.rb +167 -0
  36. data/lib/pagseguro/version.rb +3 -0
  37. data/lib/pagseguro-oficial.rb +1 -0
  38. data/lib/pagseguro.rb +94 -0
  39. data/locales/pt-BR.yml +115 -0
  40. data/pagseguro-oficial.gemspec +32 -0
  41. data/spec/fixtures/by_date/success.xml +85 -0
  42. data/spec/fixtures/invalid_code.xml +7 -0
  43. data/spec/fixtures/payment_request/failure.xml +7 -0
  44. data/spec/fixtures/payment_request/success.xml +5 -0
  45. data/spec/fixtures/transactions/additional.xml +53 -0
  46. data/spec/fixtures/transactions/success.xml +53 -0
  47. data/spec/pagseguro/address_spec.rb +17 -0
  48. data/spec/pagseguro/errors_spec.rb +91 -0
  49. data/spec/pagseguro/item_spec.rb +20 -0
  50. data/spec/pagseguro/items_spec.rb +56 -0
  51. data/spec/pagseguro/notification_spec.rb +18 -0
  52. data/spec/pagseguro/pagseguro_spec.rb +54 -0
  53. data/spec/pagseguro/payment_method_spec.rb +41 -0
  54. data/spec/pagseguro/payment_request/response_spec.rb +24 -0
  55. data/spec/pagseguro/payment_request/serializer_spec.rb +142 -0
  56. data/spec/pagseguro/payment_request_spec.rb +107 -0
  57. data/spec/pagseguro/payment_status_spec.rb +24 -0
  58. data/spec/pagseguro/phone_spec.rb +6 -0
  59. data/spec/pagseguro/request_spec.rb +75 -0
  60. data/spec/pagseguro/sender_spec.rb +9 -0
  61. data/spec/pagseguro/shipping_spec.rb +40 -0
  62. data/spec/pagseguro/transaction/serializer_spec.rb +61 -0
  63. data/spec/pagseguro/transaction_spec.rb +118 -0
  64. data/spec/spec_helper.rb +29 -0
  65. data/spec/support/ensure_type_macro.rb +17 -0
  66. data/spec/support/mass_assignment_macro.rb +11 -0
  67. metadata +289 -0
@@ -0,0 +1,9 @@
1
+ require "spec_helper"
2
+
3
+ describe PagSeguro::Sender do
4
+ it_assigns_attribute :name
5
+ it_assigns_attribute :email
6
+ it_assigns_attribute :cpf
7
+ it_ensures_type PagSeguro::Phone, :phone
8
+ end
9
+
@@ -0,0 +1,40 @@
1
+ require "spec_helper"
2
+
3
+ describe PagSeguro::Shipping do
4
+ it_assigns_attribute :cost
5
+ it_ensures_type PagSeguro::Address, :address
6
+
7
+ PagSeguro::Shipping::TYPE.each do |name, id|
8
+ it "sets id for name (#{id.inspect} => #{name.inspect})" do
9
+ shipping = PagSeguro::Shipping.new(type_name: name)
10
+ expect(shipping.type_id).to eql(id)
11
+ end
12
+
13
+ it "sets name for id (#{name.inspect} => #{id.inspect})" do
14
+ shipping = PagSeguro::Shipping.new(type_id: id)
15
+ expect(shipping.type_name).to eql(name)
16
+ end
17
+ end
18
+
19
+ it "raises when setting an invalid type id" do
20
+ shipping = PagSeguro::Shipping.new
21
+
22
+ expect {
23
+ shipping.type_id = 1234
24
+ }.to raise_error(
25
+ PagSeguro::Shipping::InvalidShippingTypeError,
26
+ "invalid 1234 type id"
27
+ )
28
+ end
29
+
30
+ it "raises when setting an invalid type name" do
31
+ shipping = PagSeguro::Shipping.new
32
+
33
+ expect {
34
+ shipping.type_name = :invalid
35
+ }.to raise_error(
36
+ PagSeguro::Shipping::InvalidShippingTypeError,
37
+ "invalid :invalid type name"
38
+ )
39
+ end
40
+ end
@@ -0,0 +1,61 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require "spec_helper"
3
+
4
+ describe PagSeguro::Transaction::Serializer do
5
+ context "for existing transactions" do
6
+ let(:source) { File.read("./spec/fixtures/transactions/success.xml") }
7
+ let(:xml) { Nokogiri::XML(source) }
8
+ let(:serializer) { described_class.new(xml.css("transaction").first) }
9
+ subject(:data) { serializer.serialize }
10
+
11
+ it { expect(data).to include(created_at: Time.parse("2013-05-01T01:40:27.000-03:00")) }
12
+ it { expect(data).to include(updated_at: Time.parse("2013-05-01T01:41:20.000-03:00")) }
13
+ it { expect(data).to include(code: "667A3914-4F9F-4705-0EB6-CA6FA0DF8A19") }
14
+ it { expect(data).to include(reference: "REF1234") }
15
+ it { expect(data).to include(type_id: "1") }
16
+ it { expect(data).to include(status: "1") }
17
+ it { expect(data).to include(payment_method: {type_id: "2", code: "202"}) }
18
+ it { expect(data).to include(payment_link: "https://pagseguro.uol.com.br/checkout/imprimeBoleto.jhtml?code=667D39144F9F47059FB6CA6FA0DF8A20") }
19
+ it { expect(data).to include(gross_amount: BigDecimal("459.50")) }
20
+ it { expect(data).to include(discount_amount: BigDecimal("0.00")) }
21
+ it { expect(data).to include(fee_amount: BigDecimal("13.73")) }
22
+ it { expect(data).to include(net_amount: BigDecimal("445.77")) }
23
+ it { expect(data).to include(extra_amount: BigDecimal("0.00")) }
24
+ it { expect(data).to include(installments: 1) }
25
+
26
+ it { expect(data.keys).not_to include(:cancellation_source) }
27
+ it { expect(data.keys).not_to include(:escrow_end_date) }
28
+
29
+ it { expect(data[:items]).to have(1).item }
30
+ it { expect(data[:items].first).to include(id: "1234") }
31
+ it { expect(data[:items].first).to include(description: "Some product") }
32
+ it { expect(data[:items].first).to include(quantity: 1) }
33
+ it { expect(data[:items].first).to include(amount: BigDecimal("459.50")) }
34
+
35
+ it { expect(data[:sender]).to include(name: "JOHN DOE") }
36
+ it { expect(data[:sender]).to include(email: "john@example.com") }
37
+ it { expect(data[:sender][:phone]).to include(area_code: "11") }
38
+ it { expect(data[:sender][:phone]).to include(number: "12345678") }
39
+
40
+ it { expect(data[:shipping]).to include(type_id: "2") }
41
+
42
+ it { expect(data[:shipping][:address]).to include(street: "AV. BRIG. FARIA LIMA") }
43
+ it { expect(data[:shipping][:address]).to include(number: "1384") }
44
+ it { expect(data[:shipping][:address]).to include(complement: "5 ANDAR") }
45
+ it { expect(data[:shipping][:address]).to include(district: "JARDIM PAULISTANO") }
46
+ it { expect(data[:shipping][:address]).to include(city: "SAO PAULO") }
47
+ it { expect(data[:shipping][:address]).to include(state: "SP") }
48
+ it { expect(data[:shipping][:address]).to include(country: "BRA") }
49
+ it { expect(data[:shipping][:address]).to include(postal_code: "01452002") }
50
+ end
51
+
52
+ context "additional nodes" do
53
+ let(:source) { File.read("./spec/fixtures/transactions/additional.xml") }
54
+ let(:xml) { Nokogiri::XML(source) }
55
+ let(:serializer) { described_class.new(xml) }
56
+ subject(:data) { serializer.serialize }
57
+
58
+ it { expect(data).to include(cancellation_source: "PagSeguro") }
59
+ it { expect(data).to include(escrow_end_date: Time.parse("2013-06-01T01:41:20.000-03:00")) }
60
+ end
61
+ end
@@ -0,0 +1,118 @@
1
+ require "spec_helper"
2
+
3
+ describe PagSeguro::Transaction do
4
+ describe ".find_by_notification_code" do
5
+ it "finds transaction by the given notificationCode" do
6
+ PagSeguro::Transaction.stub :load_from_response
7
+
8
+ PagSeguro::Request
9
+ .should_receive(:get)
10
+ .with("transactions/notifications/CODE")
11
+ .and_return(double.as_null_object)
12
+
13
+ PagSeguro::Transaction.find_by_notification_code("CODE")
14
+ end
15
+
16
+ it "returns response with errors when request fails" do
17
+ body = %[<?xml version="1.0"?><errors><error><code>1234</code><message>Sample error</message></error></errors>]
18
+ FakeWeb.register_uri :get, %r[.+], status: [400, "Bad Request"], body: body, content_type: "text/xml"
19
+ response = PagSeguro::Transaction.find_by_notification_code("invalid")
20
+
21
+ expect(response).to be_a(PagSeguro::Transaction::Response)
22
+ expect(response.errors).to include("Sample error")
23
+ end
24
+ end
25
+
26
+ describe ".find_by_date" do
27
+ it "initializes report with default options" do
28
+ now = Time.now
29
+ Time.stub now: now
30
+
31
+ PagSeguro::Report
32
+ .should_receive(:new)
33
+ .with(
34
+ PagSeguro::Transaction,
35
+ "transactions",
36
+ hash_including(per_page: 50, starts_at: now - 86400, ends_at: now),
37
+ 0
38
+ )
39
+
40
+ PagSeguro::Transaction.find_by_date
41
+ end
42
+
43
+ it "initializes report with given options" do
44
+ starts_at = Time.now - 3600
45
+ ends_at = starts_at + 180
46
+ page = 1
47
+
48
+ PagSeguro::Report
49
+ .should_receive(:new)
50
+ .with(
51
+ PagSeguro::Transaction,
52
+ "transactions",
53
+ hash_including(per_page: 10, starts_at: starts_at, ends_at: ends_at),
54
+ page
55
+ )
56
+
57
+ PagSeguro::Transaction.find_by_date(
58
+ {per_page: 10, starts_at: starts_at, ends_at: ends_at},
59
+ page
60
+ )
61
+ end
62
+ end
63
+
64
+ describe ".find_abandoned" do
65
+ it "initializes report with default options" do
66
+ now = Time.now
67
+ Time.stub now: now
68
+
69
+ PagSeguro::Report
70
+ .should_receive(:new)
71
+ .with(
72
+ PagSeguro::Transaction,
73
+ "transactions/abandoned",
74
+ hash_including(per_page: 50, starts_at: now - 86400, ends_at: now - 900),
75
+ 0
76
+ )
77
+
78
+ PagSeguro::Transaction.find_abandoned
79
+ end
80
+
81
+ it "initializes report with given options" do
82
+ starts_at = Time.now - 3600
83
+ ends_at = starts_at + 180
84
+ page = 1
85
+
86
+ PagSeguro::Report
87
+ .should_receive(:new)
88
+ .with(
89
+ PagSeguro::Transaction,
90
+ "transactions/abandoned",
91
+ hash_including(per_page: 10, starts_at: starts_at, ends_at: ends_at),
92
+ page
93
+ )
94
+
95
+ PagSeguro::Transaction.find_abandoned(
96
+ {per_page: 10, starts_at: starts_at, ends_at: ends_at},
97
+ page
98
+ )
99
+ end
100
+ end
101
+
102
+ describe "attributes" do
103
+ before do
104
+ body = File.read("./spec/fixtures/transactions/success.xml")
105
+ FakeWeb.register_uri :get, %r[.+], body: body, content_type: "text/xml"
106
+ end
107
+
108
+ subject(:transaction) { PagSeguro::Transaction.find_by_notification_code("CODE") }
109
+
110
+ it { expect(transaction.sender).to be_a(PagSeguro::Sender) }
111
+ it { expect(transaction.shipping).to be_a(PagSeguro::Shipping) }
112
+ it { expect(transaction.items).to be_a(PagSeguro::Items) }
113
+ it { expect(transaction.payment_method).to be_a(PagSeguro::PaymentMethod) }
114
+ it { expect(transaction.status).to be_a(PagSeguro::PaymentStatus) }
115
+ it { expect(transaction.items).to have(1).item }
116
+ it { expect(transaction).to respond_to(:escrow_end_date) }
117
+ end
118
+ end
@@ -0,0 +1,29 @@
1
+ require "simplecov"
2
+ SimpleCov.start
3
+
4
+ require "bundler/setup"
5
+ Bundler.require(:default, :development)
6
+
7
+ I18n.enforce_available_locales = false
8
+ require "test_notifier/runner/rspec"
9
+ require "fakeweb"
10
+ require "pagseguro"
11
+
12
+ FakeWeb.allow_net_connect = false
13
+
14
+ Dir["./spec/support/**/*.rb"].each {|file| require file }
15
+
16
+ I18n.exception_handler = proc do |scope, *args|
17
+ message = scope.to_s
18
+ raise message unless message.include?(".i18n.plural.rule")
19
+ end
20
+
21
+ I18n.default_locale = "pt-BR"
22
+ I18n.locale = ENV.fetch("LOCALE", I18n.default_locale)
23
+
24
+ RSpec.configure do |config|
25
+ config.before(:each) do
26
+ load "./lib/pagseguro.rb"
27
+ FakeWeb.clean_registry
28
+ end
29
+ end
@@ -0,0 +1,17 @@
1
+ module EnsureTypeMacro
2
+ def it_ensures_type(klass, attr)
3
+ it "ensures that #{attr.inspect} coerces hash to #{klass}" do
4
+ options = double(:options)
5
+
6
+ klass
7
+ .should_receive(:new)
8
+ .with(options)
9
+ .and_return("INSTANCE")
10
+
11
+ instance = described_class.new(attr => options)
12
+ expect(instance.public_send(attr)).to eql("INSTANCE")
13
+ end
14
+ end
15
+ end
16
+
17
+ RSpec.configure {|c| c.extend(EnsureTypeMacro) }
@@ -0,0 +1,11 @@
1
+ module MassAssignmentMacro
2
+ def it_assigns_attribute(attr)
3
+ it "assigns #{attr} on initialize" do
4
+ value = attr.to_s.upcase
5
+ object = described_class.new(attr => value)
6
+ expect(object.public_send(attr)).to eql(value)
7
+ end
8
+ end
9
+ end
10
+
11
+ RSpec.configure {|c| c.extend(MassAssignmentMacro) }
metadata ADDED
@@ -0,0 +1,289 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pagseguro-oficial
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Nando Vieira
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: aitch
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: i18n
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: json
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: autotest-standalone
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: test_notifier
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: fakeweb
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ description: Biblioteca oficial de integração PagSeguro em Ruby
168
+ email:
169
+ - fnando.vieira@gmail.com
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - ".gitignore"
175
+ - ".rspec"
176
+ - ".travis.yml"
177
+ - Gemfile
178
+ - LICENSE-2.0.txt
179
+ - README.md
180
+ - Rakefile
181
+ - examples/abandoned_transactions.rb
182
+ - examples/boot.rb
183
+ - examples/invalid_transaction_by_notification_code.rb
184
+ - examples/payment_request.rb
185
+ - examples/transaction_by_notification_code.rb
186
+ - examples/transactions_by_date.rb
187
+ - lib/pagseguro-oficial.rb
188
+ - lib/pagseguro.rb
189
+ - lib/pagseguro/address.rb
190
+ - lib/pagseguro/errors.rb
191
+ - lib/pagseguro/exceptions.rb
192
+ - lib/pagseguro/extensions/ensure_type.rb
193
+ - lib/pagseguro/extensions/mass_assignment.rb
194
+ - lib/pagseguro/item.rb
195
+ - lib/pagseguro/items.rb
196
+ - lib/pagseguro/notification.rb
197
+ - lib/pagseguro/payment_method.rb
198
+ - lib/pagseguro/payment_request.rb
199
+ - lib/pagseguro/payment_request/response.rb
200
+ - lib/pagseguro/payment_request/serializer.rb
201
+ - lib/pagseguro/payment_status.rb
202
+ - lib/pagseguro/phone.rb
203
+ - lib/pagseguro/report.rb
204
+ - lib/pagseguro/request.rb
205
+ - lib/pagseguro/sender.rb
206
+ - lib/pagseguro/shipping.rb
207
+ - lib/pagseguro/transaction.rb
208
+ - lib/pagseguro/transaction/response.rb
209
+ - lib/pagseguro/transaction/serializer.rb
210
+ - lib/pagseguro/version.rb
211
+ - locales/pt-BR.yml
212
+ - pagseguro-oficial.gemspec
213
+ - spec/fixtures/by_date/success.xml
214
+ - spec/fixtures/invalid_code.xml
215
+ - spec/fixtures/payment_request/failure.xml
216
+ - spec/fixtures/payment_request/success.xml
217
+ - spec/fixtures/transactions/additional.xml
218
+ - spec/fixtures/transactions/success.xml
219
+ - spec/pagseguro/address_spec.rb
220
+ - spec/pagseguro/errors_spec.rb
221
+ - spec/pagseguro/item_spec.rb
222
+ - spec/pagseguro/items_spec.rb
223
+ - spec/pagseguro/notification_spec.rb
224
+ - spec/pagseguro/pagseguro_spec.rb
225
+ - spec/pagseguro/payment_method_spec.rb
226
+ - spec/pagseguro/payment_request/response_spec.rb
227
+ - spec/pagseguro/payment_request/serializer_spec.rb
228
+ - spec/pagseguro/payment_request_spec.rb
229
+ - spec/pagseguro/payment_status_spec.rb
230
+ - spec/pagseguro/phone_spec.rb
231
+ - spec/pagseguro/request_spec.rb
232
+ - spec/pagseguro/sender_spec.rb
233
+ - spec/pagseguro/shipping_spec.rb
234
+ - spec/pagseguro/transaction/serializer_spec.rb
235
+ - spec/pagseguro/transaction_spec.rb
236
+ - spec/spec_helper.rb
237
+ - spec/support/ensure_type_macro.rb
238
+ - spec/support/mass_assignment_macro.rb
239
+ homepage: http://www.pagseguro.com.br
240
+ licenses:
241
+ - ASL
242
+ metadata: {}
243
+ post_install_message:
244
+ rdoc_options: []
245
+ require_paths:
246
+ - lib
247
+ required_ruby_version: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - ">="
250
+ - !ruby/object:Gem::Version
251
+ version: 1.9.3
252
+ required_rubygems_version: !ruby/object:Gem::Requirement
253
+ requirements:
254
+ - - ">="
255
+ - !ruby/object:Gem::Version
256
+ version: '0'
257
+ requirements: []
258
+ rubyforge_project:
259
+ rubygems_version: 2.2.2
260
+ signing_key:
261
+ specification_version: 4
262
+ summary: Biblioteca oficial de integração PagSeguro em Ruby
263
+ test_files:
264
+ - spec/fixtures/by_date/success.xml
265
+ - spec/fixtures/invalid_code.xml
266
+ - spec/fixtures/payment_request/failure.xml
267
+ - spec/fixtures/payment_request/success.xml
268
+ - spec/fixtures/transactions/additional.xml
269
+ - spec/fixtures/transactions/success.xml
270
+ - spec/pagseguro/address_spec.rb
271
+ - spec/pagseguro/errors_spec.rb
272
+ - spec/pagseguro/item_spec.rb
273
+ - spec/pagseguro/items_spec.rb
274
+ - spec/pagseguro/notification_spec.rb
275
+ - spec/pagseguro/pagseguro_spec.rb
276
+ - spec/pagseguro/payment_method_spec.rb
277
+ - spec/pagseguro/payment_request/response_spec.rb
278
+ - spec/pagseguro/payment_request/serializer_spec.rb
279
+ - spec/pagseguro/payment_request_spec.rb
280
+ - spec/pagseguro/payment_status_spec.rb
281
+ - spec/pagseguro/phone_spec.rb
282
+ - spec/pagseguro/request_spec.rb
283
+ - spec/pagseguro/sender_spec.rb
284
+ - spec/pagseguro/shipping_spec.rb
285
+ - spec/pagseguro/transaction/serializer_spec.rb
286
+ - spec/pagseguro/transaction_spec.rb
287
+ - spec/spec_helper.rb
288
+ - spec/support/ensure_type_macro.rb
289
+ - spec/support/mass_assignment_macro.rb