voomify_utility_drawer 0.1.8 → 0.1.9

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.
@@ -11,9 +11,9 @@ module Voomify
11
11
  end
12
12
 
13
13
  def self.load_site_config
14
- raw_config = File.read("#{RAILS_ROOT}/config/#{config_name}")
14
+ raw_config = File.read("#{Rails.root.to_s}/config/#{config_name}")
15
15
  erb_config = ERB.new(raw_config).result
16
- @site_config = YAML.load(erb_config)[RAILS_ENV]
16
+ @site_config = YAML.load(erb_config)[Rails.env]
17
17
  end
18
18
  STUFF
19
19
  end
@@ -1,4 +1,11 @@
1
- RAILS_ROOT = File.dirname(__FILE__)
1
+ class Rails
2
+ def self.root
3
+ File.dirname(__FILE__)
4
+ end
5
+ def self.env
6
+ "test"
7
+ end
8
+ end
2
9
 
3
10
  require 'utility_drawer'
4
11
  require 'base/httparty'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voomify_utility_drawer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Russell Edens