activerecord-compatible_legacy_migration 0.1.0.beta1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da24d49fe5b5a6f57a17cbad9497428f73a22b89
4
- data.tar.gz: 3c1f8456e6cceae92874d41771a6e8ed936627a3
3
+ metadata.gz: c20db8f64d5f935c8eb0697e021166e45ed2f466
4
+ data.tar.gz: c84c6e3eec65de8482dccc81857cc72049333b2a
5
5
  SHA512:
6
- metadata.gz: 50f9cf8f15d62af56c49dc5a55a150c2b5a720001485861b04b1268b5bd597a32efa777900437c31a7718561315ec733fafa57c6b1e37a50bcc9675fb0a2d7c6
7
- data.tar.gz: 1c1e7b6b0cbfbb32ebb1cad3d2f066451be35170ba207c7b73f8a8fe1cb97aface8521b567344fc212fddcd0c063df3a2752c1064e0e7c8e6422332f25fdcb80
6
+ metadata.gz: 3ca65d0b9678a7209026c647ddd2b6d681e1e727ccf7708834f55c21fa993ab1add7670b0edb0f34eddad115b2e73cb92824dd14b4fc579449bbea93ef516906
7
+ data.tar.gz: fc25ccc5697bda66010fa73f20c0380d42d2e22163aa6392ef01e0d0f43e4fbda97ca812f1d7e7ad8d1d37709e6a619653afe8bf40a311fbbcac98ccffbe6704
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --color
2
2
  --require spec_helper
3
+ --format documentation
@@ -4,8 +4,10 @@ rvm:
4
4
  - 2.3.1
5
5
  - ruby-head
6
6
  gemfile:
7
- - gemfiles/rails_4_2.gemfile
8
- - gemfiles/rails_5_0.gemfile
7
+ - gemfiles/activerecord_4_0.gemfile
8
+ - gemfiles/activerecord_4_1.gemfile
9
+ - gemfiles/activerecord_4_2.gemfile
10
+ - gemfiles/activerecord_5_0.gemfile
9
11
  cache: bundler
10
12
  sudo: false
11
13
  before_install: gem install bundler -v 1.12.5
@@ -0,0 +1,5 @@
1
+ ## unreleased
2
+ [full changelog](http://github.com/sue445/rubicure/compare/v0.1.0...master)
3
+
4
+ ## v0.1.0
5
+ * first release
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # ActiveRecord::CompatibleLegacyMigration
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/activerecord/compatible_legacy_migration`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Compatible migration file between Rails 4.2 and 5+
6
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/activerecord-compatible_legacy_migration.svg)](https://badge.fury.io/rb/activerecord-compatible_legacy_migration)
7
6
  [![Build Status](https://travis-ci.org/sue445/activerecord-compatible_legacy_migration.svg?branch=master)](https://travis-ci.org/sue445/activerecord-compatible_legacy_migration)
8
7
  [![Code Climate](https://codeclimate.com/github/sue445/activerecord-compatible_legacy_migration/badges/gpa.svg)](https://codeclimate.com/github/sue445/activerecord-compatible_legacy_migration)
9
8
  [![Coverage Status](https://coveralls.io/repos/github/sue445/activerecord-compatible_legacy_migration/badge.svg?branch=master)](https://coveralls.io/github/sue445/activerecord-compatible_legacy_migration?branch=master)
@@ -25,9 +24,25 @@ Or install it yourself as:
25
24
 
26
25
  $ gem install activerecord-compatible_legacy_migration
27
26
 
27
+ ## Usecase
28
+ * gem including migration file (e.g. mountable engine)
29
+
28
30
  ## Usage
31
+ Use `ActiveRecord::CompatibleLegacyMigration.migration_class` instead of `ActiveRecord::Migration`
32
+
33
+ ### Example
34
+
35
+ ```ruby
36
+ class CreateUsers < ActiveRecord::CompatibleLegacyMigration.migration_class
37
+ def change
38
+ create_table :users do |t|
39
+ t.timestamps null: false
40
+ end
41
+ end
42
+ end
43
+ ```
29
44
 
30
- TODO: Write usage instructions here
45
+ see [ActiveRecord::CompatibleLegacyMigration](lib/active_record/compatible_legacy_migration.rb)
31
46
 
32
47
  ## Development
33
48
 
@@ -37,7 +52,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
37
52
 
38
53
  ## Contributing
39
54
 
40
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/activerecord-compatible_legacy_migration.
55
+ Bug reports and pull requests are welcome on GitHub at https://github.com/sue445/activerecord-compatible_legacy_migration.
41
56
 
42
57
 
43
58
  ## License
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 4.0.0"
4
+
5
+ gemspec path: '../'
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 4.1.0"
4
+
5
+ gemspec path: '../'
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module CompatibleLegacyMigration
3
- VERSION = "0.1.0.beta1"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-compatible_legacy_migration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.beta1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -133,6 +133,7 @@ files:
133
133
  - ".gitignore"
134
134
  - ".rspec"
135
135
  - ".travis.yml"
136
+ - CHANGELOG.md
136
137
  - Gemfile
137
138
  - LICENSE.txt
138
139
  - README.md
@@ -140,8 +141,10 @@ files:
140
141
  - activerecord-compatible_legacy_migration.gemspec
141
142
  - bin/console
142
143
  - bin/setup
143
- - gemfiles/rails_4_2.gemfile
144
- - gemfiles/rails_5_0.gemfile
144
+ - gemfiles/activerecord_4_0.gemfile
145
+ - gemfiles/activerecord_4_1.gemfile
146
+ - gemfiles/activerecord_4_2.gemfile
147
+ - gemfiles/activerecord_5_0.gemfile
145
148
  - lib/active_record/compatible_legacy_migration.rb
146
149
  - lib/active_record/compatible_legacy_migration/version.rb
147
150
  - lib/activerecord-compatible_legacy_migration.rb
@@ -160,9 +163,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
163
  version: '0'
161
164
  required_rubygems_version: !ruby/object:Gem::Requirement
162
165
  requirements:
163
- - - ">"
166
+ - - ">="
164
167
  - !ruby/object:Gem::Version
165
- version: 1.3.1
168
+ version: '0'
166
169
  requirements: []
167
170
  rubyforge_project:
168
171
  rubygems_version: 2.5.1