rubywatch 1.0.2 → 1.0.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rubywatch +10 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 410e0be73a7ffddadeed20319583159cd23e4933
4
- data.tar.gz: 86231a063c66a12b625ad5e6e65c80a0e7366c98
3
+ metadata.gz: 3612a08f1a71fd8b375b61b0454042996dbe7a0f
4
+ data.tar.gz: c5e72f544bdd9cbd0f6b8bfc63f2e6e3919c6d63
5
5
  SHA512:
6
- metadata.gz: 2c0e725a0f2bf420982bc2f5c73d53f162d705b6162c14b7af94be77cf703375a6c0aa9a184cfeb079c30feaf264a94057bddc869747f28037bf194a44310ce2
7
- data.tar.gz: 3e60d2e76b6704b38a127e02fdae65ab970b62f391e0aafbcc9f46578b625e86a5a346a0d8bdf3f9668d3087c6431cefce2d452454e1bda850a0758945eda61e
6
+ metadata.gz: d8031f63ed8e635d55d67beb6f3333c5f1022f7f624ab7fac7ca8f5cdddd1faa79ef074729ff3d0c6f4a8ebc70ef482b5fca156427324fcf87a5a5f089738d51
7
+ data.tar.gz: 58595ebfc6601115287d5a71a4bde36b09073ddff037c53ca8073424e22c79c95239516ad5d76c5452182225cac2790cd0a2105bdd71640e9c67fddad28f1d4a
data/bin/rubywatch CHANGED
@@ -1,5 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ if ARGV.length == 0
4
+ puts "Usage: rubywatch [file]"
5
+ exit
6
+ end
7
+
8
+ unless File.exist? ARGV[0]
9
+ puts "rubywatch: #{ARGV[0]} no such file"
10
+ exit
11
+ end
12
+
3
13
  last = nil
4
14
  while true
5
15
  time = File.mtime(ARGV[0])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubywatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Kristiansson