activerecord-simple_index_name 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: f1349b6bb5d2dd7d12b7ef3e0a4f067c556d4d5b2d3dc26ec5d38a080c2a1a09
4
- data.tar.gz: 26bcb5d314c5a1710c6693ee22f4174239733caa2758037563c80973414cf143
3
+ metadata.gz: 7e50274a424bd7bbeeed9d7513b5765f942f7c96be03a8f02e1c1500d019138c
4
+ data.tar.gz: 4e5159fb7eb1b34b764bb11912095700e7499a065d0e591764c070f8b344a375
5
5
  SHA512:
6
- metadata.gz: 81da0ed73a11e0c00ed6dad8c42a99569c70b43ff4501e005719874ee87390ae5a24f2efa0bd986d80f46edaab711dbcf43779966b0162586a527a965ec9dc12
7
- data.tar.gz: 19cff730581356afd9a47b4d140eb17035cb25fb2bc16baab68b7b1ffa16f123d1103b2f9755d89472a96f148fd6958c14779c286e72a99093bf29c75af4f50c
6
+ metadata.gz: cd4e7cd63434a6bc7b31d999f3ab4f6a4c838573ec2afafeec2cb6387d0275efd207e46e51a32758e100f35451ba3c754e28427ea81726b831b17acb286957ca
7
+ data.tar.gz: 409675660eac35364d4310794e413425bae3f7103390031c9fead0a5b02a59dd0b9a24941fb714398847ac52f8c88b961f1999d1d88db114418a2753f34ec35d
@@ -0,0 +1,136 @@
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 10 * * 5" # JST 19:00 (Fri)
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
+ - rubylang/ruby:master-nightly-bionic
33
+ gemfile:
34
+ - rails_5_0
35
+ - rails_5_1
36
+ - rails_5_2
37
+ - rails_6_0
38
+ - rails_6_1
39
+ include:
40
+ - ruby: rubylang/ruby:master-nightly-bionic
41
+ allow_failures: "true"
42
+
43
+ exclude:
44
+ # Rails 6.0+ requires Ruby 2.5+
45
+ - ruby: ruby:2.3
46
+ gemfile: rails_6_0
47
+ - ruby: ruby:2.4
48
+ gemfile: rails_6_0
49
+ - ruby: ruby:2.3
50
+ gemfile: rails_6_1
51
+ - ruby: ruby:2.4
52
+ gemfile: rails_6_1
53
+
54
+ # Rails 5.x doesn't work on Ruby 3.0+
55
+ - ruby: ruby:3.0
56
+ gemfile: rails_5_0
57
+ - ruby: ruby:3.0
58
+ gemfile: rails_5_1
59
+ - ruby: ruby:3.0
60
+ gemfile: rails_5_2
61
+
62
+ env:
63
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
64
+
65
+ steps:
66
+ - uses: actions/checkout@v2
67
+
68
+ - run: apt-get update && apt-get install -y libsqlite3-dev
69
+
70
+ - name: Cache vendor/bundle
71
+ uses: actions/cache@v1
72
+ id: cache_gem
73
+ with:
74
+ path: vendor/bundle
75
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ github.sha }}
76
+ restore-keys: |
77
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}-
78
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
79
+
80
+ - name: bundle update
81
+ run: |
82
+ set -xe
83
+ bundle config path vendor/bundle
84
+ bundle update --jobs $(nproc) --retry 3
85
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
86
+
87
+ - name: Setup Code Climate Test Reporter
88
+ uses: aktions/codeclimate-test-reporter@v1
89
+ with:
90
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
91
+ command: before-build
92
+ if: matrix.ruby >= 'ruby:2.4'
93
+ continue-on-error: true
94
+
95
+ - name: Run test
96
+ run: |
97
+ set -xe
98
+ bundle exec rspec
99
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
100
+
101
+ - name: Teardown Code Climate Test Reporter
102
+ uses: aktions/codeclimate-test-reporter@v1
103
+ with:
104
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
105
+ command: after-build
106
+ if: matrix.ruby >= 'ruby:2.4' && always()
107
+ continue-on-error: true
108
+
109
+ - name: Slack Notification (not success)
110
+ uses: lazy-actions/slatify@master
111
+ if: "! success()"
112
+ continue-on-error: true
113
+ with:
114
+ job_name: ${{ format('*build* ({0}, {1})', matrix.ruby, matrix.gemfile) }}
115
+ type: ${{ job.status }}
116
+ icon_emoji: ":octocat:"
117
+ url: ${{ secrets.SLACK_WEBHOOK }}
118
+ token: ${{ secrets.GITHUB_TOKEN }}
119
+
120
+ notify:
121
+ needs:
122
+ - test
123
+
124
+ runs-on: ubuntu-latest
125
+
126
+ steps:
127
+ - name: Slack Notification (success)
128
+ uses: lazy-actions/slatify@master
129
+ if: always()
130
+ continue-on-error: true
131
+ with:
132
+ job_name: '*build*'
133
+ type: ${{ job.status }}
134
+ icon_emoji: ":octocat:"
135
+ url: ${{ secrets.SLACK_WEBHOOK }}
136
+ token: ${{ secrets.GITHUB_TOKEN }}
data/CHANGELOG.md CHANGED
@@ -1,8 +1,15 @@
1
1
  # Change Log
2
2
 
3
3
  ## Unreleased
4
- [full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.0.0...master)
4
+ [full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.0.1...master)
5
5
 
6
+ ## v1.0.1
7
+ [full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.0.0...v1.0.1)
8
+
9
+ * Enable MFA requirement for gem releasing
10
+ * https://github.com/sue445/activerecord-simple_index_name/pull/73
11
+
12
+ ## v1.0.0
6
13
  ### Breaking changes :bomb:
7
14
  [full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v0.4.0...v1.0.0)
8
15
 
@@ -24,7 +31,7 @@
24
31
  * https://github.com/sue445/activerecord-simple_index_name/pull/30
25
32
 
26
33
  ### Other
27
- * Tiny
34
+ * Tiny
28
35
  * https://github.com/sue445/activerecord-simple_index_name/pull/29
29
36
  * https://github.com/sue445/activerecord-simple_index_name/pull/28
30
37
  * https://github.com/sue445/activerecord-simple_index_name/pull/27
@@ -35,7 +42,7 @@
35
42
  ### Enhancements
36
43
  * Support activerecord 5.0.0.beta2
37
44
  * https://github.com/sue445/activerecord-simple_index_name/pull/22
38
-
45
+
39
46
  ### Other
40
47
  * Keep ruby 2.3.x build on Travis CI
41
48
  * https://github.com/sue445/activerecord-simple_index_name/pull/25
@@ -61,13 +68,13 @@
61
68
  ### Other
62
69
  * Test with Rails 4.0.x
63
70
  * https://github.com/sue445/activerecord-simple_index_name/pull/19
64
- * Other tiny refactorings
71
+ * Other tiny refactorings
65
72
  * https://github.com/sue445/activerecord-simple_index_name/pull/14
66
73
  * https://github.com/sue445/activerecord-simple_index_name/pull/15
67
74
  * https://github.com/sue445/activerecord-simple_index_name/pull/16
68
75
  * https://github.com/sue445/activerecord-simple_index_name/pull/21
69
76
  * https://github.com/sue445/activerecord-simple_index_name/pull/23
70
77
  * https://github.com/sue445/activerecord-simple_index_name/pull/24
71
-
78
+
72
79
  ## v0.1.0
