spree_favorite_products 2.2.3 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cba77e7e7f4b1bf6977e5064ca0954ba99eac719
4
+ data.tar.gz: a10d97d7602d782c7d52e45ad5eaf7e34e5c6ea0
5
+ SHA512:
6
+ metadata.gz: 3cfa733b36313aac41f671f8e48a097ece12f9bc36e21b2880e51d4a029f459dc962cda11d82d9b79f3c0e095c5ffec089bd73653e87f5ef22a45771a63d889d
7
+ data.tar.gz: 855b9720e169b3483dce2491eb8834744a608fe78c662ca51fa5cdc259a938f3e0a4ba8205869bee471f7563afe66e25a1dc706f8eb435ec39898460187000ff
@@ -0,0 +1 @@
1
+ .ruby-version
data/Gemfile CHANGED
@@ -1,17 +1,18 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Provides basic authentication functionality for testing parts of your engine
4
- gem 'spree', '2.2.0'
5
- gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-2-stable'
4
+ gem 'spree', '2.3.0'
5
+ gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-3-stable'
6
6
  gem 'mysql2'
7
7
 
8
- group :assets do
8
+ group :assets do
9
9
  gem 'coffee-rails', '4.0.1'
10
+ gem 'sass-rails'
10
11
  end
11
12
 
12
13
  group :test do
13
14
  gem 'rspec-rails', '~> 2.10'
14
- gem 'shoulda-matchers', '2.2.0'
15
+ gem 'shoulda-matchers', '2.6.0'
15
16
  gem 'simplecov', :require => false
16
17
  gem 'database_cleaner'
17
18
  end
