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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d32b5b18d920e22d02ba4c850da4ef68853c2daa
4
- data.tar.gz: f7b12347cfe1ba76d221f1081994ebb96b0eb505
3
+ metadata.gz: 7582c22840e15843005e723a75cba1ee6455f31e
4
+ data.tar.gz: 2868f6dbfe2bb713f87a6a0a31ba78cfbe1b0ece
5
5
  SHA512:
6
- metadata.gz: fed4316d1379b5c1ca7f25693f50abb607c241ebaee2d968857c3ac76cf85457bc61fbe94e64cf00bed54790edcaa794848ee26d01898509e496d83560bcd6c4
7
- data.tar.gz: 04606cb545fe61c40b9d2294522f36252e18a268ee87c63740c05532d9ed2fe0138425cb077392520270f1d5b6d47ba4c35e16a2b6e1ed8cdd87e16d4a27f1aa
6
+ metadata.gz: c2824249f94dbf527fccdcec308c520eebe7ac828cebc089bc1d912f0cfef64cc0d85d4cda4bc2c54c72da1d40d8ced12247a1fd16d63fc50fed4ef08b7fc744
7
+ data.tar.gz: 231317ead63249f76c82a74949fe93451158bbce8463d2660bf1d1d42194711135d134c10bfd184371d7f6cbb12606a96979dcb378e4ad7916f3ab5cf10e47bc
@@ -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 [:changed, :new].include?(event)
188
+ if [:updated, :created].include?(event)
188
189
  :send_asset
189
- elsif event == :delete
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
- FileWatcher.new(Dir.pwd).watch do |filename, event|
333
+ Filewatcher.new(Dir.pwd).watch do |filename, event|
333
334
  yield(filename.to_s, event)
334
335
  end
335
336
  end
@@ -1,3 +1,3 @@
1
1
  module OpencodeTheme
2
- VERSION = '1.0.7'.freeze
2
+ VERSION = '1.0.7.1'.freeze
3
3
  end
@@ -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-21 00:00:00.000000000 Z
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
  - - ">="