ar-enum 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44b09eea4d7318b86ae2827cf5901000bd84db76b5116ffeefd95c153e7a7f22
4
- data.tar.gz: cd88b176ee53183d2fe24f2b5bc96fdb6727199b535295842eca3ac5baafd3c1
3
+ metadata.gz: d7a647f542cd5db3a64b56e35fa262c79b35b2f6a6aa4e6a1acaee79e04010c0
4
+ data.tar.gz: f893db3693548e1fc78e93d998f21bbdc8613a8ef0e7127fc3efb9cc0313332b
5
5
  SHA512:
6
- metadata.gz: 8c519cdb0dc0093677912069e309572cd3a2891250873e48239e64a4560069082c58ef4eb0b99c0242e9ead15e4f4a7a2d82d74f00f1c8f7b317ea8166bed523
7
- data.tar.gz: c885c484124a77d95d99a29cbf3cf6bc0828cb2d97ab0acc6e84ef14ba587cd03651861f3bac416e9592673f75dc00eb3b25f8f4dddd72ca38807dbd4fe5c6cb
6
+ metadata.gz: 2e97f11904a082300cd91c8f027f84af9570e1adf3d67b2a3cfb97a310922b65f853389c41b27df1ba30f9a037b02e4cb69cdbe686893e0b29802943ea2ec81b
7
+ data.tar.gz: e8a3bd1dbdceab1ddc77a14b933b69d3b5a458b81f137070e3b0def28ac9b00334293be7ac0d47a56d42bf12136d3755f13a5eea796843d6a38d2299a76ca57d
data/.github/FUNDING.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  # These are supported funding model platforms
2
-
2
+ ---
3
3
  github: [fnando]
4
4
  custom: ["https://paypal.me/nandovieira/🍕"]
data/.rubocop.yml CHANGED
@@ -9,9 +9,8 @@ AllCops:
9
9
  Naming/FileName:
10
10
  Exclude:
11
11
  - lib/ar-enum.rb
12
-
13
- Metrics:
14
- Enabled: false
12
+ - vendor/**/*
13
+ - gemfiles/**/*
15
14
 
16
15
  Layout/LineLength:
17
16
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -11,6 +11,11 @@ Prefix your message with one of the following:
11
11
  - [Security] in case of vulnerabilities.
12
12
  -->
13
13
 
14
+ ## v0.5.0
15
+
16
+ - [Fixed] Add version restriction to ActiveRecord >= 6.0 and < 7.0, as Rails 7
17
+ now supports Postgres enums out of the box.
18
+
14
19
  ## v0.4.0 - 2021-09-16
15
20
 
16
21
  - [Changed] Sort enums by name.
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020 Nando Vieira
3
+ Copyright (c) 2015 Nando Vieira
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # ar-enum
2
2
 
