spree_pag_seguro 1.0.0.beta8 → 1.0.0.beta9
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/config/locales/en.yml +10 -0
- data/config/locales/pt-BR.yml +10 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20120106043500_create_spree_payment_notifications.rb +15 -0
- data/spec/spec_helper.rb +32 -0
- metadata +20 -15
@@ -0,0 +1,10 @@
|
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
please_select_your_country: "Please select your country"
|
4
|
+
please_enter_valid_zip: "Please enter a valid zipcode."
|
5
|
+
zip_code_if_you_have_one: "Zipcode (if you have one)"
|
6
|
+
payment_failure: "Payment Failure"
|
7
|
+
payment_pending: "Payment Pending"
|
8
|
+
check_out_with_pag_seguro: "Check out with PayPal"
|
9
|
+
pag_seguro_payment_received: "Thank you.. We received the payment for your order from PayPal. Your order will be shipped shortly"
|
10
|
+
pag_seguro_order_processed_successfully: "Thank you.. Your order processed succesfully. You will be notified once we receive the payment from PayPal"
|
@@ -0,0 +1,10 @@
|
|
1
|
+
---
|
2
|
+
pt-BR:
|
3
|
+
please_select_your_country: "Por favor, escolha seu país"
|
4
|
+
please_enter_valid_zip: "Por favor, coloque seu código postal."
|
5
|
+
zip_code_if_you_have_one: "Código postal"
|
6
|
+
payment_failure: "Falha no Pagamento"
|
7
|
+
payment_pending: "Payment Pendente"
|
8
|
+
check_out_with_pag_seguro: "Compre com o PagSeguro"
|
9
|
+
pag_seguro_payment_received: "Obrigado. Nós recebemos seu pagamento para a órdem de compra. Sua compra será entregue em breve."
|
10
|
+
pag_seguro_order_processed_successfully: "Obrigado. Sua compra foi processada com sucesso. Você será notificado assim que recebermos o comprovante de pagamento do PagSeguro"
|
data/config/routes.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
class CreateSpreePaymentNotifications < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :spree_payment_notifications do |t|
|
4
|
+
t.text :params
|
5
|
+
t.string :status
|
6
|
+
t.string :transaction_id
|
7
|
+
t.integer :order_id
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.down
|
13
|
+
drop_table :spree_payment_notifications
|
14
|
+
end
|
15
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
|
6
|
+
require 'rspec/rails'
|
7
|
+
|
8
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
9
|
+
# in spec/support/ and its subdirectories.
|
10
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
11
|
+
|
12
|
+
# Requires factories defined in spree_core
|
13
|
+
require 'spree/core/testing_support/factories'
|
14
|
+
|
15
|
+
RSpec.configure do |config|
|
16
|
+
# == Mock Framework
|
17
|
+
#
|
18
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
19
|
+
#
|
20
|
+
# config.mock_with :mocha
|
21
|
+
# config.mock_with :flexmock
|
22
|
+
# config.mock_with :rr
|
23
|
+
config.mock_with :rspec
|
24
|
+
|
25
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
26
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
27
|
+
|
28
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
29
|
+
# examples within a transaction, remove the following line or assign false
|
30
|
+
# instead of true.
|
31
|
+
config.use_transactional_fixtures = true
|
32
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_pag_seguro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta9
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
16
|
-
requirement: &
|
16
|
+
requirement: &70121674648280 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.0.0.rc1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70121674648280
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: pag_seguro
|
27
|
-
requirement: &
|
27
|
+
requirement: &70121674647320 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - =
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.1.1
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70121674647320
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: capybara
|
38
|
-
requirement: &
|
38
|
+
requirement: &70121674645960 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - =
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.1
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70121674645960
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: factory_girl
|
49
|
-
requirement: &
|
49
|
+
requirement: &70121674644880 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70121674644880
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: ffaker
|
60
|
-
requirement: &
|
60
|
+
requirement: &70121674643640 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70121674643640
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec-rails
|
71
|
-
requirement: &
|
71
|
+
requirement: &70121674642000 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '2.7'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70121674642000
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: sqlite3
|
82
|
-
requirement: &
|
82
|
+
requirement: &70121674640580 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70121674640580
|
91
91
|
description: Spree extension for integration with PagSeguro payment. Based on spree_pp_website_standart
|
92
92
|
gem
|
93
93
|
email: tomekrs@o2.pl
|
@@ -117,6 +117,11 @@ files:
|
|
117
117
|
- app/views/spree/checkout/edit.html.erb
|
118
118
|
- app/views/spree/pag_seguro/callback.html.haml
|
119
119
|
- app/views/spree/pag_seguro_payments/successful.html.erb
|
120
|
+
- config/locales/en.yml
|
121
|
+
- config/locales/pt-BR.yml
|
122
|
+
- config/routes.rb
|
123
|
+
- db/migrate/20120106043500_create_spree_payment_notifications.rb
|
124
|
+
- spec/spec_helper.rb
|
120
125
|
homepage: http://github.com/heavenstudio/spree-pag_seguro
|
121
126
|
licenses: []
|
122
127
|
post_install_message:
|