solidus_newsletter 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +35 -0
  3. data/.gitignore +2 -2
  4. data/.rubocop.yml +23 -0
  5. data/.ruby-version +1 -1
  6. data/Gemfile +41 -14
  7. data/README.md +4 -3
  8. data/Rakefile +4 -19
  9. data/app/controllers/spree/admin/newsletters_controller.rb +5 -3
  10. data/app/controllers/spree/newsletters_controller.rb +12 -6
  11. data/app/models/spree/newsletter.rb +3 -1
  12. data/app/overrides/spree/admin/configurations/index/add_newsletter_to_admin_configurations_menu.html.erb.deface +3 -3
  13. data/app/overrides/spree/admin/shared/_configuration_menu/add_newsletter_to_admin_configurations_sidebar_menu.html.erb.deface +1 -1
  14. data/app/views/spree/admin/newsletters/_form.html.erb +4 -4
  15. data/app/views/spree/admin/newsletters/edit.html.erb +8 -2
  16. data/app/views/spree/shared/_newsletter.html.erb +14 -7
  17. data/config/locales/en.yml +2 -1
  18. data/config/locales/es-MX.yml +8 -6
  19. data/config/routes.rb +2 -0
  20. data/db/migrate/20180209175720_add_spree_newsletters_table.rb +1 -1
  21. data/lib/solidus_newsletter/configuration.rb +2 -0
  22. data/lib/solidus_newsletter/engine.rb +12 -10
  23. data/lib/solidus_newsletter/testing_support/factories.rb +8 -0
  24. data/lib/solidus_newsletter/version.rb +3 -1
  25. data/lib/solidus_newsletter.rb +8 -0
  26. data/solidus_newsletter.gemspec +22 -20
  27. data/spec/controllers/spree/admin/newsletters_controller_spec.rb +4 -2
  28. data/spec/controllers/spree/newsletters_controller_spec.rb +38 -7
  29. data/spec/models/spree/newsletter_spec.rb +3 -1
  30. data/spec/spec_helper.rb +21 -35
  31. metadata +44 -136
  32. data/.travis.yml +0 -29
  33. data/Gemfile.lock +0 -410
  34. data/lib/solidus_newsletter/factories.rb +0 -6
