rerun 0.6.3 → 0.6.4

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 (4) hide show
  1. data/Rakefile +1 -1
  2. data/lib/rerun/runner.rb +6 -1
  3. data/rerun.gemspec +1 -1
  4. metadata +3 -3
data/Rakefile CHANGED
@@ -69,6 +69,6 @@ task 'release' => [:check_git, package('.gem'), package('.tar.gz')] do |t|
69
69
  puts "Releasing #{$spec.version}"
70
70
  sh "gem push #{package('.gem')}"
71
71
  puts "Tagging and pushing"
72
- sh "git tag -v#{$spec.version}"
72
+ sh "git tag v#{$spec.version}"
73
73
  sh "git push && git push --tags"
74
74
  end
data/lib/rerun/runner.rb CHANGED
@@ -229,8 +229,13 @@ 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
- # "stty -echo" would make it not clutter the console, but be sure (ensure) to "stty echo" before exit
233
232
  system("stty raw") # turn raw input on
233
+
234
+ # restore proper output newline handling -- see stty.rb and "man stty" and /usr/include/sys/termios.h
235
+ # looks like "raw" flips off the OPOST bit 0x00000001 /* enable following output processing */
236
+ # which disables #define ONLCR 0x00000002 /* map NL to CR-NL (ala CRMOD) */
237
+ system("stty gfmt1:oflag=3")
238
+
234
239
  c = nil
235
240
  if $stdin.ready?
236
241
  c = $stdin.getc
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.3'
6
+ s.version = '0.6.4'
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.3
4
+ version: 0.6.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-27 00:00:00.000000000Z
12
+ date: 2011-12-04 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Restarts your app when a file changes
15
15
  email: alex@stinky.com
@@ -46,7 +46,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
46
46
  version: '0'
47
47
  segments:
48
48
  - 0
49
- hash: 569371154783151759
49
+ hash: 321968819808089779
50
50
  required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements: