spree-alpha-card 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 349006a766b1d844c89a4805dfc579bcf703206e
4
- data.tar.gz: 6d4591fcd12425afd13e29edd58d99203d7c3c8e
3
+ metadata.gz: 6f1355e8a6e76936b991bd4b60ba4b17dfbdc559
4
+ data.tar.gz: d98d401f5d29bfb8c91a5f284dfe3b17a061ba93
5
5
  SHA512:
6
- metadata.gz: ff9eeb9d4495ba9355f9133b82cf5360df66bd3405082148b26d4a0f5cd93c0199fd01549a1d9909a00e234f01459bfa53276b5af52a6a04c11effe332712b94
7
- data.tar.gz: 93a52368941eaa1a2b768564098fff68cc3111a62f5c600a69ec779c419bf8183e812040c81925ac81dc8f58038a53156e0e59d55304bf4205d56e83d448cc54
6
+ metadata.gz: ed17d46473adae3e03abd3169ae44d59078f04c143a64b1ec80bef246082da37cfeeda7deae60d5e4b84b0f1b04005c721d7c77d76a885e5958455ec447877f2
7
+ data.tar.gz: 1fdd2f6343667ce10b9926540978a89c1d9aa2d8c6cb52bdefc1fd597b054122f6343fad3410ee6cdd7072159b6a00a9a1661323949a66aae96faacadc792d84
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  /spec/dummy
2
+ /pkg
@@ -1,48 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spree-alpha-card (0.0.3)
4
+ spree-alpha-card (0.0.5)
5
5
  alpha_card (~> 0.2.5)
