activerecord-compatible_legacy_migration 0.1.1 → 0.1.2

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
- SHA1:
3
- metadata.gz: 45fa2ddc38dc64b7b0e45adaa5e5482c0af8d7ab
4
- data.tar.gz: 9b8a00afc7a04d6f37f0a6abc764badb0807aae4
2
+ SHA256:
3
+ metadata.gz: 9ea301a952c3214b2007518ba137d2ce224c81ff0dc8dbb91218cb68a27e37c8
4
+ data.tar.gz: 0a5cccdb9745f597f9e2c1c42e81771e1fc855a5284ce4c1e08e9665b58a2566
5
5
  SHA512:
6
- metadata.gz: 59192be9d497c2e40bd6322d5f970013ed10796b6a9f04ed007403c92fe5ae40dcc91191a4131b4ff63199bcdd7da847c3b3e0becd77cef8de5cb89c1f1d35b9
7
- data.tar.gz: eae36152f416a2937e2a80e7b7d7d2c75fabbb60cca08e4d57e132d915feade62a4eb216d9aa81dbf28a7aac90b94dcd440df6456027a581a2352cd868b58bda
6
+ metadata.gz: 183e01813bb3c2e382c9db2b267360f6d304f2a1490bd2c9d75a95a1552c47914a19689e22c874104d2c33fd0d5adfb3b918e737c08e97c9cd9e10a5ed2b2be0
7
+ data.tar.gz: 615d1fbd26f15423dbd5ade9c6e4ebfbd7984c8f1821c1cb06367849f0bdbbc32828a665f5fc8809fa969556fd69fef3a5ecfcc5fe660015bfe4faf8b5963ee9
@@ -0,0 +1,138 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
12
+ schedule:
13
+ - cron: "0 19 * * 5" # JST 4:00 (Sat)
14
+
15
+ jobs:
16
+ test:
17
+ runs-on: ubuntu-latest
18
+
19
+ container: ${{ matrix.ruby }}
20
+
21
+ strategy:
22
+ fail-fast: false
23
+
24
+ matrix:
25
+ ruby:
26
+ - ruby:2.3
27
+ - ruby:2.4
28
+ - ruby:2.5
29
+ - ruby:2.6
30
+ - ruby:2.7
31
+ - ruby:3.0
32
+ gemfile:
33
+ - rails_4_0
34
+ - rails_4_1
35
+ - rails_4_2
36
+ - rails_5_0
37
+ - rails_5_1
38
+ - rails_5_2
39
+ - rails_6_0
40
+ exclude:
41
+ # Rails 6.0 requires Ruby 2.5+
42
+ - ruby: ruby:2.3
43
+ gemfile: rails_6_0
44
+ - ruby: ruby:2.4
45
+ gemfile: rails_6_0
46
+
47
+ # Ruby 2.7.0 contains bundler 2.1.2, but Rails 4.x locks with bundler 1.x
48
+ - ruby: ruby:2.7
49
+ gemfile: rails_4_0
50
+ - ruby: ruby:2.7
51
+ gemfile: rails_4_1
52
+ - ruby: ruby:2.7
53
+ gemfile: rails_4_2
54
+
55
+ # Rails 4.x and 5.x doesn't work on Ruby 3.0+
56
+ - ruby: ruby:3.0
57
+ gemfile: rails_4_0
58
+ - ruby: ruby:3.0
59
+ gemfile: rails_4_1
60
+ - ruby: ruby:3.0
61
+ gemfile: rails_4_2
62
+ - ruby: ruby:3.0
63
+ gemfile: rails_5_0
64
+ - ruby: ruby:3.0
65
+ gemfile: rails_5_1
66
+ - ruby: ruby:3.0
67
+ gemfile: rails_5_2
68
+
69
+ env:
70
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
71
+
72
+ steps:
73
+ - uses: actions/checkout@v2
74
+ - run: apt-get install libsqlite3-dev -y
75
+ - name: Cache vendor/bundle
76
+ uses: actions/cache@v1
77
+ id: cache_gem
78
+ with:
79
+ path: vendor/bundle
80
+ key: v1-gem-${{ runner.os }}-${{ env.RBENV_VERSION }}-${{ github.sha }}
81
+ restore-keys: |
82
+ v1-gem-${{ runner.os }}-${{ env.RBENV_VERSION }}-
83
+
84
+ - name: bundle update
85
+ run: |
86
+ set -xe
87
+ bundle config path vendor/bundle
88
+ bundle update --jobs $(nproc) --retry 3
89
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
90
+
91
+ - name: Setup Code Climate Test Reporter
92
+ uses: aktions/codeclimate-test-reporter@v1
93
+ with:
94
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
95
+ command: before-build
96
+ if: matrix.ruby >= 'ruby:2.4'
97
+ continue-on-error: true
98
+
99
+ - name: Run test
100
+ run: |
101
+ set -xe
102
+ bundle exec rspec
103
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
104
+
105
+ - name: Teardown Code Climate Test Reporter
106
+ uses: aktions/codeclimate-test-reporter@v1
107
+ with:
108
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
109
+ command: after-build
110
+ if: matrix.ruby >= 'ruby:2.4' && always()
111
+ continue-on-error: true
112
+
113
+ - name: Slack Notification (not success)
114
+ uses: lazy-actions/slatify@master
115
+ if: "! success()"
116
+ continue-on-error: true
117
+ with:
118
+ job_name: ${{ format('*build* ({0}, {1})', matrix.ruby, matrix.gemfile) }}
119
+ type: ${{ job.status }}
120
+ icon_emoji: ":octocat:"
121
+ url: ${{ secrets.SLACK_WEBHOOK }}
122
+ token: ${{ secrets.GITHUB_TOKEN }}
123
+
124
+ notify:
125
+ needs: test
126
+ runs-on: ubuntu-latest
127
+
128
+ steps:
129
+ - name: Slack Notification (success)
130
+ uses: lazy-actions/slatify@master
131
+ if: always()
132
+ continue-on-error: true
133
+ with:
134
+ job_name: '*build*'
135
+ type: ${{ job.status }}
136
+ icon_emoji: ":octocat:"
137
+ url: ${{ secrets.SLACK_WEBHOOK }}
138
+ token: ${{ secrets.GITHUB_TOKEN }}
data/CHANGELOG.md CHANGED
@@ -1,8 +1,14 @@
1
1
  ## unreleased
