massimo 0.4.5 → 0.4.6
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 +1 -1
- data/lib/massimo/resource/base.rb +1 -0
- data/lib/massimo/site.rb +1 -3
- data/massimo.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.6
|
data/lib/massimo/site.rb
CHANGED
@@ -125,9 +125,7 @@ module Massimo
|
|
125
125
|
class_name = File.basename(file).gsub(File.extname(file), "").classify
|
126
126
|
Object.class_eval { remove_const(class_name) if const_defined?(class_name) }
|
127
127
|
load(file)
|
128
|
-
|
129
|
-
Massimo.resources.delete(class_constant)
|
130
|
-
class_constant
|
128
|
+
class_name.constantize rescue nil
|
131
129
|
end
|
132
130
|
end
|
133
131
|
end
|
data/massimo.gemspec
CHANGED