pagseguro 0.1.12 → 0.1.13
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.
- data/Gemfile +1 -1
- data/Gemfile.lock +89 -90
- data/README.markdown +97 -78
- data/{lib/pagseguro/views → app/views/pagseguro}/_pagseguro_form.html.erb +0 -0
- data/lib/pagseguro.rb +1 -0
- data/lib/pagseguro/engine.rb +4 -0
- data/lib/pagseguro/helper.rb +1 -1
- data/lib/pagseguro/railtie.rb +0 -2
- data/lib/pagseguro/version.rb +1 -1
- data/pagseguro.gemspec +6 -7
- metadata +64 -81
data/Gemfile
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
source
|
|
1
|
+
source :rubygems
|
|
2
2
|
gemspec
|
data/Gemfile.lock
CHANGED
|
@@ -1,116 +1,115 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
pagseguro (0.1.
|
|
4
|
+
pagseguro (0.1.13)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
|
-
remote: http://
|
|
7
|
+
remote: http://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
rack (~> 1.
|
|
20
|
-
rack-mount (~> 0.
|
|
21
|
-
rack-test (~> 0.
|
|
22
|
-
|
|
23
|
-
activemodel (3.
|
|
24
|
-
activesupport (= 3.
|
|
25
|
-
builder (~>
|
|
26
|
-
i18n (~> 0.
|
|
27
|
-
activerecord (3.
|
|
28
|
-
activemodel (= 3.
|
|
29
|
-
activesupport (= 3.
|
|
30
|
-
arel (~> 2.
|
|
31
|
-
tzinfo (~> 0.3.
|
|
32
|
-
activeresource (3.
|
|
33
|
-
activemodel (= 3.
|
|
34
|
-
activesupport (= 3.
|
|
35
|
-
activesupport (3.
|
|
36
|
-
|
|
37
|
-
arel (2.
|
|
38
|
-
builder (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
erubis (2.6.6)
|
|
42
|
-
abstract (>= 1.0.0)
|
|
9
|
+
actionmailer (3.1.1)
|
|
10
|
+
actionpack (= 3.1.1)
|
|
11
|
+
mail (~> 2.3.0)
|
|
12
|
+
actionpack (3.1.1)
|
|
13
|
+
activemodel (= 3.1.1)
|
|
14
|
+
activesupport (= 3.1.1)
|
|
15
|
+
builder (~> 3.0.0)
|
|
16
|
+
erubis (~> 2.7.0)
|
|
17
|
+
i18n (~> 0.6)
|
|
18
|
+
rack (~> 1.3.2)
|
|
19
|
+
rack-cache (~> 1.1)
|
|
20
|
+
rack-mount (~> 0.8.2)
|
|
21
|
+
rack-test (~> 0.6.1)
|
|
22
|
+
sprockets (~> 2.0.2)
|
|
23
|
+
activemodel (3.1.1)
|
|
24
|
+
activesupport (= 3.1.1)
|
|
25
|
+
builder (~> 3.0.0)
|
|
26
|
+
i18n (~> 0.6)
|
|
27
|
+
activerecord (3.1.1)
|
|
28
|
+
activemodel (= 3.1.1)
|
|
29
|
+
activesupport (= 3.1.1)
|
|
30
|
+
arel (~> 2.2.1)
|
|
31
|
+
tzinfo (~> 0.3.29)
|
|
32
|
+
activeresource (3.1.1)
|
|
33
|
+
activemodel (= 3.1.1)
|
|
34
|
+
activesupport (= 3.1.1)
|
|
35
|
+
activesupport (3.1.1)
|
|
36
|
+
multi_json (~> 1.0)
|
|
37
|
+
arel (2.2.1)
|
|
38
|
+
builder (3.0.0)
|
|
39
|
+
diff-lcs (1.1.3)
|
|
40
|
+
erubis (2.7.0)
|
|
43
41
|
fakeweb (1.3.0)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
mail (2.
|
|
48
|
-
activesupport (>= 2.3.6)
|
|
42
|
+
hike (1.2.1)
|
|
43
|
+
i18n (0.6.0)
|
|
44
|
+
json (1.6.1)
|
|
45
|
+
mail (2.3.0)
|
|
49
46
|
i18n (>= 0.4.0)
|
|
50
47
|
mime-types (~> 1.16)
|
|
51
48
|
treetop (~> 1.4.8)
|
|
52
|
-
mime-types (1.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
rack
|
|
49
|
+
mime-types (1.17.2)
|
|
50
|
+
multi_json (1.0.3)
|
|
51
|
+
nokogiri (1.5.0)
|
|
52
|
+
polyglot (0.3.3)
|
|
53
|
+
rack (1.3.5)
|
|
54
|
+
rack-cache (1.1)
|
|
55
|
+
rack (>= 0.4)
|
|
56
|
+
rack-mount (0.8.3)
|
|
57
57
|
rack (>= 1.0.0)
|
|
58
|
-
rack-
|
|
58
|
+
rack-ssl (1.3.2)
|
|
59
|
+
rack
|
|
60
|
+
rack-test (0.6.1)
|
|
59
61
|
rack (>= 1.0)
|
|
60
|
-
rails (3.
|
|
61
|
-
actionmailer (= 3.
|
|
62
|
-
actionpack (= 3.
|
|
63
|
-
activerecord (= 3.
|
|
64
|
-
activeresource (= 3.
|
|
65
|
-
activesupport (= 3.
|
|
62
|
+
rails (3.1.1)
|
|
63
|
+
actionmailer (= 3.1.1)
|
|
64
|
+
actionpack (= 3.1.1)
|
|
65
|
+
activerecord (= 3.1.1)
|
|
66
|
+
activeresource (= 3.1.1)
|
|
67
|
+
activesupport (= 3.1.1)
|
|
66
68
|
bundler (~> 1.0)
|
|
67
|
-
railties (= 3.
|
|
68
|
-
railties (3.
|
|
69
|
-
actionpack (= 3.
|
|
70
|
-
activesupport (= 3.
|
|
69
|
+
railties (= 3.1.1)
|
|
70
|
+
railties (3.1.1)
|
|
71
|
+
actionpack (= 3.1.1)
|
|
72
|
+
activesupport (= 3.1.1)
|
|
73
|
+
rack-ssl (~> 1.3.2)
|
|
71
74
|
rake (>= 0.8.7)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
rdoc (~> 3.4)
|
|
76
|
+
thor (~> 0.14.6)
|
|
77
|
+
rake (0.9.2.2)
|
|
78
|
+
rdoc (3.11)
|
|
79
|
+
json (~> 1.4)
|
|
80
|
+
rspec (2.7.0)
|
|
81
|
+
rspec-core (~> 2.7.0)
|
|
82
|
+
rspec-expectations (~> 2.7.0)
|
|
83
|
+
rspec-mocks (~> 2.7.0)
|
|
84
|
+
rspec-core (2.7.1)
|
|
85
|
+
rspec-expectations (2.7.0)
|
|
80
86
|
diff-lcs (~> 1.1.2)
|
|
81
|
-
rspec-mocks (2.
|
|
82
|
-
rspec-rails (2.
|
|
87
|
+
rspec-mocks (2.7.0)
|
|
88
|
+
rspec-rails (2.7.0)
|
|
83
89
|
actionpack (~> 3.0)
|
|
84
90
|
activesupport (~> 3.0)
|
|
85
91
|
railties (~> 3.0)
|
|
86
|
-
rspec (~> 2.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
columnize (>= 0.3.1)
|
|
93
|
-
linecache19 (>= 0.5.11)
|
|
94
|
-
ruby-debug-base19 (>= 0.11.19)
|
|
95
|
-
ruby_core_source (0.1.5)
|
|
96
|
-
archive-tar-minitar (>= 0.5.2)
|
|
97
|
-
sqlite3 (1.3.3)
|
|
98
|
-
sqlite3-ruby (1.3.3)
|
|
99
|
-
sqlite3 (>= 1.3.3)
|
|
92
|
+
rspec (~> 2.7.0)
|
|
93
|
+
sprockets (2.0.3)
|
|
94
|
+
hike (~> 1.2)
|
|
95
|
+
rack (~> 1.0)
|
|
96
|
+
tilt (~> 1.1, != 1.3.0)
|
|
97
|
+
sqlite3 (1.3.4)
|
|
100
98
|
thor (0.14.6)
|
|
101
|
-
|
|
99
|
+
tilt (1.3.3)
|
|
100
|
+
treetop (1.4.10)
|
|
101
|
+
polyglot
|
|
102
102
|
polyglot (>= 0.3.1)
|
|
103
|
-
tzinfo (0.3.
|
|
103
|
+
tzinfo (0.3.31)
|
|
104
104
|
|
|
105
105
|
PLATFORMS
|
|
106
106
|
ruby
|
|
107
107
|
|
|
108
108
|
DEPENDENCIES
|
|
109
|
-
fakeweb (~> 1.3
|
|
110
|
-
nokogiri (~> 1.
|
|
109
|
+
fakeweb (~> 1.3)
|
|
110
|
+
nokogiri (~> 1.5)
|
|
111
111
|
pagseguro!
|
|
112
|
-
rails (~> 3.
|
|
113
|
-
rake (~> 0.
|
|
114
|
-
rspec-rails (~> 2.
|
|
115
|
-
|
|
116
|
-
sqlite3-ruby (~> 1.3.3)
|
|
112
|
+
rails (~> 3.1)
|
|
113
|
+
rake (~> 0.9)
|
|
114
|
+
rspec-rails (~> 2.7)
|
|
115
|
+
sqlite3 (~> 1.3)
|
data/README.markdown
CHANGED
|
@@ -30,7 +30,9 @@ O primeiro passo é instalar a biblioteca. Para isso, basta executar o comando
|
|
|
30
30
|
|
|
31
31
|
Adicione a biblioteca ao arquivo Gemfile:
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
~~~.ruby
|
|
34
|
+
gem "pagseguro", "~> 0.1.10"
|
|
35
|
+
~~~
|
|
34
36
|
|
|
35
37
|
Lembre-se de utilizar a versão que você acabou de instalar.
|
|
36
38
|
|
|
@@ -40,19 +42,21 @@ Depois de instalar a biblioteca, você precisará executar gerar o arquivo de co
|
|
|
40
42
|
|
|
41
43
|
O arquivo de configuração gerado será parecido com isto:
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
~~~.yml
|
|
46
|
+
development: &development
|
|
47
|
+
developer: true
|
|
48
|
+
base: "http://localhost:3000"
|
|
49
|
+
return_to: "/pedido/efetuado"
|
|
50
|
+
email: user@example.com
|
|
48
51
|
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
test:
|
|
53
|
+
<<: *development
|
|
51
54
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
production:
|
|
56
|
+
authenticity_token: 9CA8D46AF0C6177CB4C23D76CAF5E4B0
|
|
57
|
+
email: user@example.com
|
|
58
|
+
return_to: "/pedido/efetuado"
|
|
59
|
+
~~~
|
|
56
60
|
|
|
57
61
|
Esta gem possui um modo de desenvolvimento que permite simular a realização de pedidos e envio de notificações; basta utilizar a opção `developer`. Ela é ativada por padrão nos ambientes de desenvolvimento e teste. Você deve configurar as opções `base`, que deverá apontar para o seu servidor e a URL de retorno, que deverá ser configurada no próprio [PagSeguro](https://pagseguro.uol.com.br/?ind=689659), na página <https://pagseguro.uol.com.br/Security/ConfiguracoesWeb/RetornoAutomatico.aspx>.
|
|
58
62
|
|
|
@@ -62,93 +66,106 @@ Para o ambiente de produção, que irá efetivamente enviar os dados para o [Pag
|
|
|
62
66
|
|
|
63
67
|
Para montar o seu formulário, você deverá utilizar a classe `PagSeguro::Order`. Esta classe deverá ser instanciada recebendo um identificador único do pedido. Este identificador permitirá identificar o pedido quando o [PagSeguro](https://pagseguro.uol.com.br/?ind=689659) notificar seu site sobre uma alteração no status do pedido.
|
|
64
68
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
~~~.ruby
|
|
70
|
+
class CartController < ApplicationController
|
|
71
|
+
def checkout
|
|
72
|
+
# Busca o pedido associado ao usuario; esta logica deve
|
|
73
|
+
# ser implementada por voce, da maneira que achar melhor
|
|
74
|
+
@invoice = current_user.invoices.last
|
|
75
|
+
|
|
76
|
+
# Instanciando o objeto para geracao do formulario
|
|
77
|
+
@order = PagSeguro::Order.new(@invoice.id)
|
|
78
|
+
|
|
79
|
+
# adicionando os produtos do pedido ao objeto do formulario
|
|
80
|
+
@invoice.products.each do |product|
|
|
81
|
+
# Estes sao os atributos necessarios. Por padrao, peso (:weight) eh definido para 0,
|
|
82
|
+
# quantidade eh definido como 1 e frete (:shipping) eh definido como 0.
|
|
83
|
+
@order.add :id => product.id, :price => product.price, :description => product.title
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
~~~
|
|
82
88
|
|
|
83
89
|
Se você precisar, pode definir o tipo de frete com o método `shipping_type`.
|
|
84
90
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
91
|
+
~~~.ruby
|
|
92
|
+
@order.shipping_type = "SD" # Sedex
|
|
93
|
+
@order.shipping_type = "EN" # PAC
|
|
94
|
+
@order.shipping_type = "FR" # Frete Proprio
|
|
95
|
+
~~~
|
|
88
96
|
|
|
89
97
|
Se você precisar, pode definir os dados de cobrança com o método `billing`.
|
|
90
98
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
~~~.ruby
|
|
100
|
+
@order.billing = {
|
|
101
|
+
:name => "John Doe",
|
|
102
|
+
:email => "john@doe.com",
|
|
103
|
+
:address_zipcode => "01234-567",
|
|
104
|
+
:address_street => "Rua Orobo",
|
|
105
|
+
:address_number => 72,
|
|
106
|
+
:address_complement => "Casa do fundo",
|
|
107
|
+
:address_neighbourhood => "Tenorio",
|
|
108
|
+
:address_city => "Pantano Grande",
|
|
109
|
+
:address_state => "AC",
|
|
110
|
+
:address_country => "Brasil",
|
|
111
|
+
:phone_area_code => "22",
|
|
112
|
+
:phone_number => "1234-5678"
|
|
113
|
+
}
|
|
114
|
+
~~~
|
|
105
115
|
|
|
106
116
|
Depois que você definiu os produtos do pedido, você pode exibir o formulário.
|
|
107
117
|
|
|
108
|
-
|
|
109
|
-
|
|
118
|
+
~~~.erb
|
|
119
|
+
<!-- app/views/cart/checkout.html.erb -->
|
|
120
|
+
<%= pagseguro_form @order, :submit => "Efetuar pagamento!" %>
|
|
121
|
+
~~~
|
|
110
122
|
|
|
111
123
|
Por padrão, o formulário é enviado para o email no arquivo de configuração. Você pode mudar o email com a opção `:email`.
|
|
112
124
|
|
|
113
|
-
|
|
125
|
+
~~~.erb
|
|
126
|
+
<%= pagseguro_form @order, :submit => "Efetuar pagamento!", :email => @account.email %>
|
|
127
|
+
~~~
|
|
114
128
|
|
|
115
129
|
### Recebendo notificações
|
|
116
130
|
|
|
117
131
|
Toda vez que o status de pagamento for alterado, o [PagSeguro](https://pagseguro.uol.com.br/?ind=689659) irá notificar sua URL de retorno com diversos dados. Você pode interceptar estas notificações com o método `pagseguro_notification`. O bloco receberá um objeto da classe `PagSeguro::Notification` e só será executado se for uma notificação verificada junto ao [PagSeguro](https://pagseguro.uol.com.br/?ind=689659).
|
|
118
132
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
def confirm
|
|
123
|
-
return unless request.post?
|
|
133
|
+
~~~.ruby
|
|
134
|
+
class CartController < ApplicationController
|
|
135
|
+
skip_before_filter :verify_authenticity_token
|
|
124
136
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
# que você cadastrou. O produto só deve ser liberado caso o status
|
|
128
|
-
# do pedido seja "completed" ou "approved"
|
|
129
|
-
end
|
|
137
|
+
def confirm
|
|
138
|
+
return unless request.post?
|
|
130
139
|
|
|
131
|
-
|
|
132
|
-
|
|
140
|
+
pagseguro_notification do |notification|
|
|
141
|
+
# Aqui voce deve verificar se o pedido possui os mesmos produtos
|
|
142
|
+
# que voce cadastrou. O produto soh deve ser liberado caso o status
|
|
143
|
+
# do pedido seja "completed" ou "approved"
|
|
133
144
|
end
|
|
134
145
|
|
|
146
|
+
render :nothing => true
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
~~~
|
|
135
150
|
O método `pagseguro_notification` também pode receber como parâmetro o `authenticity_token` que será usado pra verificar a autenticação.
|
|
136
151
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
def confirm
|
|
141
|
-
return unless request.post?
|
|
142
|
-
# Se você receber pagamentos de contas diferentes, pode passar o
|
|
143
|
-
# authenticity_token adequado como parâmetro para pagseguro_notification
|
|
144
|
-
account = Account.find(params[:seller_id])
|
|
145
|
-
pagseguro_notification(account.authenticity_token) do |notification|
|
|
146
|
-
end
|
|
152
|
+
~~~.ruby
|
|
153
|
+
class CartController < ApplicationController
|
|
154
|
+
skip_before_filter :verify_authenticity_token
|
|
147
155
|
|
|
148
|
-
|
|
149
|
-
|
|
156
|
+
def confirm
|
|
157
|
+
return unless request.post?
|
|
158
|
+
# Se voce receber pagamentos de contas diferentes, pode passar o
|
|
159
|
+
# authenticity_token adequado como parametro para pagseguro_notification
|
|
160
|
+
account = Account.find(params[:seller_id])
|
|
161
|
+
pagseguro_notification(account.authenticity_token) do |notification|
|
|
150
162
|
end
|
|
151
163
|
|
|
164
|
+
render :nothing => true
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
~~~
|
|
168
|
+
|
|
152
169
|
O objeto `notification` possui os seguintes métodos:
|
|
153
170
|
|
|
154
171
|
* `PagSeguro::Notification#products`: Lista de produtos enviados na notificação.
|
|
@@ -157,7 +174,7 @@ O objeto `notification` possui os seguintes métodos:
|
|
|
157
174
|
* `PagSeguro::Notification#payment_method`: Tipo de pagamento
|
|
158
175
|
* `PagSeguro::Notification#processed_at`: Data e hora da transação
|
|
159
176
|
* `PagSeguro::Notification#buyer`: Dados do comprador
|
|
160
|
-
* `PagSeguro::Notification#valid?(force=false)`: Verifica se a notificação é
|
|
177
|
+
* `PagSeguro::Notification#valid?(force=false)`: Verifica se a notificação é válida, confirmando-a junto ao PagSeguro. A resposta é jogada em cache e pode ser forçada com `PagSeguro::Notification#valid?(:force)`
|
|
161
178
|
|
|
162
179
|
**ATENÇÃO:** Não se esqueça de adicionar `skip_before_filter :verify_authenticity_token` ao controller que receberá a notificação; caso contrário, uma exceção será lançada.
|
|
163
180
|
|
|
@@ -201,10 +218,12 @@ Se você usa sua aplicação como ISO-8859-1, esta biblioteca NÃO IRÁ FUNCIONA
|
|
|
201
218
|
|
|
202
219
|
Neste caso, você precisa forçar a validação do POST enviado. Basta acrescentar a linha:
|
|
203
220
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
221
|
+
~~~.ruby
|
|
222
|
+
pagseguro_notification do |notification|
|
|
223
|
+
notification.valid?(:force => true)
|
|
224
|
+
# resto do codigo...
|
|
225
|
+
end
|
|
226
|
+
~~~
|
|
208
227
|
|
|
209
228
|
## AUTOR:
|
|
210
229
|
|
|
File without changes
|
data/lib/pagseguro.rb
CHANGED
data/lib/pagseguro/helper.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module PagSeguro::Helper
|
|
2
2
|
def pagseguro_form(order, options = {})
|
|
3
3
|
options.reverse_merge!(:submit => "Pagar com PagSeguro")
|
|
4
|
-
render :partial => "/pagseguro_form", :locals => {:options => options, :order => order}
|
|
4
|
+
render :partial => "pagseguro/pagseguro_form", :locals => {:options => options, :order => order}
|
|
5
5
|
end
|
|
6
6
|
end
|
data/lib/pagseguro/railtie.rb
CHANGED
|
@@ -17,8 +17,6 @@ module PagSeguro
|
|
|
17
17
|
initializer "pagseguro.initialize" do |app|
|
|
18
18
|
::ActionView::Base.send(:include, PagSeguro::Helper)
|
|
19
19
|
::ActionController::Base.send(:include, PagSeguro::ActionController)
|
|
20
|
-
|
|
21
|
-
app.paths.app.views << File.dirname(__FILE__) + "/views"
|
|
22
20
|
end
|
|
23
21
|
|
|
24
22
|
config.after_initialize do
|
data/lib/pagseguro/version.rb
CHANGED
data/pagseguro.gemspec
CHANGED
|
@@ -17,11 +17,10 @@ Gem::Specification.new do |s|
|
|
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
18
18
|
s.require_paths = ["lib"]
|
|
19
19
|
|
|
20
|
-
s.add_development_dependency "rails" , "~> 3.
|
|
21
|
-
s.add_development_dependency "rake" , "~> 0.
|
|
22
|
-
s.add_development_dependency "fakeweb" , "~> 1.3
|
|
23
|
-
s.add_development_dependency "rspec-rails" , "~> 2.
|
|
24
|
-
s.add_development_dependency "nokogiri" , "~> 1.
|
|
25
|
-
s.add_development_dependency "sqlite3
|
|
26
|
-
s.add_development_dependency "ruby-debug19" if RUBY_VERSION >= "1.9"
|
|
20
|
+
s.add_development_dependency "rails" , "~> 3.1"
|
|
21
|
+
s.add_development_dependency "rake" , "~> 0.9"
|
|
22
|
+
s.add_development_dependency "fakeweb" , "~> 1.3"
|
|
23
|
+
s.add_development_dependency "rspec-rails" , "~> 2.7"
|
|
24
|
+
s.add_development_dependency "nokogiri" , "~> 1.5"
|
|
25
|
+
s.add_development_dependency "sqlite3" , "~> 1.3"
|
|
27
26
|
end
|
metadata
CHANGED
|
@@ -1,115 +1,102 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pagseguro
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.13
|
|
4
5
|
prerelease:
|
|
5
|
-
version: 0.1.12
|
|
6
6
|
platform: ruby
|
|
7
|
-
authors:
|
|
7
|
+
authors:
|
|
8
8
|
- Nando Vieira
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
- !ruby/object:Gem::Dependency
|
|
12
|
+
date: 2011-11-17 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
16
15
|
name: rails
|
|
17
|
-
requirement: &
|
|
16
|
+
requirement: &70121943136940 !ruby/object:Gem::Requirement
|
|
18
17
|
none: false
|
|
19
|
-
requirements:
|
|
18
|
+
requirements:
|
|
20
19
|
- - ~>
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version:
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '3.1'
|
|
23
22
|
type: :development
|
|
24
23
|
prerelease: false
|
|
25
|
-
version_requirements: *
|
|
26
|
-
- !ruby/object:Gem::Dependency
|
|
24
|
+
version_requirements: *70121943136940
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
27
26
|
name: rake
|
|
28
|
-
requirement: &
|
|
27
|
+
requirement: &70121943134220 !ruby/object:Gem::Requirement
|
|
29
28
|
none: false
|
|
30
|
-
requirements:
|
|
29
|
+
requirements:
|
|
31
30
|
- - ~>
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0.9'
|
|
34
33
|
type: :development
|
|
35
34
|
prerelease: false
|
|
36
|
-
version_requirements: *
|
|
37
|
-
- !ruby/object:Gem::Dependency
|
|
35
|
+
version_requirements: *70121943134220
|
|
36
|
+
- !ruby/object:Gem::Dependency
|
|
38
37
|
name: fakeweb
|
|
39
|
-
requirement: &
|
|
38
|
+
requirement: &70121943132680 !ruby/object:Gem::Requirement
|
|
40
39
|
none: false
|
|
41
|
-
requirements:
|
|
40
|
+
requirements:
|
|
42
41
|
- - ~>
|
|
43
|
-
- !ruby/object:Gem::Version
|
|
44
|
-
version: 1.3
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '1.3'
|
|
45
44
|
type: :development
|
|
46
45
|
prerelease: false
|
|
47
|
-
version_requirements: *
|
|
48
|
-
- !ruby/object:Gem::Dependency
|
|
46
|
+
version_requirements: *70121943132680
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
49
48
|
name: rspec-rails
|
|
50
|
-
requirement: &
|
|
49
|
+
requirement: &70121943131800 !ruby/object:Gem::Requirement
|
|
51
50
|
none: false
|
|
52
|
-
requirements:
|
|
51
|
+
requirements:
|
|
53
52
|
- - ~>
|
|
54
|
-
- !ruby/object:Gem::Version
|
|
55
|
-
version: 2.
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '2.7'
|
|
56
55
|
type: :development
|
|
57
56
|
prerelease: false
|
|
58
|
-
version_requirements: *
|
|
59
|
-
- !ruby/object:Gem::Dependency
|
|
57
|
+
version_requirements: *70121943131800
|
|
58
|
+
- !ruby/object:Gem::Dependency
|
|
60
59
|
name: nokogiri
|
|
61
|
-
requirement: &
|
|
60
|
+
requirement: &70121943140040 !ruby/object:Gem::Requirement
|
|
62
61
|
none: false
|
|
63
|
-
requirements:
|
|
62
|
+
requirements:
|
|
64
63
|
- - ~>
|
|
65
|
-
- !ruby/object:Gem::Version
|
|
66
|
-
version: 1.
|
|
64
|
+
- !ruby/object:Gem::Version
|
|
65
|
+
version: '1.5'
|
|
67
66
|
type: :development
|
|
68
67
|
prerelease: false
|
|
69
|
-
version_requirements: *
|
|
70
|
-
- !ruby/object:Gem::Dependency
|
|
71
|
-
name: sqlite3
|
|
72
|
-
requirement: &
|
|
68
|
+
version_requirements: *70121943140040
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: sqlite3
|
|
71
|
+
requirement: &70121947257800 !ruby/object:Gem::Requirement
|
|
73
72
|
none: false
|
|
74
|
-
requirements:
|
|
73
|
+
requirements:
|
|
75
74
|
- - ~>
|
|
76
|
-
- !ruby/object:Gem::Version
|
|
77
|
-
version: 1.3
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: '1.3'
|
|
78
77
|
type: :development
|
|
79
78
|
prerelease: false
|
|
80
|
-
version_requirements: *
|
|
81
|
-
- !ruby/object:Gem::Dependency
|
|
82
|
-
name: ruby-debug19
|
|
83
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
|
84
|
-
none: false
|
|
85
|
-
requirements:
|
|
86
|
-
- - ">="
|
|
87
|
-
- !ruby/object:Gem::Version
|
|
88
|
-
version: "0"
|
|
89
|
-
type: :development
|
|
90
|
-
prerelease: false
|
|
91
|
-
version_requirements: *id007
|
|
79
|
+
version_requirements: *70121947257800
|
|
92
80
|
description: The official PagSeguro library
|
|
93
|
-
email:
|
|
81
|
+
email:
|
|
94
82
|
- fnando.vieira@gmail.com
|
|
95
83
|
executables: []
|
|
96
|
-
|
|
97
84
|
extensions: []
|
|
98
|
-
|
|
99
85
|
extra_rdoc_files: []
|
|
100
|
-
|
|
101
|
-
files:
|
|
86
|
+
files:
|
|
102
87
|
- .gitignore
|
|
103
88
|
- .rspec
|
|
104
89
|
- Gemfile
|
|
105
90
|
- Gemfile.lock
|
|
106
91
|
- README.markdown
|
|
107
92
|
- Rakefile
|
|
93
|
+
- app/views/pagseguro/_pagseguro_form.html.erb
|
|
108
94
|
- lib/pagseguro.rb
|
|
109
95
|
- lib/pagseguro/action_controller.rb
|
|
110
96
|
- lib/pagseguro/base.rb
|
|
111
97
|
- lib/pagseguro/cacert.pem
|
|
112
98
|
- lib/pagseguro/developer_controller.rb
|
|
99
|
+
- lib/pagseguro/engine.rb
|
|
113
100
|
- lib/pagseguro/faker.rb
|
|
114
101
|
- lib/pagseguro/generator.rb
|
|
115
102
|
- lib/pagseguro/helper.rb
|
|
@@ -120,7 +107,6 @@ files:
|
|
|
120
107
|
- lib/pagseguro/routes.rb
|
|
121
108
|
- lib/pagseguro/utils.rb
|
|
122
109
|
- lib/pagseguro/version.rb
|
|
123
|
-
- lib/pagseguro/views/_pagseguro_form.html.erb
|
|
124
110
|
- lib/tasks/pagseguro.rake
|
|
125
111
|
- pagseguro.gemspec
|
|
126
112
|
- spec/controllers/developer_controller_spec.rb
|
|
@@ -149,38 +135,35 @@ files:
|
|
|
149
135
|
- templates/config.yml
|
|
150
136
|
homepage: http://rubygems.org/gems/pagseguro
|
|
151
137
|
licenses: []
|
|
152
|
-
|
|
153
138
|
post_install_message:
|
|
154
139
|
rdoc_options: []
|
|
155
|
-
|
|
156
|
-
require_paths:
|
|
140
|
+
require_paths:
|
|
157
141
|
- lib
|
|
158
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
159
143
|
none: false
|
|
160
|
-
requirements:
|
|
161
|
-
- -
|
|
162
|
-
- !ruby/object:Gem::Version
|
|
163
|
-
|
|
164
|
-
segments:
|
|
144
|
+
requirements:
|
|
145
|
+
- - ! '>='
|
|
146
|
+
- !ruby/object:Gem::Version
|
|
147
|
+
version: '0'
|
|
148
|
+
segments:
|
|
165
149
|
- 0
|
|
166
|
-
|
|
167
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
|
+
hash: 904854586801944191
|
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
152
|
none: false
|
|
169
|
-
requirements:
|
|
170
|
-
- -
|
|
171
|
-
- !ruby/object:Gem::Version
|
|
172
|
-
|
|
173
|
-
segments:
|
|
153
|
+
requirements:
|
|
154
|
+
- - ! '>='
|
|
155
|
+
- !ruby/object:Gem::Version
|
|
156
|
+
version: '0'
|
|
157
|
+
segments:
|
|
174
158
|
- 0
|
|
175
|
-
|
|
159
|
+
hash: 904854586801944191
|
|
176
160
|
requirements: []
|
|
177
|
-
|
|
178
161
|
rubyforge_project:
|
|
179
|
-
rubygems_version: 1.8.
|
|
162
|
+
rubygems_version: 1.8.11
|
|
180
163
|
signing_key:
|
|
181
164
|
specification_version: 3
|
|
182
165
|
summary: The official PagSeguro library
|
|
183
|
-
test_files:
|
|
166
|
+
test_files:
|
|
184
167
|
- spec/controllers/developer_controller_spec.rb
|
|
185
168
|
- spec/fixtures/notification.yml
|
|
186
169
|
- spec/helpers/helper_spec.rb
|