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 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
@@ -6,6 +6,7 @@
6
6
  class AR_Model
7
7
  def initialize(klass, options)
8
8
  @klass = klass
9
+ @options = options
9
10
  # Processed habtm associations
10
11
  @habtm = []
11
12
  end
@@ -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
- DataMapper.auto_migrate!
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/application.rb'
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
@@ -1,6 +1,6 @@
1
1
  SPEC = Gem::Specification.new do |s|
2
2
  s.name = "railroad_xing"
3
- s.version = "0.5.0.1"
3
+ s.version = "0.5.0.2"
4
4
  s.authors = ["Javier Smaldone", "Roy Wright"]
5
5
  s.email = "roy@wright.org"
6
6
  s.homepage = "http://github.com/royw/railroad_xing"
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.1
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: 2008-12-15 00:00:00 -08:00
13
+ date: 2009-05-16 00:00:00 -07:00
14
14
  default_executable: railroad
15
15
  dependencies: []
16
16