radiant-shop_discounts-extension 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ begin
7
7
  gem.email = "dk@dirkkelly.com"
8
8
  gem.homepage = "https://github.com/thefrontiergroup/radiant-shop_discounts-extension"
9
9
  gem.authors = ["Dirk Kelly"]
10
- gem.add_dependency 'radiant-shop-extension', '0.92.2'
10
+ gem.add_dependency 'radiant-shop-extension', '>= 0.92.3'
11
11
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
12
12
  end
13
13
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.6
@@ -7,8 +7,10 @@ module ShopDiscounts
7
7
 
8
8
  # Assigns discounts based off the customers discounts
9
9
  def apply_customer_discounts
10
- customer.discounts.each do |discount|
11
- ShopDiscountable.create(:discount_id => discount.id, :discounted_id => self.id, :discounted_type => self.class.name)
10
+ if customer.present?
11
+ customer.discounts.each do |discount|
12
+ ShopDiscountable.create(:discount_id => discount.id, :discounted_id => self.id, :discounted_type => self.class.name)
13
+ end
12
14
  end
13
15
  end
14
16
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-shop_discounts-extension}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dirk Kelly"]
12
- s.date = %q{2010-12-17}
12
+ s.date = %q{2010-12-21}
13
13
  s.description = %q{RadiantShop: Apply discounts to Products and Categories and have them accessed through codes}
14
14
  s.email = %q{dk@dirkkelly.com}
15
15
  s.extra_rdoc_files = [
@@ -122,12 +122,12 @@ Gem::Specification.new do |s|
122
122
  s.specification_version = 3
123
123
 
124
124
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
125
- s.add_runtime_dependency(%q<radiant-shop-extension>, ["= 0.92.2"])
125
+ s.add_runtime_dependency(%q<radiant-shop-extension>, [">= 0.92.3"])
126
126
  else
127
- s.add_dependency(%q<radiant-shop-extension>, ["= 0.92.2"])
127
+ s.add_dependency(%q<radiant-shop-extension>, [">= 0.92.3"])
128
128
  end
129
129
  else
130
- s.add_dependency(%q<radiant-shop-extension>, ["= 0.92.2"])
130
+ s.add_dependency(%q<radiant-shop-extension>, [">= 0.92.3"])
131
131
  end
132
132
  end
133
133
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-shop_discounts-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dirk Kelly
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-17 00:00:00 +08:00
18
+ date: 2010-12-21 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -24,14 +24,14 @@ dependencies:
24
24
  version_requirements: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - "="
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 363
29
+ hash: 361
30
30
  segments:
31
31
  - 0
32
32
  - 92
33
- - 2
34
- version: 0.92.2
33
+ - 3
34
+ version: 0.92.3
35
35
  name: radiant-shop-extension
36
36
  requirement: *id001
37
37
  description: "RadiantShop: Apply discounts to Products and Categories and have them accessed through codes"