active_record_bitmask 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Appraisals +4 -0
- data/CHANGELOG.md +5 -1
- data/Gemfile +2 -1
- data/gemfiles/5.0_stable.gemfile +1 -1
- data/gemfiles/5.1_stable.gemfile +1 -1
- data/gemfiles/5.2_stable.gemfile +1 -1
- data/gemfiles/6.0_stable.gemfile +1 -1
- data/gemfiles/6.1_stable.gemfile +13 -0
- data/lib/active_record_bitmask/model.rb +8 -1
- data/lib/active_record_bitmask/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c616e8677376c68d869fb5f49c9410227e4ff4e591a856c0730dfcc750d8139e
|
4
|
+
data.tar.gz: eedd3a4aeb9df0022cea20110cfd0c0ce3fa2325acc2ae614c6dffeae7bdc9bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ba4eb0de8d2896976a54b6cfe4016a8e65cf81e94a27ec68205c426a2c0e513c113d28e57bc678b27c5693a6ced707ab3c8203783c41a06cc6e170fd3bb7fb7
|
7
|
+
data.tar.gz: 53328c78180c6537332d43b1ed58163b96c22b5a893cb9004403a8db0aa2447bd9ce9986386462f338ffb1804f5aa8348777705fb776bf654873ba990198da70
|
data/.travis.yml
CHANGED
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/gemfiles/5.0_stable.gemfile
CHANGED
data/gemfiles/5.1_stable.gemfile
CHANGED
data/gemfiles/5.2_stable.gemfile
CHANGED
data/gemfiles/6.0_stable.gemfile
CHANGED
@@ -51,7 +51,14 @@ module ActiveRecordBitmask
|
|
51
51
|
private
|
52
52
|
|
53
53
|
def define_bitmask_attribute(attribute, map)
|
54
|
-
|
54
|
+
# 2nd arguments is deleted in 6.1.0
|
55
|
+
options = if ActiveRecord.gem_version >= Gem::Version.new('6.1.0.rc1')
|
56
|
+
[]
|
57
|
+
else
|
58
|
+
[:bitmask]
|
59
|
+
end
|
60
|
+
|
61
|
+
decorate_attribute_type(attribute, *options) do |subtype|
|
55
62
|
ActiveRecordBitmask::BitmaskType.new(attribute, map, subtype)
|
56
63
|
end
|
57
64
|
end
|
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: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alpaca-tc
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '5.0'
|
27
|
-
description:
|
27
|
+
description:
|
28
28
|
email:
|
29
29
|
- alpaca-tc@alpaca.tc
|
30
30
|
executables: []
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- gemfiles/5.1_stable.gemfile
|
46
46
|
- gemfiles/5.2_stable.gemfile
|
47
47
|
- gemfiles/6.0_stable.gemfile
|
48
|
+
- gemfiles/6.1_stable.gemfile
|
48
49
|
- lib/active_record_bitmask.rb
|
49
50
|
- lib/active_record_bitmask/attribute_methods.rb
|
50
51
|
- lib/active_record_bitmask/attribute_methods/query.rb
|
@@ -60,7 +61,7 @@ metadata:
|
|
60
61
|
changelog_uri: https://github.com/alpaca-tc/active_record_bitmask/blob/master/CHANGELOG.md
|
61
62
|
source_code_uri: https://github.com/alpaca-tc/active_record_bitmask/
|
62
63
|
bug_tracker_uri: https://github.com/alpaca-tc/active_record_bitmask/issues
|
63
|
-
post_install_message:
|
64
|
+
post_install_message:
|
64
65
|
rdoc_options: []
|
65
66
|
require_paths:
|
66
67
|
- lib
|
@@ -76,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
77
|
version: '0'
|
77
78
|
requirements: []
|
78
79
|
rubygems_version: 3.1.2
|
79
|
-
signing_key:
|
80
|
+
signing_key:
|
80
81
|
specification_version: 4
|
81
82
|
summary: Simple bitmask attribute support for ActiveRecord
|
82
83
|
test_files: []
|