trucker 0.4.1 → 0.5.0
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/README.rdoc +1 -1
- data/VERSION.yml +2 -2
- data/generators/truck/truck_generator.rb +1 -1
- metadata +5 -5
data/README.rdoc
CHANGED
|
@@ -21,7 +21,7 @@ Trucker is a gem that helps migrate legacy data into a Rails app.
|
|
|
21
21
|
* Add legacy adapter to database.yml
|
|
22
22
|
* Add legacy base class
|
|
23
23
|
* Add legacy sub classes for all existing models
|
|
24
|
-
* Add app/models/legacy to
|
|
24
|
+
* Add app/models/legacy to autoload_paths in Rails Initializer config block
|
|
25
25
|
* Generate sample migration task (using pluralized model names)
|
|
26
26
|
|
|
27
27
|
4. Update the legacy database adapter in <em>database.yml</em> with your legacy database info
|
data/VERSION.yml
CHANGED
|
@@ -27,7 +27,7 @@ EOS
|
|
|
27
27
|
|
|
28
28
|
m.append "config/database.yml", snippet
|
|
29
29
|
|
|
30
|
-
snippet = 'config.
|
|
30
|
+
snippet = 'config.autoload_paths += %W( #{RAILS_ROOT}/app/models/legacy )'
|
|
31
31
|
m.insert_after "config/environment.rb", snippet, '^Rails::Initializer\.run do.+$'
|
|
32
32
|
|
|
33
33
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trucker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
version: 0.
|
|
8
|
+
- 5
|
|
9
|
+
- 0
|
|
10
|
+
version: 0.5.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Patrick Crowley and Rob Kaufman
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-
|
|
18
|
+
date: 2010-09-09 00:00:00 -07:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|