colorspace 0.1.0
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 +7 -0
- data/.envrc +4 -0
- data/.rubocop.yml +40 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +50 -0
- data/README.md +31 -0
- data/Rakefile +16 -0
- data/colorspace.gemspec +39 -0
- data/default.nix +29 -0
- data/flake.lock +24 -0
- data/flake.nix +45 -0
- data/lib/colorspace/version.rb +5 -0
- data/lib/colorspace.rb +8 -0
- data/shell.nix +6 -0
- data/sig/colorspace.rbs +4 -0
- metadata +61 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c139dfc8f81959c4676b6626d5e72bcca448b829213a624f9bced835e662ce3e
|
4
|
+
data.tar.gz: 7eadea0f02c8d3b44c6c11c7bca30b66cb1ce2e5f8630c81c9ab3bea7af58d56
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 867d76ec2efb1ca07ec2d8da0308fdeea8f1e2437277e6cb6d9b3a3d839b003abb1b3020bc0b81160625b536e856c717f15f2dd8ce5361fe49959cc025b546c3
|
7
|
+
data.tar.gz: 78ea353372d5c30ae12c5e3c0c61744b9a587b0d4db1f3c733b10cb0f3e106079ba753eed6aae3d70b11f86ad595027f4fc76733c8a881f7d3bca13df5f3cda1
|
data/.envrc
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 3.2
|
3
|
+
NewCops: enable
|
4
|
+
ActiveSupportExtensionsEnabled: true
|
5
|
+
|
6
|
+
Layout/ArgumentAlignment:
|
7
|
+
EnforcedStyle: with_fixed_indentation
|
8
|
+
|
9
|
+
Layout/EndAlignment:
|
10
|
+
EnforcedStyleAlignWith: variable
|
11
|
+
|
12
|
+
Layout/FirstArgumentIndentation:
|
13
|
+
EnforcedStyle: consistent
|
14
|
+
|
15
|
+
Layout/FirstArrayElementIndentation:
|
16
|
+
EnforcedStyle: consistent
|
17
|
+
|
18
|
+
Layout/LineLength:
|
19
|
+
Max: 80
|
20
|
+
|
21
|
+
Layout/MultilineMethodCallIndentation:
|
22
|
+
EnforcedStyle: indented
|
23
|
+
|
24
|
+
Layout/RedundantLineBreak:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Style/BlockDelimiters:
|
28
|
+
EnforcedStyle: semantic
|
29
|
+
|
30
|
+
Style/CommandLiteral:
|
31
|
+
EnforcedStyle: mixed
|
32
|
+
|
33
|
+
Style/AccessModifierDeclarations:
|
34
|
+
EnforcedStyle: inline
|
35
|
+
|
36
|
+
Style/DataInheritance:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
Style/ParallelAssignment:
|
40
|
+
Enabled: false
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in colorspace.gemspec
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
gem 'rake', '~> 13.0'
|
9
|
+
|
10
|
+
gem 'minitest', '~> 5.0'
|
11
|
+
|
12
|
+
gem 'rubocop', '~> 1.59'
|
13
|
+
|
14
|
+
group :development do
|
15
|
+
gem 'yard'
|
16
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
colorspace (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
ast (2.4.2)
|
10
|
+
json (2.7.1)
|
11
|
+
language_server-protocol (3.17.0.3)
|
12
|
+
minitest (5.20.0)
|
13
|
+
parallel (1.24.0)
|
14
|
+
parser (3.2.2.4)
|
15
|
+
ast (~> 2.4.1)
|
16
|
+
racc
|
17
|
+
racc (1.7.3)
|
18
|
+
rainbow (3.1.1)
|
19
|
+
rake (13.1.0)
|
20
|
+
regexp_parser (2.8.3)
|
21
|
+
rexml (3.2.6)
|
22
|
+
rubocop (1.59.0)
|
23
|
+
json (~> 2.3)
|
24
|
+
language_server-protocol (>= 3.17.0)
|
25
|
+
parallel (~> 1.10)
|
26
|
+
parser (>= 3.2.2.4)
|
27
|
+
rainbow (>= 2.2.2, < 4.0)
|
28
|
+
regexp_parser (>= 1.8, < 3.0)
|
29
|
+
rexml (>= 3.2.5, < 4.0)
|
30
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
31
|
+
ruby-progressbar (~> 1.7)
|
32
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
33
|
+
rubocop-ast (1.30.0)
|
34
|
+
parser (>= 3.2.1.0)
|
35
|
+
ruby-progressbar (1.13.0)
|
36
|
+
unicode-display_width (2.5.0)
|
37
|
+
yard (0.9.34)
|
38
|
+
|
39
|
+
PLATFORMS
|
40
|
+
x86_64-linux
|
41
|
+
|
42
|
+
DEPENDENCIES
|
43
|
+
colorspace!
|
44
|
+
minitest (~> 5.0)
|
45
|
+
rake (~> 13.0)
|
46
|
+
rubocop (~> 1.59)
|
47
|
+
yard
|
48
|
+
|
49
|
+
BUNDLED WITH
|
50
|
+
2.4.10
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Colorspace
|
2
|
+
|
3
|
+
TODO: Delete this and the text below, and describe your gem
|
4
|
+
|
5
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/colorspace`. To experiment with that code, run `bin/console` for an interactive prompt.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
TODO: Replace `colorspace` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
+
|
11
|
+
Install the gem and add to the application's Gemfile by executing:
|
12
|
+
|
13
|
+
$ bundle add colorspace
|
14
|
+
|
15
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
|
+
|
17
|
+
$ gem install colorspace
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Development
|
24
|
+
|
25
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
|
+
|
27
|
+
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`, 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).
|
28
|
+
|
29
|
+
## Contributing
|
30
|
+
|
31
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/colorspace.
|
data/Rakefile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
require 'rake/testtask'
|
5
|
+
|
6
|
+
Rake::TestTask.new(:test) do |t|
|
7
|
+
t.libs << 'test'
|
8
|
+
t.libs << 'lib'
|
9
|
+
t.test_files = FileList['test/**/test_*.rb']
|
10
|
+
end
|
11
|
+
|
12
|
+
require 'rubocop/rake_task'
|
13
|
+
|
14
|
+
RuboCop::RakeTask.new
|
15
|
+
|
16
|
+
task default: %i[test rubocop]
|
data/colorspace.gemspec
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/colorspace/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'colorspace'
|
7
|
+
spec.version = Colorspace::VERSION
|
8
|
+
spec.authors = ['Anna Kudriavtsev']
|
9
|
+
spec.email = ['anna328p@gmail.com']
|
10
|
+
|
11
|
+
spec.summary = 'Tools for manipulating colors in various color spaces'
|
12
|
+
spec.homepage = 'https://github.com/anna328p/ruby-colorspace'
|
13
|
+
spec.required_ruby_version = '>= 3.2.0'
|
14
|
+
|
15
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
16
|
+
|
17
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
18
|
+
spec.metadata['source_code_uri'] = 'https://github.com/anna328p/ruby-colorspace'
|
19
|
+
spec.metadata['changelog_uri'] = 'https://github.com/anna328p/ruby-colorspace/blob/main/CHANGELOG.md'
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem
|
23
|
+
# that have been added into git.
|
24
|
+
spec.files = Dir.chdir(__dir__) {
|
25
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
(File.expand_path(f) == __FILE__) \
|
27
|
+
|| f.start_with?(*%w[
|
28
|
+
bin/ test/ spec/ features/ .git .circleci appveyor
|
29
|
+
])
|
30
|
+
end
|
31
|
+
}
|
32
|
+
spec.bindir = 'exe'
|
33
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
34
|
+
spec.require_paths = ['lib']
|
35
|
+
|
36
|
+
# Uncomment to register a new dependency of your gem
|
37
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
38
|
+
# spec.metadata['rubygems_mfa_required'] = 'true'
|
39
|
+
end
|
data/default.nix
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
{ lib
|
2
|
+
, buildRubyGem
|
3
|
+
, ruby_3_2
|
4
|
+
, gitMinimal
|
5
|
+
}:
|
6
|
+
|
7
|
+
buildRubyGem rec {
|
8
|
+
gemName = "ruby-colorspace";
|
9
|
+
version = "0";
|
10
|
+
|
11
|
+
src = ./.;
|
12
|
+
|
13
|
+
ruby = ruby_3_2;
|
14
|
+
|
15
|
+
dontBuild = false;
|
16
|
+
|
17
|
+
preBuild = ''
|
18
|
+
git init .
|
19
|
+
git add -A
|
20
|
+
'';
|
21
|
+
|
22
|
+
nativeBuildInputs = [
|
23
|
+
gitMinimal
|
24
|
+
];
|
25
|
+
|
26
|
+
meta = {
|
27
|
+
maintainers = [ lib.maintainers.anna328p ];
|
28
|
+
};
|
29
|
+
}
|
data/flake.lock
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"nodes": {
|
3
|
+
"nixpkgs": {
|
4
|
+
"locked": {
|
5
|
+
"lastModified": 1702025387,
|
6
|
+
"narHash": "sha256-vf1hTFA9WIWpZeumXi47YQYe6i67qUrYRCxiEfo1m18=",
|
7
|
+
"path": "/nix/store/jfk6y1hn84imw60c4fn18i86glylb6vg-source",
|
8
|
+
"rev": "17572dd79fb56671aeb81780c1161234e3450a7b",
|
9
|
+
"type": "path"
|
10
|
+
},
|
11
|
+
"original": {
|
12
|
+
"id": "nixpkgs",
|
13
|
+
"type": "indirect"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"root": {
|
17
|
+
"inputs": {
|
18
|
+
"nixpkgs": "nixpkgs"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"root": "root",
|
23
|
+
"version": 7
|
24
|
+
}
|
data/flake.nix
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
{
|
2
|
+
description = "TODO";
|
3
|
+
|
4
|
+
inputs = {
|
5
|
+
# nixpkgs.url = github:nixos/nixpkgs;
|
6
|
+
};
|
7
|
+
|
8
|
+
outputs = { self
|
9
|
+
, nixpkgs
|
10
|
+
}: let
|
11
|
+
inherit (nixpkgs.lib) genAttrs systems;
|
12
|
+
|
13
|
+
# forEachSystem' : (Str -> Set Any) -> (Set Any -> Set Any) -> Set (Set Any)
|
14
|
+
forEachSystem' = env: body:
|
15
|
+
genAttrs systems.flakeExposed (system: body (env system));
|
16
|
+
|
17
|
+
env = system: rec {
|
18
|
+
inherit system;
|
19
|
+
pkgs = nixpkgs.legacyPackages.${system};
|
20
|
+
|
21
|
+
pkgName = "ruby-colorspace";
|
22
|
+
|
23
|
+
pkg = pkgs.callPackage ./default.nix { };
|
24
|
+
};
|
25
|
+
|
26
|
+
forEachSystem = forEachSystem' env;
|
27
|
+
|
28
|
+
in {
|
29
|
+
packages = forEachSystem (env: let
|
30
|
+
inherit (env) pkgName pkg;
|
31
|
+
in {
|
32
|
+
${pkgName} = pkg;
|
33
|
+
default = pkg;
|
34
|
+
});
|
35
|
+
|
36
|
+
devShells = forEachSystem (env: let
|
37
|
+
inherit (env) pkgName pkgs pkg;
|
38
|
+
|
39
|
+
shell = import ./shell.nix { inherit pkgs pkg; };
|
40
|
+
in {
|
41
|
+
${pkgName} = shell;
|
42
|
+
default = shell;
|
43
|
+
});
|
44
|
+
};
|
45
|
+
}
|
data/lib/colorspace.rb
ADDED
data/shell.nix
ADDED
data/sig/colorspace.rbs
ADDED
metadata
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: colorspace
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Anna Kudriavtsev
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 1980-01-01 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email:
|
15
|
+
- anna328p@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- ".envrc"
|
21
|
+
- ".rubocop.yml"
|
22
|
+
- CHANGELOG.md
|
23
|
+
- Gemfile
|
24
|
+
- Gemfile.lock
|
25
|
+
- README.md
|
26
|
+
- Rakefile
|
27
|
+
- colorspace.gemspec
|
28
|
+
- default.nix
|
29
|
+
- flake.lock
|
30
|
+
- flake.nix
|
31
|
+
- lib/colorspace.rb
|
32
|
+
- lib/colorspace/version.rb
|
33
|
+
- shell.nix
|
34
|
+
- sig/colorspace.rbs
|
35
|
+
homepage: https://github.com/anna328p/ruby-colorspace
|
36
|
+
licenses: []
|
37
|
+
metadata:
|
38
|
+
allowed_push_host: https://rubygems.org
|
39
|
+
homepage_uri: https://github.com/anna328p/ruby-colorspace
|
40
|
+
source_code_uri: https://github.com/anna328p/ruby-colorspace
|
41
|
+
changelog_uri: https://github.com/anna328p/ruby-colorspace/blob/main/CHANGELOG.md
|
42
|
+
post_install_message:
|
43
|
+
rdoc_options: []
|
44
|
+
require_paths:
|
45
|
+
- lib
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 3.2.0
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements: []
|
57
|
+
rubygems_version: 3.4.22
|
58
|
+
signing_key:
|
59
|
+
specification_version: 4
|
60
|
+
summary: Tools for manipulating colors in various color spaces
|
61
|
+
test_files: []
|