activerecord-compatible_legacy_migration 0.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: da24d49fe5b5a6f57a17cbad9497428f73a22b89
4
+ data.tar.gz: 3c1f8456e6cceae92874d41771a6e8ed936627a3
5
+ SHA512:
6
+ metadata.gz: 50f9cf8f15d62af56c49dc5a55a150c2b5a720001485861b04b1268b5bd597a32efa777900437c31a7718561315ec733fafa57c6b1e37a50bcc9675fb0a2d7c6
7
+ data.tar.gz: 1c1e7b6b0cbfbb32ebb1cad3d2f066451be35170ba207c7b73f8a8fe1cb97aface8521b567344fc212fddcd0c063df3a2752c1064e0e7c8e6422332f25fdcb80
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ repo_token: Y1vF41wKJDSiVzOr0xRz60DUijfqn6gwm
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.sqlite3
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,26 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.5
4
+ - 2.3.1
5
+ - ruby-head
6
+ gemfile:
7
+ - gemfiles/rails_4_2.gemfile
8
+ - gemfiles/rails_5_0.gemfile
9
+ cache: bundler
10
+ sudo: false
11
+ before_install: gem install bundler -v 1.12.5
12
+ before_script:
13
+ - export CODECLIMATE_REPO_TOKEN=87a9b1085def76711dabebf564293d7907986c6adb0a92233bceaaf4b212687d
14
+ - export CI=true
15
+ script:
16
+ - bundle exec rspec
17
+ branches:
18
+ only:
19
+ - master
20
+ notifications:
21
+ email: false
22
+ slack:
23
+ secure: A0voR9CpjyAbwo/8l3YytjvUacNe/6KQuCn0F6g711bbsmDdQiv+DYSuLcDpvq6y8o0QGFdJ2UgPtP3nkG96bFyhmbm6CfpERgwR+/1Hg5Tovw3lFny5ud1Y9xfFUQI7apmp4HkUatxIU7/0rjmqPHIXMugyv6dv4qqADJ0ma5H+CLlyIvrqXRZrFzUWqFn1/pfkfb7jahZ0MIk5NBAvAmvupaV5GEGzWHlM3/xdIQYijbYoveaKBaRe//Sj98EzGxwBMKrJjkSFuUBoano6GGc4IZ6B6yHfEfSziW0hp3+dqGBCugXThAWLyNxAeBrWd30eRsUMgVe33ry4gaszktrcoKx+CcMUyniKLUqFP/Y/f0fkvr6P2i8GctYKbY+tMgfeDAC6F0PET6nkx+e8xQYt+HqywiqXMjLUQSXE7Uw4n/0O/8QkB3Ylzr4gmSIezBeZM4+FDClWQyqd6V0LE15sD4+4s+QKtnJXazoD3pFj5lYLGfc4nYyRCy1MlgezjQ90Ji8Ol4POLLZbJgEmkgIhyr4nus64kLfFhSTwpCtFKq8FqkJIIO381cFlWb+EsO4a4rWVOVPe2niKp7+fO9L2l46ZSoqAEP2dvC9uhERDOe38ZzL3g1zKiisSYpvO+zO8k0vjpJJEm8DDtqpdWjRxtcaAW+XyGHFLEUFcgJ4=
24
+ matrix:
25
+ allow_failures:
26
+ - rvm: ruby-head
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in activerecord-compatible_legacy_migration.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 sue445
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # ActiveRecord::CompatibleLegacyMigration
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
6
+
7
+ [![Build Status](https://travis-ci.org/sue445/activerecord-compatible_legacy_migration.svg?branch=master)](https://travis-ci.org/sue445/activerecord-compatible_legacy_migration)
8
+ [![Code Climate](https://codeclimate.com/github/sue445/activerecord-compatible_legacy_migration/badges/gpa.svg)](https://codeclimate.com/github/sue445/activerecord-compatible_legacy_migration)
9
+ [![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)
10
+ [![Dependency Status](https://gemnasium.com/badges/github.com/sue445/activerecord-compatible_legacy_migration.svg)](https://gemnasium.com/github.com/sue445/activerecord-compatible_legacy_migration)
11
+
12
+ ## Installation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ ```ruby
17
+ gem 'activerecord-compatible_legacy_migration'
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install activerecord-compatible_legacy_migration
27
+
28
+ ## Usage
29
+
30
+ TODO: Write usage instructions here
31
+
32
+ ## Development
33
+
34
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
35
+
36
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
37
+
38
+ ## Contributing
39
+
40
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/activerecord-compatible_legacy_migration.
41
+
42
+
43
+ ## License
44
+
45
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
46
+
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'active_record/compatible_legacy_migration/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "activerecord-compatible_legacy_migration"
8
+ spec.version = ActiveRecord::CompatibleLegacyMigration::VERSION
9
+ spec.authors = ["sue445"]
10
+ spec.email = ["sue445@sue445.net"]
11
+
12
+ spec.summary = %q{Compatible migration file between Rails 4.2 and 5+}
13
+ spec.description = %q{Compatible migration file between Rails 4.2 and 5+}
14
+ spec.homepage = "https://github.com/sue445/activerecord-compatible_legacy_migration"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency "activerecord", ">= 4.0.0"
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.12"
25
+ spec.add_development_dependency "coveralls"
26
+ spec.add_development_dependency "codeclimate-test-reporter"
27
+ spec.add_development_dependency "rails"
28
+ spec.add_development_dependency "rake", "~> 10.0"
29
+ spec.add_development_dependency "rspec"
30
+ spec.add_development_dependency "sqlite3"
31
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "active_record/compatible_legacy_migration"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 4.2.0"
4
+
5
+ gemspec path: '../'
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 5.0.0"
4
+
5
+ gemspec path: '../'
@@ -0,0 +1,14 @@
1
+ require "active_record/compatible_legacy_migration/version"
2
+ require "active_record"
3
+
4
+ module ActiveRecord
5
+ module CompatibleLegacyMigration
6
+ def self.migration_class
7
+ if ActiveRecord::VERSION::MAJOR >= 5
8
+ ActiveRecord::Migration[4.2]
9
+ else
10
+ ActiveRecord::Migration
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,5 @@
1
+ module ActiveRecord
2
+ module CompatibleLegacyMigration
3
+ VERSION = "0.1.0.beta1"
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ require "active_record/compatible_legacy_migration"
metadata ADDED
@@ -0,0 +1,172 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activerecord-compatible_legacy_migration
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.beta1
5
+ platform: ruby
6
+ authors:
7
+ - sue445
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-08-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activerecord
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 4.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: coveralls
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: codeclimate-test-reporter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '10.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '10.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: sqlite3
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: Compatible migration file between Rails 4.2 and 5+
126
+ email:
127
+ - sue445@sue445.net
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".coveralls.yml"
133
+ - ".gitignore"
134
+ - ".rspec"
135
+ - ".travis.yml"
136
+ - Gemfile
137
+ - LICENSE.txt
138
+ - README.md
139
+ - Rakefile
140
+ - activerecord-compatible_legacy_migration.gemspec
141
+ - bin/console
142
+ - bin/setup
143
+ - gemfiles/rails_4_2.gemfile
144
+ - gemfiles/rails_5_0.gemfile
145
+ - lib/active_record/compatible_legacy_migration.rb
146
+ - lib/active_record/compatible_legacy_migration/version.rb
147
+ - lib/activerecord-compatible_legacy_migration.rb
148
+ homepage: https://github.com/sue445/activerecord-compatible_legacy_migration
149
+ licenses:
150
+ - MIT
151
+ metadata: {}
152
+ post_install_message:
153
+ rdoc_options: []
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ required_rubygems_version: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">"
164
+ - !ruby/object:Gem::Version
165
+ version: 1.3.1
166
+ requirements: []
167
+ rubyforge_project:
168
+ rubygems_version: 2.5.1
169
+ signing_key:
170
+ specification_version: 4
171
+ summary: Compatible migration file between Rails 4.2 and 5+
172
+ test_files: []