colorly 0.1.5 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21e1e9da39aeb056d58ed22d041af1c59250b57ab80800c872a213f61ba9d3dd
4
- data.tar.gz: 0b03ec6477fc410a5ea03615e7c283a43b3a20b5cfe0143e39b47ef17b636c8d
3
+ metadata.gz: 0e2ed08653d5e99a37884491e117d84da8ed2d6b4c060a6e134e0019020f520f
4
+ data.tar.gz: ba8ff12de9e5ecc2d38543ae8d7d9a3f4f9c058771143184f06f4679f075a3b2
5
5
  SHA512:
6
- metadata.gz: 8ca670c7ebd8bd881bf2dc3222f32a761e4d32a258ec9ddd848e407d619d7ad224d9fa3f6ec4acd2d86b60a8c8076e8797b16191630dab39fa93473904300910
7
- data.tar.gz: b6182b72010bf53b08620b9670202e8914cae0f361eb1ce2fc2860490f9ae00f7797a91b1a73fde9cc6f952f89b0c3e5d823817cf71c28ca28fa50e4b81db1fc
6
+ metadata.gz: c6979147b3332fb8dc8f497b8612619ad149ff1194636667ef8020eebeb9b42aed92e5299bbc25e27db756432f9158ca45ccdff90bdcdbf7e86c4bacf37f9bf8
7
+ data.tar.gz: 2756f36e808b86eb9eca25de80adf5d674fc5b9413beeb3a19188b19d8ef96e1ce7adef8f593aaafc5121196a648e64319ad6868f623a1c6643ec8b1dcd3161b
data/README.md CHANGED
@@ -1,11 +1,5 @@
1
1
  # Colorly - Command Line Color Palette Generator
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/colorly.svg)](https://badge.fury.io/rb/colorly)
4
- [![Build Status](https://github.com/DannyBen/colorly/workflows/Test/badge.svg)](https://github.com/DannyBen/colorly/actions?query=workflow%3ATest)
5
- [![Maintainability](https://api.codeclimate.com/v1/badges/a708b1651a6caf451d53/maintainability)](https://codeclimate.com/github/DannyBen/colorly/maintainability)
6
-
7
- ---
8
-
9
3
  Colorly is a command line utility and a Ruby library for generating color
10
4
  palettes using a simple DSL.
11
5
 
@@ -153,4 +147,4 @@ to contribute, feel free to [open an issue][issues].
153
147
  ---
154
148
 
155
149
  [chroma]: https://github.com/jfairbank/chroma
156
- [issues]: https://github.com/DannyBen/colorly/issues
150
+ [issues]: https://github.com/DannyBen/colorly/issues
@@ -1,14 +1,15 @@
1
1
  require 'colsole'
2
- require 'mister_bin'
3
2
  require 'erb'
4
- require 'filewatcher'
5
3
  require 'json'
4
+ require 'mister_bin'
6
5
  require 'ostruct'
6
+ require 'watchly'
7
7
  require 'yaml'
8
8
 
9
9
  module Colorly
10
10
  class Command < MisterBin::Command
11
11
  include Colsole
12
+
12
13
  summary 'Run a colorly script'
13
14
  version Colorly::VERSION
14
15
 
@@ -49,13 +50,13 @@ module Colorly
49
50
 
50
51
  private
51
52
 
52
- def filewatcher
53
- @filewatcher ||= Filewatcher.new(script_path)
53
+ def watchly
54
+ @watchly ||= Watchly::Watcher.new(script_path)
54
55
  end
55
56
 
56
57
  def watch_and_generate
57
58
  say "Watching m`#{script_path}`"
58
- filewatcher.watch { generate }
59
+ watchly.on_change { generate }
59
60
  end
60
61
 
61
62
  def generate
@@ -1,6 +1,7 @@
1
1
  module Colorly
2
2
  class Script
3
3
  include DSL
4
+
4
5
  using StringRefinements
5
6
  attr_reader :script, :filename
6
7
  attr_writer :params
@@ -1,3 +1,3 @@
1
1
  module Colorly
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
data/lib/colorly.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'yaml'
2
2
  require 'requires'
3
- require 'byebug' if ENV['BYEBUG']
4
3
 
5
4
  requires 'colorly/exceptions'
6
5
  requires 'colorly/version'
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colorly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-02-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: chroma
@@ -39,33 +38,33 @@ dependencies:
39
38
  - !ruby/object:Gem::Version
40
39
  version: '1.0'
41
40
  - !ruby/object:Gem::Dependency
42
- name: filewatcher
41
+ name: mister_bin
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
44
  - - "~>"
46
45
  - !ruby/object:Gem::Version
47
- version: '2.0'
46
+ version: '0.7'
48
47
  type: :runtime
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
51
  - - "~>"
53
52
  - !ruby/object:Gem::Version
54
- version: '2.0'
53
+ version: '0.7'
55
54
  - !ruby/object:Gem::Dependency
56
- name: mister_bin
55
+ name: ostruct
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - "~>"
60
59
  - !ruby/object:Gem::Version
61
- version: '0.7'
60
+ version: '0.6'
62
61
  type: :runtime
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
65
  - - "~>"
67
66
  - !ruby/object:Gem::Version
68
- version: '0.7'
67
+ version: '0.6'
69
68
  - !ruby/object:Gem::Dependency
70
69
  name: requires
71
70
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +79,20 @@ dependencies:
80
79
  - - "~>"
81
80
  - !ruby/object:Gem::Version
82
81
  version: '1.0'
82
+ - !ruby/object:Gem::Dependency
83
+ name: watchly
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: 0.1.1
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: 0.1.1
83
96
  description: Command line for generating color palettes
84
97
  email: db@dannyben.com
85
98
  executables:
@@ -105,9 +118,9 @@ licenses:
105
118
  - MIT
106
119
  metadata:
107
120
  bug_tracker_uri: https://github.com/DannyBen/colorly/issues
121
+ changelog_uri: https://github.com/DannyBen/colorly/blob/master/CHANGELOG.md
108
122
  source_code_uri: https://github.com/dannyben/colorly
109
123
  rubygems_mfa_required: 'true'
110
- post_install_message:
111
124
  rdoc_options: []
112
125
  require_paths:
113
126
  - lib
@@ -115,15 +128,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
128
  requirements:
116
129
  - - ">="
117
130
  - !ruby/object:Gem::Version
118
- version: '3.1'
131
+ version: '3.2'
119
132
  required_rubygems_version: !ruby/object:Gem::Requirement
120
133
  requirements:
121
134
  - - ">="
122
135
  - !ruby/object:Gem::Version
123
136
  version: '0'
124
137
  requirements: []
125
- rubygems_version: 3.5.6
126
- signing_key:
138
+ rubygems_version: 4.0.3
127
139
  specification_version: 4
128
140
  summary: Colorly color palette CLI
129
141
  test_files: []