@@ -0,0 +1,294 @@
1
+ GIT
2
+ remote: git://github.com/spree/spree_auth_devise.git
3
+ revision: b3b63f1fa01e8ccce300b663f8405fd190d9d9ba
4
+ branch: 2-3-stable
5
+ specs:
6
+ spree_auth_devise (2.3.0)
7
+ devise (~> 3.2.3)
8
+ devise-encryptable (= 0.1.2)
9
+ json
10
+ multi_json
11
+ spree_core (~> 2.3.0)
12
+
13
+ PATH
14
+ remote: .
15
+ specs:
16
+ spree_favorite_products (2.3.0)
17
+ spree_core (~> 2.3.0)
18
+
19
+ GEM
20
+ remote: https://rubygems.org/
21
+ specs:
22
+ actionmailer (4.1.14)
23
+ actionpack (= 4.1.14)
24
+ actionview (= 4.1.14)
25
+ mail (~> 2.5, >= 2.5.4)
26
+ actionpack (4.1.14)
27
+ actionview (= 4.1.14)
28
+ activesupport (= 4.1.14)
29
+ rack (~> 1.5.2)
30
+ rack-test (~> 0.6.2)
31
+ actionview (4.1.14)
32
+ activesupport (= 4.1.14)
33
+ builder (~> 3.1)
34
+ erubis (~> 2.7.0)
35
+ active_utils (2.2.3)
36
+ activesupport (>= 2.3.11)
37
+ i18n
38
+ activemerchant (1.43.3)
39
+ active_utils (~> 2.0, >= 2.0.1)
40
+ activesupport (>= 2.3.14, < 5.0.0)
41
+ builder (>= 2.1.2, < 4.0.0)
42
+ i18n (~> 0.5)
43
+ json (~> 1.7)
44
+ money (< 7.0.0)
45
+ nokogiri (~> 1.4)
46
+ activemodel (4.1.14)
47
+ activesupport (= 4.1.14)
48
+ builder (~> 3.1)
49
+ activerecord (4.1.14)
50
+ activemodel (= 4.1.14)
51
+ activesupport (= 4.1.14)
52
+ arel (~> 5.0.0)
53
+ activesupport (4.1.14)
54
+ i18n (~> 0.6, >= 0.6.9)
55
+ json (~> 1.7, >= 1.7.7)
56
+ minitest (~> 5.1)
57
+ thread_safe (~> 0.1)
58
+ tzinfo (~> 1.1)
59
+ acts_as_list (0.3.0)
60
+ activerecord (>= 3.0)
61
+ arel (5.0.1.20140414130214)
62
+ awesome_nested_set (3.0.2)
63
+ activerecord (>= 4.0.0, < 5)
64
+ aws-sdk (1.27.0)
65
+ json (~> 1.4)
66
+ nokogiri (>= 1.4.4)
67
+ uuidtools (~> 2.1)
68
+ bcrypt (3.1.10)
69
+ builder (3.2.2)
70
+ cancan (1.6.10)
71
+ canonical-rails (0.0.11)
72
+ rails (>= 3.1, < 5.0)
73
+ climate_control (0.0.3)
74
+ activesupport (>= 3.0)
75
+ cocaine (0.5.8)
76
+ climate_control (>= 0.0.3, < 1.0)
77
+ coffee-rails (4.0.1)
78
+ coffee-script (>= 2.2.0)
79
+ railties (>= 4.0.0, < 5.0)
80
+ coffee-script (2.4.1)
81
+ coffee-script-source
82
+ execjs
83
+ coffee-script-source (1.10.0)
84
+ colorize (0.7.7)
85
+ database_cleaner (1.5.1)
86
+ deface (1.0.2)
87
+ colorize (>= 0.5.8)
88
+ nokogiri (~> 1.6.0)
89
+ polyglot
90
+ rails (>= 3.1)
91
+ devise (3.2.4)
92
+ bcrypt (~> 3.0)
93
+ orm_adapter (~> 0.1)
94
+ railties (>= 3.2.6, < 5)
95
+ thread_safe (~> 0.1)
96
+ warden (~> 1.2.3)
97
+ devise-encryptable (0.1.2)
98
+ devise (>= 2.1.0)
99
+ diff-lcs (1.2.5)
100
+ docile (1.1.5)
101
+ erubis (2.7.0)
102
+ execjs (2.6.0)
103
+ ffaker (1.32.1)
104
+ font-awesome-rails (4.5.0.0)
105
+ railties (>= 3.2, < 5.0)
106
+ friendly_id (5.0.5)
107
+ activerecord (>= 4.0.0)
108
+ highline (1.6.21)
109
+ httparty (0.13.7)
110
+ json (~> 1.8)
111
+ multi_xml (>= 0.5.2)
112
+ i18n (0.6.9)
113
+ jquery-rails (3.1.4)
114
+ railties (>= 3.0, < 5.0)
115
+ thor (>= 0.14, < 2.0)
116
+ jquery-ui-rails (4.1.2)
117
+ railties (>= 3.1.0)
118
+ json (1.8.3)
119
+ kaminari (0.15.1)
120
+ actionpack (>= 3.0.0)
121
+ activesupport (>= 3.0.0)
122
+ mail (2.6.3)
123
+ mime-types (>= 1.16, < 3)
124
+ mime-types (2.99)
125
+ mini_portile2 (2.0.0)
126
+ minitest (5.8.3)
127
+ monetize (1.3.1)
128
+ money (~> 6.6)
129
+ money (6.6.1)
130
+ i18n (>= 0.6.4, <= 0.7.0)
131
+ multi_json (1.11.2)
132
+ multi_xml (0.5.5)
133
+ mysql2 (0.4.2)
134
+ nokogiri (1.6.7)
135
+ mini_portile2 (~> 2.0.0.rc2)
136
+ orm_adapter (0.5.0)
137
+ paperclip (4.1.1)
138
+ activemodel (>= 3.0.0)
139
+ activesupport (>= 3.0.0)
140
+ cocaine (~> 0.5.3)
141
+ mime-types
142
+ paranoia (2.1.4)
143
+ activerecord (~> 4.0)
144
+ polyamorous (1.0.0)
145
+ activerecord (>= 3.0)
146
+ polyglot (0.3.5)
147
+ rabl (0.9.4.pre1)
148
+ activesupport (>= 2.3.14)
149
+ rack (1.5.5)
150
+ rack-test (0.6.3)
151
+ rack (>= 1.0)
152
+ rails (4.1.14)
153
+ actionmailer (= 4.1.14)
154
+ actionpack (= 4.1.14)
155
+ actionview (= 4.1.14)
156
+ activemodel (= 4.1.14)
157
+ activerecord (= 4.1.14)
158
+ activesupport (= 4.1.14)
159
+ bundler (>= 1.3.0, < 2.0)
160
+ railties (= 4.1.14)
161
+ sprockets-rails (~> 2.0)
162
+ railties (4.1.14)
163
+ actionpack (= 4.1.14)
164
+ activesupport (= 4.1.14)
165
+ rake (>= 0.8.7)
166
+ thor (>= 0.18.1, < 2.0)
167
+ rake (10.4.2)
168
+ ransack (1.2.3)
169
+ actionpack (>= 3.0)
170
+ activerecord (>= 3.0)
171
+ activesupport (>= 3.0)
172
+ i18n
173
+ polyamorous (~> 1.0.0)
174
+ rspec-collection_matchers (1.1.2)
175
+ rspec-expectations (>= 2.99.0.beta1)
176
+ rspec-core (2.99.2)
177
+ rspec-expectations (2.99.2)
178
+ diff-lcs (>= 1.1.3, < 2.0)
179
+ rspec-mocks (2.99.4)
180
+ rspec-rails (2.99.0)
181
+ actionpack (>= 3.0)
182
+ activemodel (>= 3.0)
183
+ activesupport (>= 3.0)
184
+ railties (>= 3.0)
185
+ rspec-collection_matchers
186
+ rspec-core (~> 2.99.0)
187
+ rspec-expectations (~> 2.99.0)
188
+ rspec-mocks (~> 2.99.0)
189
+ sass (3.4.19)
190
+ sass-rails (5.0.4)
191
+ railties (>= 4.0.0, < 5.0)
192
+ sass (~> 3.1)
193
+ sprockets (>= 2.8, < 4.0)
194
+ sprockets-rails (>= 2.0, < 4.0)
195
+ tilt (>= 1.1, < 3)
196
+ select2-rails (3.5.9.3)
197
+ thor (~> 0.14)
198
+ shoulda-matchers (2.6.0)
199
+ activesupport (>= 3.0.0)
200
+ simplecov (0.11.1)
201
+ docile (~> 1.1.0)
202
+ json (~> 1.8)
203
+ simplecov-html (~> 0.10.0)
204
+ simplecov-html (0.10.0)
205
+ spree (2.3.0)
206
+ spree_api (= 2.3.0)
207
+ spree_backend (= 2.3.0)
208
+ spree_cmd (= 2.3.0)
209
+ spree_core (= 2.3.0)
210
+ spree_frontend (= 2.3.0)
211
+ spree_sample (= 2.3.0)
212
+ spree_api (2.3.0)
213
+ rabl (~> 0.9.4.pre1)
214
+ spree_core (= 2.3.0)
215
+ versioncake (~> 2.3.1)
216
+ spree_backend (2.3.0)
217
+ jquery-rails (~> 3.1.0)
218
+ jquery-ui-rails (~> 4.1.0)
219
+ select2-rails (~> 3.5.0)
220
+ spree_api (= 2.3.0)
221
+ spree_core (= 2.3.0)
222
+ spree_cmd (2.3.0)
223
+ thor (~> 0.14)
224
+ spree_core (2.3.0)
225
+ activemerchant (~> 1.43.1)
226
+ acts_as_list (= 0.3.0)
227
+ awesome_nested_set (~> 3.0.0.rc.3)
228
+ aws-sdk (= 1.27.0)
229
+ cancan (~> 1.6.10)
230
+ deface (~> 1.0.0)
231
+ ffaker (~> 1.16)
232
+ font-awesome-rails (~> 4.0)
233
+ friendly_id (~> 5.0.4)
234
+ highline (~> 1.6.18)
235
+ httparty (~> 0.11)
236
+ i18n (= 0.6.9)
237
+ json (~> 1.7)
238
+ kaminari (~> 0.15.0)
239
+ monetize
240
+ paperclip (~> 4.1.1)
241
+ paranoia (~> 2.0)
242
+ rails (~> 4.1.2)
243
+ ransack (~> 1.2.2)
244
+ state_machine (= 1.2.0)
245
+ stringex (~> 1.5.1)
246
+ truncate_html (= 0.9.2)
247
+ spree_frontend (2.3.0)
248
+ canonical-rails (~> 0.0.4)
249
+ jquery-rails (~> 3.1.0)
250
+ spree_api (= 2.3.0)
251
+ spree_core (= 2.3.0)
252
+ stringex (~> 1.5.1)
253
+ spree_sample (2.3.0)
254
+ spree_core (= 2.3.0)
255
+ sprockets (3.4.1)
256
+ rack (> 1, < 3)
257
+ sprockets-rails (2.3.3)
258
+ actionpack (>= 3.0)
259
+ activesupport (>= 3.0)
260
+ sprockets (>= 2.8, < 4.0)
261
+ state_machine (1.2.0)
262
+ stringex (1.5.1)
263
+ thor (0.19.1)
264
+ thread_safe (0.3.5)
265
+ tilt (2.0.1)
266
+ truncate_html (0.9.2)
267
+ tzinfo (1.2.2)
268
+ thread_safe (~> 0.1)
269
+ uuidtools (2.1.5)
270
+ versioncake (2.3.1)
271
+ actionpack (>= 3.2)
272
+ activesupport (>= 3.2)
273
+ railties (>= 3.2)
274
+ tzinfo
275
+ warden (1.2.3)
276
+ rack (>= 1.0)
277
+
278
+ PLATFORMS
279
+ ruby
280
+
281
+ DEPENDENCIES
282
+ coffee-rails (= 4.0.1)
283
+ database_cleaner
284
+ mysql2
285
+ rspec-rails (~> 2.10)
286
+ sass-rails
287
+ shoulda-matchers (= 2.6.0)
288
+ simplecov
289
+ spree (= 2.3.0)
290
+ spree_auth_devise!
291
+ spree_favorite_products!
292
+
293
+ BUNDLED WITH
294
+ 1.10.6
data/README.md CHANGED
@@ -5,7 +5,7 @@ This extension adds the following features:
5
5
 
