itrigga-config 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.5
@@ -205,8 +205,8 @@ module Itrigga
205
205
 
206
206
  def environment_type
207
207
  case environment
208
- when /test/: 'test'
209
- when /development/: 'development'
208
+ when /test/ then 'test'
209
+ when /development/ then 'development'
210
210
  else 'production'
211
211
  end
212
212
  end
@@ -12,12 +12,15 @@ given_file = param ? param.gsub(/--#{app_name_lower}-config-file=(.*)/, '\1') :
12
12
 
13
13
  ITRIGGA_CONFIG = Itrigga::Config::Configuration.instance()
14
14
  [ given_file, ENV["#{app_name_upper}_CONFIG_FILE"], "/etc/#{app_name_lower}_config_file" ].compact.each { |f|
15
+ puts "looking for file #{f}" if f
15
16
  if File.exists?(f)
16
17
  true_path = (File.symlink?(f) ? File.readlink(f) : f)
17
18
  puts "loading #{app_name_lower} config file #{true_path}"
18
19
  ITRIGGA_CONFIG.from_file(true_path)
19
20
  break
20
- end
21
+ else
22
+ puts "#{f} doesn't exist"
23
+ end
21
24
  }
22
25
 
23
26
  # silence warnings, before we load the convenient Rails silence_warnings method:
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itrigga-config
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 21
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 3
9
- version: 0.0.3
9
+ - 5
10
+ version: 0.0.5
10
11
  platform: ruby
11
12
  authors:
12
13
  - Al Davidson
@@ -14,61 +15,69 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-08-12 00:00:00 +01:00
18
+ date: 2011-10-27 00:00:00 +01:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
- type: :development
22
+ prerelease: false
22
23
  name: rspec
24
+ type: :development
23
25
  version_requirements: &id001 !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
28
  - - ">="
26
29
  - !ruby/object:Gem::Version
30
+ hash: 3
27
31
  segments:
28
32
  - 0
29
33
  version: "0"
30
34
  requirement: *id001
31
- prerelease: false
32
35
  - !ruby/object:Gem::Dependency
33
- type: :development
36
+ prerelease: false
34
37
  name: bundler
38
+ type: :development
35
39
  version_requirements: &id002 !ruby/object:Gem::Requirement
40
+ none: false
36
41
  requirements:
37
42
  - - ~>
38
43
  - !ruby/object:Gem::Version
44
+ hash: 23
39
45
  segments:
40
46
  - 1
41
47
  - 0
42
48
  - 0
43
49
  version: 1.0.0
44
50
  requirement: *id002
45
- prerelease: false
46
51
  - !ruby/object:Gem::Dependency
47
- type: :development
52
+ prerelease: false
48
53
  name: jeweler
54
+ type: :development
49
55
  version_requirements: &id003 !ruby/object:Gem::Requirement
56
+ none: false
50
57
  requirements:
51
58
  - - ~>
52
59
  - !ruby/object:Gem::Version
60
+ hash: 7
53
61
  segments:
54
62
  - 1
55
63
  - 6
56
64
  - 4
57
65
  version: 1.6.4
58
66
  requirement: *id003
59
- prerelease: false
60
67
  - !ruby/object:Gem::Dependency
61
- type: :development
68
+ prerelease: false
62
69
  name: rcov
70
+ type: :development
63
71
  version_requirements: &id004 !ruby/object:Gem::Requirement
72
+ none: false
64
73
  requirements:
65
74
  - - ">="
66
75
  - !ruby/object:Gem::Version
76
+ hash: 3
67
77
  segments:
68
78
  - 0
69
79
  version: "0"
70
80
  requirement: *id004
71
- prerelease: false
72
81
  description: "Allows you to define default abitrary config and override per-key by loading in a YAML file "
73
82
  email: aldavidson@itrigga.com
74
83
  executables: []
@@ -104,23 +113,27 @@ rdoc_options: []
104
113
  require_paths:
105
114
  - lib
106
115
  required_ruby_version: !ruby/object:Gem::Requirement
116
+ none: false
107
117
  requirements:
108
118
  - - ">="
109
119
  - !ruby/object:Gem::Version
120
+ hash: 3
110
121
  segments:
111
122
  - 0
112
123
  version: "0"
113
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
+ none: false
114
126
  requirements:
115
127
  - - ">="
116
128
  - !ruby/object:Gem::Version
129
+ hash: 3
117
130
  segments:
118
131
  - 0
119
132
  version: "0"
120
133
  requirements: []
121
134
 
122
135
  rubyforge_project:
123
- rubygems_version: 1.3.6
136
+ rubygems_version: 1.4.2
124
137
  signing_key:
125
138
  specification_version: 3
126
139
  summary: iTrigga's config object & initialization