acts_as_shopping_cart 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -19,10 +19,10 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
s.add_dependency 'activerecord', '~> 3.0'
|
22
|
-
s.add_development_dependency "cucumber"
|
22
|
+
s.add_development_dependency "cucumber", "~> 1.2.1"
|
23
23
|
s.add_development_dependency "database_cleaner"
|
24
|
-
s.add_development_dependency "rspec"
|
25
|
-
s.add_development_dependency "sqlite3"
|
24
|
+
s.add_development_dependency "rspec", "~> 2.12.0"
|
25
|
+
s.add_development_dependency "sqlite3", "~> 1.3.0"
|
26
26
|
s.add_development_dependency "simplecov"
|
27
|
-
s.add_development_dependency "rake"
|
27
|
+
s.add_development_dependency "rake", "~> 10.0.0"
|
28
28
|
end
|
data/spec/{spec.opts → .rspec}
RENAMED
File without changes
|
@@ -21,7 +21,7 @@ describe ActiveRecord::Acts::ShoppingCart::Item::InstanceMethods do
|
|
21
21
|
describe :item_for do
|
22
22
|
context "no cart item exists for the object" do
|
23
23
|
before do
|
24
|
-
shopping_cart_items.should_receive(:where).with(:item_id => object.id).and_return([])
|
24
|
+
shopping_cart_items.should_receive(:where).with(:item_id => object.id, :item_type => object.class.name).and_return([])
|
25
25
|
end
|
26
26
|
|
27
27
|
it "returns the shopping cart item object for the requested object" do
|
@@ -31,7 +31,7 @@ describe ActiveRecord::Acts::ShoppingCart::Item::InstanceMethods do
|
|
31
31
|
|
32
32
|
context "a cart item exists for the object" do
|
33
33
|
before do
|
34
|
-
shopping_cart_items.should_receive(:where).with(:item_id => object.id).and_return([ item ])
|
34
|
+
shopping_cart_items.should_receive(:where).with(:item_id => object.id, :item_type => object.class.name).and_return([ item ])
|
35
35
|
end
|
36
36
|
|
37
37
|
it "returns that item" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_shopping_cart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -32,17 +32,17 @@ dependencies:
|
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
|
-
- -
|
35
|
+
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 1.2.1
|
38
38
|
type: :development
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 1.2.1
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: database_cleaner
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,33 +64,33 @@ dependencies:
|
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 2.12.0
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: 2.12.0
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: sqlite3
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - ~>
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
85
|
+
version: 1.3.0
|
86
86
|
type: :development
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 1.3.0
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: simplecov
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,17 +112,17 @@ dependencies:
|
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
113
113
|
none: false
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 10.0.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ~>
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
125
|
+
version: 10.0.0
|
126
126
|
description: Simple Shopping Cart implementation
|
127
127
|
email:
|
128
128
|
- david@crowdint.com
|
@@ -152,10 +152,10 @@ files:
|
|
152
152
|
- lib/acts_as_shopping_cart/schema.rb
|
153
153
|
- lib/acts_as_shopping_cart/version.rb
|
154
154
|
- script/build.sh
|
155
|
+
- spec/.rspec
|
155
156
|
- spec/active_record/acts/shopping_cart/cart/instance_methods_spec.rb
|
156
157
|
- spec/active_record/acts/shopping_cart/item/instance_methods_spec.rb
|
157
158
|
- spec/active_record/acts/shopping_cart_item/instance_methods_spec.rb
|
158
|
-
- spec/spec.opts
|
159
159
|
- spec/spec_helper.rb
|
160
160
|
homepage: ''
|
161
161
|
licenses: []
|
@@ -171,7 +171,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
segments:
|
173
173
|
- 0
|
174
|
-
hash:
|
174
|
+
hash: 3103435119654864797
|
175
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
176
|
none: false
|
177
177
|
requirements:
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
segments:
|
182
182
|
- 0
|
183
|
-
hash:
|
183
|
+
hash: 3103435119654864797
|
184
184
|
requirements: []
|
185
185
|
rubyforge_project: acts_as_shopping_cart
|
186
186
|
rubygems_version: 1.8.23
|
@@ -196,5 +196,4 @@ test_files:
|
|
196
196
|
- spec/active_record/acts/shopping_cart/cart/instance_methods_spec.rb
|
197
197
|
- spec/active_record/acts/shopping_cart/item/instance_methods_spec.rb
|
198
198
|
- spec/active_record/acts/shopping_cart_item/instance_methods_spec.rb
|
199
|
-
- spec/spec.opts
|
200
199
|
- spec/spec_helper.rb
|