act_with_booleans 0.0.3 → 0.0.5
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/rake.yml +15 -14
- data/.gitignore +1 -0
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/MIT-LICENSE +1 -3
- data/README.md +8 -7
- data/act_with_booleans.gemspec +1 -2
- data/lib/act_with_booleans/version.rb +3 -1
- data/test/coding_one_test.rb +2 -2
- metadata +8 -10
- data/.github/workflows/lint.yml +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee31f79ad3bc2684ec406b67baac50b24931eff281eb3aebb955186c2e169d9e
|
4
|
+
data.tar.gz: '049e7d194885bf8fedf2d09f6be56a725db2be1e6f9a1b17561da55ebae96be2'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc727cb213bc9c34b750069a1e3cb4cf6657fc8c1339274a58f9784591b312e326f93e9c2e1a338c876c448a9c06f568a22fce5e273d809e24cd2b2e731a923c
|
7
|
+
data.tar.gz: 534d07cac57f18f2c39e479bb1dde392717972049ca3cd34af2e20de452c9911090483324a37069f58f494c1754c6285402259c13fc2781583f7df3ccb7ff845
|
data/.github/workflows/rake.yml
CHANGED
@@ -8,19 +8,20 @@ jobs:
|
|
8
8
|
strategy:
|
9
9
|
fail-fast: false
|
10
10
|
matrix:
|
11
|
-
|
12
|
-
|
13
|
-
test_command: ["bundle exec rake test"]
|
14
|
-
runs-on: ${{ matrix.os }}
|
11
|
+
ruby_version: ["3.2", "3.3"]
|
12
|
+
runs-on: ubuntu-latest
|
15
13
|
|
16
14
|
steps:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
15
|
+
- uses: actions/checkout@v4
|
16
|
+
- name: Set up Ruby
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby_version }}
|
20
|
+
bundler-cache: true
|
21
|
+
- name: Bundle install
|
22
|
+
run: |
|
23
|
+
bundle config path /home/runner/bundle
|
24
|
+
bundle install
|
25
|
+
bundle update
|
26
|
+
- name: Build and test with Rake
|
27
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails-7.
|
1
|
+
rails-7.2
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.3.5
|
data/Gemfile
CHANGED
data/MIT-LICENSE
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Copyright (c) 2022-2023 Dittmar Krall (www.matiq.com)
|
1
|
+
Copyright (c) 2022-2024 Dittmar Krall (www.matiq.com)
|
4
2
|
|
5
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
4
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -1,12 +1,15 @@
|
|
1
|
-
#
|
1
|
+
# ActWithBooleans
|
2
2
|
|
3
|
-
[](http://badge.fury.io/rb/act_with_booleans)
|
4
|
+
[](https://rubygems.org/gems/act_with_booleans)
|
5
|
+
[](https://github.com/matique/act_with_booleans/actions/workflows/rake.yml)
|
6
|
+
[](https://github.com/standardrb/standard)
|
7
|
+
[](http://choosealicense.com/licenses/mit/)
|
4
8
|
|
5
9
|
A Ruby gem handling booleans placed in an integer.
|
6
10
|
|
7
11
|
Defines setters and getters to access the booleans.
|
8
12
|
|
9
|
-
|
10
13
|
## Installation
|
11
14
|
|
12
15
|
As usual:
|
@@ -115,7 +118,5 @@ Further reading:
|
|
115
118
|
|
116
119
|
## Miscellaneous
|
117
120
|
|
118
|
-
Copyright (c) 2023 Dittmar Krall (www.matiq.com),
|
119
|
-
released under the MIT license
|
120
|
-
|
121
|
-
* https://opensource.org/licenses/MIT
|
121
|
+
Copyright (c) 2023-2024 Dittmar Krall (www.matiq.com),
|
122
|
+
released under the [MIT license](https://opensource.org/licenses/MIT).
|
data/act_with_booleans.gemspec
CHANGED
@@ -9,11 +9,10 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.description = %(Handles booleans packed in an integer)
|
10
10
|
s.authors = ["Dittmar Krall"]
|
11
11
|
s.email = ["dittmar.krall@matiq.com"]
|
12
|
-
s.homepage = "
|
12
|
+
s.homepage = "https://github.com/matique/act_with_booleans"
|
13
13
|
|
14
14
|
s.license = "MIT"
|
15
15
|
s.platform = Gem::Platform::RUBY
|
16
|
-
s.metadata["source_code_uri"] = "https://github.com/matique/act_with_booleans"
|
17
16
|
|
18
17
|
s.files = `git ls-files -z`.split("\x0")
|
19
18
|
s.require_paths = ["lib"]
|
@@ -1,7 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module ActWithBooleans
|
4
|
-
VERSION = "0.0.
|
4
|
+
VERSION = "0.0.5" # 2024-10-19
|
5
|
+
# VERSION = "0.0.4" # 2023-12-11
|
6
|
+
# VERSION = "0.0.3" # 2023-04-23
|
5
7
|
# VERSION = "0.0.2" # 2022-12-11
|
6
8
|
# VERSION = "0.0.1" # 2022-09-10
|
7
9
|
end
|
data/test/coding_one_test.rb
CHANGED
@@ -20,7 +20,7 @@ describe "Internal One Flag" do
|
|
20
20
|
it "checks definition of methods" do
|
21
21
|
msg = "method '#{bool}' not defined"
|
22
22
|
assert order.respond_to?(bool.to_s), msg
|
23
|
-
assert order.respond_to?("#{bool}?"), msg
|
24
|
-
assert order.respond_to?("#{bool}="), msg
|
23
|
+
assert order.respond_to?(:"#{bool}?"), msg
|
24
|
+
assert order.respond_to?(:"#{bool}="), msg
|
25
25
|
end
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: act_with_booleans
|
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
|
- Dittmar Krall
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -59,7 +59,6 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- ".github/workflows/lint.yml"
|
63
62
|
- ".github/workflows/rake.yml"
|
64
63
|
- ".gitignore"
|
65
64
|
- ".ruby-gemset"
|
@@ -91,12 +90,11 @@ files:
|
|
91
90
|
- test/origin_test.rb
|
92
91
|
- test/size_test.rb
|
93
92
|
- test/test_helper.rb
|
94
|
-
homepage:
|
93
|
+
homepage: https://github.com/matique/act_with_booleans
|
95
94
|
licenses:
|
96
95
|
- MIT
|
97
|
-
metadata:
|
98
|
-
|
99
|
-
post_install_message:
|
96
|
+
metadata: {}
|
97
|
+
post_install_message:
|
100
98
|
rdoc_options: []
|
101
99
|
require_paths:
|
102
100
|
- lib
|
@@ -111,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
109
|
- !ruby/object:Gem::Version
|
112
110
|
version: '0'
|
113
111
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
115
|
-
signing_key:
|
112
|
+
rubygems_version: 3.5.20
|
113
|
+
signing_key:
|
116
114
|
specification_version: 4
|
117
115
|
summary: Ruby gem act_with_booleans
|
118
116
|
test_files: []
|
data/.github/workflows/lint.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
name: Lint
|
2
|
-
on: push
|
3
|
-
jobs:
|
4
|
-
lint:
|
5
|
-
runs-on: ubuntu-latest
|
6
|
-
steps:
|
7
|
-
- name: Checkout code
|
8
|
-
uses: actions/checkout@v3
|
9
|
-
- name: Set up Ruby
|
10
|
-
uses: ruby/setup-ruby@v1
|
11
|
-
with:
|
12
|
-
bundler-cache: true
|
13
|
-
- name: Run Standard
|
14
|
-
run: bundle exec standardrb
|