showterm 0.2.1.pre.5 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +2 -1
  2. data/bin/showterm +12 -3
  3. data/showterm.gemspec +1 -1
  4. metadata +4 -4
data/README.md CHANGED
@@ -15,7 +15,6 @@ TODO
15
15
  ====
16
16
 
17
17
  * Allow embedders to chose colourschemes (at least light vs. dark background).
18
- * Fix problems with non-80 column terminals
19
18
  * Fix problems with vim which sometimes goes out-of-bounds for term.js
20
19
 
21
20
  Meta-fu
@@ -28,3 +27,5 @@ Credit
28
27
  ======
29
28
 
30
29
  This would not have been doable without the excellent terminal emulator I borrowed from Christopher Jeffrey's incredible [tty.js](https://github.com/chjj/tty.js).
30
+
31
+ For terminal recording on a mac, this gem bundles Satoru Takabayashi's awesome [`ttyrec`](http://0xcc.net/ttyrec) program.
data/bin/showterm CHANGED
@@ -17,9 +17,18 @@ sf, tf = Showterm.record! *ARGV
17
17
  begin
18
18
  Showterm.upload! sf, tf
19
19
  rescue => e
20
+ File.open("/tmp/showtime.#$$.script", 'w') do |f|
21
+ f.write(sf)
22
+ end
23
+
24
+ File.open("/tmp/showtime.#$$.times", 'w') do |f|
25
+ f.write(sf)
26
+ end
20
27
  puts [e] + e.backtrace
28
+ puts "-" * 80
21
29
  puts "DON'T PANIC"
22
- puts "your script file is: #{sf} and your timing file is: #{tf}"
23
- puts "to try uploading again:"
24
- puts "ruby -rshowterm -e'Showterm.upload! #{sf.inspect}, #{tf.inspect}'"
30
+ puts %(your work is safe in "/tmp/showtime.#$$.script" and "/tmp/showtime.#$$.times")
31
+ puts "To try uploading manually use:"
32
+
33
+ puts %(ruby -rshowterm -e'Showterm.upload! File.read("/tmp/showtime.#$$.script"), File.read("/tmp/showtime.#$$.times")')
25
34
  end
data/showterm.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "showterm"
3
- s.version = "0.2.1.pre.5"
3
+ s.version = "0.2.2"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.author = "Conrad Irwin"
6
6
  s.email = "conrad.irwin@gmail.com"
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: showterm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1.pre.5
5
- prerelease: 6
4
+ version: 0.2.2
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Conrad Irwin
@@ -51,9 +51,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
51
  required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
- - - ! '>'
54
+ - - ! '>='
55
55
  - !ruby/object:Gem::Version
56
- version: 1.3.1
56
+ version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
59
  rubygems_version: 1.8.24