slim_migrations 3.1.1 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2011-2012 Jan Lelis
1
+ Copyright 2011 Jan Lelis
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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 your Gemfile:
44
- gem 'slim_migrations', '~> 3.1.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 your Gemfile:
51
- gem 'slim_migrations', '~> 3.0.1'
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 your config/environment.rb
58
- config.gem 'slim_migrations', :version => '~> 2.3.1'
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/53-three-little-tips-for-slimmer-rails-migrations
63
-
64
- Thanks to contributions from: Manuel Meurer
57
+ Blog post: http://rbjl.net
65
58
 
66
- MIT-LICENSE, J-_-L
59
+ J-_-L
@@ -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(/\/(?:[0-9]+)_([_a-z0-9]*).rb:\d+(?::in `.*')?$/)
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
@@ -1,3 +1,3 @@
1
1
  module SlimMigrations
2
- VERSION = '3.1.1'
2
+ VERSION = '3.2.0'
3
3
  end
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.1.1
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-29 00:00:00.000000000 Z
12
+ date: 2012-01-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &15947840 !ruby/object:Gem::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.1.0
21
+ version: 3.2.0.rc1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *15947840
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: 1476214129818555534
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: 1476214129818555534
62
+ hash: -3511577405469603588
63
63
  requirements: []
64
64
  rubyforge_project:
65
- rubygems_version: 1.8.11
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.