caster 0.9.0 → 0.9.1
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/caster.rb +4 -2
- metadata +4 -4
data/lib/caster.rb
CHANGED
@@ -24,15 +24,17 @@ module Caster
|
|
24
24
|
begin
|
25
25
|
config = YAML.load_file path_to_yaml_file
|
26
26
|
rescue Errno::ENOENT
|
27
|
-
|
27
|
+
puts "YAML configuration file couldn't be found.. using defaults."
|
28
28
|
return
|
29
29
|
rescue Psych::SyntaxError
|
30
|
-
|
30
|
+
puts "YAML configuration file contains invalid syntax.. using defaults."
|
31
31
|
return
|
32
32
|
end
|
33
33
|
configure(config)
|
34
34
|
end
|
35
35
|
|
36
|
+
self.configure_with 'caster.yml'
|
37
|
+
|
36
38
|
def self.config
|
37
39
|
@config
|
38
40
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 1
|
10
|
+
version: 0.9.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Manohar Akula
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-08-
|
18
|
+
date: 2012-08-16 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: couchrest
|