stephencelis-app 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 0.2.1 / 2009-04-17
2
+
3
+ * 1 minor enhancement
4
+
5
+ * Configuration files no longer require scoping to environments.
6
+
7
+
1
8
  === 0.2.0 / 2009-04-17
2
9
 
3
10
  * 2 major enhancements
data/lib/app.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # What would your app be without it? Still an app, but without App.
4
4
  module App
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
 
7
7
  @@config = {} # Initialize.
8
8
  class << self
@@ -39,7 +39,8 @@ module App
39
39
 
40
40
  begin
41
41
  raw = File.read Rails.root.join("config", "#{name.underscore}.yml")
42
- @@config = YAML.load(ERB.new(raw).result)[Rails.env]
42
+ all = YAML.load(ERB.new(raw).result)
43
+ @@config = all[Rails.env] || all
43
44
  rescue Errno::ENOENT => e
44
45
  puts '** App: no file "config/app.yml". Run `script/generate app_config`.'
45
46
  end
@@ -1,3 +1,2 @@
1
1
  ---
2
- development:
3
- authentication_type: :basic
2
+ authentication_type: :basic
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stephencelis-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Celis