bitz 2.0.1 → 2.0.2
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 +4 -4
- data/.github/workflows/release.yml +4 -4
- data/lib/bitz/set.rb +3 -6
- data/lib/bitz/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d5a59cf216428af103a6ddefc0eb65a381e744d55d81ec7293f3b00028248d4
|
4
|
+
data.tar.gz: 50a006522f1d4209c2079955cf53fd6126f34fd9f6bf11e2f370a4a62d0ef50d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a52d337e1721a454334e03d1ebe71001afd85475c9ef2357b908709eb384e66888c1d2aa7887e060e3ff0bd88161541f96526de812f90549a3e14036e719a64
|
7
|
+
data.tar.gz: c31b2eafc6581b5486d0af8cb61a0418fd1752bbc85fb29423b0d518fe085f5c84e0e6c6457d967a1eb38241c43ea900151c1c0d030d8c0d0eb0c92296065b0e
|
@@ -27,14 +27,14 @@ jobs:
|
|
27
27
|
|
28
28
|
steps:
|
29
29
|
- name: Harden Runner
|
30
|
-
uses: step-security/harden-runner@
|
30
|
+
uses: step-security/harden-runner@v2
|
31
31
|
with:
|
32
32
|
egress-policy: audit
|
33
33
|
|
34
|
-
- uses: actions/checkout@
|
34
|
+
- uses: actions/checkout@v4
|
35
35
|
|
36
36
|
- name: Set up Ruby
|
37
|
-
uses: ruby/setup-ruby@
|
37
|
+
uses: ruby/setup-ruby@v1
|
38
38
|
with:
|
39
39
|
ruby-version: ${{ matrix.ruby }}
|
40
40
|
|
@@ -42,7 +42,7 @@ jobs:
|
|
42
42
|
run: bundle install --jobs 4 --retry 3
|
43
43
|
|
44
44
|
- name: Publish to RubyGems
|
45
|
-
uses: rubygems/release-gem@
|
45
|
+
uses: rubygems/release-gem@v1
|
46
46
|
|
47
47
|
- name: Create GitHub release
|
48
48
|
run: |
|
data/lib/bitz/set.rb
CHANGED
@@ -307,11 +307,9 @@ module Bitz
|
|
307
307
|
# @param other [Object] the object to compare with
|
308
308
|
# @return [Boolean] true if bitsets are equal, false otherwise
|
309
309
|
def == other
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
@buffer == other.buffer
|
310
|
+
super || (other.is_a?(self.class) &&
|
311
|
+
other.capacity == capacity &&
|
312
|
+
@buffer == other.buffer)
|
315
313
|
end
|
316
314
|
|
317
315
|
alias :eql? :==
|
@@ -336,6 +334,5 @@ module Bitz
|
|
336
334
|
n = (n + (n >> 4)) & 0x0F # 00001111 - count whole byte
|
337
335
|
n
|
338
336
|
end
|
339
|
-
|
340
337
|
end
|
341
338
|
end
|
data/lib/bitz/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
|
-
rubygems_version: 3.6.
|
77
|
+
rubygems_version: 3.6.9
|
78
78
|
specification_version: 4
|
79
79
|
summary: A pure Ruby, JIT-friendly dynamic bitset implementation
|
80
80
|
test_files:
|