flag_shih_tzu 1.0.2 → 1.0.6
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
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +174 -1
- data/LICENSE.md +2 -6
- data/README.md +76 -51
- data/lib/flag_shih_tzu/version.rb +4 -1
- data/lib/flag_shih_tzu.rb +1 -3
- data.tar.gz.sig +0 -0
- metadata +72 -48
- metadata.gz.sig +0 -0
- data/CITATION.cff +0 -20
- data/CODE_OF_CONDUCT.md +0 -134
- data/CONTRIBUTING.md +0 -272
- data/FUNDING.md +0 -74
- data/RUBOCOP.md +0 -71
- data/SECURITY.md +0 -21
- data/certs/pboling.pem +0 -27
- /data/sig/{flag_shih_tzu/version.rbs → flag_shih_tzu.rbs} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c21fca20694fd3df78caadd03b73d244a21db3136035cd161bb0fa2f41660ea7
|
|
4
|
+
data.tar.gz: 15e38a3062d34ceec2a5f1c8f4e7c79c831a94ba31b37658bd08ea3346d5363a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c107e0d46d3c900bee59158e90cc877731ee7473cd2326178bb651d516a6d71b0ddaa8db3f131eb59c23c032afefd13b3c84497d065d8ff6c689e3e03c0bf1ad
|
|
7
|
+
data.tar.gz: f6f0dc22da0030364b94f68eb01920d262e519282ad5b66d7096f4b9d04c6e14893efafac2036a78b2fdc0bc26a41b6215f1010b5e2a31e5c9a80a80efa72f93
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,171 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
30
30
|
|
|
31
31
|
### Security
|
|
32
32
|
|
|
33
|
+
## [1.0.6] - 2026-09-11
|
|
34
|
+
|
|
35
|
+
- TAG: [v1.0.6][1.0.6t]
|
|
36
|
+
- COVERAGE: 90.75% -- 412/454 lines in 3 files
|
|
37
|
+
- BRANCH COVERAGE: 76.76% -- 142/185 branches in 3 files
|
|
38
|
+
- 30.00% documented
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- kettle-jem-template-20260801-001 - Generated README gem dashboard links now
|
|
43
|
+
use ClickGems instead of BestGems.
|
|
44
|
+
|
|
45
|
+
- [kc] kettle-jem/prepare: updated 8 project files:
|
|
46
|
+
- dependencies (8)
|
|
47
|
+
|
|
48
|
+
- [kc] kettle-jem/template: updated 4 project files:
|
|
49
|
+
- code and tests (1)
|
|
50
|
+
- dependencies (2)
|
|
51
|
+
- other (1)
|
|
52
|
+
|
|
53
|
+
### Fixed
|
|
54
|
+
|
|
55
|
+
- kettle-jem-template-20260801-002 - Generated RSpec helpers now normalize
|
|
56
|
+
managed configuration block bindings structurally, preventing mixed block
|
|
57
|
+
parameter names from producing invalid configuration after a merge.
|
|
58
|
+
- kettle-jem-template-20260801-003 - Generated project metadata and
|
|
59
|
+
documentation now normalize configured underscore hostnames to valid
|
|
60
|
+
hyphenated hostnames.
|
|
61
|
+
- kettle-jem-template-20260801-004 - Generated organization README logos now
|
|
62
|
+
use GitHub's stable organization avatar endpoint instead of assuming a
|
|
63
|
+
matching Galtzo-hosted asset exists.
|
|
64
|
+
|
|
65
|
+
- kettle-jem-template-20260802-001 - Devcontainer JSON files now merge as JSONC,
|
|
66
|
+
preserving comments and trailing commas during template updates.
|
|
67
|
+
|
|
68
|
+
- Restore the ActiveRecord test dependencies required by the default development bundle.
|
|
69
|
+
|
|
70
|
+
- Restore README link definitions required by the pre-release Markdown reference validator.
|
|
71
|
+
|
|
72
|
+
- Restore the ActiveRecord test bundle removed by an earlier template pass.
|
|
73
|
+
|
|
74
|
+
## [1.0.5] - 2026-07-31
|
|
75
|
+
|
|
76
|
+
- TAG: [v1.0.5][1.0.5t]
|
|
77
|
+
- COVERAGE: 90.75% -- 412/454 lines in 3 files
|
|
78
|
+
- BRANCH COVERAGE: 76.76% -- 142/185 branches in 3 files
|
|
79
|
+
- 30.00% documented
|
|
80
|
+
|
|
81
|
+
### Added
|
|
82
|
+
|
|
83
|
+
- Documentation linting now has its generated `yard-lint` dependency and severity config available in the local bundle.
|
|
84
|
+
|
|
85
|
+
- kettle-jem-template-20260726-001 - Projects now include YARD lint
|
|
86
|
+
configuration and documentation dependencies so documentation issues fail
|
|
87
|
+
before generated docs are refreshed.
|
|
88
|
+
|
|
89
|
+
- kettle-jem-template-20260727-001 - Spec harness documentation now lists the
|
|
90
|
+
RSpec helpers provided by `kettle-test`.
|
|
91
|
+
|
|
92
|
+
- kettle-jem-template-20260729-005 - Gemspec metadata now publishes this
|
|
93
|
+
project's RubyForum tag as `mailing_list_uri`, and support docs link to the
|
|
94
|
+
tagged RubyForum community alongside Discord.
|
|
95
|
+
|
|
96
|
+
### Changed
|
|
97
|
+
|
|
98
|
+
- kettle-jem-template-20260728-001 - Generated Ruby workflows now use clearer
|
|
99
|
+
setup-ruby-flash planning and can prepare appraisal-only jobs without
|
|
100
|
+
installing the main Gemfile bundle.
|
|
101
|
+
|
|
102
|
+
### Fixed
|
|
103
|
+
|
|
104
|
+
- Root release bundles now include ActiveRecord test support and load
|
|
105
|
+
`kettle/test/rspec`, so `kettle-changelog` can generate coverage during
|
|
106
|
+
release.
|
|
107
|
+
|
|
108
|
+
- kettle-jem-template-20260726-002 - Generated version files now document their
|
|
109
|
+
version namespace and constants, reducing warning-only YARD lint output.
|
|
110
|
+
|
|
111
|
+
- kettle-jem-template-20260726-003 - Coverage upload steps now treat Coveralls,
|
|
112
|
+
QLTY, and Codecov as optional, so provider outages do not fail CI when local
|
|
113
|
+
coverage thresholds still pass.
|
|
114
|
+
- kettle-jem-template-20260728-002 - Generated RuboCop configs now ignore the
|
|
115
|
+
same `gemfiles/vendor/bundle` tree as `.gitignore`, so vendored dependency
|
|
116
|
+
installs are not reported as project lint debt.
|
|
117
|
+
- kettle-jem-template-20260728-003 - Generated dep-heads workflows now run
|
|
118
|
+
TruffleRuby jobs with current RubyGems and Bundler, avoiding setup failures
|
|
119
|
+
before the test suite starts.
|
|
120
|
+
|
|
121
|
+
- kettle-jem-template-20260728-004 - Generated dep-heads workflows now use the
|
|
122
|
+
setup-ruby Bundler install path for direct appraisal Gemfiles, avoiding rv
|
|
123
|
+
lockfile parser failures on Git and path dependencies.
|
|
124
|
+
|
|
125
|
+
- kettle-jem-template-20260728-005 - VersionGem bootstrap now creates the
|
|
126
|
+
missing canonical version spec when a project only has shim namespace version
|
|
127
|
+
specs.
|
|
128
|
+
|
|
129
|
+
- kettle-jem-template-20260729-001 - Generated JRuby 9.4 workflows now use the
|
|
130
|
+
legacy manual bundle install path, avoiding setup-time Bundler full-index
|
|
131
|
+
failures against `gem.coop`.
|
|
132
|
+
|
|
133
|
+
- kettle-jem-template-20260730-001 - Gemspec package file enumeration now runs
|
|
134
|
+
relative to the gemspec directory, so packaged template assets are included
|
|
135
|
+
even when the gemspec is loaded from another working directory.
|
|
136
|
+
|
|
137
|
+
## [1.0.4] - 2026-07-25
|
|
138
|
+
|
|
139
|
+
- TAG: [v1.0.4][1.0.4t]
|
|
140
|
+
- COVERAGE: 90.75% -- 412/454 lines in 3 files
|
|
141
|
+
- BRANCH COVERAGE: 76.76% -- 142/185 branches in 3 files
|
|
142
|
+
- 27.78% documented
|
|
143
|
+
|
|
144
|
+
### Changed
|
|
145
|
+
|
|
146
|
+
- kettle-jem-template-20260716-002 - Generated gemspec manifests now ship fewer
|
|
147
|
+
repository-only files by default to reduce downstream distro packaging churn.
|
|
148
|
+
- kettle-jem-template-20260720-002 - Generated development Gemfiles now use the
|
|
149
|
+
released `tree_sitter_language_pack` gem 1.13.3 or newer by default.
|
|
150
|
+
- kettle-jem-template-20260720-003 - Generated StructuredMerge Git diff driver
|
|
151
|
+
config now uses the installed `smorg-rb` Ruby driver name.
|
|
152
|
+
- kettle-jem-template-20260720-005 - Generated README Support & Community rows
|
|
153
|
+
now include a RubyForum help badge.
|
|
154
|
+
- kettle-jem-template-20260725-001 - Generated JRuby and TruffleRuby workflow
|
|
155
|
+
files now run when pull request head branches start with `feature/release`,
|
|
156
|
+
so release CI monitoring does not report intentionally skipped engine
|
|
157
|
+
workflows as failures.
|
|
158
|
+
|
|
159
|
+
- kettle-jem-template-20260725-002 - Generated gemspec templates now include
|
|
160
|
+
`anonymous_loader` as a development dependency, and version specs use it to
|
|
161
|
+
execute generated `version.rb` files for coverage without redefining package
|
|
162
|
+
constants. Managed version specs are removed when `version_gem` is disabled
|
|
163
|
+
or incompatible with the project's runtime Ruby floor.
|
|
164
|
+
|
|
165
|
+
### Removed
|
|
166
|
+
|
|
167
|
+
- Removed the stale RVM-based `bin/test.bash` helper.
|
|
168
|
+
|
|
169
|
+
### Fixed
|
|
170
|
+
|
|
171
|
+
- Root development bundle now includes the ActiveRecord test harness fragments,
|
|
172
|
+
so `bundle exec kettle-test` can load the suite outside appraisal-specific
|
|
173
|
+
Gemfiles.
|
|
174
|
+
|
|
175
|
+
## [1.0.3] - 2026-07-02
|
|
176
|
+
|
|
177
|
+
- TAG: [v1.0.3][1.0.3t]
|
|
178
|
+
- COVERAGE: 90.75% -- 412/454 lines in 3 files
|
|
179
|
+
- BRANCH COVERAGE: 76.76% -- 142/185 branches in 3 files
|
|
180
|
+
- 27.78% documented
|
|
181
|
+
|
|
182
|
+
### Added
|
|
183
|
+
|
|
184
|
+
- Added support for JRuby 10.1 and TruffleRuby 34.0.
|
|
185
|
+
|
|
186
|
+
### Changed
|
|
187
|
+
|
|
188
|
+
- Retemplated project metadata and CI/development automation with `kettle-jem` v7.0.0.
|
|
189
|
+
|
|
190
|
+
### Fixed
|
|
191
|
+
|
|
192
|
+
- Restore root Gemfile ActiveRecord test dependencies so `kettle-test` runs the
|
|
193
|
+
RSpec suite outside appraisal-specific bundles.
|
|
194
|
+
- Restore kettle-soup-cover SimpleCov startup so `kettle-test` reports merged
|
|
195
|
+
line and branch coverage from turbo_tests2 workers.
|
|
196
|
+
- Package configured license files in gem release file lists.
|
|
197
|
+
|
|
33
198
|
## [1.0.2] - 2026-06-14
|
|
34
199
|
|
|
35
200
|
- TAG: [v1.0.2][1.0.2t]
|
|
@@ -323,7 +488,15 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
323
488
|
|
|
324
489
|
# Version 0.2.3 - last version maintained by XING AG
|
|
325
490
|
|
|
326
|
-
[Unreleased]: https://github.com/galtzo-floss/flag_shih_tzu/compare/v1.0.
|
|
491
|
+
[Unreleased]: https://github.com/galtzo-floss/flag_shih_tzu/compare/v1.0.6...HEAD
|
|
492
|
+
[1.0.6]: https://github.com/galtzo-floss/flag_shih_tzu/compare/v1.0.5...v1.0.6
|
|
493
|
+
[1.0.6t]: https://github.com/galtzo-floss/flag_shih_tzu/releases/tag/v1.0.6
|
|
494
|
+
[1.0.5]: https://github.com/galtzo-floss/flag_shih_tzu/compare/v1.0.4...v1.0.5
|
|
495
|
+
[1.0.5t]: https://github.com/galtzo-floss/flag_shih_tzu/releases/tag/v1.0.5
|
|
496
|
+
[1.0.4]: https://github.com/galtzo-floss/flag_shih_tzu/compare/v1.0.3...v1.0.4
|
|
497
|
+
[1.0.4t]: https://github.com/galtzo-floss/flag_shih_tzu/releases/tag/v1.0.4
|
|
498
|
+
[1.0.3]: https://github.com/galtzo-floss/flag_shih_tzu/compare/v1.0.2...v1.0.3
|
|
499
|
+
[1.0.3t]: https://github.com/galtzo-floss/flag_shih_tzu/releases/tag/v1.0.3
|
|
327
500
|
[1.0.2]: https://github.com/galtzo-floss/flag_shih_tzu/compare/v1.0.1...v1.0.2
|
|
328
501
|
[1.0.2t]: https://github.com/galtzo-floss/flag_shih_tzu/releases/tag/v1.0.2
|
|
329
502
|
[1.0.1]: https://github.com/galtzo-floss/flag_shih_tzu/compare/v1.0.0...v1.0.1
|
data/LICENSE.md
CHANGED
|
@@ -3,22 +3,20 @@
|
|
|
3
3
|
This project is made available under the following license.
|
|
4
4
|
Choose the option that best fits your use case:
|
|
5
5
|
|
|
6
|
-
- [MIT](MIT.md)
|
|
6
|
+
- [MIT](https://github.com/galtzo-floss/flag_shih_tzu/blob/main/MIT.md)
|
|
7
7
|
|
|
8
8
|
## Copyright Notice
|
|
9
9
|
|
|
10
10
|
- Copyright (c) 2009 Alto
|
|
11
11
|
- Copyright (c) 2009-2011 boosty
|
|
12
12
|
- Copyright (c) 2009 ladislav.martincik
|
|
13
|
-
- Copyright (c) 2009-
|
|
13
|
+
- Copyright (c) 2009-2015, 2017-2018, 2026 Peter H. Boling
|
|
14
14
|
- Copyright (c) 2009 XING Engineering
|
|
15
15
|
- Copyright (c) 2010 Joost Baaij
|
|
16
|
-
- Copyright (c) 2010 Joost Baaij
|
|
17
16
|
- Copyright (c) 2011 Arturas Slajus
|
|
18
17
|
- Copyright (c) 2011 Musy Bite
|
|
19
18
|
- Copyright (c) 2011, 2014 Tim Liner
|
|
20
19
|
- Copyright (c) 2012-2013 David DIDIER
|
|
21
|
-
- Copyright (c) 2012-2015, 2017-2018, 2026 Peter H. Boling
|
|
22
20
|
- Copyright (c) 2012 Tatsuhiko Miyagawa
|
|
23
21
|
- Copyright (c) 2013 Keith Pitty
|
|
24
22
|
- Copyright (c) 2013 Peter M. Goldstein
|
|
@@ -28,9 +26,7 @@ Choose the option that best fits your use case:
|
|
|
28
26
|
- Copyright (c) 2015 jfcaiceo
|
|
29
27
|
- Copyright (c) 2016 Xinran Xiao
|
|
30
28
|
- Copyright (c) 2017 shiro16
|
|
31
|
-
- Copyright (c) 2018 Peter Boling
|
|
32
29
|
- Copyright (c) 2018 xpol
|
|
33
|
-
- Copyright (c) 2018 Yusuke Ebihara
|
|
34
30
|
- Copyright (c) 2019 Amy Martin
|
|
35
31
|
- Copyright (c) 2025 Annibelle Boling
|
|
36
32
|
- Copyright (c) 2025 horiken
|
data/README.md
CHANGED
|
@@ -24,7 +24,7 @@ FlagShihTzu.default_flag_query_mode = :in_list
|
|
|
24
24
|
|
|
25
25
|
`if ci_badges.map(&:color).all? { it == "green"}` 👇️ send money so I can do more of this. FLOSS maintenance is now my full-time job.
|
|
26
26
|
|
|
27
|
-
[![OpenCollective Backers][🖇osc-backers-i]][🖇osc-backers] [![OpenCollective Sponsors][🖇osc-sponsors-i]][🖇osc-sponsors] [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal] [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate
|
|
27
|
+
[![OpenCollective Backers][🖇osc-backers-i]][🖇osc-backers] [![OpenCollective Sponsors][🖇osc-sponsors-i]][🖇osc-sponsors] [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal] [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
|
|
28
28
|
|
|
29
29
|
<details>
|
|
30
30
|
<summary>👣 How will this project approach the September 2025 hostile takeover of RubyGems? 🚑️</summary>
|
|
@@ -67,13 +67,13 @@ What is a ["Shih Tzu"](http://en.wikipedia.org/wiki/Shih_Tzu)?
|
|
|
67
67
|
|
|
68
68
|
| Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
|
|
69
69
|
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
70
|
-
| Works with JRuby | [![JRuby 9.2 Compat][💎jruby-9.2i]][🚎jruby-9.2-wf] [![JRuby 9.3 Compat][💎jruby-9.3i]][🚎jruby-9.3-wf] <br/> [![JRuby 9.4 Compat][💎jruby-9.4i]][🚎jruby-9.4-wf] [![JRuby current Compat][💎jruby-c-i]][🚎10-j-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf]|
|
|
71
|
-
| Works with Truffle Ruby | [![Truffle Ruby 22.3 Compat][💎truby-22.3i]][🚎truby-22.3-wf] [![Truffle Ruby 23.0 Compat][💎truby-23.0i]][🚎truby-23.0-wf] [![Truffle Ruby 23.1 Compat][💎truby-23.1i]][🚎truby-23.1-wf] <br/> [![Truffle Ruby 24.2 Compat][💎truby-24.2i]][🚎truby-24.2-wf] [![Truffle Ruby 25.0 Compat][💎truby-25.0i]][🚎truby-25.0-wf] [![Truffle Ruby current Compat][💎truby-c-i]][🚎9-t-wf]|
|
|
72
|
-
| Works with MRI Ruby 4 | [![Ruby
|
|
70
|
+
| Works with JRuby | [![JRuby 9.2 Compat][💎jruby-9.2i]][🚎jruby-9.2-wf] [![JRuby 9.3 Compat][💎jruby-9.3i]][🚎jruby-9.3-wf] <br/> [![JRuby 9.4 Compat][💎jruby-9.4i]][🚎jruby-9.4-wf] [![JRuby 10.0 Compat][💎jruby-10.0i]][🚎jruby-10.0-wf] [![JRuby current Compat][💎jruby-c-i]][🚎10-j-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf]|
|
|
71
|
+
| Works with Truffle Ruby | [![Truffle Ruby 22.3 Compat][💎truby-22.3i]][🚎truby-22.3-wf] [![Truffle Ruby 23.0 Compat][💎truby-23.0i]][🚎truby-23.0-wf] [![Truffle Ruby 23.1 Compat][💎truby-23.1i]][🚎truby-23.1-wf] <br/> [![Truffle Ruby 24.2 Compat][💎truby-24.2i]][🚎truby-24.2-wf] [![Truffle Ruby 25.0 Compat][💎truby-25.0i]][🚎truby-25.0-wf] [![Truffle Ruby 33.0 Compat][💎truby-33.0i]][🚎truby-33.0-wf] [![Truffle Ruby current Compat][💎truby-c-i]][🚎9-t-wf] [![Truffle Ruby HEAD Compat][💎truby-headi]][🚎3-hd-wf]|
|
|
72
|
+
| Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf]|
|
|
73
73
|
| Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎ruby-3.0-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎ruby-3.1-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎ruby-3.2-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎ruby-3.3-wf] [![Ruby 3.4 Compat][💎ruby-3.4i]][🚎ruby-3.4-wf]|
|
|
74
74
|
| Works with MRI Ruby 2 | [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎ruby-2.4-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎ruby-2.5-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎ruby-2.6-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎ruby-2.7-wf]|
|
|
75
|
-
| Support & Community | [![Join Me on Daily.dev's RubyFriends][✉️ruby-friends-img]][✉️ruby-friends] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork] [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor] |
|
|
76
|
-
| Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on
|
|
75
|
+
| Support & Community | [![Join Me on Daily.dev's RubyFriends][✉️ruby-friends-img]][✉️ruby-friends] [![Get help from RubyForum][✉️ruby-forum-img]][✉️ruby-forum] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork] [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor] |
|
|
76
|
+
| Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on GitHub.com][📜src-gh-img]][📜src-gh] [![The best SHA: dQw4w9WgXcQ!][🧮kloc-img]][🧮kloc] |
|
|
77
77
|
| Documentation | [![Current release on RubyDoc.info][📜docs-cr-rd-img]][🚎yard-current] [![YARD on Galtzo.com][📜docs-head-rd-img]][🚎yard-head] [![Maintainer Blog][🚂maint-blog-img]][🚂maint-blog] [![GitLab Wiki][📜gl-wiki-img]][📜gl-wiki] [![GitHub Wiki][📜gh-wiki-img]][📜gh-wiki] |
|
|
78
78
|
| Compliance | [![License: MIT][📄license-img]][📄license] [![Apache license compatibility: Category A][📄license-compat-img]][📄license-compat] [![📄ilo-declaration-img]][📄ilo-declaration] [![Security Policy][🔐security-img]][🔐security] [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct] [![SemVer 2.0.0][📌semver-img]][📌semver] |
|
|
79
79
|
| Style | [![Enforced Code Style Linter][💎rlts-img]][💎rlts] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] [![Gitmoji Commits][📌gitmoji-img]][📌gitmoji] [![Compatibility appraised by: appraisal2][💎appraisal2-img]][💎appraisal2] |
|
|
@@ -82,33 +82,48 @@ What is a ["Shih Tzu"](http://en.wikipedia.org/wiki/Shih_Tzu)?
|
|
|
82
82
|
|
|
83
83
|
### Compatibility
|
|
84
84
|
|
|
85
|
-
Compatible with MRI Ruby 2.4+,
|
|
85
|
+
Compatible with MRI Ruby 2.4+, JRuby, and TruffleRuby.
|
|
86
86
|
CI workflows and Appraisals are generated for MRI Ruby 2.4+.
|
|
87
87
|
This test floor is configured by `ruby.test_minimum` in `.kettle-jem.yml` and
|
|
88
88
|
may be higher than the gem's runtime compatibility floor when legacy Rubies are
|
|
89
89
|
not practical for the current toolchain.
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
<a href="https://github.com/kettle-dev"><img alt="kettle-dev Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/kettle-dev/avatar-128px.svg" width="14%" align="right"/></a>
|
|
92
|
+
|
|
93
|
+
The _amazing_ test matrix is powered by the kettle-dev stack.
|
|
94
|
+
|
|
95
|
+
<details markdown="1">
|
|
96
|
+
<summary>How kettle-dev manages complexity in tests</summary>
|
|
97
|
+
|
|
98
|
+
| Gem | Source | Role | Total downloads |
|
|
99
|
+
|-----|--------|------|---------------------|
|
|
100
|
+
| [appraisal2](https://clickgems.clickhouse.com/dashboard/appraisal2) | [GitHub](https://github.com/appraisal-rb/appraisal2) | multi-dependency Appraisal matrix generation | [](https://clickgems.clickhouse.com/dashboard/appraisal2) |
|
|
101
|
+
| [appraisal2-rubocop](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) | [GitHub](https://github.com/appraisal-rb/appraisal2-rubocop) | RuboCop Appraisal generator integration | [](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) |
|
|
102
|
+
| [kettle-dev](https://clickgems.clickhouse.com/dashboard/kettle-dev) | [GitHub](https://github.com/kettle-dev/kettle-dev) | development, release, and CI workflow tooling | [](https://clickgems.clickhouse.com/dashboard/kettle-dev) |
|
|
103
|
+
| [kettle-jem](https://clickgems.clickhouse.com/dashboard/kettle-jem) | [GitHub](https://github.com/kettle-dev/kettle-jem) | Appraisals & CI workflow templates | [](https://clickgems.clickhouse.com/dashboard/kettle-jem) |
|
|
104
|
+
| [kettle-soup-cover](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) | [GitHub](https://github.com/kettle-dev/kettle-soup-cover) | SimpleCov coverage policy and reporting | [](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) |
|
|
105
|
+
| [kettle-test](https://clickgems.clickhouse.com/dashboard/kettle-test) | [GitHub](https://github.com/kettle-dev/kettle-test) | standard test runner and coverage harness | [](https://clickgems.clickhouse.com/dashboard/kettle-test) |
|
|
106
|
+
| [rubocop-lts](https://clickgems.clickhouse.com/dashboard/rubocop-lts) | [GitHub](https://github.com/rubocop-lts/rubocop-lts) | Ruby-version-aware linting | [](https://clickgems.clickhouse.com/dashboard/rubocop-lts) |
|
|
107
|
+
| [turbo_tests2](https://clickgems.clickhouse.com/dashboard/turbo_tests2) | [GitHub](https://github.com/galtzo-floss/turbo_tests2) | parallel test execution | [](https://clickgems.clickhouse.com/dashboard/turbo_tests2) |
|
|
108
|
+
|
|
109
|
+
</details>
|
|
94
110
|
|
|
95
111
|
### Federated DVCS
|
|
96
112
|
|
|
97
113
|
<details markdown="1">
|
|
98
114
|
<summary>Find this repo on federated forges (Coming soon!)</summary>
|
|
99
115
|
|
|
100
|
-
| Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI |
|
|
101
|
-
|
|
102
|
-
| 🧪 [galtzo-floss/flag_shih_tzu on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix |
|
|
103
|
-
| 🧊 [galtzo-floss/flag_shih_tzu on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix |
|
|
104
|
-
| 🐙 [galtzo-floss/flag_shih_tzu on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix |
|
|
105
|
-
| 🎮️ [Discord Server][✉️discord-invite] | [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] | [Let's][✉️discord-invite] | [talk][✉️discord-invite] | [about][✉️discord-invite] | [this][✉️discord-invite] | [library!][✉️discord-invite] |
|
|
116
|
+
| Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI |
|
|
117
|
+
|-------------------------------------------------|-------------------------------------------|-------------------|------------------|-----------------|----------------|
|
|
118
|
+
| 🧪 [galtzo-floss/flag_shih_tzu on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix |
|
|
119
|
+
| 🧊 [galtzo-floss/flag_shih_tzu on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix |
|
|
120
|
+
| 🐙 [galtzo-floss/flag_shih_tzu on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix |
|
|
106
121
|
|
|
107
122
|
</details>
|
|
108
123
|
|
|
109
|
-
|
|
124
|
+
### Enterprise Support
|
|
110
125
|
|
|
111
|
-
|
|
126
|
+
[](https://tidelift.com/subscription/pkg/rubygems-flag_shih_tzu?utm_source=rubygems-flag_shih_tzu&utm_medium=referral&utm_campaign=readme)
|
|
112
127
|
|
|
113
128
|
Available as part of the Tidelift Subscription.
|
|
114
129
|
|
|
@@ -125,6 +140,7 @@ The maintainers of this and thousands of other packages are working with Tidelif
|
|
|
125
140
|
|
|
126
141
|
Alternatively:
|
|
127
142
|
|
|
143
|
+
- [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
128
144
|
- [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
129
145
|
- [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork]
|
|
130
146
|
- [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor]
|
|
@@ -147,6 +163,12 @@ gem install flag_shih_tzu
|
|
|
147
163
|
|
|
148
164
|
## ⚙️ Configuration
|
|
149
165
|
|
|
166
|
+
Define one non-null integer column with a default of `0`, include
|
|
167
|
+
`FlagShihTzu` in the ActiveRecord model, and declare stable positive bit
|
|
168
|
+
positions with `has_flags`. The optional `column`, `bit_width`, `value_mode`,
|
|
169
|
+
and query-mode options are configured in that declaration; bit positions must
|
|
170
|
+
not be changed after data has been stored.
|
|
171
|
+
|
|
150
172
|
## 🔧 Basic Usage
|
|
151
173
|
|
|
152
174
|
FlagShihTzu assumes that your ActiveRecord model already has an [integer field][bit_field]
|
|
@@ -706,9 +728,8 @@ For appraisal-specific checks, run through Appraisal with
|
|
|
706
728
|
BUNDLE_GEMFILE=Appraisal.root.gemfile bundle exec appraisal kja-ar-8-0-r3 bundle exec kettle-test
|
|
707
729
|
```
|
|
708
730
|
|
|
709
|
-
Older development workflows
|
|
710
|
-
|
|
711
|
-
templated CI path is now the Appraisal/RSpec flow.
|
|
731
|
+
Older RVM-based development workflows have been removed. The templated CI path
|
|
732
|
+
is now the Appraisal/RSpec flow.
|
|
712
733
|
|
|
713
734
|
## 👥 Authors
|
|
714
735
|
|
|
@@ -823,7 +844,7 @@ NOTE: [kettle-readme-backers][kettle-readme-backers] updates this list every day
|
|
|
823
844
|
No sponsors yet. Be the first!
|
|
824
845
|
<!-- OPENCOLLECTIVE-ORGANIZATIONS:END -->
|
|
825
846
|
|
|
826
|
-
[kettle-readme-backers]: https://github.com/galtzo-floss/flag_shih_tzu/blob/main/
|
|
847
|
+
[kettle-readme-backers]: https://github.com/galtzo-floss/flag_shih_tzu/blob/main/bin/kettle-readme-backers
|
|
827
848
|
|
|
828
849
|
### Another way to support open-source
|
|
829
850
|
|
|
@@ -835,7 +856,7 @@ I’m developing a new library, [floss_funding][🖇floss-funding-gem], designed
|
|
|
835
856
|
|
|
836
857
|
**[Floss-Funding.dev][🖇floss-funding.dev]: 👉️ No network calls. 👉️ No tracking. 👉️ No oversight. 👉️ Minimal crypto hashing. 💡 Easily disabled nags**
|
|
837
858
|
|
|
838
|
-
[![OpenCollective Backers][🖇osc-backers-i]][🖇osc-backers] [![OpenCollective Sponsors][🖇osc-sponsors-i]][🖇osc-sponsors] [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal] [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate
|
|
859
|
+
[![OpenCollective Backers][🖇osc-backers-i]][🖇osc-backers] [![OpenCollective Sponsors][🖇osc-sponsors-i]][🖇osc-sponsors] [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal] [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate to my FLOSS efforts at ko-fi.com][🖇kofi-img]][🖇kofi]
|
|
839
860
|
|
|
840
861
|
## 🔐 Security
|
|
841
862
|
|
|
@@ -844,8 +865,7 @@ See [SECURITY.md][🔐security].
|
|
|
844
865
|
## 🤝 Contributing
|
|
845
866
|
|
|
846
867
|
If you need some ideas of where to help, you could work on adding more code coverage,
|
|
847
|
-
|
|
848
|
-
or use the gem and think about how it could be better.
|
|
868
|
+
check [issues][🤝gh-issues] or [PRs][🤝gh-pulls], or use the gem and think about how it could be better.
|
|
849
869
|
|
|
850
870
|
We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
|
|
851
871
|
|
|
@@ -881,14 +901,14 @@ Made with [contributors-img][🖐contrib-rocks].
|
|
|
881
901
|
|
|
882
902
|
Also see GitLab Contributors: [https://gitlab.com/galtzo-floss/flag_shih_tzu/-/graphs/main][🚎contributors-gl]
|
|
883
903
|
|
|
884
|
-
<details>
|
|
904
|
+
<details markdown="1">
|
|
885
905
|
<summary>⭐️ Star History</summary>
|
|
886
906
|
|
|
887
|
-
<a href="https://star-history.
|
|
907
|
+
<a href="https://star-history.dera.page/#galtzo-floss/flag_shih_tzu&type=date&legend=top-left">
|
|
888
908
|
<picture>
|
|
889
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://
|
|
890
|
-
<source media="(prefers-color-scheme: light)" srcset="https://
|
|
891
|
-
<img alt="Star History Chart" src="https://
|
|
909
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://star-history.dera.page/svg?repos=galtzo-floss/flag_shih_tzu&type=date&theme=dark&legend=top-left" />
|
|
910
|
+
<source media="(prefers-color-scheme: light)" srcset="https://star-history.dera.page/svg?repos=galtzo-floss/flag_shih_tzu&type=date&legend=top-left" />
|
|
911
|
+
<img alt="Star History Chart" src="https://star-history.dera.page/svg?repos=galtzo-floss/flag_shih_tzu&type=date&legend=top-left" />
|
|
892
912
|
</picture>
|
|
893
913
|
</a>
|
|
894
914
|
|
|
@@ -923,7 +943,7 @@ See [CHANGELOG.md][📌changelog] for a list of releases.
|
|
|
923
943
|
## 📄 License
|
|
924
944
|
|
|
925
945
|
The gem is available as open source under the terms of
|
|
926
|
-
the [MIT](MIT.md) [![License: MIT][📄license-img]][📄license-ref].
|
|
946
|
+
the [MIT](https://github.com/galtzo-floss/flag_shih_tzu/blob/main/MIT.md) [![License: MIT][📄license-img]][📄license-ref].
|
|
927
947
|
|
|
928
948
|
### © Copyright
|
|
929
949
|
|
|
@@ -935,15 +955,13 @@ See [LICENSE.md][📄license] for the official copyright notice.
|
|
|
935
955
|
- Copyright (c) 2009 Alto
|
|
936
956
|
- Copyright (c) 2009-2011 boosty
|
|
937
957
|
- Copyright (c) 2009 ladislav.martincik
|
|
938
|
-
- Copyright (c) 2009-
|
|
958
|
+
- Copyright (c) 2009-2015, 2017-2018, 2026 Peter H. Boling
|
|
939
959
|
- Copyright (c) 2009 XING Engineering
|
|
940
960
|
- Copyright (c) 2010 Joost Baaij
|
|
941
|
-
- Copyright (c) 2010 Joost Baaij
|
|
942
961
|
- Copyright (c) 2011 Arturas Slajus
|
|
943
962
|
- Copyright (c) 2011 Musy Bite
|
|
944
963
|
- Copyright (c) 2011, 2014 Tim Liner
|
|
945
964
|
- Copyright (c) 2012-2013 David DIDIER
|
|
946
|
-
- Copyright (c) 2012-2015, 2017-2018, 2026 Peter H. Boling
|
|
947
965
|
- Copyright (c) 2012 Tatsuhiko Miyagawa
|
|
948
966
|
- Copyright (c) 2013 Keith Pitty
|
|
949
967
|
- Copyright (c) 2013 Peter M. Goldstein
|
|
@@ -953,9 +971,7 @@ See [LICENSE.md][📄license] for the official copyright notice.
|
|
|
953
971
|
- Copyright (c) 2015 jfcaiceo
|
|
954
972
|
- Copyright (c) 2016 Xinran Xiao
|
|
955
973
|
- Copyright (c) 2017 shiro16
|
|
956
|
-
- Copyright (c) 2018 Peter Boling
|
|
957
974
|
- Copyright (c) 2018 xpol
|
|
958
|
-
- Copyright (c) 2018 Yusuke Ebihara
|
|
959
975
|
- Copyright (c) 2019 Amy Martin
|
|
960
976
|
- Copyright (c) 2025 Annibelle Boling
|
|
961
977
|
- Copyright (c) 2025 horiken
|
|
@@ -971,11 +987,12 @@ I'm hoping to be able to pay for my kids' health insurance this month,
|
|
|
971
987
|
so if you value the work I am doing, I need your support.
|
|
972
988
|
Please consider sponsoring me or the project.
|
|
973
989
|
|
|
974
|
-
To join the community or get help
|
|
990
|
+
To join the community or get help, use the RubyForum or Discord.
|
|
975
991
|
|
|
992
|
+
[![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
976
993
|
[![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
977
994
|
|
|
978
|
-
To say "thanks!" ☝️ Join the
|
|
995
|
+
To say "thanks!" ☝️ Join the community or 👇️ send money.
|
|
979
996
|
|
|
980
997
|
[![Sponsor galtzo-floss/flag_shih_tzu on Open Source Collective][🖇osc-all-bottom-img]][🖇osc] 💌 [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal]
|
|
981
998
|
|
|
@@ -1002,12 +1019,8 @@ Thanks for RTFM. ☺️
|
|
|
1002
1019
|
[🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
|
|
1003
1020
|
[🖇sponsor-bottom-img]: https://img.shields.io/badge/Sponsor_Me!-pboling-blue?style=for-the-badge&logo=github
|
|
1004
1021
|
[🖇sponsor]: https://github.com/sponsors/pboling
|
|
1005
|
-
[🖇polar-img]: https://img.shields.io/badge/polar-donate-a51611.svg?style=flat
|
|
1006
|
-
[🖇polar]: https://polar.sh/pboling
|
|
1007
1022
|
[🖇kofi-img]: https://img.shields.io/badge/ko--fi-%E2%9C%93-a51611.svg?style=flat
|
|
1008
1023
|
[🖇kofi]: https://ko-fi.com/pboling
|
|
1009
|
-
[🖇patreon-img]: https://img.shields.io/badge/patreon-donate-a51611.svg?style=flat
|
|
1010
|
-
[🖇patreon]: https://patreon.com/galtzo
|
|
1011
1024
|
[🖇buyme-small-img]: https://img.shields.io/badge/buy_me_a_coffee-%E2%9C%93-a51611.svg?style=flat
|
|
1012
1025
|
[🖇buyme-img]: https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20latte&emoji=&slug=pboling&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff
|
|
1013
1026
|
[🖇buyme]: https://www.buymeacoffee.com/pboling
|
|
@@ -1020,11 +1033,14 @@ Thanks for RTFM. ☺️
|
|
|
1020
1033
|
[✉️discord-invite-img-ftb]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge&logo=discord
|
|
1021
1034
|
[✉️ruby-friends-img]: https://img.shields.io/badge/daily.dev-%F0%9F%92%8E_Ruby_Friends-0A0A0A?style=for-the-badge&logo=dailydotdev&logoColor=white
|
|
1022
1035
|
[✉️ruby-friends]: https://app.daily.dev/squads/rubyfriends
|
|
1036
|
+
[✉️ruby-forum-top-img]: https://img.shields.io/discourse/topics?server=https%3A%2F%2Fwww.rubyforum.org&style=flat&logo=discourse&label=Ruby%20Users%20Forum
|
|
1037
|
+
[✉️ruby-forum-img]: https://img.shields.io/discourse/topics?server=https%3A%2F%2Fwww.rubyforum.org&style=for-the-badge&logo=discourse&label=Ruby%20Users%20Forum
|
|
1038
|
+
[✉️ruby-forum]: https://www.rubyforum.org/tag/flag-shih-tzu
|
|
1023
1039
|
|
|
1024
1040
|
[✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
|
|
1025
1041
|
[⛳️gem-namespace]: https://github.com/galtzo-floss/flag_shih_tzu
|
|
1026
1042
|
[⛳️namespace-img]: https://img.shields.io/badge/namespace-FlagShihTzu-3C2D2D.svg?style=square&logo=ruby&logoColor=white
|
|
1027
|
-
[⛳️gem-name]: https://
|
|
1043
|
+
[⛳️gem-name]: https://clickgems.clickhouse.com/dashboard/flag_shih_tzu
|
|
1028
1044
|
[⛳️name-img]: https://img.shields.io/badge/name-flag__shih__tzu-3C2D2D.svg?style=square&logo=rubygems&logoColor=red
|
|
1029
1045
|
[⛳️tag-img]: https://img.shields.io/github/tag/galtzo-floss/flag_shih_tzu.svg
|
|
1030
1046
|
[⛳️tag]: https://github.com/galtzo-floss/flag_shih_tzu/releases
|
|
@@ -1065,7 +1081,7 @@ Thanks for RTFM. ☺️
|
|
|
1065
1081
|
[📜src-gl]: https://gitlab.com/galtzo-floss/flag_shih_tzu
|
|
1066
1082
|
[📜src-cb-img]: https://img.shields.io/badge/CodeBerg-4893CC?style=for-the-badge&logo=CodeBerg&logoColor=blue
|
|
1067
1083
|
[📜src-cb]: https://codeberg.org/galtzo-floss/flag_shih_tzu
|
|
1068
|
-
[📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=
|
|
1084
|
+
[📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=GitHub&logoColor=green
|
|
1069
1085
|
[📜src-gh]: https://github.com/galtzo-floss/flag_shih_tzu
|
|
1070
1086
|
[📜docs-cr-rd-img]: https://img.shields.io/badge/RubyDoc-Current_Release-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
|
1071
1087
|
[📜docs-head-rd-img]: https://img.shields.io/badge/YARD_on_Galtzo.com-HEAD-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
|
@@ -1073,9 +1089,9 @@ Thanks for RTFM. ☺️
|
|
|
1073
1089
|
[📜gh-wiki]: https://github.com/galtzo-floss/flag_shih_tzu/wiki
|
|
1074
1090
|
[📜gl-wiki-img]: https://img.shields.io/badge/wiki-gitlab-943CD2.svg?style=for-the-badge&logo=gitlab&logoColor=white
|
|
1075
1091
|
[📜gh-wiki-img]: https://img.shields.io/badge/wiki-github-943CD2.svg?style=for-the-badge&logo=github&logoColor=white
|
|
1076
|
-
[👽dl-rank]: https://
|
|
1077
|
-
[👽dl-ranki]: https://img.shields.io/gem/
|
|
1078
|
-
[👽version]: https://
|
|
1092
|
+
[👽dl-rank]: https://clickgems.clickhouse.com/dashboard/flag_shih_tzu
|
|
1093
|
+
[👽dl-ranki]: https://img.shields.io/gem/dt/flag_shih_tzu.svg
|
|
1094
|
+
[👽version]: https://clickgems.clickhouse.com/dashboard/flag_shih_tzu
|
|
1079
1095
|
[👽versioni]: https://img.shields.io/gem/v/flag_shih_tzu.svg
|
|
1080
1096
|
[🏀qlty-mnt]: https://qlty.sh/gh/galtzo-floss/projects/flag_shih_tzu
|
|
1081
1097
|
[🏀qlty-mnti]: https://qlty.sh/gh/galtzo-floss/projects/flag_shih_tzu/maintainability.svg
|
|
@@ -1097,11 +1113,13 @@ Thanks for RTFM. ☺️
|
|
|
1097
1113
|
[🚎jruby-9.2-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/jruby-9.2.yml
|
|
1098
1114
|
[🚎jruby-9.3-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/jruby-9.3.yml
|
|
1099
1115
|
[🚎jruby-9.4-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/jruby-9.4.yml
|
|
1116
|
+
[🚎jruby-10.0-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/jruby-10.0.yml
|
|
1100
1117
|
[🚎truby-22.3-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/truffleruby-22.3.yml
|
|
1101
1118
|
[🚎truby-23.0-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/truffleruby-23.0.yml
|
|
1102
1119
|
[🚎truby-23.1-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/truffleruby-23.1.yml
|
|
1103
1120
|
[🚎truby-24.2-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/truffleruby-24.2.yml
|
|
1104
1121
|
[🚎truby-25.0-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/truffleruby-25.0.yml
|
|
1122
|
+
[🚎truby-33.0-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/truffleruby-33.0.yml
|
|
1105
1123
|
[🚎2-cov-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/coverage.yml
|
|
1106
1124
|
[🚎2-cov-wfi]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/coverage.yml/badge.svg
|
|
1107
1125
|
[🚎3-hd-wf]: https://github.com/galtzo-floss/flag_shih_tzu/actions/workflows/heads.yml
|
|
@@ -1131,7 +1149,6 @@ Thanks for RTFM. ☺️
|
|
|
1131
1149
|
[💎ruby-3.2i]: https://img.shields.io/badge/Ruby-3.2-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
1132
1150
|
[💎ruby-3.3i]: https://img.shields.io/badge/Ruby-3.3-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
1133
1151
|
[💎ruby-3.4i]: https://img.shields.io/badge/Ruby-3.4-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
1134
|
-
[💎ruby-4.0i]: https://img.shields.io/badge/Ruby-4.0-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
1135
1152
|
[💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
|
|
1136
1153
|
[💎ruby-headi]: https://img.shields.io/badge/Ruby-HEAD-CC342D?style=for-the-badge&logo=ruby&logoColor=blue
|
|
1137
1154
|
[💎truby-22.3i]: https://img.shields.io/badge/Truffle_Ruby-22.3-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
@@ -1139,10 +1156,13 @@ Thanks for RTFM. ☺️
|
|
|
1139
1156
|
[💎truby-23.1i]: https://img.shields.io/badge/Truffle_Ruby-23.1-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
1140
1157
|
[💎truby-24.2i]: https://img.shields.io/badge/Truffle_Ruby-24.2-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
1141
1158
|
[💎truby-25.0i]: https://img.shields.io/badge/Truffle_Ruby-25.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
1159
|
+
[💎truby-33.0i]: https://img.shields.io/badge/Truffle_Ruby-33.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
1142
1160
|
[💎truby-c-i]: https://img.shields.io/badge/Truffle_Ruby-current-34BCB1?style=for-the-badge&logo=ruby&logoColor=green
|
|
1161
|
+
[💎truby-headi]: https://img.shields.io/badge/Truffle_Ruby-HEAD-34BCB1?style=for-the-badge&logo=ruby&logoColor=blue
|
|
1143
1162
|
[💎jruby-9.2i]: https://img.shields.io/badge/JRuby-9.2-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
1144
1163
|
[💎jruby-9.3i]: https://img.shields.io/badge/JRuby-9.3-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
1145
1164
|
[💎jruby-9.4i]: https://img.shields.io/badge/JRuby-9.4-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
1165
|
+
[💎jruby-10.0i]: https://img.shields.io/badge/JRuby-10.0-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
1146
1166
|
[💎jruby-c-i]: https://img.shields.io/badge/JRuby-current-FBE742?style=for-the-badge&logo=ruby&logoColor=green
|
|
1147
1167
|
[💎jruby-headi]: https://img.shields.io/badge/JRuby-HEAD-FBE742?style=for-the-badge&logo=ruby&logoColor=blue
|
|
1148
1168
|
[🤝gh-issues]: https://github.com/galtzo-floss/flag_shih_tzu/issues
|
|
@@ -1176,7 +1196,7 @@ Thanks for RTFM. ☺️
|
|
|
1176
1196
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
1177
1197
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
|
1178
1198
|
[📄license]: LICENSE.md
|
|
1179
|
-
[📄license-ref]: MIT.md
|
|
1199
|
+
[📄license-ref]: https://github.com/galtzo-floss/flag_shih_tzu/blob/main/MIT.md
|
|
1180
1200
|
[📄license-img]: https://img.shields.io/badge/License-MIT-259D6C.svg
|
|
1181
1201
|
[📄license-compat]: https://www.apache.org/legal/resolved.html#category-a
|
|
1182
1202
|
[📄license-compat-img]: https://img.shields.io/badge/Apache_Compatible:_Category_A-%E2%9C%93-259D6C.svg?style=flat&logo=Apache
|
|
@@ -1184,6 +1204,11 @@ Thanks for RTFM. ☺️
|
|
|
1184
1204
|
[🧪fossa-img]: https://app.fossa.com/api/projects/git+github.com%2Fpboling%2Fflag_shih_tzu.svg?type=shield
|
|
1185
1205
|
[📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
|
|
1186
1206
|
[📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-259D6C.svg?style=flat
|
|
1207
|
+
[🖼️galtzo-floss]: https://github.com/galtzo-floss
|
|
1208
|
+
[bit_field]: http://en.wikipedia.org/wiki/Bit_field
|
|
1209
|
+
[bitwise_operation]: http://en.wikipedia.org/wiki/Bitwise_operation
|
|
1210
|
+
[bitfield]: http://en.wikipedia.org/wiki/Bit_field
|
|
1211
|
+
[bit_operation]: http://en.wikipedia.org/wiki/Bitwise_operation
|
|
1187
1212
|
[🚎yard-current]: http://rubydoc.info/gems/flag_shih_tzu
|
|
1188
1213
|
[🚎yard-head]: https://flag-shih-tzu.galtzo.com
|
|
1189
1214
|
[💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
|
|
@@ -1200,7 +1225,7 @@ Thanks for RTFM. ☺️
|
|
|
1200
1225
|
| Package | flag_shih_tzu |
|
|
1201
1226
|
| Description | 🏁 Single and Multi-Bit Fields for ActiveRecord:<br>This gem lets you use a single integer column in an ActiveRecord model<br>to store a collection of boolean attributes (flags). Each flag can be used<br>almost in the same way you would use any boolean attribute on an<br>ActiveRecord object. Support for multi-bit fields, like tri-state or enums. |
|
|
1202
1227
|
| Homepage | https://github.com/galtzo-floss/flag_shih_tzu |
|
|
1203
|
-
| Source | https://github.com/galtzo-floss/flag_shih_tzu
|
|
1228
|
+
| Source | https://github.com/galtzo-floss/flag_shih_tzu |
|
|
1204
1229
|
| License | `MIT` |
|
|
1205
|
-
| Funding | https://github.com/sponsors/pboling, https://
|
|
1230
|
+
| Funding | https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/galtzo-floss, https://thanks.dev/u/gh/pboling, https://tidelift.com/funding/github/rubygems/flag_shih_tzu, https://www.buymeacoffee.com/pboling |
|
|
1206
1231
|
<!-- kettle-jem:metadata:end -->
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module FlagShihTzu
|
|
4
|
+
# Version namespace for this gem.
|
|
4
5
|
module Version
|
|
5
|
-
|
|
6
|
+
# Current gem version.
|
|
7
|
+
VERSION = "1.0.6"
|
|
6
8
|
end
|
|
9
|
+
# Current gem version exposed at the traditional constant location.
|
|
7
10
|
VERSION = Version::VERSION # Traditional Constant Location
|
|
8
11
|
end
|
data/lib/flag_shih_tzu.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Would like to support other database adapters so no more hard dependency on Active Record.
|
|
2
2
|
require "version_gem"
|
|
3
|
-
require_relative "flag_shih_tzu/version"
|
|
4
3
|
|
|
5
4
|
require "flag_shih_tzu/validators"
|
|
5
|
+
require_relative "flag_shih_tzu/version"
|
|
6
6
|
|
|
7
7
|
module FlagShihTzu
|
|
8
8
|
# taken from ActiveRecord::ConnectionAdapters::Column
|
|
@@ -948,7 +948,6 @@ To turn off this warning set check_for_column: false in has_flags definition her
|
|
|
948
948
|
# :not_scheduled_appointment]
|
|
949
949
|
# User.chained_flags_with("flags", *user.chained_flags_with_signature)
|
|
950
950
|
# => the set of Users that have the same flags set as user.
|
|
951
|
-
#
|
|
952
951
|
def chained_flags_with_signature(colmn = DEFAULT_COLUMN_NAME, *args)
|
|
953
952
|
flags_to_collect = args.empty? ? all_flags(colmn) : args
|
|
954
953
|
truthy_and_chosen =
|
|
@@ -973,7 +972,6 @@ To turn off this warning set check_for_column: false in has_flags definition her
|
|
|
973
972
|
# :first,
|
|
974
973
|
# :last)
|
|
975
974
|
# end
|
|
976
|
-
#
|
|
977
975
|
def as_flag_collection(colmn = DEFAULT_COLUMN_NAME, *args)
|
|
978
976
|
flags_to_collect = args.empty? ? all_flags(colmn) : args
|
|
979
977
|
collect_flags(*flags_to_collect) do |memo, flag|
|
data.tar.gz.sig
CHANGED
|
Binary file
|