jtrupiano-environmentalist 0.2.0 → 0.2.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/History.txt +11 -0
- data/VERSION.yml +1 -1
- data/lib/conf/preinitializer.rb +5 -3
- metadata +3 -3
data/History.txt
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
=== v0.2.1
|
2
|
+
2009-03-06
|
3
|
+
|
4
|
+
* Add automatic gem install + activation (bug fix for GemInstaller pending) added to preinitializer.rb
|
5
|
+
|
6
|
+
=== v0.2.0
|
7
|
+
2009-03-02
|
8
|
+
|
9
|
+
* Added preinitializer.rb to the set of the generated files for you. It auto-loads gem dependencies as specified in geminstaller.yml files that can be distributed across your environment directories.
|
10
|
+
* Moved gem onto jeweler (with the temporary loss of rubyforge support --- rubyforge integration has been achieved in a fork of the jeweler repo, so we should have it back once it's merged back into the main line.)
|
11
|
+
|
1
12
|
=== v0.1.0
|
2
13
|
2008-08-04
|
3
14
|
|
data/VERSION.yml
CHANGED
data/lib/conf/preinitializer.rb
CHANGED
@@ -8,13 +8,15 @@ rails_env = ENV['RAILS_ENV'] || 'development'
|
|
8
8
|
#perform_install = %w(development test).include?(rails_env)
|
9
9
|
|
10
10
|
# Activate common gems
|
11
|
-
common_gemfile = 'config
|
12
|
-
|
11
|
+
common_gemfile = File.join(RAILS_ROOT, 'config', 'geminstaller.yml')
|
12
|
+
GemInstaller.install('--sudo --exceptions --config=#{common_gemfile}') if perform_install
|
13
|
+
Gem.refresh # in the event that we did install new gems, we'll need to update the cache so that we can activate them
|
13
14
|
GemInstaller.autogem("--sudo --exceptions --config=#{common_gemfile}") if File.exists?(common_gemfile)
|
14
15
|
|
15
16
|
# Activate environment-specific gems
|
16
17
|
path = File.join(RAILS_ROOT, "config", rails_env, "geminstaller.yml")
|
17
18
|
if File.exists?(path)
|
18
|
-
|
19
|
+
GemInstaller.install("--sudo --exceptions --config=#{path}") if perform_install
|
20
|
+
Gem.refresh # in the event that we did install new gems, we'll need to update the cache so that we can activate them
|
19
21
|
GemInstaller.autogem("--sudo --exceptions --config=#{path}")
|
20
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jtrupiano-environmentalist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Trupiano
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-06 00:00:00 -08:00
|
13
13
|
default_executable: environmentalize
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -235,7 +235,7 @@ requirements: []
|
|
235
235
|
rubyforge_project:
|
236
236
|
rubygems_version: 1.2.0
|
237
237
|
signing_key:
|
238
|
-
specification_version:
|
238
|
+
specification_version: 3
|
239
239
|
summary: Provides an executable that converts a rails app's config structure. The basic idea is that environments themselves are now first-class citizens, allowing you to create several environments (e.g. staging, prodtest, demo, etc.) in a clean, organized fashion. Each environment is given its own folder where it can store its own set of configuration files (think mongrel configs, apache configs, etc.) without polluting the top-leve config/ directory.
|
240
240
|
test_files: []
|
241
241
|
|