spree_braintree_cse 1.3.2 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
- //= require store/spree_core
1
+ //= require store/spree_frontend
2
2
  //= require store/braintree-1.1.1.min
3
3
  //app/assets/javascripts/
@@ -25,27 +25,27 @@
25
25
  <% param_prefix = "payment_source[#{payment_method.id}]" %>
26
26
 
27
27
  <p class="field" data-hook="card_number">
28
- <%= label_tag nil, t(:card_number) %><span class="required">*</span><br />
28
+ <%= label_tag nil, Spree.t(:card_number) %><span class="required">*</span><br />
29
29
  <% options_hash = Rails.env.production? ? {:autocomplete => 'off'} : {} %>
30
30
  <%= text_field_tag "", '', options_hash.merge(:id => 'card_number', :class => 'required', :size => 19, :maxlength => 19, :autocomplete => "off") %>
31
31
  <%= hidden_field_tag "#{param_prefix}[number]", "", :id => "encrypted_card_number" %>
32
32
  &nbsp;
33
33
  <span id="card_type" style="display:none;">
34
- ( <span id="looks_like" ><%= t(:card_type_is) %> <span id="type"></span></span>
35
- <span id="unrecognized"><%= t(:unrecognized_card_type) %></span>
34
+ ( <span id="looks_like" ><%= Spree.t(:card_type_is) %> <span id="type"></span></span>
35
+ <span id="unrecognized"><%= Spree.t(:unrecognized_card_type) %></span>
36
36
  )
37
37
  </span>
38
38
  </p>
39
39
  <p class="field" data-hook="card_expiration">
40
- <%= label_tag nil, t(:expiration) %><span class="required">*</span><br />
40
+ <%= label_tag nil, Spree.t(:expiration) %><span class="required">*</span><br />
41
41
  <%= select_month(Date.today, { :prefix => param_prefix, :field_name => 'month', :use_month_numbers => true }, :class => 'required') %>
42
42
  <%= select_year(Date.today, { :prefix => param_prefix, :field_name => 'year', :start_year => Date.today.year, :end_year => Date.today.year + 15 }, :class => 'required') %>
43
43
  </p>
44
44
  <p class="field" data-hook="card_code">
45
- <%= label_tag nil, t(:card_code) %><span class="required">*</span><br />
45
+ <%= label_tag nil, Spree.t(:card_code) %><span class="required">*</span><br />
46
46
  <%= text_field_tag "", '', options_hash.merge(:id => 'card_code', :class => 'required', :size => 5) %>
47
47
  <%= hidden_field_tag "#{param_prefix}[verification_value]", "", :id => "encrypted_card_code" %>
48
- <%= link_to "(#{t(:what_is_this)})", spree.content_path('cvv'), :target => '_blank', :onclick => "window.open(this.href,'cvv_info','left=20,top=20,width=500,height=500,toolbar=0,resizable=0,scrollbars=1');return false", "data-hook" => "cvv_link" %>
48
+ <%= link_to "(#{Spree.t(:what_is_this)})", spree.content_path('cvv'), :target => '_blank', "data-hook" => "cvv_link", :id => "cvv_link" %>
49
49
  </p>
50
50
  <%= hidden_field param_prefix, 'first_name', :value => @order.billing_firstname %>
51
51
  <%= hidden_field param_prefix, 'last_name', :value => @order.billing_lastname %>
@@ -2,10 +2,10 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_braintree_cse'
5
- s.version = '1.3.2'
5
+ s.version = '2.1.2'
6
6
  s.summary = 'Enable Client Side Encryption for Braintree payments processing with Spree.'
7
7
  s.description = 'Using CSE will enable your application to acheive PCI certification.'
8
- s.required_ruby_version = '>= 1.8.7'
8
+ s.required_ruby_version = '>= 1.9.3'
9
9
 
10
10
  s.author = 'Doug Bradbubry'
11
11
  s.email = 'doug@8thlight.com'
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
16
16
  s.require_path = 'lib'
17
17
  s.requirements << 'none'
18
18
 
19
- s.add_dependency 'spree_core', '~> 1.3.1'
20
- s.add_dependency 'spree_gateway', '~> 1.2.0.rc2'
19
+ s.add_dependency 'spree_core', '~> 2.1.2'
20
+ s.add_dependency 'spree_gateway', '~> 2.1.0.beta'
21
21
 
22
22
  s.add_development_dependency 'capybara', '~> 1.1.2'
23
23
  s.add_development_dependency 'coffee-rails'
metadata CHANGED
@@ -1,149 +1,166 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: spree_braintree_cse
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 3
8
- - 2
9
- version: 1.3.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.2
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Doug Bradbubry
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2013-02-16 00:00:00 -06:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-11-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: spree_core
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
25
19
  - - ~>
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 3
30
- - 1
31
- version: 1.3.1
20
+ - !ruby/object:Gem::Version
21
+ version: 2.1.2
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: spree_gateway
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
39
27
  - - ~>
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 1
43
- - 2
44
- - 0
45
- - rc2
46
- version: 1.2.0.rc2
28
+ - !ruby/object:Gem::Version
29
+ version: 2.1.2
30
+ - !ruby/object:Gem::Dependency
31
+ name: spree_gateway
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 2.1.0.beta
47
38
  type: :runtime
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: capybara
51
39
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- requirements:
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
54
43
  - - ~>
55
- - !ruby/object:Gem::Version
56
- segments:
57
- - 1
58
- - 1
59
- - 2
44
+ - !ruby/object:Gem::Version
45
+ version: 2.1.0.beta
46
+ - !ruby/object:Gem::Dependency
47
+ name: capybara
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
60
53
  version: 1.1.2
61
54
  type: :development
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
64
- name: coffee-rails
65
55
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- segments:
71
- - 0
72
- version: "0"
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.2
62
+ - !ruby/object:Gem::Dependency
63
+ name: coffee-rails
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
73
70
  type: :development
74
- version_requirements: *id004
75
- - !ruby/object:Gem::Dependency
76
- name: factory_girl
77
71
  prerelease: false
78
- requirement: &id005 !ruby/object:Gem::Requirement
79
- requirements:
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: factory_girl
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
80
83
  - - ~>
81
- - !ruby/object:Gem::Version
82
- segments:
83
- - 2
84
- - 6
85
- - 4
84
+ - !ruby/object:Gem::Version
86
85
  version: 2.6.4
87
86
  type: :development
88
- version_requirements: *id005
89
- - !ruby/object:Gem::Dependency
90
- name: ffaker
91
87
  prerelease: false
92
- requirement: &id006 !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- segments:
97
- - 0
98
- version: "0"
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 2.6.4
94
+ - !ruby/object:Gem::Dependency
95
+ name: ffaker
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
99
102
  type: :development
100
- version_requirements: *id006
101
- - !ruby/object:Gem::Dependency
102
- name: rspec-rails
103
103
  prerelease: false
104
- requirement: &id007 !ruby/object:Gem::Requirement
105
- requirements:
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rspec-rails
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
106
115
  - - ~>
107
- - !ruby/object:Gem::Version
108
- segments:
109
- - 2
110
- - 9
111
- version: "2.9"
116
+ - !ruby/object:Gem::Version
117
+ version: '2.9'
112
118
  type: :development
113
- version_requirements: *id007
114
- - !ruby/object:Gem::Dependency
115
- name: sass-rails
116
119
  prerelease: false
117
- requirement: &id008 !ruby/object:Gem::Requirement
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- segments:
122
- - 0
123
- version: "0"
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '2.9'
126
+ - !ruby/object:Gem::Dependency
127
+ name: sass-rails
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
124
134
  type: :development
125
- version_requirements: *id008
126
- - !ruby/object:Gem::Dependency
127
- name: sqlite3
128
135
  prerelease: false
129
- requirement: &id009 !ruby/object:Gem::Requirement
130
- requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- segments:
134
- - 0
135
- version: "0"
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: sqlite3
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
136
150
  type: :development
137
- version_requirements: *id009
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
138
158
  description: Using CSE will enable your application to acheive PCI certification.
139
159
  email: doug@8thlight.com
140
160
  executables: []
141
-
142
161
  extensions: []
143
-
144
162
  extra_rdoc_files: []
145
-
146
- files:
163
+ files:
147
164
  - .gitignore
148
165
  - .rspec
149
166
  - Gemfile
@@ -151,11 +168,8 @@ files:
151
168
  - README.md
152
169
  - Rakefile
153
170
  - Versionfile
154
- - app/assets/javascripts/admin/spree_braintree_cse.js
155
171
  - app/assets/javascripts/store/braintree-1.1.1.min.js
156
172
  - app/assets/javascripts/store/spree_braintree_cse.js
157
- - app/assets/stylesheets/admin/spree_braintree_cse.css
158
- - app/assets/stylesheets/store/spree_braintree_cse.css
159
173
  - app/models/spree/credit_card_decorator.rb
160
174
  - app/views/spree/checkout/payment/_gateway.html.erb
161
175
  - config/locales/en.yml
@@ -166,37 +180,30 @@ files:
166
180
  - script/rails
167
181
  - spec/spec_helper.rb
168
182
  - spree_braintree_cse.gemspec
169
- has_rdoc: true
170
183
  homepage:
171
184
  licenses: []
172
-
173
185
  post_install_message:
174
186
  rdoc_options: []
175
-
176
- require_paths:
187
+ require_paths:
177
188
  - lib
178
- required_ruby_version: !ruby/object:Gem::Requirement
179
- requirements:
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- segments:
183
- - 1
184
- - 8
185
- - 7
186
- version: 1.8.7
187
- required_rubygems_version: !ruby/object:Gem::Requirement
188
- requirements:
189
- - - ">="
190
- - !ruby/object:Gem::Version
191
- segments:
192
- - 0
193
- version: "0"
194
- requirements:
189
+ required_ruby_version: !ruby/object:Gem::Requirement
190
+ none: false
191
+ requirements:
192
+ - - ! '>='
193
+ - !ruby/object:Gem::Version
194
+ version: 1.9.3
195
+ required_rubygems_version: !ruby/object:Gem::Requirement
196
+ none: false
197
+ requirements:
198
+ - - ! '>='
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
201
+ requirements:
195
202
  - none
196
203
  rubyforge_project:
197
- rubygems_version: 1.3.6
204
+ rubygems_version: 1.8.25
198
205
  signing_key:
199
206
  specification_version: 3
200
207
  summary: Enable Client Side Encryption for Braintree payments processing with Spree.
201
208
  test_files: []
202
-
209
+ has_rdoc:
@@ -1 +0,0 @@
1
- //= require admin/spree_core
@@ -1,3 +0,0 @@
1
- /*
2
- *= require admin/spree_core
3
- */
@@ -1,3 +0,0 @@
1
- /*
2
- *= require store/spree_core
3
- */