merlin 0.0.2 → 0.0.4

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/lib/merlin/engine.rb CHANGED
@@ -16,8 +16,10 @@ module Merlin
16
16
  g.helper false
17
17
  end
18
18
 
19
- initializer 'merlin.load_config' do |app|
20
- $merlin = Merlin::Configuration.new(File.join(::Rails.root, 'config', 'merlin.yml'))
19
+ initializer 'merlin.load_config', :before => :load_config_initializers do |app|
20
+ Merlin.instance_eval do
21
+ @configuration = Merlin::Configuration.new(File.join(::Rails.root, 'config', 'merlin.yml'))
22
+ end
21
23
  end
22
24
  end
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module Merlin
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/merlin.rb CHANGED
@@ -1,4 +1,7 @@
1
1
  require "merlin/engine"
2
2
 
3
3
  module Merlin
4
+ def self.method_missing(*args, &block)
5
+ @configuration.send(*args, &block)
6
+ end
4
7
  end
@@ -1,6 +1,6 @@
1
1
  namespace :merlin do
2
2
  desc "Print configuration for current environment"
3
3
  task :config => :environment do
4
- y $merlin.raw
4
+ y Merlin.raw
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merlin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
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: 2012-09-23 00:00:00.000000000 Z
12
+ date: 2012-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails