acts_as_ordered_tree 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ module ActsAsOrderedTree
29
29
  include Columns
30
30
 
31
31
  has_many_children_options = {
32
- :class_name => name,
32
+ :class_name => base_class.name,
33
33
  :foreign_key => options[:parent_column],
34
34
  :order => options[:position_column],
35
35
  :inverse_of => (:parent unless options[:polymorphic]),
@@ -50,7 +50,7 @@ module ActsAsOrderedTree
50
50
  # create associations
51
51
  has_many :children, has_many_children_options
52
52
  belongs_to :parent,
53
- :class_name => name,
53
+ :class_name => base_class.name,
54
54
  :foreign_key => options[:parent_column],
55
55
  :counter_cache => options[:counter_cache],
56
56
  :inverse_of => (:children unless options[:polymorphic])
@@ -1,3 +1,3 @@
1
1
  module ActsAsOrderedTree
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_ordered_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
5
4
  prerelease:
5
+ version: 1.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alexei Mikhailov
@@ -10,85 +10,120 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-16 00:00:00.000000000Z
13
+ date: 2013-03-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: activerecord
17
- requirement: &77952600 !ruby/object:Gem::Requirement
18
- none: false
16
+ type: :runtime
17
+ version_requirements: !ruby/object:Gem::Requirement
19
18
  requirements:
20
19
  - - ! '>='
21
20
  - !ruby/object:Gem::Version
22
21
  version: 3.0.0
23
- type: :runtime
22
+ none: false
23
+ name: activerecord
24
24
  prerelease: false
25
- version_requirements: *77952600
26
- - !ruby/object:Gem::Dependency
27
- name: rake
28
- requirement: &77952350 !ruby/object:Gem::Requirement
25
+ requirement: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 3.0.0
29
30
  none: false
31
+ - !ruby/object:Gem::Dependency
32
+ type: :development
33
+ version_requirements: !ruby/object:Gem::Requirement
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: 0.9.2
34
- type: :development
38
+ none: false
39
+ name: rake
35
40
  prerelease: false
36
- version_requirements: *77952350
37
- - !ruby/object:Gem::Dependency
38
- name: bundler
39
- requirement: &77952120 !ruby/object:Gem::Requirement
41
+ requirement: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.9.2
40
46
  none: false
47
+ - !ruby/object:Gem::Dependency
48
+ type: :development
49
+ version_requirements: !ruby/object:Gem::Requirement
41
50
  requirements:
42
51
  - - ! '>='
43
52
  - !ruby/object:Gem::Version
44
53
  version: '1.0'
45
- type: :development
54
+ none: false
55
+ name: bundler
46
56
  prerelease: false
47
- version_requirements: *77952120
48
- - !ruby/object:Gem::Dependency
49
- name: rspec
50
- requirement: &77951890 !ruby/object:Gem::Requirement
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
51
62
  none: false
63
+ - !ruby/object:Gem::Dependency
64
+ type: :development
65
+ version_requirements: !ruby/object:Gem::Requirement
52
66
  requirements:
53
67
  - - ! '>='
54
68
  - !ruby/object:Gem::Version
55
69
  version: '2.11'
56
- type: :development
70
+ none: false
71
+ name: rspec
57
72
  prerelease: false
58
- version_requirements: *77951890
59
- - !ruby/object:Gem::Dependency
60
- name: shoulda-matchers
61
- requirement: &77951660 !ruby/object:Gem::Requirement
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '2.11'
62
78
  none: false
79
+ - !ruby/object:Gem::Dependency
80
+ type: :development
81
+ version_requirements: !ruby/object:Gem::Requirement
63
82
  requirements:
64
83
  - - ! '>='
65
84
  - !ruby/object:Gem::Version
66
85
  version: 1.2.0
67
- type: :development
86
+ none: false
87
+ name: shoulda-matchers
68
88
  prerelease: false
69
- version_requirements: *77951660
70
- - !ruby/object:Gem::Dependency
71
- name: factory_girl
72
- requirement: &77951430 !ruby/object:Gem::Requirement
89
+ requirement: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 1.2.0
73
94
  none: false
95
+ - !ruby/object:Gem::Dependency
96
+ type: :development
97
+ version_requirements: !ruby/object:Gem::Requirement
74
98
  requirements:
75
99
  - - <
76
100
  - !ruby/object:Gem::Version
77
101
  version: '3'
78
- type: :development
102
+ none: false
103
+ name: factory_girl
79
104
  prerelease: false
80
- version_requirements: *77951430
81
- - !ruby/object:Gem::Dependency
82
- name: appraisal
83
- requirement: &77951200 !ruby/object:Gem::Requirement
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - <
108
+ - !ruby/object:Gem::Version
109
+ version: '3'
84
110
  none: false
111
+ - !ruby/object:Gem::Dependency
112
+ type: :development
113
+ version_requirements: !ruby/object:Gem::Requirement
85
114
  requirements:
86
115
  - - ! '>='
87
116
  - !ruby/object:Gem::Version
88
117
  version: 0.4.0
89
- type: :development
118
+ none: false
119
+ name: appraisal
90
120
  prerelease: false
91
- version_requirements: *77951200
121
+ requirement: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: 0.4.0
126
+ none: false
92
127
  description:
93
128
  email:
94
129
  - amikhailov83@gmail.com
@@ -122,20 +157,26 @@ rdoc_options: []
122
157
  require_paths:
123
158
  - lib
124
159
  required_ruby_version: !ruby/object:Gem::Requirement
125
- none: false
126
160
  requirements:
127
161
  - - ! '>='
128
162
  - !ruby/object:Gem::Version
163
+ segments:
164
+ - 0
165
+ hash: 4288647735453151869
129
166
  version: '0'
130
- required_rubygems_version: !ruby/object:Gem::Requirement
131
167
  none: false
168
+ required_rubygems_version: !ruby/object:Gem::Requirement
132
169
  requirements:
133
170
  - - ! '>='
134
171
  - !ruby/object:Gem::Version
172
+ segments:
173
+ - 0
174
+ hash: 4288647735453151869
135
175
  version: '0'
176
+ none: false
136
177
  requirements: []
137
178
  rubyforge_project: acts_as_ordered_tree
138
- rubygems_version: 1.8.17
179
+ rubygems_version: 1.8.24
139
180
  signing_key:
140
181
  specification_version: 3
141
182
  summary: ActiveRecord extension for sorted adjacency lists support