shelr 0.12.1 → 0.12.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -6,4 +6,5 @@ doc
6
6
  vendor/bundle
7
7
  TAGS
8
8
  tags
9
+ gems.tags
9
10
  .pc/
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ gemfile: Gemfile.ci
3
+ rvm:
4
+ - 1.8.7
5
+ - 1.9.3
6
+ - jruby-18mode
7
+ - rbx-18mode
8
+ - ruby-head
9
+ - ree
data/Gemfile CHANGED
@@ -1,5 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
+ gem 'json'
3
4
  gem 'rake'
4
5
 
5
6
  gem "pry"
data/Gemfile.ci ADDED
@@ -0,0 +1,7 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'rake'
4
+ gem 'json'
5
+ gem 'rspec'
6
+ gem 'pry'
7
+ gem 'pry-nav'
data/Gemfile.lock CHANGED
@@ -75,6 +75,7 @@ DEPENDENCIES
75
75
  guard-bundler
76
76
  guard-ctags-bundler!
77
77
  guard-rspec
78
+ json
78
79
  pry
79
80
  pry-nav
80
81
  rake
data/README.md CHANGED
@@ -1,4 +1,10 @@
1
- # Shelr -- screencasting for [shell ninjas][TV].
1
+ # Shelr -- [tool for terminal screencasting][TV].
2
+
3
+ [![Build Status](https://secure.travis-ci.org/antono/shelr.png?branch=master)](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 HEADER
51
+ STDOUT.puts "-=" * (Shelr.terminal.size[:width] / 2)
76
52
  puts
77
53
  system(scriptreplay_cmd)
78
54
  puts
79
- puts FOOTER
55
+ STDOUT.puts "-=" * (Shelr.terminal.size[:width] / 2)
80
56
  end
81
57
 
82
58
  private
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Shelr
2
- VERSION = '0.12.1'
2
+ VERSION = '0.12.2'
3
3
  end
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.1
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-03 00:00:00.000000000 Z
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: -3545260186803621288
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: -3545260186803621288
98
+ hash: -3704152235157863011
97
99
  requirements: []
98
100
  rubyforge_project:
99
101
  rubygems_version: 1.8.21