shelr 0.12.1 → 0.12.2
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.
- data/.gitignore +1 -0
- data/.travis.yml +9 -0
- data/Gemfile +1 -0
- data/Gemfile.ci +7 -0
- data/Gemfile.lock +1 -0
- data/README.md +8 -1
- data/lib/shelr/player.rb +2 -26
- data/lib/shelr/recorder.rb +1 -0
- data/lib/shelr/version.rb +1 -1
- metadata +6 -4
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/Gemfile.ci
ADDED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
# Shelr --
|
|
1
|
+
# Shelr -- [tool for terminal screencasting][TV].
|
|
2
|
+
|
|
3
|
+
[](http://travis-ci.org/antono/shelr)
|
|
4
|
+
|
|
5
|
+
`shelr` allows you to record/replay and publish your terminal on [http://shelr.tv](http://shelr.tv).
|
|
6
|
+
[Code for Shelr.tv](https://github.com/antono/shelr.tv) service is also available on github.
|
|
7
|
+
|
|
2
8
|
|
|
3
9
|
## Installation
|
|
4
10
|
|
|
@@ -14,6 +20,7 @@ See [shellcast](http://shelr.tv/records/4f49ea4ae557800001000004) for details :)
|
|
|
14
20
|
|
|
15
21
|
- [PPA](https://launchpad.net/~antono/+archive/shelr) for Debian/Ubuntu
|
|
16
22
|
- [PKGBUILD](https://aur.archlinux.org/packages.php?ID=56945) for Arch Linux
|
|
23
|
+
- [EBUILD](http://overlays.gentoo.org/proj/sunrise/browser/app-misc/shelr) for Gentoo Linux
|
|
17
24
|
|
|
18
25
|
## Watching other's records
|
|
19
26
|
|
data/lib/shelr/player.rb
CHANGED
|
@@ -7,30 +7,6 @@ require 'pathname'
|
|
|
7
7
|
module Shelr
|
|
8
8
|
class Player
|
|
9
9
|
|
|
10
|
-
HEADER = <<-EOH
|
|
11
|
-
|
|
12
|
-
____ _ _ _ ____ _
|
|
13
|
-
/ ___|| |__ ___| | |/ ___|__ _ ___| |_
|
|
14
|
-
\___ \| '_ \ / _ \ | | | / _` / __| __|
|
|
15
|
-
___) | | | | __/ | | |__| (_| \__ \ |_
|
|
16
|
-
|____/|_| |_|\___|_|_|\____\__,_|___/\__|
|
|
17
|
-
|
|
18
|
-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
EOH
|
|
22
|
-
|
|
23
|
-
FOOTER = <<-EOF
|
|
24
|
-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
|
25
|
-
_____ _ _____ _
|
|
26
|
-
|_ _| |__ ___ | ____|_ __ __| |
|
|
27
|
-
| | | '_ \ / _ \ | _| | '_ \ / _` |
|
|
28
|
-
| | | | | | __/ | |___| | | | (_| |
|
|
29
|
-
|_| |_| |_|\___| |_____|_| |_|\__,_|
|
|
30
|
-
|
|
31
|
-
EOF
|
|
32
|
-
|
|
33
|
-
|
|
34
10
|
def self.play(id)
|
|
35
11
|
new(id).play
|
|
36
12
|
end
|
|
@@ -72,11 +48,11 @@ module Shelr
|
|
|
72
48
|
end
|
|
73
49
|
|
|
74
50
|
def play
|
|
75
|
-
puts
|
|
51
|
+
STDOUT.puts "-=" * (Shelr.terminal.size[:width] / 2)
|
|
76
52
|
puts
|
|
77
53
|
system(scriptreplay_cmd)
|
|
78
54
|
puts
|
|
79
|
-
puts
|
|
55
|
+
STDOUT.puts "-=" * (Shelr.terminal.size[:width] / 2)
|
|
80
56
|
end
|
|
81
57
|
|
|
82
58
|
private
|
data/lib/shelr/recorder.rb
CHANGED
|
@@ -20,6 +20,7 @@ module Shelr
|
|
|
20
20
|
STDOUT.puts "=> Your session started"
|
|
21
21
|
STDOUT.puts "=> Please, do not resize your terminal while recording"
|
|
22
22
|
STDOUT.puts "=> Press Ctrl+D or 'exit' to finish recording"
|
|
23
|
+
STDOUT.puts "-=" * (Shelr.terminal.size[:width] / 2)
|
|
23
24
|
system(recorder_cmd)
|
|
24
25
|
save_as_typescript if Shelr.backend == 'ttyrec'
|
|
25
26
|
STDOUT.puts "-=" * (Shelr.terminal.size[:width] / 2)
|
data/lib/shelr/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shelr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2012-04-
|
|
14
|
+
date: 2012-04-07 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: json
|
|
@@ -40,7 +40,9 @@ files:
|
|
|
40
40
|
- .rbenv-version
|
|
41
41
|
- .rspec
|
|
42
42
|
- .rvmrc
|
|
43
|
+
- .travis.yml
|
|
43
44
|
- Gemfile
|
|
45
|
+
- Gemfile.ci
|
|
44
46
|
- Gemfile.lock
|
|
45
47
|
- Guardfile
|
|
46
48
|
- LICENSE.txt
|
|
@@ -84,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
84
86
|
version: '0'
|
|
85
87
|
segments:
|
|
86
88
|
- 0
|
|
87
|
-
hash: -
|
|
89
|
+
hash: -3704152235157863011
|
|
88
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
91
|
none: false
|
|
90
92
|
requirements:
|
|
@@ -93,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
93
95
|
version: '0'
|
|
94
96
|
segments:
|
|
95
97
|
- 0
|
|
96
|
-
hash: -
|
|
98
|
+
hash: -3704152235157863011
|
|
97
99
|
requirements: []
|
|
98
100
|
rubyforge_project:
|
|
99
101
|
rubygems_version: 1.8.21
|