slim_migrations 2.3.0 → 2.3.1

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 Jan Lelis
1
+ Copyright 2011-2012 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,29 +31,36 @@ 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
+
34
39
  ==== Rails 3.1
35
40
 
36
41
  # as plugin:
37
42
  rails plugin install git://github.com/janlelis/slim_migrations.git -r 3.1
38
- # or in Gemfile:
39
- gem 'slim_migrations', '~> 3.1.0'
43
+ # or in your Gemfile:
44
+ gem 'slim_migrations', '~> 3.1.1'
40
45
 
41
46
  ==== Rails 3.0
42
47
 
43
48
  # as plugin:
44
49
  rails plugin install git://github.com/janlelis/slim_migrations.git -r 3.0
45
- # or in Gemfile:
46
- gem 'slim_migrations', '~> 3.0.0'
50
+ # or in your Gemfile:
51
+ gem 'slim_migrations', '~> 3.0.1'
47
52
 
48
53
  ==== Rails 2.3
49
54
 
50
55
  # as plugin:
51
56
  script/plugin install git://github.com/janlelis/slim_migrations.git -r 2.3
52
- # or in config/environment.rb
53
- config.gem 'slim_migrations', :version => '~> 2.3.0'
57
+ # or in your config/environment.rb
58
+ config.gem 'slim_migrations', :version => '~> 2.3.1'
54
59
 
55
60
  === Credits
56
61
 
57
- Blog post: http://rbjl.net
62
+ Blog post: http://rbjl.net/53-three-little-tips-for-slimmer-rails-migrations
63
+
64
+ Thanks to contributions from: Manuel Meurer
58
65
 
59
- J-_-L
66
+ MIT-LICENSE, J-_-L
@@ -1,3 +1,3 @@
1
1
  module SlimMigrations
2
- VERSION = '2.3.0'
2
+ VERSION = '2.3.1'
3
3
  end
@@ -8,7 +8,7 @@ module Kernel
8
8
 
9
9
  # initialize migrations with <tt>migration do</tt> instead of <tt>class SomeMigration < ActiveRecord::Migration</tt>
10
10
  def migration(&block)
11
- if caller[0].rindex(/(?:[0-9]+)_([_a-z0-9]*).rb:\d+(?::in `.*')?$/)
11
+ if caller[0].rindex(/\/(?:[0-9]+)_([_a-z0-9]*).rb:\d+(?::in `.*')?$/)
12
12
  m = Object.const_set $1.camelize, Class.new(ActiveRecord::Migration)
13
13
  m.instance_eval(&block) # 3.0 / 2.3
14
14
  else
metadata CHANGED
@@ -1,79 +1,69 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: slim_migrations
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.3.1
4
5
  prerelease:
5
- version: 2.3.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Jan Lelis
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-07-15 00:00:00 +02:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: rails
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &22691240 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
18
+ requirements:
21
19
  - - ~>
22
- - !ruby/object:Gem::Version
20
+ - !ruby/object:Gem::Version
23
21
  version: 2.3.0
24
22
  type: :runtime
25
23
  prerelease: false
26
- version_requirements: *id001
24
+ version_requirements: *22691240
27
25
  description: Let's you write even slimmer migrations.
28
26
  email: mail@janlelis.de
29
27
  executables: []
30
-
31
28
  extensions: []
32
-
33
29
  extra_rdoc_files: []
34
-
35
- files:
30
+ files:
36
31
  - lib/slim_migrations.rb
37
32
  - lib/slim_migrations/version.rb
38
- - lib/generators/migration/migration_generator.rb
39
- - lib/generators/migration/templates/migration.rb
40
33
  - lib/tasks/slim_migrations_tasks.rake
34
+ - lib/generators/migration/templates/migration.rb
35
+ - lib/generators/migration/migration_generator.rb
41
36
  - MIT-LICENSE
42
37
  - Rakefile
43
38
  - README.rdoc
44
- has_rdoc: true
45
39
  homepage: https://github.com/janlelis/slim_migrations
46
40
  licenses: []
47
-
48
41
  post_install_message:
49
42
  rdoc_options: []
50
-
51
- require_paths:
43
+ require_paths:
52
44
  - lib
53
- required_ruby_version: !ruby/object:Gem::Requirement
45
+ required_ruby_version: !ruby/object:Gem::Requirement
54
46
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: -999369327
59
- segments:
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ segments:
60
52
  - 0
61
- version: "0"
62
- required_rubygems_version: !ruby/object:Gem::Requirement
53
+ hash: -4591639683790484526
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
55
  none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- hash: -999369327
68
- segments:
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ segments:
69
61
  - 0
70
- version: "0"
62
+ hash: -4591639683790484526
71
63
  requirements: []
72
-
73
64
  rubyforge_project:
74
- rubygems_version: 1.6.2
65
+ rubygems_version: 1.8.11
75
66
  signing_key:
76
67
  specification_version: 3
77
68
  summary: Let's you write even slimmer migrations.
78
69
  test_files: []
79
-