endeco 0.0.1 → 0.0.2
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/History.txt +4 -0
- data/README.md +5 -5
- data/lib/endeco/rails.rb +1 -1
- data/lib/endeco/version.rb +1 -1
- metadata +5 -5
data/History.txt
CHANGED
data/README.md
CHANGED
|
@@ -4,15 +4,15 @@ https://github.com/morimori/endeco
|
|
|
4
4
|
|
|
5
5
|
## DESCRIPTION
|
|
6
6
|
|
|
7
|
-
|
|
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
|
|
15
|
-
*
|
|
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.
|
|
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?
|
data/lib/endeco/version.rb
CHANGED
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.
|
|
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:
|
|
12
|
+
date: 2012-01-17 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rspec
|
|
16
|
-
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: *
|
|
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.
|
|
67
|
+
rubygems_version: 1.8.15
|
|
68
68
|
signing_key:
|
|
69
69
|
specification_version: 3
|
|
70
70
|
summary: Environment Dependent Configuration
|