no_notifier_needed 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Object
|
2
|
+
def self.subclasses(direct = false)
|
3
|
+
classes = []
|
4
|
+
if direct
|
5
|
+
ObjectSpace.each_object(Class) do |c|
|
6
|
+
next unless c.superclass == self
|
7
|
+
classes << c
|
8
|
+
end
|
9
|
+
else
|
10
|
+
ObjectSpace.each_object(Class) do |c|
|
11
|
+
next unless c.ancestors.include?(self) and (c != self)
|
12
|
+
classes << c
|
13
|
+
end
|
14
|
+
end
|
15
|
+
classes
|
16
|
+
end
|
17
|
+
end
|
@@ -39,8 +39,9 @@ module NoNotifierNeeded
|
|
39
39
|
def known_models
|
40
40
|
@known_models if @known_models
|
41
41
|
@known_models = ActiveRecord::Base.send( :subclasses )
|
42
|
-
@known_models += @known_models.collect{|k| k.send(:
|
43
|
-
@known_models.uniq!
|
42
|
+
# @known_models += @known_models.collect{|k| k.send(:subclasses) }.flatten.uniq
|
43
|
+
# @known_models.uniq!
|
44
|
+
@known_models
|
44
45
|
end
|
45
46
|
end
|
46
47
|
end
|
data/no_notifier_needed.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "no_notifier_needed"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Robert R. Meyer"]
|
12
|
-
s.date = "2013-01-
|
12
|
+
s.date = "2013-01-25"
|
13
13
|
s.description = "A work in progress"
|
14
14
|
s.email = "Blue.Dog.Archolite@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
"README.rdoc",
|
28
28
|
"Rakefile",
|
29
29
|
"VERSION",
|
30
|
+
"initializers/hotpatches/subclasses.rb.template",
|
30
31
|
"lib/no_notifier_needed.rb",
|
31
32
|
"lib/no_notifier_needed/config.rb",
|
32
33
|
"lib/no_notifier_needed/railtie.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: no_notifier_needed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: haml
|
@@ -141,6 +141,7 @@ files:
|
|
141
141
|
- README.rdoc
|
142
142
|
- Rakefile
|
143
143
|
- VERSION
|
144
|
+
- initializers/hotpatches/subclasses.rb.template
|
144
145
|
- lib/no_notifier_needed.rb
|
145
146
|
- lib/no_notifier_needed/config.rb
|
146
147
|
- lib/no_notifier_needed/railtie.rb
|
@@ -167,7 +168,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
167
168
|
version: '0'
|
168
169
|
segments:
|
169
170
|
- 0
|
170
|
-
hash:
|
171
|
+
hash: 228529495184336428
|
171
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
173
|
none: false
|
173
174
|
requirements:
|