rerun 0.6.4 → 0.6.5
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.
- data/lib/rerun/runner.rb +4 -2
- data/rerun.gemspec +1 -1
- metadata +2 -2
data/lib/rerun/runner.rb
CHANGED
@@ -229,12 +229,14 @@ module Rerun
|
|
229
229
|
def key_pressed
|
230
230
|
begin
|
231
231
|
# this "raw input" nonsense is because unix likes waiting for linefeeds before sending stdin
|
232
|
-
|
232
|
+
|
233
|
+
# 'raw' means turn raw input on
|
233
234
|
|
234
235
|
# restore proper output newline handling -- see stty.rb and "man stty" and /usr/include/sys/termios.h
|
235
236
|
# looks like "raw" flips off the OPOST bit 0x00000001 /* enable following output processing */
|
236
237
|
# which disables #define ONLCR 0x00000002 /* map NL to CR-NL (ala CRMOD) */
|
237
|
-
|
238
|
+
# so this sets it back on again since all we care about is raw input, not raw output
|
239
|
+
system("stty raw opost")
|
238
240
|
|
239
241
|
c = nil
|
240
242
|
if $stdin.ready?
|
data/rerun.gemspec
CHANGED
@@ -3,7 +3,7 @@ $spec = Gem::Specification.new do |s|
|
|
3
3
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
4
4
|
|
5
5
|
s.name = 'rerun'
|
6
|
-
s.version = '0.6.
|
6
|
+
s.version = '0.6.5'
|
7
7
|
|
8
8
|
s.description = "Restarts your app when a file changes"
|
9
9
|
s.summary = "Launches an app, and restarts it whenever the filesystem changes."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rerun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -46,7 +46,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
46
46
|
version: '0'
|
47
47
|
segments:
|
48
48
|
- 0
|
49
|
-
hash:
|
49
|
+
hash: 1943503028263803079
|
50
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|