activerecord-simple_index_name 0.4.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +28 -18
- data/CHANGELOG.md +8 -2
- data/README.md +2 -3
- data/activerecord-simple_index_name.gemspec +3 -4
- data/gemfiles/rails_5_0.gemfile +1 -2
- data/gemfiles/rails_5_1.gemfile +5 -0
- data/gemfiles/rails_5_2.gemfile +5 -0
- data/lib/active_record/simple_index_name/version.rb +1 -1
- metadata +21 -37
- data/gemfiles/rails_4_0.gemfile +0 -6
- data/gemfiles/rails_4_1.gemfile +0 -6
- data/gemfiles/rails_4_2.gemfile +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f1349b6bb5d2dd7d12b7ef3e0a4f067c556d4d5b2d3dc26ec5d38a080c2a1a09
|
4
|
+
data.tar.gz: 26bcb5d314c5a1710c6693ee22f4174239733caa2758037563c80973414cf143
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81da0ed73a11e0c00ed6dad8c42a99569c70b43ff4501e005719874ee87390ae5a24f2efa0bd986d80f46edaab711dbcf43779966b0162586a527a965ec9dc12
|
7
|
+
data.tar.gz: 19cff730581356afd9a47b4d140eb17035cb25fb2bc16baab68b7b1ffa16f123d1103b2f9755d89472a96f148fd6958c14779c286e72a99093bf29c75af4f50c
|
data/.travis.yml
CHANGED
@@ -1,33 +1,43 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.
|
4
|
-
- 2.
|
5
|
-
- 2.
|
6
|
-
-
|
3
|
+
- 2.3
|
4
|
+
- 2.4
|
5
|
+
- 2.5
|
6
|
+
- 2.6
|
7
|
+
- ruby-head
|
7
8
|
gemfile:
|
8
|
-
- gemfiles/
|
9
|
-
- gemfiles/
|
10
|
-
- gemfiles/
|
11
|
-
- gemfiles/rails_5_0.gemfile
|
9
|
+
- gemfiles/rails_5_0.gemfile
|
10
|
+
- gemfiles/rails_5_1.gemfile
|
11
|
+
- gemfiles/rails_5_2.gemfile
|
12
12
|
cache: bundler
|
13
13
|
sudo: false
|
14
|
-
before_install:
|
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
|
15
17
|
before_script:
|
16
|
-
-
|
17
|
-
-
|
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
|
18
21
|
script:
|
19
|
-
- bundle exec rspec
|
22
|
+
- bundle exec rspec
|
23
|
+
after_script:
|
24
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
20
25
|
branches:
|
21
26
|
only:
|
22
|
-
|
27
|
+
- master
|
23
28
|
notifications:
|
24
29
|
email: false
|
25
30
|
slack:
|
26
31
|
secure: iJVdq7jPe/vHRBDRZhGOBrvUNqXAVWtfP6yBoZ58RaMcboelaNxZm15o4+EhTCwNb3Sz3wM3MXQo9oQngB31UNpleavg0xK315oFBsQQ24M6oMWdCR6PndWH3sJtf5CZvXUZ0hEZDPG2dkDGTfXF2HyhyotHI3FzrvXAjI8R8sJKxGRVAga0uDAfUntsS19SS8Ftwt6ob3VNKl5GKYElZ4U/gZ3n2e+I8dxiTy9YNBaydNLf33lZe3iZHTQbcRDxH5HbLof0FItGPEvoPJSxnqa6OyfbsTajhRUUOU2m2RInJjSHCliHV1F8nzPjotCl6N7OegO2HJ93FepsZ2dOul/Hbxkb0BuxFxYFgGfS0bHDb66V6JiqmLpwBi/QibP1kVEiP4vizLdX5b32fi/p1L7FRDX00qsYsjEdDyBH5WrWF4yTKTpNotwHmb/E4nFfbtme3jawvSJq5Kg1FL07H3pTP6nUgEKKyYq1FQhxHEGgKHMZYmUG+B7kILgQj3ZM0w7M09Hb2NMDuv7PEr7CbOw6x7ulVUu8ZfgpU7+jKUlnSS8xPN7/kso3hnSWA4PRlNt0Ef9ingUstNpb4wJYDiAmYD7NfFLf4K6CikkcgGXJbV/XYwszb8DKV39vIYDgW0VzREerixo4+SQE0v7FFF1ZQQbQ3yZaQ26UnlYm/Ag=
|
27
32
|
matrix:
|
28
33
|
allow_failures:
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
3
|
## Unreleased
|
4
|
-
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/
|
4
|
+
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.0.0...master)
|
5
|
+
|
6
|
+
### Breaking changes :bomb:
|
7
|
+
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v0.4.0...v1.0.0)
|
8
|
+
|
9
|
+
* Drop support for Ruby 2.2 and Rails 4.2
|
10
|
+
* https://github.com/sue445/activerecord-simple_index_name/pull/50
|
5
11
|
|
6
12
|
## v0.4.0
|
7
13
|
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v0.3.0...v0.4.0)
|
@@ -44,7 +50,7 @@
|
|
44
50
|
* https://github.com/sue445/activerecord-simple_index_name/pull/17
|
45
51
|
* Move: `lib/activerecord/simple_index_name` -> `lib/active_record/simple_index_name`
|
46
52
|
* Rename: `Activerecord::SimpleIndexName` -> `ActiveRecord::SimpleIndexName`
|
47
|
-
* If use `require "activerecord/simple_index_name"`, change to `require "
|
53
|
+
* If use `require "activerecord/simple_index_name"`, change to `require "active_record/simple_index_name"`
|
48
54
|
|
49
55
|
### Enhancements
|
50
56
|
* Add `ActiveRecord::SimpleIndexName.config.auto_shorten` configuration
|
data/README.md
CHANGED
@@ -4,13 +4,12 @@ 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
6
|
[![Build Status](https://travis-ci.org/sue445/activerecord-simple_index_name.svg?branch=master)](https://travis-ci.org/sue445/activerecord-simple_index_name)
|
7
|
-
[![Dependency Status](https://gemnasium.com/sue445/activerecord-simple_index_name.svg)](https://gemnasium.com/sue445/activerecord-simple_index_name)
|
8
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)
|
9
8
|
[![Code Climate](https://codeclimate.com/github/sue445/activerecord-simple_index_name/badges/gpa.svg)](https://codeclimate.com/github/sue445/activerecord-simple_index_name)
|
10
9
|
|
11
10
|
## Requirements
|
12
|
-
* Ruby 2.
|
13
|
-
* activerecord
|
11
|
+
* Ruby 2.3+
|
12
|
+
* activerecord 5.0+
|
14
13
|
|
15
14
|
## Supported frameworks
|
16
15
|
* [Ruby on Rails](https://github.com/rails/rails)
|
@@ -19,17 +19,16 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "activerecord"
|
23
|
-
spec.add_dependency "activesupport"
|
22
|
+
spec.add_dependency "activerecord", ">= 5.0.0"
|
23
|
+
spec.add_dependency "activesupport", ">= 5.0.0"
|
24
24
|
|
25
|
-
spec.add_development_dependency "activerecord-compatible_legacy_migration"
|
26
25
|
spec.add_development_dependency "bundler"
|
27
26
|
spec.add_development_dependency "coveralls"
|
28
|
-
spec.add_development_dependency "codeclimate-test-reporter"
|
29
27
|
spec.add_development_dependency "pry-byebug"
|
30
28
|
spec.add_development_dependency "rails"
|
31
29
|
spec.add_development_dependency "rake", "~> 10.0"
|
32
30
|
spec.add_development_dependency "rspec"
|
33
31
|
spec.add_development_dependency "rspec-power_assert"
|
32
|
+
spec.add_development_dependency "simplecov"
|
34
33
|
spec.add_development_dependency "sqlite3"
|
35
34
|
end
|
data/gemfiles/rails_5_0.gemfile
CHANGED
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: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,30 +16,30 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 5.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 5.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 5.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 5.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: coveralls
|
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:
|
70
|
+
name: pry-byebug
|
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:
|
84
|
+
name: rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,21 +95,21 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
103
|
+
version: '10.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
110
|
+
version: '10.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -123,21 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '10.0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '10.0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rspec
|
126
|
+
name: rspec-power_assert
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
129
|
- - ">="
|
@@ -151,7 +137,7 @@ dependencies:
|
|
151
137
|
- !ruby/object:Gem::Version
|
152
138
|
version: '0'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
140
|
+
name: simplecov
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - ">="
|
@@ -197,10 +183,9 @@ files:
|
|
197
183
|
- activerecord-simple_index_name.gemspec
|
198
184
|
- bin/console
|
199
185
|
- bin/setup
|
200
|
-
- gemfiles/rails_4_0.gemfile
|
201
|
-
- gemfiles/rails_4_1.gemfile
|
202
|
-
- gemfiles/rails_4_2.gemfile
|
203
186
|
- gemfiles/rails_5_0.gemfile
|
187
|
+
- gemfiles/rails_5_1.gemfile
|
188
|
+
- gemfiles/rails_5_2.gemfile
|
204
189
|
- lib/active_record/simple_index_name.rb
|
205
190
|
- lib/active_record/simple_index_name/active_record_ext.rb
|
206
191
|
- lib/active_record/simple_index_name/configuration.rb
|
@@ -229,8 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
214
|
- !ruby/object:Gem::Version
|
230
215
|
version: '0'
|
231
216
|
requirements: []
|
232
|
-
|
233
|
-
rubygems_version: 2.5.1
|
217
|
+
rubygems_version: 3.0.1
|
234
218
|
signing_key:
|
235
219
|
specification_version: 4
|
236
220
|
summary: Shorten index name
|
data/gemfiles/rails_4_0.gemfile
DELETED
data/gemfiles/rails_4_1.gemfile
DELETED