data/Gemfile.lock DELETED
@@ -1,410 +0,0 @@
1
- GIT
2
- remote: git://github.com/solidusio-contrib/solidus_i18n.git
3
- revision: 466d58bed870ac961a907d15fc71a3424119f935
4
- branch: master
5
- specs:
6
- solidus_i18n (1.1.0)
7
- deface (~> 1.0)
8
- i18n_data (~> 0.7.0)
9
- kaminari-i18n (~> 0.3.2)
10
- rails-i18n (>= 4.0.1, < 6)
11
- routing-filter (~> 0.6.0)
12
- solidus_core (>= 1.1, < 3)
13
- solidus_support
14
-
15
- GIT
16
- remote: git://github.com/solidusio/solidus.git
17
- revision: 4745dede8964e06d21484fcf338e77781970b88e
18
- branch: master
19
- specs:
20
- solidus (2.5.0.alpha)
21
- solidus_api (= 2.5.0.alpha)
22
- solidus_backend (= 2.5.0.alpha)
23
- solidus_core (= 2.5.0.alpha)
24
- solidus_frontend (= 2.5.0.alpha)
25
- solidus_sample (= 2.5.0.alpha)
26
- solidus_api (2.5.0.alpha)
27
- jbuilder (~> 2.6)
28
- kaminari-activerecord (~> 1.1)
29
- responders
30
- solidus_core (= 2.5.0.alpha)
31
- solidus_backend (2.5.0.alpha)
32
- autoprefixer-rails (~> 7.1)
33
- coffee-rails
34
- font-awesome-rails (~> 4.0)
35
- handlebars_assets (~> 0.23)
36
- jbuilder (~> 2.6)
37
- jquery-rails
38
- jquery-ui-rails (~> 5.0.0)
39
- kaminari (~> 1.1)
40
- sass-rails
41
- solidus_api (= 2.5.0.alpha)
42
- solidus_core (= 2.5.0.alpha)
43
- solidus_core (2.5.0.alpha)
44
- actionmailer (~> 5.1.0)
45
- actionpack (~> 5.1.0)
46
- actionview (~> 5.1.0)
47
- activejob (~> 5.1.0)
48
- activemerchant (~> 1.66)
49
- activemodel (~> 5.1.0)
50
- activerecord (~> 5.1.0)
51
- activesupport (~> 5.1.0)
52
- acts_as_list (~> 0.3)
53
- awesome_nested_set (~> 3.0, >= 3.0.1)
54
- cancancan (~> 1.10)
55
- carmen (~> 1.1.0)
56
- discard
57
- friendly_id (~> 5.0)
58
- kaminari-activerecord (~> 1.1)
59
- monetize (~> 1.1)
60
- paperclip (>= 4.2, < 6)
61
- paranoia (~> 2.4)
62
- railties (~> 5.1.0)
63
- ransack (~> 1.8)
64
- state_machines-activerecord (~> 0.4)
65
- solidus_frontend (2.5.0.alpha)
66
- canonical-rails (~> 0.2.0)
67
- font-awesome-rails (~> 4.0)
68
- jquery-rails
69
- kaminari (~> 1.1)
70
- sass-rails
71
- solidus_api (= 2.5.0.alpha)
72
- solidus_core (= 2.5.0.alpha)
73
- truncate_html (~> 0.9, >= 0.9.2)
74
- solidus_sample (2.5.0.alpha)
75
- solidus_core (= 2.5.0.alpha)
76
-
77
- PATH
78
- remote: .
79
- specs:
80
- solidus_newsletter (1.0)
81
- solidus_api (>= 1.2, < 3)
82
- solidus_backend (>= 1.2, < 3)
83
- solidus_core (>= 1.2, < 3)
84
- solidus_support
85
-
86
- GEM
87
- remote: https://rubygems.org/
88
- specs:
89
- actioncable (5.1.4)
90
- actionpack (= 5.1.4)
91
- nio4r (~> 2.0)
92
- websocket-driver (~> 0.6.1)
93
- actionmailer (5.1.4)
94
- actionpack (= 5.1.4)
95
- actionview (= 5.1.4)
96
- activejob (= 5.1.4)
97
- mail (~> 2.5, >= 2.5.4)
98
- rails-dom-testing (~> 2.0)
99
- actionpack (5.1.4)
100
- actionview (= 5.1.4)
101
- activesupport (= 5.1.4)
102
- rack (~> 2.0)
103
- rack-test (>= 0.6.3)
104
- rails-dom-testing (~> 2.0)
105
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
106
- actionview (5.1.4)
107
- activesupport (= 5.1.4)
108
- builder (~> 3.1)
109
- erubi (~> 1.4)
110
- rails-dom-testing (~> 2.0)
111
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
112
- activejob (5.1.4)
113
- activesupport (= 5.1.4)
114
- globalid (>= 0.3.6)
115
- activemerchant (1.76.0)
116
- activesupport (>= 3.2.14, < 6.x)
117
- builder (>= 2.1.2, < 4.0.0)
118
- i18n (>= 0.6.9)
119
- nokogiri (~> 1.4)
120
- activemodel (5.1.4)
121
- activesupport (= 5.1.4)
122
- activerecord (5.1.4)
123
- activemodel (= 5.1.4)
124
- activesupport (= 5.1.4)
125
- arel (~> 8.0)
126
- activesupport (5.1.4)
127
- concurrent-ruby (~> 1.0, >= 1.0.2)
128
- i18n (~> 0.7)
129
- minitest (~> 5.1)
130
- tzinfo (~> 1.1)
131
- acts_as_list (0.9.10)
132
- activerecord (>= 3.0)
133
- addressable (2.5.2)
134
- public_suffix (>= 2.0.2, < 4.0)
135
- arel (8.0.0)
136
- ast (2.3.0)
137
- autoprefixer-rails (7.2.5)
138
- execjs
139
- awesome_nested_set (3.1.3)
140
- activerecord (>= 4.0.0, < 5.2)
141
- builder (3.2.3)
142
- byebug (10.0.0)
143
- cancancan (1.17.0)
144
- canonical-rails (0.2.1)
145
- rails (>= 4.1, < 5.2)
146
- carmen (1.1.0)
147
- activesupport (>= 3.0.0)
148
- climate_control (0.2.0)
149
- cocaine (0.5.8)
150
- climate_control (>= 0.0.3, < 1.0)
151
- coffee-rails (4.2.2)
152
- coffee-script (>= 2.2.0)
153
- railties (>= 4.0.0)
154
- coffee-script (2.4.1)
155
- coffee-script-source
156
- execjs
157
- coffee-script-source (1.12.2)
158
- concurrent-ruby (1.0.5)
159
- crack (0.4.3)
160
- safe_yaml (~> 1.0.0)
161
- crass (1.0.3)
162
- database_cleaner (1.6.2)
163
- deface (1.3.0)
164
- nokogiri (~> 1.6)
165
- polyglot
166
- rails (>= 4.1)
167
- rainbow (>= 2.1.0)
168
- diff-lcs (1.3)
169
- discard (0.2.0)
170
- activerecord (>= 4.2, < 6)
171
- docile (1.1.5)
172
- easy_translate (0.5.0)
173
- json
174
- thread
175
- thread_safe
176
- erubi (1.7.0)
177
- execjs (2.7.0)
178
- factory_bot (4.8.2)
179
- activesupport (>= 3.0.0)
180
- ffaker (2.8.0)
181
- ffi (1.9.18)
182
- font-awesome-rails (4.7.0.3)
183
- railties (>= 3.2, < 5.2)
184
- friendly_id (5.2.3)
185
- activerecord (>= 4.0.0)
186
- globalid (0.4.1)
187
- activesupport (>= 4.2.0)
188
- handlebars_assets (0.23.2)
189
- execjs (~> 2.0)
190
- sprockets (>= 2.0.0)
191
- tilt (>= 1.2)
192
- hashdiff (0.3.7)
193
- highline (1.7.10)
194
- i18n (0.9.1)
195
- concurrent-ruby (~> 1.0)
196
- i18n-tasks (0.9.19)
197
- activesupport (>= 4.0.2)
198
- ast (>= 2.1.0)
199
- easy_translate (>= 0.5.0)
200
- erubi
201
- highline (>= 1.7.3)
202
- i18n
203
- parser (>= 2.2.3.0)
204
- rainbow (~> 2.2)
205
- terminal-table (>= 1.5.1)
206
- i18n_data (0.7.0)
207
- jbuilder (2.7.0)
208
- activesupport (>= 4.2.0)
209
- multi_json (>= 1.2)
210
- jquery-rails (4.3.1)
211
- rails-dom-testing (>= 1, < 3)
212
- railties (>= 4.2.0)
213
- thor (>= 0.14, < 2.0)
214
- jquery-ui-rails (5.0.5)
215
- railties (>= 3.2.16)
216
- json (2.1.0)
217
- kaminari (1.1.1)
218
- activesupport (>= 4.1.0)
219
- kaminari-actionview (= 1.1.1)
220
- kaminari-activerecord (= 1.1.1)
221
- kaminari-core (= 1.1.1)
222
- kaminari-actionview (1.1.1)
223
- actionview
224
- kaminari-core (= 1.1.1)
225
- kaminari-activerecord (1.1.1)
226
- activerecord
227
- kaminari-core (= 1.1.1)
228
- kaminari-core (1.1.1)
229
- kaminari-i18n (0.3.2)
230
- kaminari
231
- rails
232
- loofah (2.1.1)
233
- crass (~> 1.0.2)
234
- nokogiri (>= 1.5.9)
235
- mail (2.7.0)
236
- mini_mime (>= 0.1.1)
237
- method_source (0.9.0)
238
- mime-types (3.1)
239
- mime-types-data (~> 3.2015)
240
- mime-types-data (3.2016.0521)
241
- mimemagic (0.3.2)
242
- mini_mime (1.0.0)
243
- mini_portile2 (2.3.0)
244
- minitest (5.11.1)
245
- monetize (1.7.0)
246
- money (~> 6.9)
247
- money (6.10.1)
248
- i18n (>= 0.6.4, < 1.0)
249
- multi_json (1.13.1)
250
- mysql2 (0.4.10)
251
- nio4r (2.2.0)
252
- nokogiri (1.8.1)
253
- mini_portile2 (~> 2.3.0)
254
- paperclip (5.1.0)
255
- activemodel (>= 4.2.0)
256
- activesupport (>= 4.2.0)
257
- cocaine (~> 0.5.5)
258
- mime-types
259
- mimemagic (~> 0.3.0)
260
- paranoia (2.4.0)
261
- activerecord (>= 4.0, < 5.2)
262
- parser (2.4.0.2)
263
- ast (~> 2.3)
264
- pg (0.21.0)
265
- polyamorous (1.3.2)
266
- activerecord (>= 3.0)
267
- polyglot (0.3.5)
268
- public_suffix (3.0.1)
269
- rack (2.0.3)
270
- rack-test (0.8.2)
271
- rack (>= 1.0, < 3)
272
- rails (5.1.4)
273
- actioncable (= 5.1.4)
274
- actionmailer (= 5.1.4)
275
- actionpack (= 5.1.4)
276
- actionview (= 5.1.4)
277
- activejob (= 5.1.4)
278
- activemodel (= 5.1.4)
279
- activerecord (= 5.1.4)
280
- activesupport (= 5.1.4)
281
- bundler (>= 1.3.0)
282
- railties (= 5.1.4)
283
- sprockets-rails (>= 2.0.0)
284
- rails-dom-testing (2.0.3)
285
- activesupport (>= 4.2.0)
286
- nokogiri (>= 1.6)
287
- rails-html-sanitizer (1.0.3)
288
- loofah (~> 2.0)
289
- rails-i18n (5.0.4)
290
- i18n (~> 0.7)
291
- railties (~> 5.0)
292
- railties (5.1.4)
293
- actionpack (= 5.1.4)
294
- activesupport (= 5.1.4)
295
- method_source
296
- rake (>= 0.8.7)
297
- thor (>= 0.18.1, < 2.0)
298
- rainbow (2.2.2)
299
- rake
300
- rake (12.3.0)
301
- ransack (1.8.4)
302
- actionpack (>= 3.0)
303
- activerecord (>= 3.0)
304
- activesupport (>= 3.0)
305
- i18n
306
- polyamorous (~> 1.3)
307
- rb-fsevent (0.10.2)
308
- rb-inotify (0.9.10)
309
- ffi (>= 0.5.0, < 2)
310
- responders (2.4.0)
311
- actionpack (>= 4.2.0, < 5.3)
312
- railties (>= 4.2.0, < 5.3)
313
- routing-filter (0.6.1)
314
- actionpack (>= 4.2, < 5.2)
315
- activesupport (>= 4.2, < 5.2)
316
- rspec-activemodel-mocks (1.0.3)
317
- activemodel (>= 3.0)
318
- activesupport (>= 3.0)
319
- rspec-mocks (>= 2.99, < 4.0)
320
- rspec-core (3.7.1)
321
- rspec-support (~> 3.7.0)
322
- rspec-expectations (3.7.0)
323
- diff-lcs (>= 1.2.0, < 2.0)
324
- rspec-support (~> 3.7.0)
325
- rspec-mocks (3.7.0)
326
- diff-lcs (>= 1.2.0, < 2.0)
327
- rspec-support (~> 3.7.0)
328
- rspec-rails (3.7.2)
329
- actionpack (>= 3.0)
330
- activesupport (>= 3.0)
331
- railties (>= 3.0)
332
- rspec-core (~> 3.7.0)
333
- rspec-expectations (~> 3.7.0)
334
- rspec-mocks (~> 3.7.0)
335
- rspec-support (~> 3.7.0)
336
- rspec-support (3.7.0)
337
- safe_yaml (1.0.4)
338
- sass (3.5.5)
339
- sass-listen (~> 4.0.0)
340
- sass-listen (4.0.0)
341
- rb-fsevent (~> 0.9, >= 0.9.4)
342
- rb-inotify (~> 0.9, >= 0.9.7)
343
- sass-rails (5.0.7)
344
- railties (>= 4.0.0, < 6)
345
- sass (~> 3.1)
346
- sprockets (>= 2.8, < 4.0)
347
- sprockets-rails (>= 2.0, < 4.0)
348
- tilt (>= 1.1, < 3)
349
- simplecov (0.15.1)
350
- docile (~> 1.1.0)
351
- json (>= 1.8, < 3)
352
- simplecov-html (~> 0.10.0)
353
- simplecov-html (0.10.2)
354
- solidus_support (0.2.0)
355
- sprockets (3.7.1)
356
- concurrent-ruby (~> 1.0)
357
- rack (> 1, < 3)
358
- sprockets-rails (3.2.1)
359
- actionpack (>= 4.0)
360
- activesupport (>= 4.0)
361
- sprockets (>= 3.0.0)
362
- sqlite3 (1.3.13)
363
- state_machines (0.5.0)
364
- state_machines-activemodel (0.5.0)
365
- activemodel (>= 4.1, < 5.2)
366
- state_machines (>= 0.5.0)
367
- state_machines-activerecord (0.5.0)
368
- activerecord (>= 4.1, < 5.2)
369
- state_machines-activemodel (>= 0.5.0)
370
- terminal-table (1.8.0)
371
- unicode-display_width (~> 1.1, >= 1.1.1)
372
- thor (0.20.0)
373
- thread (0.2.2)
374
- thread_safe (0.3.6)
375
- tilt (2.0.8)
376
- truncate_html (0.9.3)
377
- tzinfo (1.2.4)
378
- thread_safe (~> 0.1)
379
- unicode-display_width (1.3.0)
380
- webmock (3.2.1)
381
- addressable (>= 2.3.6)
382
- crack (>= 0.3.2)
383
- hashdiff
384
- websocket-driver (0.6.5)
385
- websocket-extensions (>= 0.1.0)
386
- websocket-extensions (0.1.3)
387
-
388
- PLATFORMS
389
- ruby
390
-
391
- DEPENDENCIES
392
- byebug
393
- database_cleaner (~> 1.6)
394
- factory_bot (~> 4.4)
395
- ffaker
396
- i18n-tasks (~> 0.9)
397
- mysql2
398
- pg (~> 0.21)
399
- rails (~> 5.1.0)
400
- rspec-activemodel-mocks
401
- rspec-rails (~> 3.3)
402
- simplecov (~> 0.14)
403
- solidus!
404
- solidus_i18n!
405
- solidus_newsletter!
406
- sqlite3
407
- webmock
408
-
409
- BUNDLED WITH
410
- 1.16.0
@@ -1,6 +0,0 @@
1
- FactoryBot.define do
2
- factory :newsletter, class: Spree::Newsletter do
3
- name 'User Test'
4
- email 'user@test.com'
5
- end
6
- end