globals 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/globals.rb +2 -1
  2. metadata +1 -1
@@ -3,8 +3,9 @@ require 'rails'
3
3
 
4
4
  class Globals
5
5
  def self.read(globals_file, env=Rails.env)
6
- env = env.to_s
6
+ raise "#{global_file} does not exist." unless File.exists? globals_file
7
7
 
8
+ env = env.to_s
8
9
  yaml = YAML.load ERB.new(File.read globals_file).result
9
10
  if yaml && yaml.include?(env)
10
11
  new(yaml[env], env)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: globals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: