color_hash 1.0.0 → 1.0.1
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/CHANGELOG.md +10 -0
- data/README.md +7 -5
- data/lib/color_hash/generator.rb +2 -0
- data/lib/color_hash/version.rb +1 -1
- metadata +4 -10
- data/.rspec +0 -3
- data/.rubocop.yml +0 -4
- data/Gemfile +0 -12
- data/Gemfile.lock +0 -129
- data/Makefile +0 -21
- data/Rakefile +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5cf5a999840fff027b954343a856b43276c6d2f021100ddc1811b63b03ac1636
|
|
4
|
+
data.tar.gz: c83fb8b5573feb4508c8ea64d4829f3db1ddc9390d7e6bfa82fda5a7f5a97df4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 053a0d6b28512402726a965fc1270e195b6f132cd0f67b59521f2cfa2cc74c93905d5df0173f567abc166a25ed259ca93d8ecda2c48e068507c461f066da1b82
|
|
7
|
+
data.tar.gz: 462aea99f9e3d14e921d20fed8ed7c84c3672599fb83efb4bf588f8ce7018a6d11fc6954527260d2ba6043023ea2b47caea5a2702076795bfdde12e46883b2fb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.0.1] - 2026-11-04
|
|
4
|
+
|
|
5
|
+
- Fix `NameError` when using the `:sha256` hash option
|
|
6
|
+
- Replace RSpec with Minitest
|
|
7
|
+
- Ship only `lib`, `sig`, the README and the CHANGELOG in the published gem
|
|
8
|
+
- Replace `make deploy` with `make release`, which runs the tests and security scans first
|
|
9
|
+
- Add `make security` (Trivy and bundle-audit) and `make test-rubies` targets
|
|
10
|
+
- Add `.ruby-version` and `trivy.yaml`
|
|
11
|
+
- Update dependencies
|
|
12
|
+
|
|
3
13
|
## [1.0.0] - 2026-07-15
|
|
4
14
|
|
|
5
15
|
- Update dependencies and bundler
|
data/README.md
CHANGED
|
@@ -34,9 +34,9 @@ rgb = color_hash.rgb("Hello World!")
|
|
|
34
34
|
The resulting values are going to be:
|
|
35
35
|
|
|
36
36
|
```ruby
|
|
37
|
-
hex = "#
|
|
38
|
-
hsl = [
|
|
39
|
-
rgb = [
|
|
37
|
+
hex = "#79d2b3"
|
|
38
|
+
hsl = [159, 0.5, 0.65]
|
|
39
|
+
rgb = [121, 210, 179]
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
You can customize the desired `hue` range(s), `saturation` and `lightness` values by passing the corresponding arguments to the constructor. For example, to generate colors in the blue spectrum:
|
|
@@ -54,9 +54,11 @@ color = "#79acd2"
|
|
|
54
54
|
|
|
55
55
|
## Development
|
|
56
56
|
|
|
57
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `
|
|
57
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `make test` to run the linter and the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
Run `make security` to scan for vulnerabilities. It requires [Trivy](https://trivy.dev) to be installed, and network access to update the advisory databases.
|
|
60
|
+
|
|
61
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, run `make test security`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
60
62
|
|
|
61
63
|
## Contributing
|
|
62
64
|
|
data/lib/color_hash/generator.rb
CHANGED
data/lib/color_hash/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: color_hash
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicolas Bettenburg
|
|
@@ -16,14 +16,8 @@ executables: []
|
|
|
16
16
|
extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
|
18
18
|
files:
|
|
19
|
-
- ".rspec"
|
|
20
|
-
- ".rubocop.yml"
|
|
21
19
|
- CHANGELOG.md
|
|
22
|
-
- Gemfile
|
|
23
|
-
- Gemfile.lock
|
|
24
|
-
- Makefile
|
|
25
20
|
- README.md
|
|
26
|
-
- Rakefile
|
|
27
21
|
- lib/color_hash.rb
|
|
28
22
|
- lib/color_hash/generator.rb
|
|
29
23
|
- lib/color_hash/version.rb
|
|
@@ -34,7 +28,7 @@ metadata:
|
|
|
34
28
|
allowed_push_host: https://rubygems.org
|
|
35
29
|
homepage_uri: https://github.com/kuyio/color_hash
|
|
36
30
|
source_code_uri: https://github.com/kuyio/color_hash
|
|
37
|
-
changelog_uri: https://github.com/kuyio/color_hash/CHANGELOG.md
|
|
31
|
+
changelog_uri: https://github.com/kuyio/color_hash/blob/main/CHANGELOG.md
|
|
38
32
|
rubygems_mfa_required: 'true'
|
|
39
33
|
rdoc_options: []
|
|
40
34
|
require_paths:
|
|
@@ -43,14 +37,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
43
37
|
requirements:
|
|
44
38
|
- - ">="
|
|
45
39
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 3.4
|
|
40
|
+
version: '3.4'
|
|
47
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
42
|
requirements:
|
|
49
43
|
- - ">="
|
|
50
44
|
- !ruby/object:Gem::Version
|
|
51
45
|
version: '0'
|
|
52
46
|
requirements: []
|
|
53
|
-
rubygems_version: 4.0.
|
|
47
|
+
rubygems_version: 4.0.23
|
|
54
48
|
specification_version: 4
|
|
55
49
|
summary: Generate a color based on the given string.
|
|
56
50
|
test_files: []
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
GIT
|
|
2
|
-
remote: https://github.com/kuyio/kuyio-rubocop.git
|
|
3
|
-
revision: f7774235c8fddd1855cda03ea0415b5dad005621
|
|
4
|
-
specs:
|
|
5
|
-
kuyio-rubocop (0.4.1)
|
|
6
|
-
rubocop (~> 1.85.0)
|
|
7
|
-
rubocop-performance (~> 1.26.0)
|
|
8
|
-
rubocop-rails (~> 2.34.0)
|
|
9
|
-
rubocop-rspec (~> 3.9.0)
|
|
10
|
-
|
|
11
|
-
PATH
|
|
12
|
-
remote: .
|
|
13
|
-
specs:
|
|
14
|
-
color_hash (0.1.0)
|
|
15
|
-
|
|
16
|
-
GEM
|
|
17
|
-
remote: https://rubygems.org/
|
|
18
|
-
specs:
|
|
19
|
-
activesupport (8.1.3)
|
|
20
|
-
base64
|
|
21
|
-
bigdecimal
|
|
22
|
-
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
23
|
-
connection_pool (>= 2.2.5)
|
|
24
|
-
drb
|
|
25
|
-
i18n (>= 1.6, < 2)
|
|
26
|
-
json
|
|
27
|
-
logger (>= 1.4.2)
|
|
28
|
-
minitest (>= 5.1)
|
|
29
|
-
securerandom (>= 0.3)
|
|
30
|
-
tzinfo (~> 2.0, >= 2.0.5)
|
|
31
|
-
uri (>= 0.13.1)
|
|
32
|
-
ast (2.4.3)
|
|
33
|
-
base64 (0.3.0)
|
|
34
|
-
bigdecimal (4.1.2)
|
|
35
|
-
concurrent-ruby (1.3.7)
|
|
36
|
-
connection_pool (3.0.2)
|
|
37
|
-
diff-lcs (1.6.2)
|
|
38
|
-
drb (2.2.3)
|
|
39
|
-
hana (1.3.7)
|
|
40
|
-
i18n (1.15.2)
|
|
41
|
-
concurrent-ruby (~> 1.0)
|
|
42
|
-
json (2.21.1)
|
|
43
|
-
json_schemer (2.5.0)
|
|
44
|
-
bigdecimal
|
|
45
|
-
hana (~> 1.3)
|
|
46
|
-
regexp_parser (~> 2.0)
|
|
47
|
-
simpleidn (~> 0.2)
|
|
48
|
-
language_server-protocol (3.17.0.6)
|
|
49
|
-
lint_roller (1.1.0)
|
|
50
|
-
logger (1.7.0)
|
|
51
|
-
mcp (0.24.0)
|
|
52
|
-
json_schemer (>= 2.4)
|
|
53
|
-
minitest (6.0.6)
|
|
54
|
-
drb (~> 2.0)
|
|
55
|
-
prism (~> 1.5)
|
|
56
|
-
parallel (1.28.0)
|
|
57
|
-
parser (3.3.11.1)
|
|
58
|
-
ast (~> 2.4.1)
|
|
59
|
-
racc
|
|
60
|
-
prism (1.9.0)
|
|
61
|
-
racc (1.8.1)
|
|
62
|
-
rack (3.2.6)
|
|
63
|
-
rainbow (3.1.1)
|
|
64
|
-
rake (13.4.2)
|
|
65
|
-
regexp_parser (2.12.0)
|
|
66
|
-
rspec (3.13.2)
|
|
67
|
-
rspec-core (~> 3.13.0)
|
|
68
|
-
rspec-expectations (~> 3.13.0)
|
|
69
|
-
rspec-mocks (~> 3.13.0)
|
|
70
|
-
rspec-core (3.13.6)
|
|
71
|
-
rspec-support (~> 3.13.0)
|
|
72
|
-
rspec-expectations (3.13.5)
|
|
73
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
74
|
-
rspec-support (~> 3.13.0)
|
|
75
|
-
rspec-mocks (3.13.8)
|
|
76
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
77
|
-
rspec-support (~> 3.13.0)
|
|
78
|
-
rspec-support (3.13.7)
|
|
79
|
-
rubocop (1.85.1)
|
|
80
|
-
json (~> 2.3)
|
|
81
|
-
language_server-protocol (~> 3.17.0.2)
|
|
82
|
-
lint_roller (~> 1.1.0)
|
|
83
|
-
mcp (~> 0.6)
|
|
84
|
-
parallel (~> 1.10)
|
|
85
|
-
parser (>= 3.3.0.2)
|
|
86
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
87
|
-
regexp_parser (>= 2.9.3, < 3.0)
|
|
88
|
-
rubocop-ast (>= 1.49.0, < 2.0)
|
|
89
|
-
ruby-progressbar (~> 1.7)
|
|
90
|
-
unicode-display_width (>= 2.4.0, < 4.0)
|
|
91
|
-
rubocop-ast (1.50.0)
|
|
92
|
-
parser (>= 3.3.7.2)
|
|
93
|
-
prism (~> 1.7)
|
|
94
|
-
rubocop-performance (1.26.1)
|
|
95
|
-
lint_roller (~> 1.1)
|
|
96
|
-
rubocop (>= 1.75.0, < 2.0)
|
|
97
|
-
rubocop-ast (>= 1.47.1, < 2.0)
|
|
98
|
-
rubocop-rails (2.34.3)
|
|
99
|
-
activesupport (>= 4.2.0)
|
|
100
|
-
lint_roller (~> 1.1)
|
|
101
|
-
rack (>= 1.1)
|
|
102
|
-
rubocop (>= 1.75.0, < 2.0)
|
|
103
|
-
rubocop-ast (>= 1.44.0, < 2.0)
|
|
104
|
-
rubocop-rspec (3.9.0)
|
|
105
|
-
lint_roller (~> 1.1)
|
|
106
|
-
rubocop (~> 1.81)
|
|
107
|
-
ruby-progressbar (1.13.0)
|
|
108
|
-
securerandom (0.4.1)
|
|
109
|
-
simpleidn (0.2.3)
|
|
110
|
-
tzinfo (2.0.6)
|
|
111
|
-
concurrent-ruby (~> 1.0)
|
|
112
|
-
unicode-display_width (3.2.0)
|
|
113
|
-
unicode-emoji (~> 4.1)
|
|
114
|
-
unicode-emoji (4.2.0)
|
|
115
|
-
uri (1.1.1)
|
|
116
|
-
|
|
117
|
-
PLATFORMS
|
|
118
|
-
arm64-darwin-21
|
|
119
|
-
arm64-darwin-24
|
|
120
|
-
x86_64-linux
|
|
121
|
-
|
|
122
|
-
DEPENDENCIES
|
|
123
|
-
color_hash!
|
|
124
|
-
kuyio-rubocop!
|
|
125
|
-
rake (~> 13.0)
|
|
126
|
-
rspec (~> 3.0)
|
|
127
|
-
|
|
128
|
-
BUNDLED WITH
|
|
129
|
-
4.0.6
|
data/Makefile
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.PHONY: build test clean deploy lint rubocop spec
|
|
2
|
-
|
|
3
|
-
build: clean
|
|
4
|
-
gem build color_hash.gemspec
|
|
5
|
-
|
|
6
|
-
test: lint spec
|
|
7
|
-
|
|
8
|
-
lint: rubocop
|
|
9
|
-
|
|
10
|
-
rubocop:
|
|
11
|
-
bundle exec rubocop
|
|
12
|
-
|
|
13
|
-
spec:
|
|
14
|
-
bundle exec rspec
|
|
15
|
-
|
|
16
|
-
clean:
|
|
17
|
-
rm -f color_hash-*.gem
|
|
18
|
-
rm -rf pkg
|
|
19
|
-
|
|
20
|
-
deploy: build
|
|
21
|
-
gem push color_hash-*.gem
|