royw-railroad_xing 0.5.0.1 → 0.5.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/ChangeLog +5 -0
- data/lib/railroad/ar_model.rb +1 -0
- data/lib/railroad/merb_framework.rb +4 -1
- data/lib/railroad/rails_framework.rb +2 -1
- data/railroad_xing.gemspec +1 -1
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
Version 0.5.0.2 (jun 5 2009)
|
2
|
+
- Rails 2.3 changed the filename for ApplicationController from
|
3
|
+
app/controllers/application.rb to app/controllers/application_controller.rb
|
4
|
+
Fix provided by Walt Jones http://waltgordonjones.com/218/using-railroad-with-rails-23
|
5
|
+
|
1
6
|
Version 0.5.0.1 (dec 19 2008)
|
2
7
|
- Forked from http://railroad.rubyforge.org to http://github.com/royw/railroad_xing
|
3
8
|
- Added support for Merb and DataMapper
|
data/lib/railroad/ar_model.rb
CHANGED
@@ -14,7 +14,10 @@ class MerbFramework
|
|
14
14
|
def initialize
|
15
15
|
require 'merb-core'
|
16
16
|
Merb.start_environment(:testing => true, :adapter => 'runner', :environment => ENV['MERB_ENV'] || 'test')
|
17
|
-
|
17
|
+
case Merb::Config[:merb_orm]
|
18
|
+
when :datamapper: DataMapper.auto_migrate!
|
19
|
+
when :activerecord: ActiveRecord::Migrator.migrate(File.expand_path(File.dirname(__FILE__) + "/schema/migrations"))
|
20
|
+
end
|
18
21
|
@name = 'Merb'
|
19
22
|
@migration_version = nil
|
20
23
|
end
|
@@ -20,7 +20,8 @@ class RailsFramework
|
|
20
20
|
# get the controller's files returning the application controller first in returned array
|
21
21
|
def get_controller_files(options)
|
22
22
|
files = []
|
23
|
-
files << 'app/controllers/
|
23
|
+
files << 'app/controllers/application_controller.rb' if File.exist?('app/controllers/application_controller.rb')
|
24
|
+
files << 'app/controllers/application.rb' if File.exist?('app/controllers/application.rb')
|
24
25
|
files += Dir.glob("app/controllers/**/*_controller.rb") - options.exclude
|
25
26
|
files.uniq
|
26
27
|
end
|
data/railroad_xing.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: royw-railroad_xing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.0.
|
4
|
+
version: 0.5.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Smaldone
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2009-05-16 00:00:00 -07:00
|
14
14
|
default_executable: railroad
|
15
15
|
dependencies: []
|
16
16
|
|