shop_bunny 0.7.4.21 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/shop_bunny/cart_module.rb +1 -1
  2. metadata +24 -25
@@ -156,7 +156,7 @@ module ShopBunny
156
156
  def update_coupons
157
157
  Array(@coupon_code).each { |code|
158
158
  coupon = Coupon.find_by_code(code)
159
- coupons << coupon if coupon
159
+ coupons << coupon if coupon && !coupons.include?(coupon)
160
160
  }
161
161
  end
162
162
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shop_bunny
3
3
  version: !ruby/object:Gem::Version
4
- hash: 77
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 4
10
- - 21
11
- version: 0.7.4.21
9
+ - 5
10
+ version: 0.7.5
12
11
  platform: ruby
13
12
  authors:
14
13
  - kopfmaschine.com
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2011-02-03 00:00:00 +01:00
18
+ date: 2011-04-18 00:00:00 -07:00
20
19
  default_executable:
21
20
  dependencies: []
22
21
 
@@ -30,36 +29,36 @@ extensions: []
30
29
  extra_rdoc_files: []
31
30
 
32
31
  files:
33
- - lib/generators/shop_bunny/install_generator.rb
34
- - lib/generators/shop_bunny/templates/shopbunny_controller_template.rb
35
- - lib/generators/shop_bunny/templates/shopbunny_model_template.rb
36
- - lib/shop_bunny/cart_controller_module.rb
32
+ - lib/shop_bunny.rb
37
33
  - lib/shop_bunny/cart_module.rb
38
34
  - lib/shop_bunny/engine.rb
35
+ - lib/shop_bunny/cart_controller_module.rb
39
36
  - lib/shop_bunny/shipping_cost_calculator.rb
40
- - lib/shop_bunny.rb
41
- - app/controllers/application_controller.rb
42
- - app/controllers/carts_controller.rb
43
- - app/models/cart.rb
44
- - app/models/cart_item.rb
45
- - app/models/coupon.rb
37
+ - lib/generators/shop_bunny/install_generator.rb
38
+ - lib/generators/shop_bunny/templates/shopbunny_controller_template.rb
39
+ - lib/generators/shop_bunny/templates/shopbunny_model_template.rb
40
+ - app/views/carts/show.html.erb
46
41
  - app/models/coupon_use.rb
42
+ - app/models/coupon.rb
43
+ - app/models/cart.rb
47
44
  - app/models/item.rb
48
- - app/views/carts/show.html.erb
49
- - db/migrate/20100902115627_create_carts.rb
50
- - db/migrate/20100902115757_create_cart_items.rb
51
- - db/migrate/20100915073016_create_items.rb
52
- - db/migrate/20100915091059_create_coupons.rb
45
+ - app/models/cart_item.rb
46
+ - app/controllers/application_controller.rb
47
+ - app/controllers/carts_controller.rb
53
48
  - db/migrate/20100915093821_create_coupon_uses.rb
54
- - db/migrate/20100915162029_remove_owner_id_from_carts.rb
55
- - db/migrate/20100916194407_set_default_column_value_for_cart_items_quantity.rb
56
49
  - db/migrate/20101125140137_add_value_of_automatic_add_to_coupons.rb
50
+ - db/migrate/20100915091059_create_coupons.rb
51
+ - db/migrate/20100915162029_remove_owner_id_from_carts.rb
57
52
  - db/migrate/20101125151017_change_valid_from_and_until_to_datetime_on_coupons.rb
58
- - db/migrate/20110202235446_add_raw_item_to_cart_items.rb
53
+ - db/migrate/20100902115627_create_carts.rb
54
+ - db/migrate/20100916194407_set_default_column_value_for_cart_items_quantity.rb
59
55
  - db/migrate/20110203005514_remove_item_id_from_cart_items.rb
60
- - config/initializers/add_cart_finder_to_controllers.rb
61
- - config/initializers/machinist.rb
56
+ - db/migrate/20110202235446_add_raw_item_to_cart_items.rb
57
+ - db/migrate/20100915073016_create_items.rb
58
+ - db/migrate/20100902115757_create_cart_items.rb
62
59
  - config/initializers/shop_bunny.rb
60
+ - config/initializers/machinist.rb
61
+ - config/initializers/add_cart_finder_to_controllers.rb
63
62
  - config/routes.rb
64
63
  has_rdoc: true
65
64
  homepage: http://kopfmaschine.com