ur-product 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/ur/product.rb +3 -1
  2. data/lib/ur/version.rb +1 -1
  3. metadata +4 -4
data/lib/ur/product.rb CHANGED
@@ -66,7 +66,9 @@ module UR
66
66
  names.each do |name|
67
67
  define_method("has_#{name}?") do
68
68
  related_products = instance_variable_get("@related_products")
69
- (!related_products.nil? && !related_products[name].nil?)
69
+ (!related_products.nil? &&
70
+ (!related_products[name].nil? &&
71
+ !related_products[name].to_s.empty?))
70
72
  end
71
73
  end
72
74
  end
data/lib/ur/version.rb CHANGED
@@ -2,7 +2,7 @@ module UR
2
2
  module VERSION
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ur-product
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Peter Hellberg
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-14 00:00:00 +02:00
18
+ date: 2010-10-21 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency