shellplay 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -2
- data/README.md +2 -0
- data/bin/shellplay +9 -5
- data/bin/shellrecord +2 -3
- data/lib/shellplay/screen.rb +1 -1
- data/lib/shellplay.rb +4 -0
- metadata +2 -3
- data/lib/shellplay/version.rb +0 -3
- data/lib/shreplay.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72b43b64e67d4a8667bcad082525437b239aebc8
|
4
|
+
data.tar.gz: 8c58653fc9febf7eee308b8ebe6d55a4f10ff529
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f41fef25c375688119350d37bb584b2a43d8236805ebe3e590e7c3bbfd79e386203f459956deb9b6a1e1f52b58a624b867e49a22b2933092a4fb7ac9b47fdc85
|
7
|
+
data.tar.gz: 49032f988fbcba2a48baa12f11e3f5ca1922355617bc75c6518a5e9b159762270c2335ad06645db4d124181581814a6fbf953f573fc4a2c8b2c62f5885624bf2
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
Shellplay Changelog
|
2
2
|
=========================
|
3
3
|
|
4
|
+
v0.0.3 - 2014-08-11
|
5
|
+
-------------------
|
6
|
+
- fix shellrecord that was broken after incomplete file renaming
|
7
|
+
|
4
8
|
v0.0.2 - 2014-08-10
|
5
9
|
---------------
|
6
|
-
|
7
10
|
- made recorder and player more or less working
|
8
11
|
- changed project name twice. First shellprez, then shreplay, finally shellplay rocks better
|
9
12
|
|
10
13
|
v0.0.1 - 2014-08-08
|
11
14
|
------------------
|
12
|
-
|
13
15
|
- just initial code
|
data/README.md
CHANGED
@@ -39,6 +39,8 @@ Then type enter to go next, or `?` to display list of available commands.
|
|
39
39
|
|
40
40
|
## Todo
|
41
41
|
|
42
|
+
- handle the no-display entries
|
43
|
+
- add a function in player to edit a screen
|
42
44
|
- when prototype is ready, switch to v0.1.0
|
43
45
|
- test coverage
|
44
46
|
- save and load sessions from gist
|
data/bin/shellplay
CHANGED
@@ -31,13 +31,17 @@ def usage
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def display(screen)
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
if screen.displaycommand
|
35
|
+
print @session.config.prompt
|
36
|
+
sleep @sleeptime
|
37
|
+
print screen.stdin
|
38
|
+
STDIN.gets
|
39
|
+
@lastelapsed = screen.timespent
|
40
|
+
else
|
41
|
+
@lastelapsed = 0
|
42
|
+
end
|
38
43
|
puts screen.stdout
|
39
44
|
puts Paint[screen.stderr, :red]
|
40
|
-
@lastelapsed = screen.timespent
|
41
45
|
end
|
42
46
|
|
43
47
|
def shownext
|
data/bin/shellrecord
CHANGED
@@ -6,11 +6,10 @@ require 'open3'
|
|
6
6
|
lib = File.expand_path('../../lib', __FILE__)
|
7
7
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
8
8
|
|
9
|
-
require 'shellplay
|
9
|
+
require 'shellplay'
|
10
10
|
|
11
11
|
continue = true
|
12
|
-
sleeptime = 1.0/
|
13
|
-
sleeptime = 0
|
12
|
+
sleeptime = 1.0/48.0
|
14
13
|
|
15
14
|
session = Shellplay::Session.new
|
16
15
|
prompt = "\e[36mrecord >\e[0m"
|
data/lib/shellplay/screen.rb
CHANGED
data/lib/shellplay.rb
ADDED
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.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mose
|
@@ -129,11 +129,10 @@ files:
|
|
129
129
|
- bin/scenario.json
|
130
130
|
- bin/shellplay
|
131
131
|
- bin/shellrecord
|
132
|
+
- lib/shellplay.rb
|
132
133
|
- lib/shellplay/config.rb
|
133
134
|
- lib/shellplay/screen.rb
|
134
135
|
- lib/shellplay/session.rb
|
135
|
-
- lib/shellplay/version.rb
|
136
|
-
- lib/shreplay.rb
|
137
136
|
- shellplay.gemspec
|
138
137
|
- spec/files/session.json
|
139
138
|
- spec/lib/shellplay/screen_spec.rb
|
data/lib/shellplay/version.rb
DELETED