standalone_migrations 1.0.12 → 1.0.13

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.markdown CHANGED
@@ -197,5 +197,6 @@ Contributors
197
197
  - [Ricardo Valeriano](http://ricardovaleriano.com/)
198
198
  - [Gazler](http://blog.gazler.com/)
199
199
  - [Yuu Yamashita](https://github.com/yyuu)
200
+ - [Koen Punt](http://www.koen.pt/)
200
201
 
201
202
  This work is originally based on [Lincoln Stoll's blog post](http://lstoll.net/2008/04/stand-alone-activerecord-migrations/) and [David Welton's post](http://journal.dedasys.com/2007/01/28/using-migrations-outside-of-rails).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.12
1
+ 1.0.13
@@ -106,6 +106,6 @@ eof
106
106
  end
107
107
 
108
108
  def class_name str
109
- str.parameterize.underscore.camelize
109
+ str.underscore.camelize
110
110
  end
111
111
  end
@@ -12,7 +12,7 @@ describe 'Standalone migrations' do
12
12
  end
13
13
 
14
14
  def migration(name)
15
- m = `cd spec/tmp/db/migrate && ls`.split("\n").detect { |m| m =~ name }
15
+ m = `cd spec/tmp/db/migrate && ls`.split("\n").detect { |m| m =~ /#{name}/ }
16
16
  m ? "db/migrate/#{m}" : m
17
17
  end
18
18
 
@@ -113,8 +113,10 @@ test:
113
113
 
114
114
  it "generates a new migration with the name converted to the Rails migration format" do
115
115
  run("rake db:new_migration name=MyNiceModel").should =~ %r{Created migration db/migrate/\d+_my_nice_model\.rb}
116
+ read(migration('my_nice_model')).should =~ /class MyNiceModel/
116
117
  run("ls db/migrate").should =~ /^\d+_my_nice_model.rb$/
117
118
  end
119
+
118
120
  end
119
121
 
120
122
  describe 'db:version' do
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "standalone_migrations"
8
- s.version = "1.0.12"
8
+ s.version = "1.0.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Todd Huss", "Michael Grosser"]
12
- s.date = "2012-09-24"
12
+ s.date = "2012-09-26"
13
13
  s.email = "thuss@gabrito.com"
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standalone_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-24 00:00:00.000000000 Z
13
+ date: 2012-09-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  segments:
83
83
  - 0
84
- hash: -2851095765689580621
84
+ hash: 3401674139908695139
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements: