endeco 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.0.2 / 2012-01-17
2
+
3
+ * modify to use in application.rb. thanks to Kazuhiko Mori.
4
+
1
5
  === 0.0.1 / 2011-11-08
2
6
 
3
7
  * first release
data/README.md CHANGED
@@ -4,15 +4,15 @@ https://github.com/morimori/endeco
4
4
 
5
5
  ## DESCRIPTION
6
6
 
7
- Managing the configuration of the environment-dependent.
7
+ Manages environment dependent configurations.
8
8
 
9
9
  Like "envdir", contained in djb's daemontools.
10
10
  see http://cr.yp.to/daemontools/envdir.html
11
11
 
12
12
  ## FEATURES
13
13
 
14
- * File base configuration
15
- * Configuration changes on running apps (if cache disabled)
14
+ * File based configuration
15
+ * Dynamic configuration on running apps (if cache disabled)
16
16
  * Rails integration
17
17
 
18
18
  ## SYNOPSIS
@@ -48,9 +48,9 @@ see http://cr.yp.to/daemontools/envdir.html
48
48
 
49
49
  #### result
50
50
 
51
- $ bundle exec rails runner -e development 'Endeco.hoge'
51
+ $ bundle exec rails runner -e development 'puts Endeco.hoge'
52
52
  foo
53
- $ bundle exec rails runner -e production 'Endeco.hoge'
53
+ $ bundle exec rails runner -e production 'puts Endeco.hoge'
54
54
  bar
55
55
 
56
56
  ## REQUIREMENTS:
data/lib/endeco/rails.rb CHANGED
@@ -4,7 +4,7 @@ module Endeco
4
4
  class Railtie < Rails::Railtie
5
5
  config.endeco = ActiveSupport::OrderedOptions.new
6
6
 
7
- config.before_initialize do
7
+ config.before_configuration do
8
8
  Endeco::Config.path = config.endeco.path || "#{Rails.root}/env"
9
9
  Endeco::Config.env = config.endeco.env || Rails.env.to_s
10
10
  Endeco::Cache.enable = config.endeco.enable_cache || Rails.env.production?
@@ -1,3 +1,3 @@
1
1
  module Endeco
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: endeco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-08 00:00:00.000000000Z
12
+ date: 2012-01-17 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70195411594520 !ruby/object:Gem::Requirement
16
+ requirement: &70162604052720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70195411594520
24
+ version_requirements: *70162604052720
25
25
  description: Environment Dependent Configuration
26
26
  email:
27
27
  - hawk@at-exit.com
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  version: '0'
65
65
  requirements: []
66
66
  rubyforge_project: endeco
67
- rubygems_version: 1.8.11
67
+ rubygems_version: 1.8.15
68
68
  signing_key:
69
69
  specification_version: 3
70
70
  summary: Environment Dependent Configuration