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 +4 -4
- data/lib/k_builder/watch.rb +1 -1
- data/lib/k_builder/watch/action_watcher.rb +2 -0
- data/lib/k_builder/watch/cli.rb +1 -8
- data/lib/k_builder/watch/execute.rb +9 -1
- data/lib/k_builder/watch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 142956cc2a4580c84ce3d27428a6889194bccfa1b852a1078a0f0911856c344f
|
4
|
+
data.tar.gz: 2b9dad2922b0a808f8abbb5e989bf5fe28cd362ab1be325facaf2b3ebcc20627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0530597821350e11912cac7d22aaed0d789d50ae1d9fb07ff75381bcd392b0ab55485930c73921dc1f7d841465e0b94be5aa6d39baa0491e6a600e67a1a5153
|
7
|
+
data.tar.gz: 926200d6a53c96bc3adf3dd6c526fa297715ba5e820babaef152ae806b142d45add157bf7dbfb5866b981ba5722eab5a53faca6510209e99c74100562ad861dc
|
data/lib/k_builder/watch.rb
CHANGED
@@ -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(
|
34
|
+
puts "#{namespace.ljust(35)} : #{version.ljust(9)} : #{file_path}"
|
35
35
|
end
|
data/lib/k_builder/watch/cli.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2021-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: filewatcher
|