pagseguro-transparente 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +21 -20
- data/lib/pagseguro.rb +1 -0
- data/lib/pagseguro/payment/serializer.rb +1 -1
- data/lib/pagseguro/version.rb +1 -1
- data/locale/pt-BR.yml +35 -0
- data/pagseguro-transparente.gemspec +13 -14
- data/spec/pagseguro/payment/serializer_spec.rb +1 -1
- metadata +59 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11771c3336bb777b95d8615eda1bf3f7024446af
|
4
|
+
data.tar.gz: 0a9a5b39e8c83e544e02780113ffbd4b3e2fc59b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3e56f4e64a149e243051005890dd2ae4fa3be80625e1fff3c6d60538e7c6b8c733c5c75198f25e65b964c2fc52d94079548fe3b6aa60cc960b026cfa255f6e0
|
7
|
+
data.tar.gz: 32318d669f21abc9c862e8a3cb283903153a53d62625443df72aff695d38aa23b0d44e458bf0e44cfa132207ce3cc30f5c231c474bb828996c6e229e01a79cfd
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pagseguro-transparente (0.0.
|
5
|
-
activemodel
|
6
|
-
httparty
|
7
|
-
|
8
|
-
|
4
|
+
pagseguro-transparente (0.0.6)
|
5
|
+
activemodel (~> 4.1)
|
6
|
+
httparty (~> 0.13)
|
7
|
+
i18n (~> 0.6)
|
8
|
+
json (~> 1.8)
|
9
|
+
nokogiri (~> 1.6)
|
9
10
|
|
10
11
|
GEM
|
11
12
|
remote: https://rubygems.org/
|
@@ -38,13 +39,13 @@ GEM
|
|
38
39
|
i18n (0.6.9)
|
39
40
|
json (1.8.1)
|
40
41
|
mime-types (2.2)
|
41
|
-
mini_portile (0.
|
42
|
-
minitest (5.3.
|
42
|
+
mini_portile (0.6.0)
|
43
|
+
minitest (5.3.4)
|
43
44
|
multi_json (1.10.0)
|
44
45
|
multi_xml (0.5.5)
|
45
|
-
nokogiri (1.6.1)
|
46
|
-
mini_portile (
|
47
|
-
rake (10.3.
|
46
|
+
nokogiri (1.6.2.1)
|
47
|
+
mini_portile (= 0.6.0)
|
48
|
+
rake (10.3.2)
|
48
49
|
rest-client (1.6.7)
|
49
50
|
mime-types (>= 1.16)
|
50
51
|
rspec (2.14.1)
|
@@ -68,22 +69,22 @@ GEM
|
|
68
69
|
thor (0.19.1)
|
69
70
|
thread_safe (0.2.0)
|
70
71
|
atomic (>= 1.1.7, < 2)
|
71
|
-
tins (1.
|
72
|
+
tins (1.3.0)
|
72
73
|
tzinfo (1.1.0)
|
73
74
|
thread_safe (~> 0.1)
|
74
|
-
webmock (1.
|
75
|
-
addressable (>= 2.
|
75
|
+
webmock (1.18.0)
|
76
|
+
addressable (>= 2.3.6)
|
76
77
|
crack (>= 0.3.2)
|
77
78
|
|
78
79
|
PLATFORMS
|
79
80
|
ruby
|
80
81
|
|
81
82
|
DEPENDENCIES
|
82
|
-
bundler
|
83
|
-
coveralls
|
83
|
+
bundler (~> 1.6)
|
84
|
+
coveralls (~> 0.7)
|
84
85
|
pagseguro-transparente!
|
85
|
-
rake
|
86
|
-
rspec
|
87
|
-
shoulda-matchers (= 2.5
|
88
|
-
thread_safe (
|
89
|
-
webmock
|
86
|
+
rake (~> 10.3)
|
87
|
+
rspec (~> 2.14)
|
88
|
+
shoulda-matchers (= 2.5)
|
89
|
+
thread_safe (~> 0.2)
|
90
|
+
webmock (~> 1.18)
|
data/lib/pagseguro.rb
CHANGED
@@ -117,7 +117,7 @@ module PagSeguro
|
|
117
117
|
|
118
118
|
params[:creditCardHolderName] = holder.name
|
119
119
|
params[:creditCardHolderCPF] = holder.document.value
|
120
|
-
params[:creditCardHolderBirthDate] = holder.birthdate
|
120
|
+
params[:creditCardHolderBirthDate] = holder.birthdate.strftime("%d/%m/%Y")
|
121
121
|
params[:creditCardHolderAreaCode] = holder.phone.area_code
|
122
122
|
params[:creditCardHolderPhone] = holder.phone.number
|
123
123
|
end
|
data/lib/pagseguro/version.rb
CHANGED
data/locale/pt-BR.yml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
pt-BR:
|
2
|
+
errors:
|
3
|
+
# The default format to use in full error messages.
|
4
|
+
format: "%{attribute} %{message}"
|
5
|
+
|
6
|
+
# The values :model, :attribute and :value are always available for interpolation
|
7
|
+
# The value :count is available when applicable. Can be used for pluralization.
|
8
|
+
messages:
|
9
|
+
inclusion: não está incluído na lista
|
10
|
+
exclusion: não está disponível
|
11
|
+
invalid: não é válido
|
12
|
+
confirmation: não é igual a %{attribute}
|
13
|
+
accepted: deve ser aceito
|
14
|
+
empty: não pode ficar vazio
|
15
|
+
blank: não pode ficar em branco
|
16
|
+
present: deve ficar em branco
|
17
|
+
too_long:
|
18
|
+
one: "é muito grande, deve ter no máximo 1 caractere"
|
19
|
+
other: "é muito grande, o tamanho máximo é de %{count} caracteres"
|
20
|
+
too_short:
|
21
|
+
one: "é muito pequeno, deve ter no mínimo 1 caractere"
|
22
|
+
other: "é muito pequeno, deve ter no mínimo %{count} characters"
|
23
|
+
wrong_length:
|
24
|
+
one: "está no tamnaho errado (deve ser 1 caractere)"
|
25
|
+
other: "está no tamnaho errado (deve ser %{count} caracteres)"
|
26
|
+
not_a_number: não é um número
|
27
|
+
not_an_integer: não é um número inteiro
|
28
|
+
greater_than: deve ser maior que %{count}
|
29
|
+
greater_than_or_equal_to: deve ser maior ou igual a %{count}
|
30
|
+
equal_to: deve ser igual a %{count}
|
31
|
+
less_than: deve ser menor que %{count}
|
32
|
+
less_than_or_equal_to: deve ser menor ou igual a %{count}
|
33
|
+
other_than: deve ser outro que não %{count}
|
34
|
+
odd: deve ser ímpar
|
35
|
+
even: deve ser par
|
@@ -17,18 +17,17 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_dependency "activemodel"
|
21
|
-
spec.add_dependency "httparty"
|
22
|
-
spec.add_dependency "nokogiri"
|
23
|
-
spec.add_dependency "json"
|
24
|
-
|
25
|
-
|
26
|
-
spec.add_development_dependency "
|
27
|
-
spec.add_development_dependency "
|
28
|
-
spec.add_development_dependency "
|
29
|
-
spec.add_development_dependency "
|
30
|
-
spec.add_development_dependency "
|
31
|
-
spec.add_development_dependency
|
32
|
-
|
33
|
-
#spec.add_development_dependency "autotest-standalone"
|
20
|
+
spec.add_dependency "activemodel", '~> 4.1'
|
21
|
+
spec.add_dependency "httparty", '~> 0.13'
|
22
|
+
spec.add_dependency "nokogiri", '~> 1.6'
|
23
|
+
spec.add_dependency "json", '~> 1.8'
|
24
|
+
spec.add_dependency "i18n", '~> 0.6'
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", '~> 1.6'
|
27
|
+
spec.add_development_dependency "rake", '~> 10.3'
|
28
|
+
spec.add_development_dependency "rspec", '~> 2.14'
|
29
|
+
spec.add_development_dependency "shoulda-matchers", '2.5'
|
30
|
+
spec.add_development_dependency "coveralls", '~> 0.7'
|
31
|
+
spec.add_development_dependency "webmock", '~> 1.18'
|
32
|
+
spec.add_development_dependency 'thread_safe', '~> 0.2'
|
34
33
|
end
|
@@ -59,7 +59,7 @@ describe PagSeguro::Payment::Serializer do
|
|
59
59
|
let(:installment) { PagSeguro::Installment.new('5', '125.22')}
|
60
60
|
|
61
61
|
let(:holder) do
|
62
|
-
holder = PagSeguro::Holder.new('Jose Comprador', '27
|
62
|
+
holder = PagSeguro::Holder.new('Jose Comprador', Date.parse('1987-10-27') )
|
63
63
|
holder.document = document
|
64
64
|
holder.phone = phone
|
65
65
|
holder
|
metadata
CHANGED
@@ -1,169 +1,183 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagseguro-transparente
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cirdes Henrique
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: httparty
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '0.13'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '0.13'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: nokogiri
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.6'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '1.6'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: json
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.8'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.8'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: i18n
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.6'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.6'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: bundler
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - "
|
87
|
+
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
89
|
+
version: '1.6'
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - "
|
94
|
+
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
96
|
+
version: '1.6'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: rake
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- - "
|
101
|
+
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
103
|
+
version: '10.3'
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
|
-
- - "
|
108
|
+
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
110
|
+
version: '10.3'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rspec
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
|
-
- - "
|
115
|
+
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
117
|
+
version: '2.14'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
|
-
- - "
|
122
|
+
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
124
|
+
version: '2.14'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: shoulda-matchers
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - '='
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: 2.5
|
131
|
+
version: '2.5'
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
136
|
- - '='
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: 2.5
|
138
|
+
version: '2.5'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: coveralls
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
|
-
- - "
|
143
|
+
- - "~>"
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
145
|
+
version: '0.7'
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
|
-
- - "
|
150
|
+
- - "~>"
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
152
|
+
version: '0.7'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: webmock
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
|
-
- - "
|
157
|
+
- - "~>"
|
144
158
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
159
|
+
version: '1.18'
|
146
160
|
type: :development
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
|
-
- - "
|
164
|
+
- - "~>"
|
151
165
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
166
|
+
version: '1.18'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: thread_safe
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
|
-
- -
|
171
|
+
- - "~>"
|
158
172
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.2
|
173
|
+
version: '0.2'
|
160
174
|
type: :development
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
|
-
- -
|
178
|
+
- - "~>"
|
165
179
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.2
|
180
|
+
version: '0.2'
|
167
181
|
description: Integração com o novo checkout transparente do Pagseguro.
|
168
182
|
email:
|
169
183
|
- cirdes@gmail.com
|
@@ -208,6 +222,7 @@ files:
|
|
208
222
|
- lib/pagseguro/transaction/sender.rb
|
209
223
|
- lib/pagseguro/transaction/shipping.rb
|
210
224
|
- lib/pagseguro/version.rb
|
225
|
+
- locale/pt-BR.yml
|
211
226
|
- pagseguro-transparente.gemspec
|
212
227
|
- spec/pagseguro/address_spec.rb
|
213
228
|
- spec/pagseguro/bank_spec.rb
|