k_builder-watch 0.0.19 → 0.0.20

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
  SHA256:
3
- metadata.gz: d3a7de38baf2fb6e2dc1f58929dadecda1ac13514c8f6c54332162d69b92c780
4
- data.tar.gz: 51e43285707bbfeeb5b6e6ce77adeec64189f6159741748a022beb208f43a90c
3
+ metadata.gz: 142956cc2a4580c84ce3d27428a6889194bccfa1b852a1078a0f0911856c344f
4
+ data.tar.gz: 2b9dad2922b0a808f8abbb5e989bf5fe28cd362ab1be325facaf2b3ebcc20627
5
5
  SHA512:
6
- metadata.gz: 3ae83a327a996d4f3c5441adaff2f5317d59be9be72e86d0035d80b4a88118b73aaa2f10bb71d6952993bbb4dee9fa3d5f69a4693db7806d9cf4bebf0e9c3101
7
- data.tar.gz: a99b08bb6a0a21021b8ae3083c7049faa56541d0be4863d0622fb26c4da9fe448f808f382bef3aab0417d40da312c7210c8dfcdf7c94038110553c4f25fea7f7
6
+ metadata.gz: b0530597821350e11912cac7d22aaed0d789d50ae1d9fb07ff75381bcd392b0ab55485930c73921dc1f7d841465e0b94be5aa6d39baa0491e6a600e67a1a5153
7
+ data.tar.gz: 926200d6a53c96bc3adf3dd6c526fa297715ba5e820babaef152ae806b142d45add157bf7dbfb5866b981ba5722eab5a53faca6510209e99c74100562ad861dc
@@ -31,5 +31,5 @@ if ENV['KLUE_DEBUG']&.to_s&.downcase == 'true'
31
31
  namespace = 'KBuilder::Watch::Version'
32
32
  file_path = $LOADED_FEATURES.find { |f| f.include?('k_builder/watch/version') }
33
33
  version = KBuilder::Watch::VERSION.ljust(9)
34
- puts "#{namespace.ljust(40)} : #{version.ljust(9)} : #{file_path}"
34
+ puts "#{namespace.ljust(35)} : #{version.ljust(9)} : #{file_path}"
35
35
  end
@@ -13,6 +13,8 @@ module KBuilder
13
13
  class ActionWatcher < KBuilder::Watch::BaseAction
14
14
  attr_accessor :directory
15
15
 
16
+ # TODO: Need to support folder exclusions so that I can place .templates, in with .builders
17
+
16
18
  def run
17
19
  @directory = options.watch_path
18
20
  start
@@ -1,5 +1,4 @@
1
1
  # frozen_string_literal: true
2
-
3
2
  require 'pry'
4
3
  require 'k_builder'
5
4
  require 'json'
@@ -15,13 +14,7 @@ module KBuilder
15
14
  attr_accessor :opts
16
15
 
17
16
  def_delegators :opts, :base_path, :debug?, :help?, :new?
18
- # :base_path,
19
- # :watch_path_arg,
20
- # :new_watch_path,
21
- # :new_arg,
22
- # :new_app_path,
23
- # :watch_path
24
-
17
+
25
18
  def initialize
26
19
  @opts = KBuilder::Watch::CliOptions.new
27
20
 
@@ -50,7 +50,15 @@ module KBuilder
50
50
  exit
51
51
  end
52
52
 
53
- run_action(:new_builder) if options.new?
53
+ if options.new?
54
+ run_action(:new_builder)
55
+
56
+ # Originally I allowed new to proceed straight into watcher, but it is problematic to mix
57
+ # builder creation in with builder watching, they are two different tasks that should be
58
+ # run separately
59
+ exit
60
+ end
61
+
54
62
  run_action(:watcher)
55
63
  end
56
64
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module KBuilder
4
4
  module Watch
5
- VERSION = '0.0.19'
5
+ VERSION = '0.0.20'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k_builder-watch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-05 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: filewatcher