2
- [full changelog](http://github.com/sue445/rubicure/compare/v0.1.1...master)
2
+ [full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.2...master)
3
+
4
+ ## v0.1.2
5
+ [full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.1...v0.1.2)
6
+
7
+ * Enable MFA requirement for gem releasing
8
+ * https://github.com/sue445/activerecord-compatible_legacy_migration/pull/49
3
9
 
4
10
  ## v0.1.1
5
- [full changelog](http://github.com/sue445/rubicure/compare/v0.1.0...v0.1.1)
11
+ [full changelog](http://github.com/sue445/activerecord-compatible_legacy_migration/compare/v0.1.0...v0.1.1)
6
12
 
7
13
  * Add default_version to configuration
8
14
  * https://github.com/sue445/activerecord-compatible_legacy_migration/pull/4
data/README.md CHANGED
@@ -3,10 +3,9 @@
3
3
  Compatible migration file between Rails 4.2 and 5+
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/activerecord-compatible_legacy_migration.svg)](https://badge.fury.io/rb/activerecord-compatible_legacy_migration)
6
- [![Build Status](https://travis-ci.org/sue445/activerecord-compatible_legacy_migration.svg?branch=master)](https://travis-ci.org/sue445/activerecord-compatible_legacy_migration)
6
+ [![Build Status](https://github.com/sue445/activerecord-compatible_legacy_migration/workflows/test/badge.svg?branch=master)](https://github.com/sue445/activerecord-compatible_legacy_migration/actions?query=workflow%3Atest)
7
7
  [![Code Climate](https://codeclimate.com/github/sue445/activerecord-compatible_legacy_migration/badges/gpa.svg)](https://codeclimate.com/github/sue445/activerecord-compatible_legacy_migration)
8
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)
9
- [![Dependency Status](https://gemnasium.com/badges/github.com/sue445/activerecord-compatible_legacy_migration.svg)](https://gemnasium.com/github.com/sue445/activerecord-compatible_legacy_migration)
10
9
 
11
10
  ## Installation
12
11
 
@@ -14,6 +14,18 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/sue445/activerecord-compatible_legacy_migration"
15
15
  spec.license = "MIT"
16
16
 
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = spec.homepage
22
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
23
+ spec.metadata["rubygems_mfa_required"] = "true"
24
+ else
25
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
26
+ 'public gem pushes.'
27
+ end
28
+
17
29
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
30
  spec.bindir = "exe"
19
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -21,11 +33,11 @@ Gem::Specification.new do |spec|
21
33
 
22
34
  spec.add_dependency "activerecord", ">= 4.0.0"
23
35
 
24
- spec.add_development_dependency "bundler", "~> 1.12"
36
+ spec.add_development_dependency "bundler", ">= 1.12"
25
37
  spec.add_development_dependency "coveralls"
26
- spec.add_development_dependency "codeclimate-test-reporter"
27
38
  spec.add_development_dependency "rails"
28
- spec.add_development_dependency "rake", "~> 10.0"
39
+ spec.add_development_dependency "rake"
29
40
  spec.add_development_dependency "rspec"
41
+ spec.add_development_dependency "simplecov"
30
42
  spec.add_development_dependency "sqlite3"
31
43
  end
@@ -1,5 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "activerecord", "~> 5.0.0"
3
+ gem "rails", "~> 4.0.0"
4
+ gem "sqlite3", "~> 1.3.6"
4
5
 
5
6
  gemspec path: '../'
@@ -1,5 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "activerecord", "~> 4.0.0"
3
+ gem "rails", "~> 4.1.0"
4
+ gem "sqlite3", "~> 1.3.6"
4
5
 
5
6
  gemspec path: '../'
@@ -1,5 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "activerecord", "~> 4.1.0"
3
+ gem "rails", "~> 4.2.0"
4
+ gem "sqlite3", "~> 1.3.6"
4
5
 
5
6
  gemspec path: '../'
@@ -1,5 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "activerecord", "~> 4.2.0"
3
+ gem "rails", "~> 5.0.0"
4
+ gem "sqlite3", "~> 1.3.6"
4
5
 
5
6
  gemspec path: '../'
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 5.1.0"
4
+ gem "sqlite3", "~> 1.3.6"
5
+
6
+ gemspec path: '../'
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 5.2.0"
4
+ gem "sqlite3", "~> 1.3.6"
5
+
6
+ gemspec path: '../'
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 6.0.0"
4
+
5
+ # c.f. https://github.com/rails/rails/blob/v6.0.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
6
+ gem "sqlite3", "~> 1.4"
7
+
8
+ gemspec path: '../'
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module CompatibleLegacyMigration
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-compatible_legacy_migration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-08 00:00:00.000000000 Z
11
+ date: 2021-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.12'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.12'
41
41
  - !ruby/object:Gem::Dependency
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: codeclimate-test-reporter
56
+ name: rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rails
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,21 +81,21 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rake
84
+ name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '10.0'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rspec
98
+ name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -130,9 +130,9 @@ extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
132
  - ".coveralls.yml"
133
+ - ".github/workflows/test.yml"
133
134
  - ".gitignore"
134
135
  - ".rspec"
135
- - ".travis.yml"
136
136
  - CHANGELOG.md
137
137
  - Gemfile
138
138
  - LICENSE.txt
@@ -141,10 +141,13 @@ files:
141
141
  - activerecord-compatible_legacy_migration.gemspec
142
142
  - bin/console
143
143
  - bin/setup
144
- - gemfiles/activerecord_4_0.gemfile
145
- - gemfiles/activerecord_4_1.gemfile
146
- - gemfiles/activerecord_4_2.gemfile
147
- - gemfiles/activerecord_5_0.gemfile
144
+ - gemfiles/rails_4_0.gemfile
145
+ - gemfiles/rails_4_1.gemfile
146
+ - gemfiles/rails_4_2.gemfile
147
+ - gemfiles/rails_5_0.gemfile
148
+ - gemfiles/rails_5_1.gemfile
149
+ - gemfiles/rails_5_2.gemfile
150
+ - gemfiles/rails_6_0.gemfile
148
151
  - lib/active_record/compatible_legacy_migration.rb
149
152
  - lib/active_record/compatible_legacy_migration/configuration.rb
150
153
  - lib/active_record/compatible_legacy_migration/version.rb
@@ -152,8 +155,12 @@ files:
152
155
  homepage: https://github.com/sue445/activerecord-compatible_legacy_migration
153
156
  licenses:
154
157
  - MIT
155
- metadata: {}
156
- post_install_message:
158
+ metadata:
159
+ homepage_uri: https://github.com/sue445/activerecord-compatible_legacy_migration
160
+ source_code_uri: https://github.com/sue445/activerecord-compatible_legacy_migration
161
+ changelog_uri: https://github.com/sue445/activerecord-compatible_legacy_migration/blob/master/CHANGELOG.md
162
+ rubygems_mfa_required: 'true'
163
+ post_install_message:
157
164
  rdoc_options: []
158
165
  require_paths:
159
166
  - lib
@@ -168,9 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
175
  - !ruby/object:Gem::Version
169
176
  version: '0'
170
177
  requirements: []
171
- rubyforge_project:
172
- rubygems_version: 2.5.1
173
- signing_key:
178
+ rubygems_version: 3.2.22
179
+ signing_key:
174
180
  specification_version: 4
175
181
  summary: Compatible migration file between Rails 4.2 and 5+
176
182
  test_files: []
data/.travis.yml DELETED
@@ -1,28 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.5
4
- - 2.3.1
5
- - ruby-head
6
- 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
11
- cache: bundler
12
- sudo: false
13
- before_install: gem install bundler -v 1.12.5
14
- before_script:
15
- - export CODECLIMATE_REPO_TOKEN=87a9b1085def76711dabebf564293d7907986c6adb0a92233bceaaf4b212687d
16
- - export CI=true
17
- script:
18
- - bundle exec rspec
19
- branches:
20
- only:
21
- - master
22
- notifications:
23
- email: false
24
- slack:
25
- 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=
26
- matrix:
27
- allow_failures:
28
- - rvm: ruby-head