6
6
  1. Adds a link 'Mark as favorite' on product detail page.
7
7
  2. Favorite Products tab on header
8
- 3. Favorite Products tab in admin section
8
+ 3. Favorite Products tab in admin section
9
9
 
10
10
  Installation
11
11
  ------------
@@ -13,20 +13,10 @@ Installation
13
13
  Add spree_favorite_products to your Gemfile:
14
14
 
15
15
  ```ruby
16
- gem 'spree_favorite_products'
16
+ gem 'spree_favorite_products', github: "vinsol/spree_favorite_products', branch: '2-3-stable'
17
17
  ```
18
18
 
19
- For older versions of spree.
20
-
21
- ```ruby
22
- # Spree 2.1.x
23
- gem 'spree_favorite_products', '2.0.3'
24
- ```
25
-
26
- ```ruby
27
- # Spree 2.0.x
28
- gem 'spree_favorite_products', '1.0.0'
29
- ```
19
+ This is for Spree version 2.3. For older versions of spree, use the correct branch.
30
20
 
31
21
  Bundle your dependencies and run the installation generator:
32
22
 
@@ -53,6 +43,16 @@ Simply add this require statement to your spec_helper:
53
43
  require 'spree_favorite_products/factories'
54
44
  ```
55
45
 
46
+ Thought you should know:
47
+ During the test app build, there will be two warnings that arise due to a habtm issue, see [rails issue #15022](https://github.com/rails/rails/issues/15022)
48
+
49
+ ```shell
50
+ /Users/deft/vendor/bundle/gems/activerecord-4.1.6/lib/active_record/associations.rb:1585: warning: already initialized constant Spree::ShippingMethod::HABTM_Zones
51
+ /Users/deft/vendor/bundle/gems/activerecord-4.1.6/lib/active_record/associations.rb:1585: warning: previous definition of HABTM_Zones was here
52
+ ```
53
+ These warnings do not appear to interfere with functionality. Please let me know otherwise.
54
+
55
+
56
56
  Contributing
57
57
  ------------
58
58
 
@@ -1,9 +1,10 @@
1
1
  module Spree
2
2
  class Favorite < ActiveRecord::Base
3
3
  belongs_to :product
4
+
4
5
  belongs_to :user
5
6
  validates :user_id, :product_id, :presence => true
6
7
  validates :product_id, :uniqueness => { :scope => :user_id, :message => "already marked as favorite" }
7
8
  validates :product, :presence => { :message => "is invalid" }, :if => :product_id
8
9
  end
9
- end
10
+ end
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_favorite_products'
5
- s.version = '2.2.3'
5
+ s.version = '2.3.0'
6
6
  s.summary = 'Favorite Products in Spree'
7
7
  s.description = 'This extension adds the following features: 1. Adds a link Mark as favorite on product detail page. 2. Favorite Products tab on header 3. Favorite Products tab in admin section'
8
8
  s.required_ruby_version = '>= 1.9.3'
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
  s.require_path = 'lib'
18
18
  s.requirements << 'none'
19
19
 
20
- s.add_dependency 'spree_core', '~> 2.2.0'
20
+ s.add_dependency 'spree_core', '~> 2.3.0'
21
21
  end
metadata CHANGED
@@ -1,50 +1,42 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: spree_favorite_products
3
- version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease:
6
- segments:
7
- - 2
8
- - 2
9
- - 3
10
- version: 2.2.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.3.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Mohit Bansal
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2014-05-15 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: spree_core
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 7
29
- segments:
30
- - 2
31
- - 2
32
- - 0
33
- version: 2.2.0
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.3.0
34
20
  type: :runtime
35
- version_requirements: *id001
36
- description: "This extension adds the following features: 1. Adds a link Mark as favorite on product detail page. 2. Favorite Products tab on header 3. Favorite Products tab in admin section"
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.3.0
27
+ description: 'This extension adds the following features: 1. Adds a link Mark as favorite
28
+ on product detail page. 2. Favorite Products tab on header 3. Favorite Products
29
+ tab in admin section'
37
30
  email: info@vinsol.com
38
31
  executables: []
39
-
40
32
  extensions: []
41
-
42
33
  extra_rdoc_files: []
43
-
44
- files:
45
- - .rspec
46
- - .travis.yml
34
+ files:
35
+ - ".gitignore"
36
+ - ".rspec"
37
+ - ".travis.yml"
47
38
  - Gemfile
39
+ - Gemfile.lock
48
40
  - LICENSE
49
41
  - README.md
50
42
  - Rakefile
@@ -90,39 +82,28 @@ files:
90
82
  - spec/spec_helper.rb
91
83
  - spree_favorite_products.gemspec
92
84
  homepage: http://vinsol.com
93
- licenses:
85
+ licenses:
94
86
  - MIT
87
+ metadata: {}
95
88
  post_install_message:
96
89
  rdoc_options: []
97
-
98
- require_paths:
90
+ require_paths:
99
91
  - lib
100
- required_ruby_version: !ruby/object:Gem::Requirement
101
- none: false
102
- requirements:
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
103
94
  - - ">="
104
- - !ruby/object:Gem::Version
105
- hash: 53
106
- segments:
107
- - 1
108
- - 9
109
- - 3
95
+ - !ruby/object:Gem::Version
110
96
  version: 1.9.3
111
- required_rubygems_version: !ruby/object:Gem::Requirement
112
- none: false
113
- requirements:
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
114
99
  - - ">="
115
- - !ruby/object:Gem::Version
116
- hash: 3
117
- segments:
118
- - 0
119
- version: "0"
120
- requirements:
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements:
121
103
  - none
122
104
  rubyforge_project:
123
- rubygems_version: 1.8.24
105
+ rubygems_version: 2.4.5
124
106
  signing_key:
125
- specification_version: 3
107
+ specification_version: 4
126
108
  summary: Favorite Products in Spree
127
109
  test_files: []
128
-