tagrity 0.3.5 → 0.3.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: 696ef632ed7745a6825834155b3c603ccb6b7758e170f2d34f56d8de3209a98d
4
- data.tar.gz: 8aa352fc7fa43a6bbcb230e4b5585db9c1feaa9c9c4d128afbabf801f52e6af9
3
+ metadata.gz: f336a964ceb069f321079515fd53727a559cba27bd4847dfb4365ac36801d5e6
4
+ data.tar.gz: 5b7933793a67a70b24f0dff75a364995250fae7cf7ff370439b302431d356d6a
5
5
  SHA512:
6
- metadata.gz: 0303a033ec5b38cfcc478da5ddaa489a4d79520de26459a161d08423455a3659704e339c790e8fde4d605073aa2ea8735977a3fdae6053512167044568940151
7
- data.tar.gz: 390ee08b2d2af110c2e137270c284226ef973acfbf308ae5c40b52d71f055ea48798df09cf002e351b3758b50bbbc4a5e0c63ab76d08d6b789785b69bafcee10
6
+ metadata.gz: 61165ba9fd0cca34745880a57a6c0bbcb2238cff025f4ccf49f4ca1d50744ff755d96d94ed98e31deafe35d7aae9cf5994385d150ba6ed0fd03b720d0910e395
7
+ data.tar.gz: c6eab58ef68547cb2aab02679c4e3f8fa070a39c9997c0ff3cef8e5a20bdb04ee391d611f4733a6bec47f9a2cbd5649a97443ee1fed0eeb2f95d46ee0aece2d9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tagrity (0.3.5)
4
+ tagrity (0.3.6)
5
5
  cli-ui (~> 1.3.0)
6
6
  listen (~> 3.2.1)
7
7
  pry (~> 0.9.9)
data/TODO.md CHANGED
@@ -3,3 +3,4 @@
3
3
  * Better error handling
4
4
  * Restart process which were terminated due to a system shutdown
5
5
  * Will have to add `tagrity stop <pid>` instead of forcing users to use `kill <pid>`
6
+ * Document new changes for revive and stop
@@ -21,8 +21,9 @@ module Tagrity
21
21
  end
22
22
 
23
23
  desc "stop", "Stop watching pwd"
24
+ option :dir, type: :string, default: Dir.pwd, desc: "directory to stop watching."
24
25
  def stop()
25
- Command::Stop::call
26
+ Command::Stop::call(options['dir'])
26
27
  end
27
28
 
28
29
  desc "status", "List running tagrity processes and the directories being watched"
@@ -6,16 +6,16 @@ module Tagrity
6
6
  module Command
7
7
  class Stop
8
8
  class << self
9
- def call
10
- dir = Dir.pwd
9
+ def call(dir)
11
10
  pid_files = PidFile.alive_pid_files(dir: dir)
12
11
  if pid_files.empty?
13
12
  puts ::CLI::UI.fmt "{{red:#{"😕 tagrity doesn't seem to be watching #{dir}"}}}"
14
13
  else
15
14
  pid_files.each do |pid_file|
16
15
  pid_file.delete
17
- puts ::CLI::UI.fmt "{{green:#{"Successfully killed #{pid_file.pid}"}}}"
18
- logger.info("Successfully killed #{pid_file.pid}")
16
+ msg = "Successfully killed #{pid_file.pid} for dir #{dir}"
17
+ puts ::CLI::UI.fmt "{{green:#{msg}}}"
18
+ logger.info(msg)
19
19
  end
20
20
  end
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module Tagrity
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tagrity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam P. Regasz-Rethy