73
80
  * First release
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Shorten index name
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/activerecord-simple_index_name.svg)](https://badge.fury.io/rb/activerecord-simple_index_name)
6
- [![Build Status](https://travis-ci.org/sue445/activerecord-simple_index_name.svg?branch=master)](https://travis-ci.org/sue445/activerecord-simple_index_name)
6
+ [![Build Status](https://github.com/sue445/activerecord-simple_index_name/workflows/test/badge.svg?branch=master)](https://github.com/sue445/activerecord-simple_index_name/actions?query=workflow%3Atest)
7
7
  [![Coverage Status](https://coveralls.io/repos/sue445/activerecord-simple_index_name/badge.svg?branch=master&service=github)](https://coveralls.io/github/sue445/activerecord-simple_index_name?branch=master)
8
8
  [![Code Climate](https://codeclimate.com/github/sue445/activerecord-simple_index_name/badges/gpa.svg)](https://codeclimate.com/github/sue445/activerecord-simple_index_name)
9
9
 
@@ -14,6 +14,11 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/sue445/activerecord-simple_index_name"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
20
+ spec.metadata["rubygems_mfa_required"] = "true"
21
+
17
22
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
23
  spec.bindir = "exe"
19
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -24,9 +29,8 @@ Gem::Specification.new do |spec|
24
29
 
25
30
  spec.add_development_dependency "bundler"
26
31
  spec.add_development_dependency "coveralls"
27
- spec.add_development_dependency "pry-byebug"
28
32
  spec.add_development_dependency "rails"
29
- spec.add_development_dependency "rake", "~> 10.0"
33
+ spec.add_development_dependency "rake"
30
34
  spec.add_development_dependency "rspec"
31
35
  spec.add_development_dependency "rspec-power_assert"
32
36
  spec.add_development_dependency "simplecov"
@@ -1,5 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gem "rails", "~> 5.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
3
  gem "rails", "~> 5.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
3
  gem "rails", "~> 5.2.0"
4
+ gem "sqlite3", "~> 1.3.6"
4
5
 
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: '../'
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 6.1.0"
4
+
5
+ # c.f. https://github.com/rails/rails/blob/v6.1.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 SimpleIndexName
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-simple_index_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-06 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pry-byebug
70
+ name: rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rails
84
+ name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '10.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '10.0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: rspec
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -172,9 +158,9 @@ extensions: []
172
158
  extra_rdoc_files: []
173
159
  files:
174
160
  - ".coveralls.yml"
161
+ - ".github/workflows/test.yml"
175
162
  - ".gitignore"
176
163
  - ".rspec"
177
- - ".travis.yml"
178
164
  - CHANGELOG.md
179
165
  - Gemfile
180
166
  - LICENSE.txt
@@ -186,6 +172,8 @@ files:
186
172
  - gemfiles/rails_5_0.gemfile
187
173
  - gemfiles/rails_5_1.gemfile
188
174
  - gemfiles/rails_5_2.gemfile
175
+ - gemfiles/rails_6_0.gemfile
176
+ - gemfiles/rails_6_1.gemfile
189
177
  - lib/active_record/simple_index_name.rb
190
178
  - lib/active_record/simple_index_name/active_record_ext.rb
191
179
  - lib/active_record/simple_index_name/configuration.rb
@@ -198,8 +186,12 @@ files:
198
186
  homepage: https://github.com/sue445/activerecord-simple_index_name
199
187
  licenses:
200
188
  - MIT
201
- metadata: {}
202
- post_install_message:
189
+ metadata:
190
+ homepage_uri: https://github.com/sue445/activerecord-simple_index_name
191
+ source_code_uri: https://github.com/sue445/activerecord-simple_index_name
192
+ changelog_uri: https://github.com/sue445/activerecord-simple_index_name/blob/master/CHANGELOG.md
193
+ rubygems_mfa_required: 'true'
194
+ post_install_message:
203
195
  rdoc_options: []
204
196
  require_paths:
205
197
  - lib
@@ -214,8 +206,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
206
  - !ruby/object:Gem::Version
215
207
  version: '0'
216
208
  requirements: []
217
- rubygems_version: 3.0.1
218
- signing_key:
209
+ rubygems_version: 3.2.22
210
+ signing_key:
219
211
  specification_version: 4
220
212
  summary: Shorten index name
221
213
  test_files: []
data/.travis.yml DELETED
@@ -1,43 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3
4
- - 2.4
5
- - 2.5
6
- - 2.6
7
- - ruby-head
8
- gemfile:
9
- - gemfiles/rails_5_0.gemfile
10
- - gemfiles/rails_5_1.gemfile
11
- - gemfiles/rails_5_2.gemfile
12
- cache: bundler
13
- sudo: false
14
- before_install:
15
- - travis_retry gem update --system || travis_retry gem update --system 2.7.8
16
- - travis_retry gem install bundler --no-document -v 1.17.3
17
- before_script:
18
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
19
- - chmod +x ./cc-test-reporter
20
- - ./cc-test-reporter before-build
21
- script:
22
- - bundle exec rspec
23
- after_script:
24
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
25
- branches:
26
- only:
27
- - master
28
- notifications:
29
- email: false
30
- slack:
31
- secure: iJVdq7jPe/vHRBDRZhGOBrvUNqXAVWtfP6yBoZ58RaMcboelaNxZm15o4+EhTCwNb3Sz3wM3MXQo9oQngB31UNpleavg0xK315oFBsQQ24M6oMWdCR6PndWH3sJtf5CZvXUZ0hEZDPG2dkDGTfXF2HyhyotHI3FzrvXAjI8R8sJKxGRVAga0uDAfUntsS19SS8Ftwt6ob3VNKl5GKYElZ4U/gZ3n2e+I8dxiTy9YNBaydNLf33lZe3iZHTQbcRDxH5HbLof0FItGPEvoPJSxnqa6OyfbsTajhRUUOU2m2RInJjSHCliHV1F8nzPjotCl6N7OegO2HJ93FepsZ2dOul/Hbxkb0BuxFxYFgGfS0bHDb66V6JiqmLpwBi/QibP1kVEiP4vizLdX5b32fi/p1L7FRDX00qsYsjEdDyBH5WrWF4yTKTpNotwHmb/E4nFfbtme3jawvSJq5Kg1FL07H3pTP6nUgEKKyYq1FQhxHEGgKHMZYmUG+B7kILgQj3ZM0w7M09Hb2NMDuv7PEr7CbOw6x7ulVUu8ZfgpU7+jKUlnSS8xPN7/kso3hnSWA4PRlNt0Ef9ingUstNpb4wJYDiAmYD7NfFLf4K6CikkcgGXJbV/XYwszb8DKV39vIYDgW0VzREerixo4+SQE0v7FFF1ZQQbQ3yZaQ26UnlYm/Ag=
32
- matrix:
33
- allow_failures:
34
- - rvm: ruby-head
35
- include:
36
- - rvm: 2.6
37
- env: RUBYOPT="--jit"
38
- - rvm: ruby-head
39
- env: RUBYOPT="--jit"
40
-
41
- env:
42
- global:
43
- - CC_TEST_REPORTER_ID=900e51ca1a374ee25f9166b5eb3f2a1d86fa33ca47d4dee6e9746f4120fc7fef