6
6
  spree_core (>= 3.0.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionmailer (4.2.1)
12
- actionpack (= 4.2.1)
13
- actionview (= 4.2.1)
14
- activejob (= 4.2.1)
11
+ actionmailer (4.2.4)
12
+ actionpack (= 4.2.4)
13
+ actionview (= 4.2.4)
14
+ activejob (= 4.2.4)
15
15
  mail (~> 2.5, >= 2.5.4)
16
16
  rails-dom-testing (~> 1.0, >= 1.0.5)
17
- actionpack (4.2.1)
18
- actionview (= 4.2.1)
19
- activesupport (= 4.2.1)
17
+ actionpack (4.2.4)
18
+ actionview (= 4.2.4)
19
+ activesupport (= 4.2.4)
20
20
  rack (~> 1.6)
21
21
  rack-test (~> 0.6.2)
22
22
  rails-dom-testing (~> 1.0, >= 1.0.5)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
24
- actionview (4.2.1)
25
- activesupport (= 4.2.1)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ actionview (4.2.4)
25
+ activesupport (= 4.2.4)
26
26
  builder (~> 3.1)
27
27
  erubis (~> 2.7.0)
28
28
  rails-dom-testing (~> 1.0, >= 1.0.5)
29
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
30
- activejob (4.2.1)
31
- activesupport (= 4.2.1)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ activejob (4.2.4)
31
+ activesupport (= 4.2.4)
32
32
  globalid (>= 0.3.0)
33
33
  activemerchant (1.47.0)
34
34
  activesupport (>= 3.2.14, < 5.0.0)
35
35
  builder (>= 2.1.2, < 4.0.0)
36
36
  i18n (>= 0.6.9)
37
37
  nokogiri (~> 1.4)
38
- activemodel (4.2.1)
39
- activesupport (= 4.2.1)
38
+ activemodel (4.2.4)
39
+ activesupport (= 4.2.4)
40
40
  builder (~> 3.1)
41
- activerecord (4.2.1)
42
- activemodel (= 4.2.1)
43
- activesupport (= 4.2.1)
41
+ activerecord (4.2.4)
42
+ activemodel (= 4.2.4)
43
+ activesupport (= 4.2.4)
44
44
  arel (~> 6.0)
45
- activesupport (4.2.1)
45
+ activesupport (4.2.4)
46
46
  i18n (~> 0.7)
47
47
  json (~> 1.7, >= 1.7.7)
48
48
  minitest (~> 5.1)
@@ -54,7 +54,7 @@ GEM
54
54
  alpha_card (0.2.5)
55
55
  rest-client (~> 1.8)
56
56
  virtus (~> 1.0)
57
- arel (6.0.0)
57
+ arel (6.0.3)
58
58
  awesome_nested_set (3.0.2)
59
59
  activerecord (>= 4.0.0, < 5)
60
60
  axiom-types (0.1.1)
@@ -62,8 +62,7 @@ GEM
62
62
  ice_nine (~> 0.11.0)
63
63
  thread_safe (~> 0.3, >= 0.3.1)
64
64
  builder (3.2.2)
65
- byebug (5.0.0)
66
- columnize (= 0.9.0)
65
+ byebug (6.0.2)
67
66
  camertron-eprun (1.1.0)
68
67
  cancancan (1.10.1)
69
68
  carmen (1.0.2)
@@ -76,10 +75,9 @@ GEM
76
75
  coercible (1.0.0)
77
76
  descendants_tracker (~> 0.0.1)
78
77
  colorize (0.7.7)
79
- columnize (0.9.0)
80
78
  crack (0.4.2)
81
79
  safe_yaml (~> 1.0.0)
82
- css_parser (1.3.6)
80
+ css_parser (1.3.7)
83
81
  addressable
84
82
  deface (1.0.1)
85
83
  colorize (>= 0.5.8)
@@ -96,18 +94,18 @@ GEM
96
94
  factory_girl (4.5.0)
97
95
  activesupport (>= 3.0.0)
98
96
  ffaker (1.32.1)
99
- font-awesome-rails (4.3.0.0)
97
+ font-awesome-rails (4.4.0.0)
100
98
  railties (>= 3.2, < 5.0)
101
99
  friendly_id (5.1.0)
102
100
  activerecord (>= 4.0.0)
103
- globalid (0.3.5)
101
+ globalid (0.3.6)
104
102
  activesupport (>= 4.1.0)
105
103
  highline (1.6.21)
106
104
  hike (1.2.3)
107
- htmlentities (4.3.3)
105
+ htmlentities (4.3.4)
108
106
  http-cookie (1.0.2)
109
107
  domain_name (~> 0.5)
110
- httparty (0.13.5)
108
+ httparty (0.13.7)
111
109
  json (~> 1.8)
112
110
  multi_xml (>= 0.5.2)
113
111
  i18n (0.7.0)
@@ -116,64 +114,64 @@ GEM
116
114
  kaminari (0.16.3)
117
115
  actionpack (>= 3.0.0)
118
116
  activesupport (>= 3.0.0)
119
- loofah (2.0.2)
117
+ loofah (2.0.3)
120
118
  nokogiri (>= 1.5.9)
121
119
  mail (2.6.3)
122
120
  mime-types (>= 1.16, < 3)
123
- mime-types (2.6.1)
121
+ mime-types (2.6.2)
124
122
  mini_portile (0.6.2)
125
- minitest (5.7.0)
126
- monetize (1.3.0)
127
- money (~> 6.5.0)
128
- money (6.5.1)
123
+ minitest (5.8.1)
124
+ monetize (1.3.1)
125
+ money (~> 6.6)
126
+ money (6.6.1)
129
127
  i18n (>= 0.6.4, <= 0.7.0)
130
- multi_json (1.11.0)
128
+ multi_json (1.11.2)
131
129
  multi_xml (0.5.5)
132
130
  netrc (0.10.3)
133
131
  nokogiri (1.6.6.2)
134
132
  mini_portile (~> 0.6.0)
135
- paperclip (4.2.2)
136
- activemodel (>= 3.0.0)
137
- activesupport (>= 3.0.0)
138
- cocaine (~> 0.5.3)
133
+ paperclip (4.2.4)
134
+ activemodel (>= 3.2.0)
135
+ activesupport (>= 3.2.0)
136
+ cocaine (~> 0.5.5)
139
137
  mime-types
140
- paranoia (2.1.2)
138
+ paranoia (2.1.3)
141
139
  activerecord (~> 4.0)
142
- pg (0.18.2)
140
+ pg (0.18.3)
143
141
  polyamorous (1.2.0)
144
142
  activerecord (>= 3.0)
145
143
  polyglot (0.3.5)
146
- premailer (1.8.4)
144
+ premailer (1.8.6)
147
145
  css_parser (>= 1.3.6)
148
146
  htmlentities (>= 4.0.0)
149
147
  premailer-rails (1.8.2)
150
148
  actionmailer (>= 3, < 5)
151
149
  premailer (~> 1.7, >= 1.7.9)
152
- rack (1.6.1)
150
+ rack (1.6.4)
153
151
  rack-test (0.6.3)
154
152
  rack (>= 1.0)
155
- rails (4.2.1)
156
- actionmailer (= 4.2.1)
157
- actionpack (= 4.2.1)
158
- actionview (= 4.2.1)
159
- activejob (= 4.2.1)
160
- activemodel (= 4.2.1)
161
- activerecord (= 4.2.1)
162
- activesupport (= 4.2.1)
153
+ rails (4.2.4)
154
+ actionmailer (= 4.2.4)
155
+ actionpack (= 4.2.4)
156
+ actionview (= 4.2.4)
157
+ activejob (= 4.2.4)
158
+ activemodel (= 4.2.4)
159
+ activerecord (= 4.2.4)
160
+ activesupport (= 4.2.4)
163
161
  bundler (>= 1.3.0, < 2.0)
164
- railties (= 4.2.1)
162
+ railties (= 4.2.4)
165
163
  sprockets-rails
166
164
  rails-deprecated_sanitizer (1.0.3)
167
165
  activesupport (>= 4.2.0.alpha)
168
- rails-dom-testing (1.0.6)
166
+ rails-dom-testing (1.0.7)
169
167
  activesupport (>= 4.2.0.beta, < 5.0)
170
168
  nokogiri (~> 1.6.0)
171
169
  rails-deprecated_sanitizer (>= 1.0.1)
172
170
  rails-html-sanitizer (1.0.2)
173
171
  loofah (~> 2.0)
174
- railties (4.2.1)
175
- actionpack (= 4.2.1)
176
- activesupport (= 4.2.1)
172
+ railties (4.2.4)
173
+ actionpack (= 4.2.4)
174
+ activesupport (= 4.2.4)
177
175
  rake (>= 0.8.7)
178
176
  thor (>= 0.18.1, < 2.0)
179
177
  rake (10.4.2)
@@ -189,23 +187,23 @@ GEM
189
187
  http-cookie (>= 1.0.2, < 2.0)
190
188
  mime-types (>= 1.16, < 3.0)
191
189
  netrc (~> 0.7)
192
- rspec-core (3.2.3)
193
- rspec-support (~> 3.2.0)
194
- rspec-expectations (3.2.1)
190
+ rspec-core (3.3.2)
191
+ rspec-support (~> 3.3.0)
192
+ rspec-expectations (3.3.1)
195
193
  diff-lcs (>= 1.2.0, < 2.0)
196
- rspec-support (~> 3.2.0)
197
- rspec-mocks (3.2.1)
194
+ rspec-support (~> 3.3.0)
195
+ rspec-mocks (3.3.2)
198
196
  diff-lcs (>= 1.2.0, < 2.0)
199
- rspec-support (~> 3.2.0)
200
- rspec-rails (3.2.3)
197
+ rspec-support (~> 3.3.0)
198
+ rspec-rails (3.3.3)
201
199
  actionpack (>= 3.0, < 4.3)
202
200
  activesupport (>= 3.0, < 4.3)
203
201
  railties (>= 3.0, < 4.3)
204
- rspec-core (~> 3.2.0)
205
- rspec-expectations (~> 3.2.0)
206
- rspec-mocks (~> 3.2.0)
207
- rspec-support (~> 3.2.0)
208
- rspec-support (3.2.2)
202
+ rspec-core (~> 3.3.0)
203
+ rspec-expectations (~> 3.3.0)
204
+ rspec-mocks (~> 3.3.0)
205
+ rspec-support (~> 3.3.0)
206
+ rspec-support (3.3.0)
209
207
  safe_yaml (1.0.4)
210
208
  sass (3.2.19)
211
209
  sass-rails (4.0.5)
@@ -213,7 +211,7 @@ GEM
213
211
  sass (~> 3.2.2)
214
212
  sprockets (~> 2.8, < 3.0)
215
213
  sprockets-rails (~> 2.0)
216
- spree_core (3.0.1)
214
+ spree_core (3.0.4)
217
215
  activemerchant (~> 1.47.0)
218
216
  acts_as_list (~> 0.6)
219
217
  awesome_nested_set (~> 3.0.1)
@@ -231,36 +229,36 @@ GEM
231
229
  paperclip (~> 4.2.0)
232
230
  paranoia (~> 2.1.0)
233
231
  premailer-rails
234
- rails (~> 4.2.0)
232
+ rails (~> 4.2.2)
235
233
  ransack (~> 1.4.1)
236
234
  responders
237
235
  state_machines-activerecord (~> 0.2)
238
236
  stringex
239
237
  truncate_html (= 0.9.2)
240
238
  twitter_cldr (~> 3.0)
241
- sprockets (2.12.3)
239
+ sprockets (2.12.4)
242
240
  hike (~> 1.2)
243
241
  multi_json (~> 1.0)
244
242
  rack (~> 1.0)
245
243
  tilt (~> 1.1, != 1.3.0)
246
- sprockets-rails (2.3.1)
244
+ sprockets-rails (2.3.3)
247
245
  actionpack (>= 3.0)
248
246
  activesupport (>= 3.0)
249
247
  sprockets (>= 2.8, < 4.0)
250
248
  sqlite3 (1.3.10)
251
- state_machines (0.2.2)
252
- state_machines-activemodel (0.1.2)
249
+ state_machines (0.4.0)
250
+ state_machines-activemodel (0.3.0)
253
251
  activemodel (~> 4.1)
254
- state_machines (~> 0.2.0)
255
- state_machines-activerecord (0.2.0)
252
+ state_machines (>= 0.4.0)
253
+ state_machines-activerecord (0.3.0)
256
254
  activerecord (~> 4.1)
257
- state_machines-activemodel (~> 0.1.0)
255
+ state_machines-activemodel (>= 0.3.0)
258
256
  stringex (2.5.2)
259
257
  thor (0.19.1)
260
258
  thread_safe (0.3.5)
261
259
  tilt (1.4.1)
262
260
  truncate_html (0.9.2)
263
- twitter_cldr (3.1.2)
261
+ twitter_cldr (3.2.1)
264
262
  camertron-eprun
265
263
  cldr-plurals-runtime-rb (~> 1.0.0)
266
264
  json
@@ -9,9 +9,8 @@
9
9
  module Spree
10
10
  class Gateway::AlphaCardGateway < Gateway
11
11
 
12
- preference :login, :string
13
- preference :password, :string
14
-
12
+ preference :login, :string, default: 'demo'
13
+ preference :password, :string, default: 'password'
15
14
 
16
15
 
17
16
  def provider_class
@@ -154,4 +153,3 @@ module Spree
154
153
 
155
154
  end
156
155
  end
157
-
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  module AlphaCard
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
6
6
 
@@ -53,9 +53,16 @@ RSpec.describe Spree::Gateway::AlphaCardGateway do
53
53
 
54
54
  context 'api calls' do
55
55
 
56
- before :each do
57
- provider.set_preference :login, "demo"
58
- provider.set_preference :password, "password"
56
+ context 'credentials' do
57
+ it 'checks the default credentials' do
58
+ expect(provider.preferred_login).to eq 'demo'
59
+ expect(provider.preferred_password).to eq 'password'
60
+ end
61
+
62
+ it 'checks you can set the login preference' do
63
+ provider.set_preference :login, 'user'
64
+ expect(provider.preferred_login).to eq 'user'
65
+ end
59
66
  end
60
67
 
61
68
  context '#purchase' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree-alpha-card
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Kluge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-04 00:00:00.000000000 Z
11
+ date: 2015-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler