massimo 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.5
1
+ 0.4.6
@@ -34,6 +34,7 @@ module Massimo
34
34
  # Hook for adding Resource types.
35
35
  def self.inherited(subclass)
36
36
  Massimo.resources << subclass
37
+ Massimo.resources.uniq!
37
38
  end
38
39
 
39
40
  # Creates a new page associated with the given file path.
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
- class_constant = class_name.constantize rescue nil
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{massimo}
8
- s.version = "0.4.5"
8
+ s.version = "0.4.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Browne"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 5
9
- version: 0.4.5
8
+ - 6
9
+ version: 0.4.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Peter Browne