shellplay 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22bc7692aa966df586775aeab156e8754b067ee8
4
- data.tar.gz: 369bbaaeb929f4abdb739899a0bc3e485e631f2b
3
+ metadata.gz: a990510c54011a42c073d7b5c2455480e2d124d1
4
+ data.tar.gz: 663418918a9eed30b279545a2fccc317c28b3194
5
5
  SHA512:
6
- metadata.gz: 49b3eb3f7a906ef9df9dab6345c8be2596c748a69600cc354cb367d0083e960db84e90d6c2a7755516ef9215287a5f1a46deb32c01c727d4504678fdd5d27d87
7
- data.tar.gz: 631afc682e063e3ed3929bc39d89368ca030feb974cd70d52a74e4e6a3151f0049dd86fdb661759f34750c10bd7239b47a74a4529f08c0884f3c55e79d48b3c1
6
+ metadata.gz: 7e79caf702fdb83c988bb0e24bb54b4cebbadad9e20bbd88caac00569df28a1285aa4733b7c84e1ea8feb6af530c0abde75df773c1523ac6347b0eb364d73dd1
7
+ data.tar.gz: cc2f77de04fe717ba488e7fcb01f96d7d84a53b208453b792a2e646644b66b382c1955f8d9a68ba11c46ab10abdd9d006f68de1ef2e3fb822beba7c004fdc72d
@@ -1,6 +1,11 @@
1
1
  Shellplay Changelog
2
2
  =========================
3
3
 
4
+ v0.1.6 - 2014-08-19
5
+ -------------------
6
+ - fix display of session prompt
7
+ - better quit on bash for shellplayer
8
+
4
9
  v0.1.5 - 2014-08-19
5
10
  -------------------
6
11
  - better initial prompt for html version
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  #gem "shell2html", path: '../shell2html'
7
+ #gem "configstruct", path: '../configstruct'
data/README.md CHANGED
@@ -2,11 +2,11 @@ Shellplay
2
2
  ==================
3
3
 
4
4
  [![Gem Version](https://img.shields.io/gem/v/shellplay.svg)](https://rubygems.org/gems/shellplay)
5
+ [![Downloads](http://img.shields.io/gem/dt/shellplay.svg)](https://rubygems.org/gems/shellplay)
5
6
  [![Build Status](https://img.shields.io/travis/mose/shellplay.svg)](https://travis-ci.org/mose/shellplay)
6
7
  [![Coverage Status](https://img.shields.io/coveralls/mose/shellplay.svg)](https://coveralls.io/r/mose/shellplay?branch=master)
7
8
  [![Dependency Status](https://img.shields.io/gemnasium/mose/shellplay.svg)](https://gemnasium.com/mose/shellplay)
8
9
  [![Code Climate](https://img.shields.io/codeclimate/github/mose/shellplay.svg)](https://codeclimate.com/github/mose/shellplay)
9
- [![Code Climate](http://img.shields.io/gem/dt/shellplay.svg)](https://rubygems.org/gems/shellplay)
10
10
 
11
11
  ----
12
12
 
@@ -103,6 +103,8 @@ To export
103
103
 
104
104
  It will save the html in a dir in `.shellplay` under the name of the session. The dir contains index.html, css, and js files, ready to be played from your laptop or uploaded to your server.
105
105
 
106
+ Note, the `shellexport` command will not override `shellplay.css`, `shellplay.js` and `colors.css` if they exist. So you can apply changes on those files after the first export, then work on your session and re-export. If you want to rest those files, you can just delete them and re-export.
107
+
106
108
  Navigation on the html version is
107
109
 
108
110
  - `p`, `left` for previous screen,
@@ -33,9 +33,10 @@ end
33
33
  def display(screen)
34
34
  if screen.clearscreen
35
35
  if ENV['TERM_PROGRAM'] = 'iTerm.app'
36
- printf "\e]50;ClearScrollback\a"
36
+ print "\e]50;ClearScrollback\a"
37
37
  else
38
- printf "\e\143"
38
+ `clear`
39
+ print "\e[c"
39
40
  end
40
41
  end
41
42
  if screen.displaycommand
@@ -98,6 +99,7 @@ while continue do
98
99
  when /^(?:q|x)$/
99
100
  puts "\nPlay ended.\n"
100
101
  continue = false
102
+ exit
101
103
  when /^(?:\?|h)$/
102
104
  usage
103
105
  when /^p$/
@@ -8,7 +8,7 @@ module Shellplay
8
8
  include Cliprompt
9
9
 
10
10
  def initialize(options = nil, input = STDIN, output = STDOUT)
11
- super(options, input = STDIN, output = STDOUT)
11
+ super(options, input = STDIN, output = STDOUT, true)
12
12
  end
13
13
 
14
14
  def set_defaults
@@ -20,11 +20,11 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency 'paint'
22
22
  spec.add_dependency 'cliprompt'
23
- spec.add_dependency 'configstruct'
23
+ spec.add_dependency 'configstruct', "~> 0.0.4"
24
24
  spec.add_dependency 'shell2html'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.6"
27
27
  spec.add_development_dependency "rake"
28
- spec.add_development_dependency 'rspec'
28
+ spec.add_development_dependency 'rspec', "~> 3.0"
29
29
  spec.add_development_dependency 'coveralls'
30
30
  end
@@ -14,7 +14,7 @@
14
14
  <div class="row">
15
15
  <div class="col-md-12 main">
16
16
  <div class="screen" id="intro">
17
- <%= Shell2html.to_html("\e[33m>\e[0m Type &lt;enter&gt; to begin, use arrows or p/n to navigate.") %>
17
+ <%= Shell2html.to_html("\e[33m>\e[0m Type <enter> to begin, use arrows or p/n to navigate.") %>
18
18
  </div>
19
19
  <% @session.sequence.each_with_index do |screen, i| %>
20
20
  <div class="screen" id="s<%= i %>">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shellplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - mose
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: configstruct
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.0.4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.0.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: shell2html
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '3.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '3.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: coveralls
113
113
  requirement: !ruby/object:Gem::Requirement