3
3
  [![Tests](https://github.com/fnando/ar-enum/workflows/Tests/badge.svg)](https://github.com/fnando/ar-enum)
4
- [![Code Climate](https://codeclimate.com/github/fnando/ar-enum/badges/gpa.svg)](https://codeclimate.com/github/fnando/ar-enum)
5
4
  [![Gem](https://img.shields.io/gem/v/ar-enum.svg)](https://rubygems.org/gems/ar-enum)
6
5
  [![Gem](https://img.shields.io/gem/dt/ar-enum.svg)](https://rubygems.org/gems/ar-enum)
7
6
 
8
- Add support for creating `ENUM` types in PostgreSQL with ActiveRecord.
7
+ Add support for creating `ENUM` types in PostgreSQL with ActiveRecord. This gem
8
+ is no longer required for Rails 7.0+.
9
9
 
10
10
  ## Installation
11
11
 
data/ar-enum.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_dependency "activerecord", ">= 6.0.0"
25
+ spec.add_dependency "activerecord", ">= 6.0.0", "< 7.0.0"
26
26
 
27
27
  spec.add_development_dependency "bundler"
28
28
  spec.add_development_dependency "minitest-utils"
@@ -32,4 +32,5 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency "rubocop"
33
33
  spec.add_development_dependency "rubocop-fnando"
34
34
  spec.add_development_dependency "simplecov"
35
+ spec.metadata["rubygems_mfa_required"] = "true"
35
36
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AR
4
4
  module Enum
5
- VERSION = "0.4.0"
5
+ VERSION = "0.5.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar-enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-16 00:00:00.000000000 Z
11
+ date: 2022-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 6.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 7.0.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 6.0.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 7.0.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: bundler
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -150,19 +156,16 @@ files:
150
156
  - ".github/workflows/tests.yml"
151
157
  - ".gitignore"
152
158
  - ".rubocop.yml"
153
- - ".travis.yml"
154
159
  - CHANGELOG.md
155
160
  - CODE_OF_CONDUCT.md
156
161
  - CONTRIBUTING.md
157
162
  - Gemfile
158
163
  - LICENSE.md
159
- - LICENSE.txt
160
164
  - README.md
161
165
  - Rakefile
162
166
  - ar-enum.gemspec
163
167
  - bin/console
164
168
  - bin/setup
165
- - gemfiles/5_2.gemfile
166
169
  - gemfiles/6_0.gemfile
167
170
  - gemfiles/6_1.gemfile
168
171
  - lib/ar-enum.rb
@@ -174,7 +177,8 @@ files:
174
177
  homepage: https://rubygems.org/gems/ar-enum
175
178
  licenses:
176
179
  - MIT
177
- metadata: {}
180
+ metadata:
181
+ rubygems_mfa_required: 'true'
178
182
  post_install_message:
179
183
  rdoc_options: []
180
184
  require_paths:
@@ -190,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
194
  - !ruby/object:Gem::Version
191
195
  version: '0'
192
196
  requirements: []
193
- rubygems_version: 3.2.22
197
+ rubygems_version: 3.3.3
194
198
  signing_key:
195
199
  specification_version: 4
196
200
  summary: Add support for creating `ENUM` types in PostgreSQL with ActiveRecord
data/.travis.yml DELETED
@@ -1,35 +0,0 @@
1
- ---
2
- language: ruby
3
- dist: xenial
4
- addons:
5
- postgresql: "11"
6
- apt:
7
- packages:
8
- - postgresql-11
9
- - postgresql-client-11
10
- cache: bundler
11
- before_install:
12
- - gem install bundler
13
- - sudo service postgresql stop
14
- - sed -e 's/^port.*/port = 5432/' /etc/postgresql/11/main/postgresql.conf > postgresql.conf
15
- - sudo chown postgres postgresql.conf
16
- - sudo mv postgresql.conf /etc/postgresql/11/main
17
- - sudo service postgresql start 11
18
- before_script:
19
- - createdb test
20
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
21
- - chmod +x ./cc-test-reporter
22
- - "./cc-test-reporter before-build"
23
- after_script:
24
- - "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
25
- gemfile:
26
- - gemfiles/activerecord_6_0.gemfile
27
- - gemfiles/activerecord_5_2.gemfile
28
- rvm:
29
- - 2.6.5
30
- - 2.5.7
31
- notifications:
32
- email: false
33
- env:
34
- global:
35
- secure: ItWMub2Jbp/Xey50SAPWeYzZcKoEFORj716NmbQI1NbnOzqEDOF3pDZd9HHCxHoBA6gYYDIGWFCa15ymfugzBJ/eGaL7qzEF098xU7hwgG0DOlU31RAPOwn7ov3merGVJOttWOgYYmTR7pxyyg5iMc7/IzU5ag1As+Sz8s7vq9uR2HRdRALvuRFAS1Vty5lV1dINVNIs2vSHMIdgwWCaraWno8R3WupchXgkoA4WGwK6+n99ZUfuCv6kLwAJhlH3rWXEuwT49ILGRCYUp3rRZ/wawclUviYjxgVvS5xeEGzsh3X9AMkbq68up9zxcG1KYeL+EKxLDL6ieC2OtaqMst3k7UariK5QWro00TdGdNpw2M83d0ca81PUW8lpyZVvOJ8STDFR3Dtt8emaz/F0rHiBJlMP1vKWYxgQgpIEIv+WQV2YcVJBg0NNjQ8Ei6ujGG2s8pJNvJBudK/jL3okpXy/uPd5djQfoJcLnZk0xHOqJtcr1+Xg/9TUo/vh81U8cIgGJDtwssoyMastqv1U9Gm2AfsRKmjDyRoIhvwbF9V3dpdks4tRtmnEoYo91K9y2nv45tyO0R6PSEhNL8wDGlvgqUk4XlaaQEs2yNPgpX07ivs47+/x8ufkcyzAf0nHXN/FDzqLnHQBHqdk8a/BTY9wWQP1d5iIuojr30vR4X4=
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Nando Vieira
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/gemfiles/5_2.gemfile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
- gemspec path: ".."
5
-
6
- gem "activerecord", "~> 5.2.0"