trails 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/trails.rb +1 -1
- data/lib/trails/twilio/account.rb +9 -1
- metadata +3 -3
data/History.txt
CHANGED
data/lib/trails.rb
CHANGED
@@ -178,7 +178,15 @@ module Trails
|
|
178
178
|
return @logger
|
179
179
|
end
|
180
180
|
def self.config
|
181
|
-
@@
|
181
|
+
@@all_cfg ||= YAML::load_file( config_file ).freeze
|
182
|
+
# allow per-environment configuration
|
183
|
+
@@cfg ||= if ( @@all_cfg.has_key?( RAILS_ENV ) )
|
184
|
+
@@all_cfg[ RAILS_ENV ]
|
185
|
+
elsif( @@all_cfg.has_key?( 'default' ) )
|
186
|
+
@@all_cfg['default']
|
187
|
+
else
|
188
|
+
@@all_cfg
|
189
|
+
end
|
182
190
|
end
|
183
191
|
|
184
192
|
def self.config_file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hemant Bhanoo
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-05-09 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.0.
|
23
|
+
version: 2.0.3
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: gemcutter
|