slim_migrations 3.1.1 → 3.2.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/MIT-LICENSE +1 -1
- data/README.rdoc +9 -16
- data/lib/slim_migrations.rb +1 -1
- data/lib/slim_migrations/version.rb +1 -1
- metadata +8 -8
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
|
@@ -12,7 +12,7 @@ Turns
|
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
into
|
|
15
|
+
into:
|
|
16
16
|
|
|
17
17
|
migration do
|
|
18
18
|
def up
|
|
@@ -31,36 +31,29 @@ into
|
|
|
31
31
|
|
|
32
32
|
=== Install
|
|
33
33
|
|
|
34
|
-
==== Rails 3.2
|
|
35
|
-
|
|
36
|
-
# in your Gemfile
|
|
37
|
-
gem 'slim_migrations', '~> 3.2.1'
|
|
38
|
-
|
|
39
34
|
==== Rails 3.1
|
|
40
35
|
|
|
41
36
|
# as plugin:
|
|
42
37
|
rails plugin install git://github.com/janlelis/slim_migrations.git -r 3.1
|
|
43
|
-
# or in
|
|
44
|
-
gem 'slim_migrations', '~> 3.1.
|
|
38
|
+
# or in Gemfile:
|
|
39
|
+
gem 'slim_migrations', '~> 3.1.0'
|
|
45
40
|
|
|
46
41
|
==== Rails 3.0
|
|
47
42
|
|
|
48
43
|
# as plugin:
|
|
49
44
|
rails plugin install git://github.com/janlelis/slim_migrations.git -r 3.0
|
|
50
|
-
# or in
|
|
51
|
-
gem 'slim_migrations', '~> 3.0.
|
|
45
|
+
# or in Gemfile:
|
|
46
|
+
gem 'slim_migrations', '~> 3.0.0'
|
|
52
47
|
|
|
53
48
|
==== Rails 2.3
|
|
54
49
|
|
|
55
50
|
# as plugin:
|
|
56
51
|
script/plugin install git://github.com/janlelis/slim_migrations.git -r 2.3
|
|
57
|
-
# or in
|
|
58
|
-
config.gem 'slim_migrations', :version => '~> 2.3.
|
|
52
|
+
# or in config/environment.rb
|
|
53
|
+
config.gem 'slim_migrations', :version => '~> 2.3.0'
|
|
59
54
|
|
|
60
55
|
=== Credits
|
|
61
56
|
|
|
62
|
-
Blog post: http://rbjl.net
|
|
63
|
-
|
|
64
|
-
Thanks to contributions from: Manuel Meurer
|
|
57
|
+
Blog post: http://rbjl.net
|
|
65
58
|
|
|
66
|
-
|
|
59
|
+
J-_-L
|
data/lib/slim_migrations.rb
CHANGED
|
@@ -13,7 +13,7 @@ module Kernel
|
|
|
13
13
|
|
|
14
14
|
# initialize migrations with <tt>migration do</tt> instead of <tt>class SomeMigration < ActiveRecord::Migration</tt>
|
|
15
15
|
def migration(&block)
|
|
16
|
-
if caller[0].rindex(
|
|
16
|
+
if caller[0].rindex(/(?:[0-9]+)_([_a-z0-9]*).rb:\d+(?::in `.*')?$/)
|
|
17
17
|
m = Object.const_set $1.camelize, Class.new(ActiveRecord::Migration)
|
|
18
18
|
m.class_eval(&block) # 3.1
|
|
19
19
|
else
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: slim_migrations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.2.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,19 +9,19 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-01-
|
|
12
|
+
date: 2012-01-04 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &25448980 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ~>
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.2.0.rc1
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *25448980
|
|
25
25
|
description: Let's you write even slimmer migrations.
|
|
26
26
|
email: mail@janlelis.de
|
|
27
27
|
executables: []
|
|
@@ -50,7 +50,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
50
50
|
version: '0'
|
|
51
51
|
segments:
|
|
52
52
|
- 0
|
|
53
|
-
hash:
|
|
53
|
+
hash: -3511577405469603588
|
|
54
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
none: false
|
|
56
56
|
requirements:
|
|
@@ -59,10 +59,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
59
59
|
version: '0'
|
|
60
60
|
segments:
|
|
61
61
|
- 0
|
|
62
|
-
hash:
|
|
62
|
+
hash: -3511577405469603588
|
|
63
63
|
requirements: []
|
|
64
64
|
rubyforge_project:
|
|
65
|
-
rubygems_version: 1.8.
|
|
65
|
+
rubygems_version: 1.8.12
|
|
66
66
|
signing_key:
|
|
67
67
|
specification_version: 3
|
|
68
68
|
summary: Let's you write even slimmer migrations.
|