ancestree 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ pkg/
@@ -1,43 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ancestree (0.1.4)
5
- activerecord (~> 3.0.0)
6
- activesupport (~> 3.0.0)
7
- ancestree
4
+ ancestree (0.1.6)
5
+ activerecord (> 3.0.0)
6
+ activesupport (> 3.0.0)
8
7
 
9
8
  GEM
10
9
  remote: http://rubygems.org/
11
10
  specs:
12
- activemodel (3.0.10)
13
- activesupport (= 3.0.10)
14
- builder (~> 2.1.2)
15
- i18n (~> 0.5.0)
16
- activerecord (3.0.10)
17
- activemodel (= 3.0.10)
18
- activesupport (= 3.0.10)
19
- arel (~> 2.0.10)
20
- tzinfo (~> 0.3.23)
21
- activesupport (3.0.10)
22
- arel (2.0.10)
23
- builder (2.1.2)
11
+ activemodel (3.2.7)
12
+ activesupport (= 3.2.7)
13
+ builder (~> 3.0.0)
14
+ activerecord (3.2.7)
15
+ activemodel (= 3.2.7)
16
+ activesupport (= 3.2.7)
17
+ arel (~> 3.0.2)
18
+ tzinfo (~> 0.3.29)
19
+ activesupport (3.2.7)
20
+ i18n (~> 0.6)
21
+ multi_json (~> 1.0)
22
+ arel (3.0.2)
23
+ builder (3.0.0)
24
24
  diff-lcs (1.1.3)
25
- i18n (0.5.0)
26
- rspec (2.0.1)
27
- rspec-core (~> 2.0.1)
28
- rspec-expectations (~> 2.0.1)
29
- rspec-mocks (~> 2.0.1)
30
- rspec-core (2.0.1)
31
- rspec-expectations (2.0.1)
32
- diff-lcs (>= 1.1.2)
33
- rspec-mocks (2.0.1)
34
- rspec-core (~> 2.0.1)
35
- rspec-expectations (~> 2.0.1)
36
- tzinfo (0.3.29)
25
+ i18n (0.6.0)
26
+ multi_json (1.3.6)
27
+ rspec (2.11.0)
28
+ rspec-core (~> 2.11.0)
29
+ rspec-expectations (~> 2.11.0)
30
+ rspec-mocks (~> 2.11.0)
31
+ rspec-core (2.11.1)
32
+ rspec-expectations (2.11.2)
33
+ diff-lcs (~> 1.1.3)
34
+ rspec-mocks (2.11.1)
35
+ tzinfo (0.3.33)
37
36
 
38
37
  PLATFORMS
39
38
  ruby
40
39
 
41
40
  DEPENDENCIES
42
41
  ancestree!
43
- rspec (~> 2.0.0)
42
+ rspec (~> 2.11.0)
@@ -1,65 +1,26 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ancestree/version'
5
5
 
6
- Gem::Specification.new do |s|
7
- s.name = "ancestree"
8
- s.version = "0.1.5"
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "ancestree"
8
+ gem.version = Ancestree::VERSION
9
+ gem.authors = ["Brian Rose", "Gabe Varela"]
10
+ gem.email = ["brian@heimidal.net"]
11
+ gem.description = %q{A Rails 3.x plugin that makes inheriting properties simple.}
12
+ gem.summary = %q{Ancestree is a Rails 3.x plugin that makes inheriting properties from parent objects in tree-like structure simple.}
13
+ gem.homepage = ""
14
+ gem.homepage = "http://github.com/heimidal/ancestree"
9
15
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Brian Rose", "Gabe Varela"]
12
- s.date = "2011-09-26"
13
- s.description = "Ancestree is a Rails 3 plugin that makes inheriting properties from parent objects in tree-like structure simple."
14
- s.email = "brian@heimidal.net"
15
- s.extra_rdoc_files = [
16
- "README"
17
- ]
18
- s.files = [
19
- "Gemfile",
20
- "Gemfile.lock",
21
- "MIT-LICENSE",
22
- "README",
23
- "Rakefile",
24
- "VERSION",
25
- "ancestree.gemspec",
26
- "init.rb",
27
- "install.rb",
28
- "lib/ancestree.rb",
29
- "spec/inherit_ancestor_attributes_spec.rb",
30
- "spec/spec_helper.rb",
31
- "uninstall.rb"
32
- ]
33
- s.homepage = "http://github.com/heimidal/ancestree"
34
- s.require_paths = ["lib"]
35
- s.rubygems_version = "1.8.10"
36
- s.summary = "Rails 3 plugin to inherit attributes"
16
+ gem.files = `git ls-files`.split($/)
17
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
+ gem.require_paths = ["lib"]
37
20
 
38
- if s.respond_to? :specification_version then
39
- s.specification_version = 3
21
+ gem.add_runtime_dependency(%q<activesupport>, ["> 3.0.0"])
22
+ gem.add_runtime_dependency(%q<activerecord>, ["> 3.0.0"])
40
23
 
41
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
- s.add_runtime_dependency(%q<ancestree>, [">= 0"])
43
- s.add_development_dependency(%q<rspec>, ["~> 2.0.0"])
44
- s.add_development_dependency(%q<rspec>, ["~> 2.0.0"])
45
- s.add_development_dependency(%q<rspec>, ["~> 2.0.0"])
46
- s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0"])
47
- s.add_runtime_dependency(%q<activerecord>, ["~> 3.0.0"])
48
- else
49
- s.add_dependency(%q<ancestree>, [">= 0"])
50
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
51
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
52
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
53
- s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
54
- s.add_dependency(%q<activerecord>, ["~> 3.0.0"])
55
- end
56
- else
57
- s.add_dependency(%q<ancestree>, [">= 0"])
58
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
59
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
60
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
61
- s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
62
- s.add_dependency(%q<activerecord>, ["~> 3.0.0"])
63
- end
24
+ gem.add_development_dependency(%q<rspec>, ["~> 2.11.0"])
64
25
  end
65
26
 
@@ -2,7 +2,7 @@ require 'active_support/concern'
2
2
 
3
3
  module Ancestree
4
4
  extend ActiveSupport::Concern
5
-
5
+
6
6
  def inherits_from_ancestor?(method)
7
7
  !gets_value_locally?(method)
8
8
  end
@@ -44,4 +44,4 @@ module Ancestree
44
44
  end
45
45
  end
46
46
 
47
- ActiveRecord::Base.send :include, Ancestree
47
+ ActiveRecord::Base.send :include, Ancestree
@@ -0,0 +1,3 @@
1
+ module Ancestree
2
+ VERSION = "0.1.6"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ancestree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,82 +10,64 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-09-26 00:00:00.000000000Z
13
+ date: 2012-07-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: ancestree
17
- requirement: &2163081300 !ruby/object:Gem::Requirement
16
+ name: activesupport
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
- - - ! '>='
20
+ - - ! '>'
21
21
  - !ruby/object:Gem::Version
22
- version: '0'
22
+ version: 3.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2163081300
26
- - !ruby/object:Gem::Dependency
27
- name: rspec
28
- requirement: &2163080480 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
29
26
  none: false
30
27
  requirements:
31
- - - ~>
28
+ - - ! '>'
32
29
  - !ruby/object:Gem::Version
33
- version: 2.0.0
34
- type: :development
35
- prerelease: false
36
- version_requirements: *2163080480
30
+ version: 3.0.0
37
31
  - !ruby/object:Gem::Dependency
38
- name: rspec
39
- requirement: &2163079980 !ruby/object:Gem::Requirement
32
+ name: activerecord
33
+ requirement: !ruby/object:Gem::Requirement
40
34
  none: false
41
35
  requirements:
42
- - - ~>
36
+ - - ! '>'
43
37
  - !ruby/object:Gem::Version
44
- version: 2.0.0
45
- type: :development
38
+ version: 3.0.0
39
+ type: :runtime
46
40
  prerelease: false
47
- version_requirements: *2163079980
48
- - !ruby/object:Gem::Dependency
49
- name: rspec
50
- requirement: &2163079280 !ruby/object:Gem::Requirement
41
+ version_requirements: !ruby/object:Gem::Requirement
51
42
  none: false
52
43
  requirements:
53
- - - ~>
44
+ - - ! '>'
54
45
  - !ruby/object:Gem::Version
55
- version: 2.0.0
56
- type: :development
57
- prerelease: false
58
- version_requirements: *2163079280
46
+ version: 3.0.0
59
47
  - !ruby/object:Gem::Dependency
60
- name: activesupport
61
- requirement: &2163078580 !ruby/object:Gem::Requirement
48
+ name: rspec
49
+ requirement: !ruby/object:Gem::Requirement
62
50
  none: false
63
51
  requirements:
64
52
  - - ~>
65
53
  - !ruby/object:Gem::Version
66
- version: 3.0.0
67
- type: :runtime
54
+ version: 2.11.0
55
+ type: :development
68
56
  prerelease: false
69
- version_requirements: *2163078580
70
- - !ruby/object:Gem::Dependency
71
- name: activerecord
72
- requirement: &2163077800 !ruby/object:Gem::Requirement
57
+ version_requirements: !ruby/object:Gem::Requirement
73
58
  none: false
74
59
  requirements:
75
60
  - - ~>
76
61
  - !ruby/object:Gem::Version
77
- version: 3.0.0
78
- type: :runtime
79
- prerelease: false
80
- version_requirements: *2163077800
81
- description: Ancestree is a Rails 3 plugin that makes inheriting properties from parent
82
- objects in tree-like structure simple.
83
- email: brian@heimidal.net
62
+ version: 2.11.0
63
+ description: A Rails 3.x plugin that makes inheriting properties simple.
64
+ email:
65
+ - brian@heimidal.net
84
66
  executables: []
85
67
  extensions: []
86
- extra_rdoc_files:
87
- - README
68
+ extra_rdoc_files: []
88
69
  files:
70
+ - .gitignore
89
71
  - Gemfile
90
72
  - Gemfile.lock
91
73
  - MIT-LICENSE
@@ -96,6 +78,7 @@ files:
96
78
  - init.rb
97
79
  - install.rb
98
80
  - lib/ancestree.rb
81
+ - lib/ancestree/version.rb
99
82
  - spec/inherit_ancestor_attributes_spec.rb
100
83
  - spec/spec_helper.rb
101
84
  - uninstall.rb
@@ -119,8 +102,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
102
  version: '0'
120
103
  requirements: []
121
104
  rubyforge_project:
122
- rubygems_version: 1.8.10
105
+ rubygems_version: 1.8.23
123
106
  signing_key:
124
107
  specification_version: 3
125
- summary: Rails 3 plugin to inherit attributes
126
- test_files: []
108
+ summary: Ancestree is a Rails 3.x plugin that makes inheriting properties from parent
109
+ objects in tree-like structure simple.
110
+ test_files:
111
+ - spec/inherit_ancestor_attributes_spec.rb
112
+ - spec/spec_helper.rb
113
+ has_rdoc: