colorly 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/colorly +1 -1
- data/lib/colorly/command.rb +9 -3
- data/lib/colorly/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21e1e9da39aeb056d58ed22d041af1c59250b57ab80800c872a213f61ba9d3dd
|
4
|
+
data.tar.gz: 0b03ec6477fc410a5ea03615e7c283a43b3a20b5cfe0143e39b47ef17b636c8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ca670c7ebd8bd881bf2dc3222f32a761e4d32a258ec9ddd848e407d619d7ad224d9fa3f6ec4acd2d86b60a8c8076e8797b16191630dab39fa93473904300910
|
7
|
+
data.tar.gz: b6182b72010bf53b08620b9670202e8914cae0f361eb1ce2fc2860490f9ae00f7797a91b1a73fde9cc6f952f89b0c3e5d823817cf71c28ca28fa50e4b81db1fc
|
data/bin/colorly
CHANGED
data/lib/colorly/command.rb
CHANGED
@@ -21,7 +21,13 @@ module Colorly
|
|
21
21
|
option '-n --names', 'Also show color names and shades (slower)'
|
22
22
|
|
23
23
|
param 'SCRIPT', 'Path to script file'
|
24
|
-
param 'OUTPUT_PATH',
|
24
|
+
param 'OUTPUT_PATH', <<~USAGE
|
25
|
+
Path to output file. The output format is determined by the file extension. Supported formats:
|
26
|
+
- YAML (.yaml or .yml)
|
27
|
+
- JSON (.json)
|
28
|
+
- HTML (.html)
|
29
|
+
If left empty, YAML format will be sent to STDOUT.
|
30
|
+
USAGE
|
25
31
|
|
26
32
|
example 'colorly examples/example.rb'
|
27
33
|
example 'colorly examples/example.rb --names'
|
@@ -48,7 +54,7 @@ module Colorly
|
|
48
54
|
end
|
49
55
|
|
50
56
|
def watch_and_generate
|
51
|
-
say "Watching
|
57
|
+
say "Watching m`#{script_path}`"
|
52
58
|
filewatcher.watch { generate }
|
53
59
|
end
|
54
60
|
|
@@ -80,7 +86,7 @@ module Colorly
|
|
80
86
|
end
|
81
87
|
|
82
88
|
File.write out_path, out_string
|
83
|
-
say "Saved
|
89
|
+
say "Saved m`#{out_path}`"
|
84
90
|
end
|
85
91
|
|
86
92
|
def html_template
|
data/lib/colorly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: colorly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chroma
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '1.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: filewatcher
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.7
|
61
|
+
version: '0.7'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.7
|
68
|
+
version: '0.7'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: requires
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,7 +107,7 @@ metadata:
|
|
107
107
|
bug_tracker_uri: https://github.com/DannyBen/colorly/issues
|
108
108
|
source_code_uri: https://github.com/dannyben/colorly
|
109
109
|
rubygems_mfa_required: 'true'
|
110
|
-
post_install_message:
|
110
|
+
post_install_message:
|
111
111
|
rdoc_options: []
|
112
112
|
require_paths:
|
113
113
|
- lib
|
@@ -115,15 +115,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
115
|
requirements:
|
116
116
|
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: '
|
118
|
+
version: '3.1'
|
119
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - ">="
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
|
-
rubygems_version: 3.
|
126
|
-
signing_key:
|
125
|
+
rubygems_version: 3.5.6
|
126
|
+
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Colorly color palette CLI
|
129
129
|
test_files: []
|