active_record_bitmask 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +4 -1
- data/Appraisals +4 -5
- data/CHANGELOG.md +5 -0
- data/active_record_bitmask.gemspec +1 -1
- data/gemfiles/{6.1_stable.gemfile → 8.0_stable.gemfile} +2 -2
- data/lib/active_record_bitmask/model.rb +2 -7
- data/lib/active_record_bitmask/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57258a4ca23b07d8e032b96d7b83e298cf70a9265dab6ef7f0305febbe959611
|
4
|
+
data.tar.gz: 8644af5ecd397870659de7603f8ee3debdb631554291f8e587b2ac3310fa4a5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a6c0be3db4553d19ba934b5e0d5c65d3cd4a5024108fe67c22d5b6434d63a0eb6d609d5ac14c39522213e40be8535c27f2f3f17dba0dc39259d3ae45490622e
|
7
|
+
data.tar.gz: 3552ba175b6ef839eb4d444d39ed84d053100d82f5a4720efcf4e23159eaf4f44a3981829e608ce1bda8360b6ec30429eecd7646733be96f76a903f5aebc6dfe
|
data/.github/workflows/ci.yml
CHANGED
@@ -30,8 +30,11 @@ jobs:
|
|
30
30
|
runs-on: ubuntu-latest
|
31
31
|
strategy:
|
32
32
|
matrix:
|
33
|
-
gemfile: ['
|
33
|
+
gemfile: ['7.0_stable', '7.1_stable', '7.2_stable', '8.0_stable']
|
34
34
|
ruby-version: ['3.1', '3.2', '3.3']
|
35
|
+
exclude:
|
36
|
+
- ruby-version: '3.1'
|
37
|
+
gemfile: '8.0_stable'
|
35
38
|
env:
|
36
39
|
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
37
40
|
steps:
|
data/Appraisals
CHANGED
@@ -1,10 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
appraise '6.1-stable' do
|
4
|
-
gem 'activerecord', '~> 6.1.0'
|
5
|
-
gem 'sqlite3', '~> 1.7.0'
|
6
|
-
end
|
7
|
-
|
8
3
|
appraise '7.0-stable' do
|
9
4
|
gem 'activerecord', '~> 7.0.0'
|
10
5
|
gem 'sqlite3', '~> 1.7.0'
|
@@ -18,3 +13,7 @@ end
|
|
18
13
|
appraise '7.2-stable' do
|
19
14
|
gem 'activerecord', '~> 7.2.0'
|
20
15
|
end
|
16
|
+
|
17
|
+
appraise '8.0-stable' do
|
18
|
+
gem 'activerecord', '~> 8.0.0'
|
19
|
+
end
|
data/CHANGELOG.md
CHANGED
@@ -52,20 +52,15 @@ module ActiveRecordBitmask
|
|
52
52
|
|
53
53
|
def define_bitmask_attribute(attribute, map)
|
54
54
|
if ActiveRecord.gem_version >= Gem::Version.new('7.2.0')
|
55
|
-
# Greater than or equal to 7.
|
55
|
+
# Greater than or equal to 7.2.0
|
56
56
|
decorate_attributes([attribute]) do |name, subtype|
|
57
57
|
ActiveRecordBitmask::BitmaskType.new(name, map, subtype)
|
58
58
|
end
|
59
|
-
|
59
|
+
else
|
60
60
|
# Greater than or equal to 7.0.0
|
61
61
|
attribute(attribute) do |subtype|
|
62
62
|
ActiveRecordBitmask::BitmaskType.new(attribute, map, subtype)
|
63
63
|
end
|
64
|
-
else
|
65
|
-
# Equal to 6.1.0
|
66
|
-
decorate_attribute_type(attribute) do |subtype|
|
67
|
-
ActiveRecordBitmask::BitmaskType.new(attribute, map, subtype)
|
68
|
-
end
|
69
64
|
end
|
70
65
|
end
|
71
66
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_bitmask
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alpaca-tc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7.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: '7.0'
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- alpaca-tc@alpaca.tc
|
@@ -41,10 +41,10 @@ files:
|
|
41
41
|
- README.md
|
42
42
|
- Rakefile
|
43
43
|
- active_record_bitmask.gemspec
|
44
|
-
- gemfiles/6.1_stable.gemfile
|
45
44
|
- gemfiles/7.0_stable.gemfile
|
46
45
|
- gemfiles/7.1_stable.gemfile
|
47
46
|
- gemfiles/7.2_stable.gemfile
|
47
|
+
- gemfiles/8.0_stable.gemfile
|
48
48
|
- lib/active_record_bitmask.rb
|
49
49
|
- lib/active_record_bitmask/attribute_methods.rb
|
50
50
|
- lib/active_record_bitmask/attribute_methods/query.rb
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.5.16
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple bitmask attribute support for ActiveRecord
|