bitwise_attribute 0.3.1 → 0.3.5
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 +41 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +17 -3
- data/.ruby-version +1 -1
- data/Gemfile.lock +85 -66
- data/README.md +1 -4
- data/bitwise_attribute.gemspec +8 -5
- data/lib/bitwise_attribute/active_record_methods.rb +21 -19
- data/lib/bitwise_attribute/values_list.rb +2 -2
- data/lib/bitwise_attribute/version.rb +1 -1
- data/lib/bitwise_attribute.rb +6 -6
- metadata +56 -29
- data/.travis.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df49609ab57b88fb77568ae2cdc29ee9851626a67e632170e9a90ebae1bbbfdb
|
4
|
+
data.tar.gz: c5271b2e9ef62d0a6e1e1e55bddc3eaa63274d775065618077fe78299774fcae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64de0ef4cef8fcec575b2c31e04350282c0b5c45c87d2ef87e2a174c13f80cbb2bbafe06e273c189ace9650123b1e4d7f5ff9bd999c1086d2866dbea06bd409f
|
7
|
+
data.tar.gz: bf54560552fdfbf62753044fe65507c405d81240733317e6200cf0417347161aa618cfeddf347d689bdf233917109c5e1d9a51d651c1f32eddd52668a1ea796c
|
@@ -0,0 +1,41 @@
|
|
1
|
+
|
2
|
+
name: CI
|
3
|
+
|
4
|
+
on: [push, pull_request]
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
lint:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- uses: actions/checkout@v2
|
11
|
+
- uses: ruby/setup-ruby@v1
|
12
|
+
with:
|
13
|
+
ruby-version: "2.5"
|
14
|
+
bundler-cache: true
|
15
|
+
- name: rubocop version
|
16
|
+
timeout-minutes: 1
|
17
|
+
run: bundle exec rubocop --version
|
18
|
+
- name: rubocop
|
19
|
+
timeout-minutes: 5
|
20
|
+
run: bundle exec rubocop -c .rubocop.yml
|
21
|
+
|
22
|
+
test:
|
23
|
+
runs-on: ubuntu-latest
|
24
|
+
continue-on-error: ${{ matrix.experimental }}
|
25
|
+
strategy:
|
26
|
+
fail-fast: false
|
27
|
+
matrix:
|
28
|
+
ruby: ["2.5", "2.6", "2.7", "3.0"]
|
29
|
+
experimental: [false]
|
30
|
+
include:
|
31
|
+
- ruby: "truffleruby"
|
32
|
+
experimental: true
|
33
|
+
steps:
|
34
|
+
- uses: actions/checkout@v2
|
35
|
+
- uses: ruby/setup-ruby@v1
|
36
|
+
with:
|
37
|
+
ruby-version: ${{matrix.ruby}}
|
38
|
+
bundler-cache: true
|
39
|
+
- name: Run tests
|
40
|
+
timeout-minutes: 5
|
41
|
+
run: ${{matrix.env}} bundle exec rspec
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,12 +1,26 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require:
|
2
|
+
- rubocop-rake
|
3
|
+
- rubocop-rspec
|
4
|
+
|
5
|
+
AllCops:
|
6
|
+
NewCops: enable
|
7
|
+
TargetRubyVersion: 2.5
|
8
|
+
|
9
|
+
RSpec/MultipleMemoizedHelpers:
|
10
|
+
Max: 10
|
3
11
|
|
4
12
|
Style/Documentation:
|
5
13
|
Enabled: false
|
6
14
|
|
7
|
-
|
15
|
+
Layout/LineLength:
|
8
16
|
Max: 100
|
9
17
|
|
18
|
+
Metrics/CyclomaticComplexity:
|
19
|
+
Max: 15
|
20
|
+
|
21
|
+
Metrics/PerceivedComplexity:
|
22
|
+
Max: 15
|
23
|
+
|
10
24
|
Metrics/MethodLength:
|
11
25
|
Max: 50
|
12
26
|
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.2
|
data/Gemfile.lock
CHANGED
@@ -1,91 +1,110 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bitwise_attribute (0.3.
|
4
|
+
bitwise_attribute (0.3.5)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
activemodel (
|
10
|
-
activesupport (=
|
11
|
-
activerecord (
|
12
|
-
activemodel (=
|
13
|
-
activesupport (=
|
14
|
-
|
15
|
-
activesupport (5.1.5)
|
9
|
+
activemodel (6.1.4.1)
|
10
|
+
activesupport (= 6.1.4.1)
|
11
|
+
activerecord (6.1.4.1)
|
12
|
+
activemodel (= 6.1.4.1)
|
13
|
+
activesupport (= 6.1.4.1)
|
14
|
+
activesupport (6.1.4.1)
|
16
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
-
i18n (
|
18
|
-
minitest (
|
19
|
-
tzinfo (~>
|
20
|
-
|
21
|
-
ast (2.4.
|
22
|
-
byebug (
|
23
|
-
coderay (1.1.
|
24
|
-
concurrent-ruby (1.
|
25
|
-
diff-lcs (1.
|
26
|
-
docile (1.
|
27
|
-
|
16
|
+
i18n (>= 1.6, < 2)
|
17
|
+
minitest (>= 5.1)
|
18
|
+
tzinfo (~> 2.0)
|
19
|
+
zeitwerk (~> 2.3)
|
20
|
+
ast (2.4.2)
|
21
|
+
byebug (11.1.3)
|
22
|
+
coderay (1.1.3)
|
23
|
+
concurrent-ruby (1.1.9)
|
24
|
+
diff-lcs (1.4.4)
|
25
|
+
docile (1.4.0)
|
26
|
+
ffi (1.15.4-java)
|
27
|
+
i18n (1.8.10)
|
28
28
|
concurrent-ruby (~> 1.0)
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
29
|
+
method_source (1.0.0)
|
30
|
+
minitest (5.14.4)
|
31
|
+
parallel (1.21.0)
|
32
|
+
parser (3.0.2.0)
|
33
|
+
ast (~> 2.4.1)
|
34
|
+
pry (0.13.1)
|
35
|
+
coderay (~> 1.1)
|
36
|
+
method_source (~> 1.0)
|
37
|
+
pry (0.13.1-java)
|
38
|
+
coderay (~> 1.1)
|
39
|
+
method_source (~> 1.0)
|
40
|
+
spoon (~> 0.0)
|
41
|
+
pry-byebug (3.9.0)
|
42
|
+
byebug (~> 11.0)
|
43
|
+
pry (~> 0.13.0)
|
42
44
|
rainbow (3.0.0)
|
43
|
-
rake (
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
rspec-
|
48
|
-
|
49
|
-
rspec-
|
50
|
-
rspec-
|
45
|
+
rake (13.0.6)
|
46
|
+
regexp_parser (2.1.1)
|
47
|
+
rexml (3.2.5)
|
48
|
+
rspec (3.10.0)
|
49
|
+
rspec-core (~> 3.10.0)
|
50
|
+
rspec-expectations (~> 3.10.0)
|
51
|
+
rspec-mocks (~> 3.10.0)
|
52
|
+
rspec-core (3.10.1)
|
53
|
+
rspec-support (~> 3.10.0)
|
54
|
+
rspec-expectations (3.10.1)
|
51
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
52
|
-
rspec-support (~> 3.
|
53
|
-
rspec-mocks (3.
|
56
|
+
rspec-support (~> 3.10.0)
|
57
|
+
rspec-mocks (3.10.2)
|
54
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
|
-
rspec-support (~> 3.
|
56
|
-
rspec-support (3.
|
57
|
-
rubocop (
|
59
|
+
rspec-support (~> 3.10.0)
|
60
|
+
rspec-support (3.10.2)
|
61
|
+
rubocop (1.22.1)
|
58
62
|
parallel (~> 1.10)
|
59
|
-
parser (>=
|
60
|
-
powerpack (~> 0.1)
|
63
|
+
parser (>= 3.0.0.0)
|
61
64
|
rainbow (>= 2.2.2, < 4.0)
|
65
|
+
regexp_parser (>= 1.8, < 3.0)
|
66
|
+
rexml
|
67
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
62
68
|
ruby-progressbar (~> 1.7)
|
63
|
-
unicode-display_width (
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
69
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
70
|
+
rubocop-ast (1.12.0)
|
71
|
+
parser (>= 3.0.1.1)
|
72
|
+
rubocop-rake (0.6.0)
|
73
|
+
rubocop (~> 1.0)
|
74
|
+
rubocop-rspec (2.5.0)
|
75
|
+
rubocop (~> 1.19)
|
76
|
+
ruby-progressbar (1.11.0)
|
77
|
+
simplecov (0.21.2)
|
78
|
+
docile (~> 1.1)
|
79
|
+
simplecov-html (~> 0.11)
|
80
|
+
simplecov_json_formatter (~> 0.1)
|
81
|
+
simplecov-html (0.12.3)
|
82
|
+
simplecov_json_formatter (0.1.3)
|
83
|
+
spoon (0.0.6)
|
84
|
+
ffi
|
85
|
+
sqlite3 (1.4.2)
|
86
|
+
tzinfo (2.0.4)
|
87
|
+
concurrent-ruby (~> 1.0)
|
88
|
+
unicode-display_width (2.1.0)
|
89
|
+
zeitwerk (2.4.2)
|
75
90
|
|
76
91
|
PLATFORMS
|
77
|
-
|
92
|
+
universal-java-11
|
93
|
+
x86_64-darwin-19
|
94
|
+
x86_64-linux
|
78
95
|
|
79
96
|
DEPENDENCIES
|
80
97
|
activerecord (>= 3)
|
81
98
|
bitwise_attribute!
|
82
|
-
bundler
|
99
|
+
bundler
|
83
100
|
pry-byebug
|
84
|
-
rake
|
85
|
-
rspec
|
86
|
-
rubocop
|
87
|
-
|
101
|
+
rake
|
102
|
+
rspec
|
103
|
+
rubocop
|
104
|
+
rubocop-rake
|
105
|
+
rubocop-rspec
|
106
|
+
simplecov
|
88
107
|
sqlite3
|
89
108
|
|
90
109
|
BUNDLED WITH
|
91
|
-
|
110
|
+
2.2.16
|
data/README.md
CHANGED
@@ -1,6 +1,3 @@
|
|
1
|
-
[![Dependency Status](https://gemnasium.com/rikas/bitwise_attribute.svg)](https://gemnasium.com/rikas/bitwise_attribute)
|
2
|
-
[![Build Status](https://travis-ci.org/rikas/bitwise_attribute.svg?branch=master)](https://travis-ci.org/rikas/bitwise_attribute)
|
3
|
-
|
4
1
|
# BitwiseAttribute
|
5
2
|
Manipulation of bitmask attributes in your classes (typically ActiveRecord models). You can have multiple values mapped to the same column — for example when you need a User with multiple roles.
|
6
3
|
|
@@ -44,7 +41,7 @@ end
|
|
44
41
|
```ruby
|
45
42
|
class User < ActiveRecord::Base
|
46
43
|
include BitwiseAttribute
|
47
|
-
|
44
|
+
|
48
45
|
# This line will do all the magic!
|
49
46
|
#
|
50
47
|
# By default we assume that your column will be called `role_mask`.
|
data/bitwise_attribute.gemspec
CHANGED
@@ -7,6 +7,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
7
7
|
require 'bitwise_attribute/version'
|
8
8
|
|
9
9
|
Gem::Specification.new do |spec|
|
10
|
+
spec.required_ruby_version = '>= 2.5.0'
|
10
11
|
spec.name = 'bitwise_attribute'
|
11
12
|
spec.version = BitwiseAttribute::VERSION
|
12
13
|
spec.authors = ['Ricardo Otero']
|
@@ -25,11 +26,13 @@ Gem::Specification.new do |spec|
|
|
25
26
|
spec.require_paths = %w[lib]
|
26
27
|
|
27
28
|
spec.add_development_dependency 'activerecord', '>= 3'
|
28
|
-
spec.add_development_dependency 'bundler'
|
29
|
+
spec.add_development_dependency 'bundler'
|
29
30
|
spec.add_development_dependency 'pry-byebug'
|
30
|
-
spec.add_development_dependency 'rake'
|
31
|
-
spec.add_development_dependency 'rspec'
|
32
|
-
spec.add_development_dependency 'rubocop'
|
33
|
-
spec.add_development_dependency '
|
31
|
+
spec.add_development_dependency 'rake'
|
32
|
+
spec.add_development_dependency 'rspec'
|
33
|
+
spec.add_development_dependency 'rubocop'
|
34
|
+
spec.add_development_dependency 'rubocop-rake'
|
35
|
+
spec.add_development_dependency 'rubocop-rspec'
|
36
|
+
spec.add_development_dependency 'simplecov'
|
34
37
|
spec.add_development_dependency 'sqlite3'
|
35
38
|
end
|
@@ -4,56 +4,56 @@ module BitwiseAttribute
|
|
4
4
|
module ActiveRecordMethods
|
5
5
|
def define_named_scopes(name, column_name, mapping)
|
6
6
|
define_singleton_method("with_#{name}") do |*keys|
|
7
|
-
keys = cleanup_keys(keys)
|
7
|
+
keys = cleanup_keys(keys, mapping)
|
8
8
|
|
9
|
-
return
|
9
|
+
return none unless keys&.any?
|
10
10
|
|
11
|
-
records =
|
11
|
+
records = all
|
12
12
|
|
13
|
-
keys
|
14
|
-
records = records.where(
|
13
|
+
keys.each do |key|
|
14
|
+
records = records.where((arel_table[column_name] & mapping[key]).eq(mapping[key]))
|
15
15
|
end
|
16
16
|
|
17
17
|
records
|
18
18
|
end
|
19
19
|
|
20
20
|
define_singleton_method("with_any_#{name}") do |*keys|
|
21
|
-
keys = cleanup_keys(keys)
|
21
|
+
keys = cleanup_keys(keys, mapping)
|
22
22
|
|
23
23
|
return where.not(column_name => nil) unless keys&.any?
|
24
24
|
|
25
|
-
records = where(
|
25
|
+
records = where('1=0')
|
26
26
|
|
27
|
-
keys
|
28
|
-
records = records.or(where(
|
27
|
+
keys.each do |key|
|
28
|
+
records = records.or(where((arel_table[column_name] & mapping[key]).eq(mapping[key])))
|
29
29
|
end
|
30
30
|
|
31
31
|
records
|
32
32
|
end
|
33
33
|
|
34
34
|
define_singleton_method("with_exact_#{name}") do |*keys|
|
35
|
-
keys = cleanup_keys(keys)
|
35
|
+
keys = cleanup_keys(keys, mapping)
|
36
36
|
|
37
|
-
return
|
37
|
+
return none unless keys&.any?
|
38
38
|
|
39
39
|
records = send("with_#{name}", keys)
|
40
40
|
|
41
41
|
(mapping.keys - keys).each do |key|
|
42
|
-
records = records.where(
|
42
|
+
records = records.where((arel_table[column_name] & mapping[key]).not_eq(mapping[key]))
|
43
43
|
end
|
44
44
|
|
45
45
|
records
|
46
46
|
end
|
47
47
|
|
48
48
|
define_singleton_method("without_#{name}") do |*keys|
|
49
|
-
keys = cleanup_keys(keys)
|
49
|
+
keys = cleanup_keys(keys, mapping)
|
50
50
|
|
51
51
|
return where(column_name => nil).or(where(column_name => 0)) unless keys&.any?
|
52
52
|
|
53
|
-
records =
|
53
|
+
records = all
|
54
54
|
|
55
|
-
keys
|
56
|
-
records = records.where(
|
55
|
+
keys.each do |key|
|
56
|
+
records = records.where((arel_table[column_name] & mapping[key]).not_eq(mapping[key]))
|
57
57
|
end
|
58
58
|
|
59
59
|
records
|
@@ -61,17 +61,19 @@ module BitwiseAttribute
|
|
61
61
|
|
62
62
|
# Defines a class method for each key of the mapping, returning records that have *at least*
|
63
63
|
# the corresponding value.
|
64
|
-
mapping.
|
64
|
+
mapping.each_key do |key|
|
65
65
|
define_singleton_method(key) do
|
66
66
|
send("with_#{name}", key)
|
67
67
|
end
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
def cleanup_keys(keys)
|
71
|
+
def cleanup_keys(keys, mapping)
|
72
72
|
return [] unless keys
|
73
73
|
|
74
|
-
keys.flatten.map(&:to_sym).uniq
|
74
|
+
clean = keys.flatten.map(&:to_sym).compact.uniq
|
75
|
+
|
76
|
+
clean & mapping.keys # only roles that we know about
|
75
77
|
end
|
76
78
|
end
|
77
79
|
end
|
data/lib/bitwise_attribute.rb
CHANGED
@@ -16,7 +16,7 @@ module BitwiseAttribute
|
|
16
16
|
module ClassMethods
|
17
17
|
include BitwiseAttribute::ActiveRecordMethods
|
18
18
|
|
19
|
-
def attr_bitwise(name, column_name: nil
|
19
|
+
def attr_bitwise(name, values:, column_name: nil)
|
20
20
|
column_name ||= "#{name.to_s.singularize}_mask"
|
21
21
|
|
22
22
|
mapping = build_mapping(values)
|
@@ -48,7 +48,7 @@ module BitwiseAttribute
|
|
48
48
|
end
|
49
49
|
|
50
50
|
# Adds a boolean method for each key (ex: admin?)
|
51
|
-
mapping.
|
51
|
+
mapping.each_key do |key|
|
52
52
|
define_method("#{key}?") do
|
53
53
|
value?(column_name, mapping[key])
|
54
54
|
end
|
@@ -78,11 +78,11 @@ module BitwiseAttribute
|
|
78
78
|
def value_setter(mask_column, values, mapping)
|
79
79
|
send("#{mask_column}=", 0)
|
80
80
|
|
81
|
-
values
|
82
|
-
raise(ArgumentError, "Unknown value #{value}!") unless mapping[value]
|
81
|
+
values = values.map(&:to_sym).compact.uniq
|
83
82
|
|
84
|
-
|
85
|
-
|
83
|
+
values &= mapping.keys
|
84
|
+
|
85
|
+
values.each { |value| send("#{mask_column}=", send(mask_column) | mapping[value]) }
|
86
86
|
end
|
87
87
|
|
88
88
|
# Return if value is present in mask (raw value)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitwise_attribute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Otero
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
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: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry-byebug
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,58 +56,86 @@ dependencies:
|
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
126
|
name: simplecov
|
99
127
|
requirement: !ruby/object:Gem::Requirement
|
100
128
|
requirements:
|
101
|
-
- - "
|
129
|
+
- - ">="
|
102
130
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0
|
131
|
+
version: '0'
|
104
132
|
type: :development
|
105
133
|
prerelease: false
|
106
134
|
version_requirements: !ruby/object:Gem::Requirement
|
107
135
|
requirements:
|
108
|
-
- - "
|
136
|
+
- - ">="
|
109
137
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0
|
138
|
+
version: '0'
|
111
139
|
- !ruby/object:Gem::Dependency
|
112
140
|
name: sqlite3
|
113
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,11 +157,11 @@ executables: []
|
|
129
157
|
extensions: []
|
130
158
|
extra_rdoc_files: []
|
131
159
|
files:
|
160
|
+
- ".github/workflows/ci.yml"
|
132
161
|
- ".gitignore"
|
133
162
|
- ".rspec"
|
134
163
|
- ".rubocop.yml"
|
135
164
|
- ".ruby-version"
|
136
|
-
- ".travis.yml"
|
137
165
|
- Gemfile
|
138
166
|
- Gemfile.lock
|
139
167
|
- LICENSE.txt
|
@@ -150,7 +178,7 @@ homepage: https://github.com/rikas/bitwise_attribute
|
|
150
178
|
licenses:
|
151
179
|
- MIT
|
152
180
|
metadata: {}
|
153
|
-
post_install_message:
|
181
|
+
post_install_message:
|
154
182
|
rdoc_options: []
|
155
183
|
require_paths:
|
156
184
|
- lib
|
@@ -158,16 +186,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
186
|
requirements:
|
159
187
|
- - ">="
|
160
188
|
- !ruby/object:Gem::Version
|
161
|
-
version:
|
189
|
+
version: 2.5.0
|
162
190
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
191
|
requirements:
|
164
192
|
- - ">="
|
165
193
|
- !ruby/object:Gem::Version
|
166
194
|
version: '0'
|
167
195
|
requirements: []
|
168
|
-
|
169
|
-
|
170
|
-
signing_key:
|
196
|
+
rubygems_version: 3.1.4
|
197
|
+
signing_key:
|
171
198
|
specification_version: 4
|
172
199
|
summary: Bitwise attribute for ruby class and Rails model.
|
173
200
|
test_files: []
|