flag_shih_tzu 1.0.4 → 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 +109 -7
- data/LICENSE.md +1 -4
- data/README.md +46 -37
- data/lib/flag_shih_tzu/version.rb +4 -1
- data/lib/flag_shih_tzu.rb +1 -3
- data.tar.gz.sig +0 -0
- metadata +22 -23
- metadata.gz.sig +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,110 @@ 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
|
+
|
|
33
137
|
## [1.0.4] - 2026-07-25
|
|
34
138
|
|
|
35
139
|
- TAG: [v1.0.4][1.0.4t]
|
|
@@ -39,18 +143,12 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
39
143
|
|
|
40
144
|
### Changed
|
|
41
145
|
|
|
42
|
-
- kettle-jem-template-20260716-001 - Shim gemspec manifests now include
|
|
43
|
-
`LICENSE.md` instead of nonexistent `LICENSE.txt`.
|
|
44
146
|
- kettle-jem-template-20260716-002 - Generated gemspec manifests now ship fewer
|
|
45
147
|
repository-only files by default to reduce downstream distro packaging churn.
|
|
46
|
-
- kettle-jem-template-20260720-001 - Generated READMEs can now render
|
|
47
|
-
template-managed corporate sponsor logos from project or family config.
|
|
48
148
|
- kettle-jem-template-20260720-002 - Generated development Gemfiles now use the
|
|
49
149
|
released `tree_sitter_language_pack` gem 1.13.3 or newer by default.
|
|
50
150
|
- kettle-jem-template-20260720-003 - Generated StructuredMerge Git diff driver
|
|
51
151
|
config now uses the installed `smorg-rb` Ruby driver name.
|
|
52
|
-
- kettle-jem-template-20260720-004 - Generated multi-engine workflow files now
|
|
53
|
-
omit JRuby and TruffleRuby jobs when project config declares MRI-only engines.
|
|
54
152
|
- kettle-jem-template-20260720-005 - Generated README Support & Community rows
|
|
55
153
|
now include a RubyForum help badge.
|
|
56
154
|
- kettle-jem-template-20260725-001 - Generated JRuby and TruffleRuby workflow
|
|
@@ -390,7 +488,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
390
488
|
|
|
391
489
|
# Version 0.2.3 - last version maintained by XING AG
|
|
392
490
|
|
|
393
|
-
[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
|
|
394
496
|
[1.0.4]: https://github.com/galtzo-floss/flag_shih_tzu/compare/v1.0.3...v1.0.4
|
|
395
497
|
[1.0.4t]: https://github.com/galtzo-floss/flag_shih_tzu/releases/tag/v1.0.4
|
|
396
498
|
[1.0.3]: https://github.com/galtzo-floss/flag_shih_tzu/compare/v1.0.2...v1.0.3
|
data/LICENSE.md
CHANGED
|
@@ -10,15 +10,13 @@ Choose the option that best fits your use case:
|
|
|
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,7 +26,6 @@ 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
30
|
- Copyright (c) 2019 Amy Martin
|
|
34
31
|
- Copyright (c) 2025 Annibelle Boling
|
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>
|
|
@@ -82,7 +82,7 @@ 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
|
|
@@ -95,16 +95,16 @@ The _amazing_ test matrix is powered by the kettle-dev stack.
|
|
|
95
95
|
<details markdown="1">
|
|
96
96
|
<summary>How kettle-dev manages complexity in tests</summary>
|
|
97
97
|
|
|
98
|
-
| Gem | Source | Role |
|
|
98
|
+
| Gem | Source | Role | Total downloads |
|
|
99
99
|
|-----|--------|------|---------------------|
|
|
100
|
-
| [appraisal2](https://
|
|
101
|
-
| [appraisal2-rubocop](https://
|
|
102
|
-
| [kettle-dev](https://
|
|
103
|
-
| [kettle-jem](https://
|
|
104
|
-
| [kettle-soup-cover](https://
|
|
105
|
-
| [kettle-test](https://
|
|
106
|
-
| [rubocop-lts](https://
|
|
107
|
-
| [turbo_tests2](https://
|
|
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
108
|
|
|
109
109
|
</details>
|
|
110
110
|
|
|
@@ -113,18 +113,17 @@ The _amazing_ test matrix is powered by the kettle-dev stack.
|
|
|
113
113
|
<details markdown="1">
|
|
114
114
|
<summary>Find this repo on federated forges (Coming soon!)</summary>
|
|
115
115
|
|
|
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 |
|
|
121
|
-
| 🎮️ [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 |
|
|
122
121
|
|
|
123
122
|
</details>
|
|
124
123
|
|
|
125
|
-
|
|
124
|
+
### Enterprise Support
|
|
126
125
|
|
|
127
|
-
|
|
126
|
+
[](https://tidelift.com/subscription/pkg/rubygems-flag_shih_tzu?utm_source=rubygems-flag_shih_tzu&utm_medium=referral&utm_campaign=readme)
|
|
128
127
|
|
|
129
128
|
Available as part of the Tidelift Subscription.
|
|
130
129
|
|
|
@@ -141,6 +140,7 @@ The maintainers of this and thousands of other packages are working with Tidelif
|
|
|
141
140
|
|
|
142
141
|
Alternatively:
|
|
143
142
|
|
|
143
|
+
- [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
144
144
|
- [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
145
145
|
- [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork]
|
|
146
146
|
- [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor]
|
|
@@ -163,6 +163,12 @@ gem install flag_shih_tzu
|
|
|
163
163
|
|
|
164
164
|
## ⚙️ Configuration
|
|
165
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
|
+
|
|
166
172
|
## 🔧 Basic Usage
|
|
167
173
|
|
|
168
174
|
FlagShihTzu assumes that your ActiveRecord model already has an [integer field][bit_field]
|
|
@@ -859,8 +865,7 @@ See [SECURITY.md][🔐security].
|
|
|
859
865
|
## 🤝 Contributing
|
|
860
866
|
|
|
861
867
|
If you need some ideas of where to help, you could work on adding more code coverage,
|
|
862
|
-
|
|
863
|
-
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.
|
|
864
869
|
|
|
865
870
|
We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
|
|
866
871
|
|
|
@@ -899,11 +904,11 @@ Also see GitLab Contributors: [https://gitlab.com/galtzo-floss/flag_shih_tzu/-/g
|
|
|
899
904
|
<details markdown="1">
|
|
900
905
|
<summary>⭐️ Star History</summary>
|
|
901
906
|
|
|
902
|
-
<a href="https://star-history.
|
|
907
|
+
<a href="https://star-history.dera.page/#galtzo-floss/flag_shih_tzu&type=date&legend=top-left">
|
|
903
908
|
<picture>
|
|
904
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://
|
|
905
|
-
<source media="(prefers-color-scheme: light)" srcset="https://
|
|
906
|
-
<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" />
|
|
907
912
|
</picture>
|
|
908
913
|
</a>
|
|
909
914
|
|
|
@@ -950,15 +955,13 @@ See [LICENSE.md][📄license] for the official copyright notice.
|
|
|
950
955
|
- Copyright (c) 2009 Alto
|
|
951
956
|
- Copyright (c) 2009-2011 boosty
|
|
952
957
|
- Copyright (c) 2009 ladislav.martincik
|
|
953
|
-
- Copyright (c) 2009-
|
|
958
|
+
- Copyright (c) 2009-2015, 2017-2018, 2026 Peter H. Boling
|
|
954
959
|
- Copyright (c) 2009 XING Engineering
|
|
955
960
|
- Copyright (c) 2010 Joost Baaij
|
|
956
|
-
- Copyright (c) 2010 Joost Baaij
|
|
957
961
|
- Copyright (c) 2011 Arturas Slajus
|
|
958
962
|
- Copyright (c) 2011 Musy Bite
|
|
959
963
|
- Copyright (c) 2011, 2014 Tim Liner
|
|
960
964
|
- Copyright (c) 2012-2013 David DIDIER
|
|
961
|
-
- Copyright (c) 2012-2015, 2017-2018, 2026 Peter H. Boling
|
|
962
965
|
- Copyright (c) 2012 Tatsuhiko Miyagawa
|
|
963
966
|
- Copyright (c) 2013 Keith Pitty
|
|
964
967
|
- Copyright (c) 2013 Peter M. Goldstein
|
|
@@ -968,7 +971,6 @@ See [LICENSE.md][📄license] for the official copyright notice.
|
|
|
968
971
|
- Copyright (c) 2015 jfcaiceo
|
|
969
972
|
- Copyright (c) 2016 Xinran Xiao
|
|
970
973
|
- Copyright (c) 2017 shiro16
|
|
971
|
-
- Copyright (c) 2018 Peter Boling
|
|
972
974
|
- Copyright (c) 2018 xpol
|
|
973
975
|
- Copyright (c) 2019 Amy Martin
|
|
974
976
|
- Copyright (c) 2025 Annibelle Boling
|
|
@@ -985,11 +987,12 @@ I'm hoping to be able to pay for my kids' health insurance this month,
|
|
|
985
987
|
so if you value the work I am doing, I need your support.
|
|
986
988
|
Please consider sponsoring me or the project.
|
|
987
989
|
|
|
988
|
-
To join the community or get help
|
|
990
|
+
To join the community or get help, use the RubyForum or Discord.
|
|
989
991
|
|
|
992
|
+
[![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
990
993
|
[![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
991
994
|
|
|
992
|
-
To say "thanks!" ☝️ Join the
|
|
995
|
+
To say "thanks!" ☝️ Join the community or 👇️ send money.
|
|
993
996
|
|
|
994
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]
|
|
995
998
|
|
|
@@ -1030,13 +1033,14 @@ Thanks for RTFM. ☺️
|
|
|
1030
1033
|
[✉️discord-invite-img-ftb]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge&logo=discord
|
|
1031
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
|
|
1032
1035
|
[✉️ruby-friends]: https://app.daily.dev/squads/rubyfriends
|
|
1033
|
-
[✉️ruby-forum-img]: https://img.shields.io/
|
|
1034
|
-
[✉️ruby-forum]: https://
|
|
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
|
|
1035
1039
|
|
|
1036
1040
|
[✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
|
|
1037
1041
|
[⛳️gem-namespace]: https://github.com/galtzo-floss/flag_shih_tzu
|
|
1038
1042
|
[⛳️namespace-img]: https://img.shields.io/badge/namespace-FlagShihTzu-3C2D2D.svg?style=square&logo=ruby&logoColor=white
|
|
1039
|
-
[⛳️gem-name]: https://
|
|
1043
|
+
[⛳️gem-name]: https://clickgems.clickhouse.com/dashboard/flag_shih_tzu
|
|
1040
1044
|
[⛳️name-img]: https://img.shields.io/badge/name-flag__shih__tzu-3C2D2D.svg?style=square&logo=rubygems&logoColor=red
|
|
1041
1045
|
[⛳️tag-img]: https://img.shields.io/github/tag/galtzo-floss/flag_shih_tzu.svg
|
|
1042
1046
|
[⛳️tag]: https://github.com/galtzo-floss/flag_shih_tzu/releases
|
|
@@ -1085,9 +1089,9 @@ Thanks for RTFM. ☺️
|
|
|
1085
1089
|
[📜gh-wiki]: https://github.com/galtzo-floss/flag_shih_tzu/wiki
|
|
1086
1090
|
[📜gl-wiki-img]: https://img.shields.io/badge/wiki-gitlab-943CD2.svg?style=for-the-badge&logo=gitlab&logoColor=white
|
|
1087
1091
|
[📜gh-wiki-img]: https://img.shields.io/badge/wiki-github-943CD2.svg?style=for-the-badge&logo=github&logoColor=white
|
|
1088
|
-
[👽dl-rank]: https://
|
|
1089
|
-
[👽dl-ranki]: https://img.shields.io/gem/
|
|
1090
|
-
[👽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
|
|
1091
1095
|
[👽versioni]: https://img.shields.io/gem/v/flag_shih_tzu.svg
|
|
1092
1096
|
[🏀qlty-mnt]: https://qlty.sh/gh/galtzo-floss/projects/flag_shih_tzu
|
|
1093
1097
|
[🏀qlty-mnti]: https://qlty.sh/gh/galtzo-floss/projects/flag_shih_tzu/maintainability.svg
|
|
@@ -1200,6 +1204,11 @@ Thanks for RTFM. ☺️
|
|
|
1200
1204
|
[🧪fossa-img]: https://app.fossa.com/api/projects/git+github.com%2Fpboling%2Fflag_shih_tzu.svg?type=shield
|
|
1201
1205
|
[📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
|
|
1202
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
|
|
1203
1212
|
[🚎yard-current]: http://rubydoc.info/gems/flag_shih_tzu
|
|
1204
1213
|
[🚎yard-head]: https://flag-shih-tzu.galtzo.com
|
|
1205
1214
|
[💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
|
|
@@ -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
|
metadata
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flag_shih_tzu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alto
|
|
8
8
|
- boosty
|
|
9
9
|
- ladislav.martincik
|
|
10
|
-
-
|
|
10
|
+
- Peter H. Boling
|
|
11
11
|
- XING Engineering
|
|
12
12
|
- Joost Baaij
|
|
13
13
|
- Arturas Slajus
|
|
14
14
|
- Musy Bite
|
|
15
15
|
- Tim Liner
|
|
16
16
|
- David DIDIER
|
|
17
|
-
- Peter H. Boling
|
|
18
17
|
- Tatsuhiko Miyagawa
|
|
19
18
|
- Keith Pitty
|
|
20
19
|
- Peter M. Goldstein
|
|
@@ -24,7 +23,6 @@ authors:
|
|
|
24
23
|
- jfcaiceo
|
|
25
24
|
- Xinran Xiao
|
|
26
25
|
- shiro16
|
|
27
|
-
- Peter Boling
|
|
28
26
|
- xpol
|
|
29
27
|
- Yusuke Ebihara
|
|
30
28
|
- Amy Martin
|
|
@@ -71,7 +69,7 @@ dependencies:
|
|
|
71
69
|
version: '1.1'
|
|
72
70
|
- - ">="
|
|
73
71
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 1.1.
|
|
72
|
+
version: 1.1.15
|
|
75
73
|
type: :runtime
|
|
76
74
|
prerelease: false
|
|
77
75
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -81,27 +79,27 @@ dependencies:
|
|
|
81
79
|
version: '1.1'
|
|
82
80
|
- - ">="
|
|
83
81
|
- !ruby/object:Gem::Version
|
|
84
|
-
version: 1.1.
|
|
82
|
+
version: 1.1.15
|
|
85
83
|
- !ruby/object:Gem::Dependency
|
|
86
84
|
name: kettle-dev
|
|
87
85
|
requirement: !ruby/object:Gem::Requirement
|
|
88
86
|
requirements:
|
|
89
87
|
- - "~>"
|
|
90
88
|
- !ruby/object:Gem::Version
|
|
91
|
-
version: '
|
|
89
|
+
version: '3.1'
|
|
92
90
|
- - ">="
|
|
93
91
|
- !ruby/object:Gem::Version
|
|
94
|
-
version:
|
|
92
|
+
version: 3.1.0
|
|
95
93
|
type: :development
|
|
96
94
|
prerelease: false
|
|
97
95
|
version_requirements: !ruby/object:Gem::Requirement
|
|
98
96
|
requirements:
|
|
99
97
|
- - "~>"
|
|
100
98
|
- !ruby/object:Gem::Version
|
|
101
|
-
version: '
|
|
99
|
+
version: '3.1'
|
|
102
100
|
- - ">="
|
|
103
101
|
- !ruby/object:Gem::Version
|
|
104
|
-
version:
|
|
102
|
+
version: 3.1.0
|
|
105
103
|
- !ruby/object:Gem::Dependency
|
|
106
104
|
name: bundler-audit
|
|
107
105
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -179,7 +177,7 @@ dependencies:
|
|
|
179
177
|
version: '3.2'
|
|
180
178
|
- - ">="
|
|
181
179
|
- !ruby/object:Gem::Version
|
|
182
|
-
version: 3.2.
|
|
180
|
+
version: 3.2.3
|
|
183
181
|
type: :development
|
|
184
182
|
prerelease: false
|
|
185
183
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -189,7 +187,7 @@ dependencies:
|
|
|
189
187
|
version: '3.2'
|
|
190
188
|
- - ">="
|
|
191
189
|
- !ruby/object:Gem::Version
|
|
192
|
-
version: 3.2.
|
|
190
|
+
version: 3.2.3
|
|
193
191
|
- !ruby/object:Gem::Dependency
|
|
194
192
|
name: kettle-test
|
|
195
193
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -199,7 +197,7 @@ dependencies:
|
|
|
199
197
|
version: '2.0'
|
|
200
198
|
- - ">="
|
|
201
199
|
- !ruby/object:Gem::Version
|
|
202
|
-
version: 2.0.
|
|
200
|
+
version: 2.0.21
|
|
203
201
|
type: :development
|
|
204
202
|
prerelease: false
|
|
205
203
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -209,7 +207,7 @@ dependencies:
|
|
|
209
207
|
version: '2.0'
|
|
210
208
|
- - ">="
|
|
211
209
|
- !ruby/object:Gem::Version
|
|
212
|
-
version: 2.0.
|
|
210
|
+
version: 2.0.21
|
|
213
211
|
- !ruby/object:Gem::Dependency
|
|
214
212
|
name: turbo_tests2
|
|
215
213
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -219,7 +217,7 @@ dependencies:
|
|
|
219
217
|
version: '3.2'
|
|
220
218
|
- - ">="
|
|
221
219
|
- !ruby/object:Gem::Version
|
|
222
|
-
version: 3.2.
|
|
220
|
+
version: 3.2.8
|
|
223
221
|
type: :development
|
|
224
222
|
prerelease: false
|
|
225
223
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -229,7 +227,7 @@ dependencies:
|
|
|
229
227
|
version: '3.2'
|
|
230
228
|
- - ">="
|
|
231
229
|
- !ruby/object:Gem::Version
|
|
232
|
-
version: 3.2.
|
|
230
|
+
version: 3.2.8
|
|
233
231
|
- !ruby/object:Gem::Dependency
|
|
234
232
|
name: ruby-progressbar
|
|
235
233
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -253,7 +251,7 @@ dependencies:
|
|
|
253
251
|
version: '1.0'
|
|
254
252
|
- - ">="
|
|
255
253
|
- !ruby/object:Gem::Version
|
|
256
|
-
version: 1.0.
|
|
254
|
+
version: 1.0.9
|
|
257
255
|
type: :development
|
|
258
256
|
prerelease: false
|
|
259
257
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -263,7 +261,7 @@ dependencies:
|
|
|
263
261
|
version: '1.0'
|
|
264
262
|
- - ">="
|
|
265
263
|
- !ruby/object:Gem::Version
|
|
266
|
-
version: 1.0.
|
|
264
|
+
version: 1.0.9
|
|
267
265
|
- !ruby/object:Gem::Dependency
|
|
268
266
|
name: gitmoji-regex
|
|
269
267
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -273,7 +271,7 @@ dependencies:
|
|
|
273
271
|
version: '2.0'
|
|
274
272
|
- - ">="
|
|
275
273
|
- !ruby/object:Gem::Version
|
|
276
|
-
version: 2.0.
|
|
274
|
+
version: 2.0.13
|
|
277
275
|
type: :development
|
|
278
276
|
prerelease: false
|
|
279
277
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -283,7 +281,7 @@ dependencies:
|
|
|
283
281
|
version: '2.0'
|
|
284
282
|
- - ">="
|
|
285
283
|
- !ruby/object:Gem::Version
|
|
286
|
-
version: 2.0.
|
|
284
|
+
version: 2.0.13
|
|
287
285
|
description: "\U0001F3C1 Single and Multi-Bit Fields for ActiveRecord:\nThis gem lets
|
|
288
286
|
you use a single integer column in an ActiveRecord model\nto store a collection
|
|
289
287
|
of boolean attributes (flags). Each flag can be used\nalmost in the same way you
|
|
@@ -307,14 +305,15 @@ licenses:
|
|
|
307
305
|
- MIT
|
|
308
306
|
metadata:
|
|
309
307
|
homepage_uri: https://flag-shih-tzu.galtzo.com
|
|
310
|
-
source_code_uri: https://github.com/galtzo-floss/flag_shih_tzu/tree/v1.0.
|
|
311
|
-
changelog_uri: https://github.com/galtzo-floss/flag_shih_tzu/blob/v1.0.
|
|
308
|
+
source_code_uri: https://github.com/galtzo-floss/flag_shih_tzu/tree/v1.0.6
|
|
309
|
+
changelog_uri: https://github.com/galtzo-floss/flag_shih_tzu/blob/v1.0.6/CHANGELOG.md
|
|
312
310
|
bug_tracker_uri: https://github.com/galtzo-floss/flag_shih_tzu/issues
|
|
313
|
-
documentation_uri: https://www.rubydoc.info/gems/flag_shih_tzu/1.0.
|
|
311
|
+
documentation_uri: https://www.rubydoc.info/gems/flag_shih_tzu/1.0.6
|
|
314
312
|
funding_uri: https://github.com/sponsors/pboling
|
|
315
313
|
wiki_uri: https://github.com/galtzo-floss/flag_shih_tzu/wiki
|
|
316
314
|
news_uri: https://www.railsbling.com/tags/flag_shih_tzu
|
|
317
315
|
discord_uri: https://discord.gg/3qme4XHNKN
|
|
316
|
+
mailing_list_uri: https://www.rubyforum.org/tag/flag-shih-tzu
|
|
318
317
|
rubygems_mfa_required: 'true'
|
|
319
318
|
rdoc_options:
|
|
320
319
|
- "--title"
|
metadata.gz.sig
CHANGED
|
Binary file
|