ploymorphic_wuid 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
- gem 'acts_as_tree', '>=0.1.1'
3
+ #gem 'acts_as_tree', '>=0.1.1'
4
4
 
5
5
  begin
6
6
  require 'jeweler'
@@ -11,6 +11,7 @@ begin
11
11
  gem.email = "tim.rubist@gmail.com"
12
12
  gem.homepage = "http://github.com/tteng/ploymorphic_wuid"
13
13
  gem.add_development_dependency "acts_as_tree", ">= 0.1.1"
14
+ gem.add_runtime_dependency "acts_as_tree", ">= 0.1.1"
14
15
  gem.authors = ["tim.teng"]
15
16
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
17
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -44,7 +44,7 @@ module PloymorphicModule
44
44
  (self.respond_to?(:reference_to) && self.parent) ? self.parent.wid : self.wuid.id
45
45
  end
46
46
 
47
- def wid= id
47
+ def wid= id=nil
48
48
  w = self.wuild.build :reference_to => id
49
49
  w.save
50
50
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ploymorphic_wuid}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["tim.teng"]
@@ -45,11 +45,14 @@ Gem::Specification.new do |s|
45
45
 
46
46
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
47
47
  s.add_development_dependency(%q<acts_as_tree>, [">= 0.1.1"])
48
+ s.add_runtime_dependency(%q<acts_as_tree>, [">= 0.1.1"])
48
49
  else
49
50
  s.add_dependency(%q<acts_as_tree>, [">= 0.1.1"])
51
+ s.add_dependency(%q<acts_as_tree>, [">= 0.1.1"])
50
52
  end
51
53
  else
52
54
  s.add_dependency(%q<acts_as_tree>, [">= 0.1.1"])
55
+ s.add_dependency(%q<acts_as_tree>, [">= 0.1.1"])
53
56
  end
54
57
  end
55
58
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - tim.teng
@@ -31,6 +31,20 @@ dependencies:
31
31
  version: 0.1.1
32
32
  type: :development
33
33
  version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: acts_as_tree
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ - 1
44
+ - 1
45
+ version: 0.1.1
46
+ type: :runtime
47
+ version_requirements: *id002
34
48
  description: " This is a gem to generate an unique id in your application world."
35
49
  email: tim.rubist@gmail.com
36
50
  executables: []