opencode_theme 1.0.7 → 1.0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opencode_theme/cli.rb +4 -3
- data/lib/opencode_theme/version.rb +1 -1
- data/opencode_theme.gemspec +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7582c22840e15843005e723a75cba1ee6455f31e
|
4
|
+
data.tar.gz: 2868f6dbfe2bb713f87a6a0a31ba78cfbe1b0ece
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2824249f94dbf527fccdcec308c520eebe7ac828cebc089bc1d912f0cfef64cc0d85d4cda4bc2c54c72da1d40d8ced12247a1fd16d63fc50fed4ef08b7fc744
|
7
|
+
data.tar.gz: 231317ead63249f76c82a74949fe93451158bbce8463d2660bf1d1d42194711135d134c10bfd184371d7f6cbb12606a96979dcb378e4ad7916f3ab5cf10e47bc
|
data/lib/opencode_theme/cli.rb
CHANGED
@@ -180,13 +180,14 @@ module OpencodeTheme
|
|
180
180
|
method_option :keep_files, type: :boolean, default: false
|
181
181
|
def watch
|
182
182
|
watcher do |filename, event|
|
183
|
+
|
183
184
|
filename = filename.sub(Dir.pwd.to_s + '/', '')
|
184
185
|
next if components_temporary_file?(filename)
|
185
186
|
next unless file?(filename)
|
186
187
|
action =
|
187
|
-
if [:
|
188
|
+
if [:updated, :created].include?(event)
|
188
189
|
:send_asset
|
189
|
-
elsif event == :
|
190
|
+
elsif event == :deleted
|
190
191
|
:delete_asset
|
191
192
|
else
|
192
193
|
say("This is not file [#{filename}]", :blue)
|
@@ -329,7 +330,7 @@ module OpencodeTheme
|
|
329
330
|
end
|
330
331
|
|
331
332
|
def watcher
|
332
|
-
|
333
|
+
Filewatcher.new(Dir.pwd).watch do |filename, event|
|
333
334
|
yield(filename.to_s, event)
|
334
335
|
end
|
335
336
|
end
|
data/opencode_theme.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = 'https://www.tray.com.br/opencode/'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
|
-
spec.required_ruby_version = '>= 2.1.3'
|
16
|
+
spec.required_ruby_version = '>= 2.1.3', '<2.4.0'
|
17
17
|
|
18
18
|
spec.add_dependency('thor', '>= 0.14.4')
|
19
19
|
spec.add_dependency('httparty', '~> 0.14.0')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opencode_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.7
|
4
|
+
version: 1.0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael Takashi Tanaka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -249,6 +249,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
249
249
|
- - ">="
|
250
250
|
- !ruby/object:Gem::Version
|
251
251
|
version: 2.1.3
|
252
|
+
- - "<"
|
253
|
+
- !ruby/object:Gem::Version
|
254
|
+
version: 2.4.0
|
252
255
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
253
256
|
requirements:
|
254
257
|
- - ">="
|