modern_times 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/modern_times/railsable.rb +4 -1
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -1,7 +1,10 @@
1
+ require 'yaml'
2
+ require 'erb'
3
+
1
4
  module ModernTimes
2
5
  module Railsable
3
6
  def init_rails
4
- if @cfg = YAML.load_file(File.join(Rails.root, "config", "jms.yml"))[Rails.env]
7
+ if @cfg = YAML.load(ERB.new(File.read(File.join(Rails.root, "config", "jms.yml"))).result(binding))[Rails.env]
5
8
  ModernTimes.logger.info "Messaging Enabled"
6
9
  ModernTimes::JMS::Connection.init(@cfg)
7
10
  @is_jms_enabled = true
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brad Pardee