rubywatch 1.0.0

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 +7 -0
  2. data/bin/rubywatch +17 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2774d694f3edcfb1cd93caf259c0217ab31e630d
4
+ data.tar.gz: 829e9054387501d0e3dafa85758adb975a23ecb3
5
+ SHA512:
6
+ metadata.gz: d6fb4d5836cfbc50c860e189bbfbe1ce5bc732ffe1814b75c2d3d407bd3e41b6dc6092287180cd5675e5d3b1aa9d761a05a3e4062909b3d8749708ce34df325b
7
+ data.tar.gz: 7cca2887eb90c7e96b23cc3780f382bcfc0aa0049e73c20274cf6f875cf4da2dad2ef8fc12276382afd9a7f815f0c9899f8b7ad5714660852da048bbec9af8fe
data/bin/rubywatch ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ last = nil
4
+ while true
5
+ time = File.mtime(ARGV[0])
6
+ if time != last
7
+ puts `ruby #{ARGV[0]}`
8
+ last = time
9
+ end
10
+ begin
11
+ sleep 0.1
12
+ rescue Interrupt => e
13
+ puts
14
+ exit
15
+ end
16
+ end
17
+
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubywatch
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Johan Kristiansson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-04-19 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Executes a ruby file when it changes. Inspired by coffescript --watch
14
+ email: johankristi@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - bin/rubywatch
20
+ homepage: http://github.org/johankri/rubywatch
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.6.11
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Execute ruby file when it changes
44
+ test_files: []