environmentalist 0.2.1 → 0.2.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/Rakefile +25 -0
- data/VERSION.yml +1 -1
- data/bin/environmentalize +5 -7
- data/test/rails210test/config/boot.rb +2 -0
- data/test/rails210test/config/environment.rb +0 -4
- data/test/rails210test/config/postboot.rb +3 -14
- data/test/rails210test/config/preinitializer.rb +20 -0
- data/test/rails212/README +256 -0
- data/test/rails212/Rakefile +10 -0
- data/test/rails212/app/controllers/application.rb +15 -0
- data/test/rails212/app/helpers/application_helper.rb +3 -0
- data/test/rails212/config/boot.rb +109 -0
- data/test/rails212/config/database.yml +19 -0
- data/test/rails212/config/environment.rb +67 -0
- data/test/rails212/config/environments/development.rb +17 -0
- data/test/rails212/config/environments/production.rb +22 -0
- data/test/rails212/config/environments/test.rb +22 -0
- data/test/rails212/config/initializers/inflections.rb +10 -0
- data/test/rails212/config/initializers/mime_types.rb +5 -0
- data/test/rails212/config/initializers/new_rails_defaults.rb +17 -0
- data/test/rails212/config/routes.rb +43 -0
- data/test/rails212/doc/README_FOR_APP +2 -0
- data/test/rails212/log/development.log +0 -0
- data/test/rails212/log/production.log +0 -0
- data/test/rails212/log/server.log +0 -0
- data/test/rails212/log/test.log +0 -0
- data/test/rails212/public/404.html +30 -0
- data/test/rails212/public/422.html +30 -0
- data/test/rails212/public/500.html +30 -0
- data/test/rails212/public/dispatch.cgi +10 -0
- data/test/rails212/public/dispatch.fcgi +24 -0
- data/test/rails212/public/dispatch.rb +10 -0
- data/test/rails212/public/favicon.ico +0 -0
- data/test/rails212/public/images/rails.png +0 -0
- data/test/rails212/public/index.html +274 -0
- data/test/rails212/public/javascripts/application.js +2 -0
- data/test/rails212/public/javascripts/controls.js +963 -0
- data/test/rails212/public/javascripts/dragdrop.js +972 -0
- data/test/rails212/public/javascripts/effects.js +1120 -0
- data/test/rails212/public/javascripts/prototype.js +4225 -0
- data/test/rails212/public/robots.txt +5 -0
- data/test/rails212/script/about +4 -0
- data/test/rails212/script/console +3 -0
- data/test/rails212/script/dbconsole +3 -0
- data/test/rails212/script/destroy +3 -0
- data/test/rails212/script/generate +3 -0
- data/test/rails212/script/performance/benchmarker +3 -0
- data/test/rails212/script/performance/profiler +3 -0
- data/test/rails212/script/performance/request +3 -0
- data/test/rails212/script/plugin +3 -0
- data/test/rails212/script/process/inspector +3 -0
- data/test/rails212/script/process/reaper +3 -0
- data/test/rails212/script/process/spawner +3 -0
- data/test/rails212/script/runner +3 -0
- data/test/rails212/script/server +3 -0
- data/test/rails212/test/test_helper.rb +38 -0
- data/test/rails_version_test.rb +2 -2
- metadata +91 -6
@@ -0,0 +1,38 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
3
|
+
require 'test_help'
|
4
|
+
|
5
|
+
class Test::Unit::TestCase
|
6
|
+
# Transactional fixtures accelerate your tests by wrapping each test method
|
7
|
+
# in a transaction that's rolled back on completion. This ensures that the
|
8
|
+
# test database remains unchanged so your fixtures don't have to be reloaded
|
9
|
+
# between every test method. Fewer database queries means faster tests.
|
10
|
+
#
|
11
|
+
# Read Mike Clark's excellent walkthrough at
|
12
|
+
# http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
|
13
|
+
#
|
14
|
+
# Every Active Record database supports transactions except MyISAM tables
|
15
|
+
# in MySQL. Turn off transactional fixtures in this case; however, if you
|
16
|
+
# don't care one way or the other, switching from MyISAM to InnoDB tables
|
17
|
+
# is recommended.
|
18
|
+
#
|
19
|
+
# The only drawback to using transactional fixtures is when you actually
|
20
|
+
# need to test transactions. Since your test is bracketed by a transaction,
|
21
|
+
# any transactions started in your code will be automatically rolled back.
|
22
|
+
self.use_transactional_fixtures = true
|
23
|
+
|
24
|
+
# Instantiated fixtures are slow, but give you @david where otherwise you
|
25
|
+
# would need people(:david). If you don't want to migrate your existing
|
26
|
+
# test cases which use the @david style and don't mind the speed hit (each
|
27
|
+
# instantiated fixtures translates to a database query per test method),
|
28
|
+
# then set this back to true.
|
29
|
+
self.use_instantiated_fixtures = false
|
30
|
+
|
31
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
32
|
+
#
|
33
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
34
|
+
# -- they do not yet inherit this setting
|
35
|
+
fixtures :all
|
36
|
+
|
37
|
+
# Add more helper methods to be used by all tests here...
|
38
|
+
end
|
data/test/rails_version_test.rb
CHANGED
@@ -16,8 +16,8 @@ class RailsVersionTest < Test::Unit::TestCase
|
|
16
16
|
|
17
17
|
assert File.exists?(File.join(config_root, 'postboot.rb'))
|
18
18
|
|
19
|
-
|
20
|
-
assert
|
19
|
+
boot_rb = File.open(File.join(config_root, 'boot.rb')).read
|
20
|
+
assert boot_rb.include?("require File.join(File.dirname(__FILE__), 'postboot')")
|
21
21
|
|
22
22
|
%w(development test demo staging production).each do |env|
|
23
23
|
assert File.directory?(File.join(config_root, env))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: environmentalist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
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-
|
12
|
+
date: 2009-04-04 00:00:00 -04:00
|
13
13
|
default_executable: environmentalize
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -19,8 +19,9 @@ executables:
|
|
19
19
|
- environmentalize
|
20
20
|
extensions: []
|
21
21
|
|
22
|
-
extra_rdoc_files:
|
23
|
-
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.textile
|
24
|
+
- LICENSE
|
24
25
|
files:
|
25
26
|
- History.txt
|
26
27
|
- LICENSE
|
@@ -139,6 +140,7 @@ files:
|
|
139
140
|
- test/rails210test/config/initializers/mime_types.rb
|
140
141
|
- test/rails210test/config/initializers/new_rails_defaults.rb
|
141
142
|
- test/rails210test/config/postboot.rb
|
143
|
+
- test/rails210test/config/preinitializer.rb
|
142
144
|
- test/rails210test/config/production
|
143
145
|
- test/rails210test/config/production/database.yml
|
144
146
|
- test/rails210test/config/production/environment.rb
|
@@ -209,6 +211,89 @@ files:
|
|
209
211
|
- test/rails210test/tmp/sockets
|
210
212
|
- test/rails210test/vendor
|
211
213
|
- test/rails210test/vendor/plugins
|
214
|
+
- test/rails212
|
215
|
+
- test/rails212/app
|
216
|
+
- test/rails212/app/controllers
|
217
|
+
- test/rails212/app/controllers/application.rb
|
218
|
+
- test/rails212/app/helpers
|
219
|
+
- test/rails212/app/helpers/application_helper.rb
|
220
|
+
- test/rails212/app/models
|
221
|
+
- test/rails212/app/views
|
222
|
+
- test/rails212/app/views/layouts
|
223
|
+
- test/rails212/config
|
224
|
+
- test/rails212/config/boot.rb
|
225
|
+
- test/rails212/config/database.yml
|
226
|
+
- test/rails212/config/environment.rb
|
227
|
+
- test/rails212/config/environments
|
228
|
+
- test/rails212/config/environments/development.rb
|
229
|
+
- test/rails212/config/environments/production.rb
|
230
|
+
- test/rails212/config/environments/test.rb
|
231
|
+
- test/rails212/config/initializers
|
232
|
+
- test/rails212/config/initializers/inflections.rb
|
233
|
+
- test/rails212/config/initializers/mime_types.rb
|
234
|
+
- test/rails212/config/initializers/new_rails_defaults.rb
|
235
|
+
- test/rails212/config/routes.rb
|
236
|
+
- test/rails212/db
|
237
|
+
- test/rails212/doc
|
238
|
+
- test/rails212/doc/README_FOR_APP
|
239
|
+
- test/rails212/lib
|
240
|
+
- test/rails212/lib/tasks
|
241
|
+
- test/rails212/log
|
242
|
+
- test/rails212/log/development.log
|
243
|
+
- test/rails212/log/production.log
|
244
|
+
- test/rails212/log/server.log
|
245
|
+
- test/rails212/log/test.log
|
246
|
+
- test/rails212/public
|
247
|
+
- test/rails212/public/404.html
|
248
|
+
- test/rails212/public/422.html
|
249
|
+
- test/rails212/public/500.html
|
250
|
+
- test/rails212/public/dispatch.cgi
|
251
|
+
- test/rails212/public/dispatch.fcgi
|
252
|
+
- test/rails212/public/dispatch.rb
|
253
|
+
- test/rails212/public/favicon.ico
|
254
|
+
- test/rails212/public/images
|
255
|
+
- test/rails212/public/images/rails.png
|
256
|
+
- test/rails212/public/index.html
|
257
|
+
- test/rails212/public/javascripts
|
258
|
+
- test/rails212/public/javascripts/application.js
|
259
|
+
- test/rails212/public/javascripts/controls.js
|
260
|
+
- test/rails212/public/javascripts/dragdrop.js
|
261
|
+
- test/rails212/public/javascripts/effects.js
|
262
|
+
- test/rails212/public/javascripts/prototype.js
|
263
|
+
- test/rails212/public/robots.txt
|
264
|
+
- test/rails212/public/stylesheets
|
265
|
+
- test/rails212/Rakefile
|
266
|
+
- test/rails212/README
|
267
|
+
- test/rails212/script
|
268
|
+
- test/rails212/script/about
|
269
|
+
- test/rails212/script/console
|
270
|
+
- test/rails212/script/dbconsole
|
271
|
+
- test/rails212/script/destroy
|
272
|
+
- test/rails212/script/generate
|
273
|
+
- test/rails212/script/performance
|
274
|
+
- test/rails212/script/performance/benchmarker
|
275
|
+
- test/rails212/script/performance/profiler
|
276
|
+
- test/rails212/script/performance/request
|
277
|
+
- test/rails212/script/plugin
|
278
|
+
- test/rails212/script/process
|
279
|
+
- test/rails212/script/process/inspector
|
280
|
+
- test/rails212/script/process/reaper
|
281
|
+
- test/rails212/script/process/spawner
|
282
|
+
- test/rails212/script/runner
|
283
|
+
- test/rails212/script/server
|
284
|
+
- test/rails212/test
|
285
|
+
- test/rails212/test/fixtures
|
286
|
+
- test/rails212/test/functional
|
287
|
+
- test/rails212/test/integration
|
288
|
+
- test/rails212/test/test_helper.rb
|
289
|
+
- test/rails212/test/unit
|
290
|
+
- test/rails212/tmp
|
291
|
+
- test/rails212/tmp/cache
|
292
|
+
- test/rails212/tmp/pids
|
293
|
+
- test/rails212/tmp/sessions
|
294
|
+
- test/rails212/tmp/sockets
|
295
|
+
- test/rails212/vendor
|
296
|
+
- test/rails212/vendor/plugins
|
212
297
|
- test/rails_version_test.rb
|
213
298
|
has_rdoc: true
|
214
299
|
homepage: http://github.com/jtrupiano/environmentalist
|
@@ -232,10 +317,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
317
|
version:
|
233
318
|
requirements: []
|
234
319
|
|
235
|
-
rubyforge_project:
|
320
|
+
rubyforge_project: johntrupiano
|
236
321
|
rubygems_version: 1.3.1
|
237
322
|
signing_key:
|
238
|
-
specification_version:
|
323
|
+
specification_version: 2
|
239
324
|
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
325
|
test_files: []
|
241
326
|
|