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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -0
- data/README.md +3 -1
- data/bin/shellplay +4 -2
- data/lib/shellplay/config.rb +1 -1
- data/shellplay.gemspec +2 -2
- data/tpl/index.html +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a990510c54011a42c073d7b5c2455480e2d124d1
|
4
|
+
data.tar.gz: 663418918a9eed30b279545a2fccc317c28b3194
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e79caf702fdb83c988bb0e24bb54b4cebbadad9e20bbd88caac00569df28a1285aa4733b7c84e1ea8feb6af530c0abde75df773c1523ac6347b0eb364d73dd1
|
7
|
+
data.tar.gz: cc2f77de04fe717ba488e7fcb01f96d7d84a53b208453b792a2e646644b66b382c1955f8d9a68ba11c46ab10abdd9d006f68de1ef2e3fb822beba7c004fdc72d
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
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,
|
data/bin/shellplay
CHANGED
@@ -33,9 +33,10 @@ end
|
|
33
33
|
def display(screen)
|
34
34
|
if screen.clearscreen
|
35
35
|
if ENV['TERM_PROGRAM'] = 'iTerm.app'
|
36
|
-
|
36
|
+
print "\e]50;ClearScrollback\a"
|
37
37
|
else
|
38
|
-
|
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$/
|
data/lib/shellplay/config.rb
CHANGED
data/shellplay.gemspec
CHANGED
@@ -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
|
data/tpl/index.html
CHANGED
@@ -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
|
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.
|
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:
|
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:
|
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
|