badgeable 0.1.1 → 0.1.2

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.
@@ -1,7 +1,10 @@
1
1
  module Badgeable
2
2
  class Railtie < ::Rails::Railtie
3
- initializer "badgeable.load_badges" do
3
+ initializer "badgeable.assign_badge_definitions_file" do
4
4
  Badgeable::Config.badge_definitions = Pathname.new("#{Rails.root}/lib/badges.rb")
5
+ end
6
+
7
+ config.to_prepare do
5
8
  Badgeable::Dsl.class_eval(File.read(Badgeable::Config.badge_definitions))
6
9
  end
7
10
  end
@@ -1,3 +1,3 @@
1
1
  module Badgeable
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Scott Burton
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-09 00:00:00 -07:00
17
+ date: 2010-10-14 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency