shelr 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,7 +18,7 @@ On ubuntu older than precise or debian older than wheezy you should also add fol
18
18
 
19
19
  export PATH=/var/lib/gems/1.8/bin:$PATH
20
20
 
21
- See [shellcast](http://shelr.tv/records/4f49ea4ae557800001000004) for details :)
21
+ Watch [asciicast](http://shelr.tv/records/4f49ea4ae557800001000004) for details :)
22
22
 
23
23
  ### From packages
24
24
 
@@ -27,40 +27,55 @@ See [shellcast](http://shelr.tv/records/4f49ea4ae557800001000004) for details :)
27
27
  - [EBUILD](http://overlays.gentoo.org/proj/sunrise/browser/app-misc/shelr) for Gentoo Linux
28
28
  - [deb](http://mentors.debian.net/package/shelr) for Debian (Mentor Wanted)
29
29
 
30
- ## Watching other's records
30
+ ## Watching other's records in your terminal
31
31
 
32
32
  shelr play http://shelr.tv/records/4f4ca2a43cd1090001000002.json
33
33
 
34
34
  You can watch them online at [http://shelr.tv/][TV]
35
35
 
36
- ## Recording
36
+ ## Recording your terminal
37
37
 
38
38
  shelr record
39
- ...
40
- do something in your shell
41
- ..
42
- exit
43
39
 
44
- ## Publishing
40
+ Recording started. Do what you whant to record...
41
+ To finish recording type 'exit' or just Ctrl+D.
42
+
43
+ ## Publishing your record
44
+
45
+ shelr push last
46
+
47
+ When you have some asciicasts at your machine you can pick one:
45
48
 
46
49
  shelr list
47
50
  <select id of your record>
48
51
  shelr push <ID>
49
52
 
53
+ There is alias for last record:
54
+
55
+ If you want private record, provide --private switch:
56
+
57
+ shelr push last --private
58
+
59
+ Such record will be accessible by secret URL with access_key.
60
+
50
61
  ## Dependencies
51
62
 
52
- ### Linux/BSD/Hurd/etc...
63
+ ### Linux/Hurd
64
+
65
+ You need `script` tool from linux-utils.
66
+ It's already installed if You use Linux.
67
+ Note that old school BSD `script` will not work.
53
68
 
54
- You need `script` and `scriptreplay` tools from BSD Utils.
55
- Tey are already installed if You use Debian/Ubuntu/BSD variants.
69
+ ### BSD/OSX
56
70
 
57
- ### OSX
71
+ Unfortunally BSD and OSX ship old `script` wich lack timing support.
72
+ If You use this systems - install `ttyrec` via ports macprots or homebrew
73
+ and setup it as recording backend.
58
74
 
59
- If You use OS X - install `ttyrec` via homebrew and setup it as recording backend.
75
+ brew install ttyrec # OSX
76
+ sudo port install ttyrec # BSD / OSX
77
+ shelr backend ttyrec # BSD / OSX
60
78
 
61
- brew install ttyrec
62
- shelr backend ttyrec
63
-
64
79
  ## Copyright
65
80
 
66
81
  (Э) 2010, 2011, 2012 Antono Vasiljev and
@@ -68,4 +83,4 @@ If You use OS X - install `ttyrec` via homebrew and setup it as recording backen
68
83
 
69
84
  See LICENSE.txt for details.
70
85
 
71
- [TV]: http://shelr.tv/ "Shellcasts from shell ninjas"
86
+ [TV]: http://shelr.tv/ "Asciicasts from unix ninjas"
@@ -0,0 +1,33 @@
1
+ #!/bin/bash
2
+
3
+ _shelr()
4
+ {
5
+ local cur prev opts
6
+ COMPREPLY=()
7
+ cur="${COMP_WORDS[COMP_CWORD]}"
8
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
9
+ opts="record push dump list play setup backend"
10
+
11
+ if test $COMP_CWORD -eq 2; then
12
+ case $prev in
13
+ record|list)
14
+ COMPREPLY=() ;
15
+ return 0 ;;
16
+ backend)
17
+ COMPREPLY=( $(compgen -W "ttyrec script" -- ${cur}) ) ;
18
+ return 0 ;;
19
+ push|play)
20
+ COMPREPLY=( "last" ) ;
21
+ return 0 ;;
22
+ esac
23
+ fi
24
+
25
+ if test $COMP_CWORD -eq 1; then
26
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
27
+ return 0
28
+ fi
29
+
30
+ }
31
+ complete -F _shelr shelr
32
+
33
+ # vim:set ts=4 sw=2 et:
data/lib/shelr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Shelr
2
- VERSION = '0.15.1'
2
+ VERSION = '0.15.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.15.1
4
+ version: 0.15.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-04-23 00:00:00.000000000 Z
15
+ date: 2012-05-02 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: json
@@ -51,6 +51,7 @@ files:
51
51
  - Rakefile
52
52
  - TODO.org
53
53
  - bin/shelr
54
+ - contrib/shelr.bash.complete
54
55
  - features/recording.feature
55
56
  - features/step_definitions/shelr_steps.rb
56
57
  - features/support/env.rb
@@ -87,7 +88,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
88
  version: '0'
88
89
  segments:
89
90
  - 0
90
- hash: -2890209421750652881
91
+ hash: -1693508584259767020
91
92
  required_rubygems_version: !ruby/object:Gem::Requirement
92
93
  none: false
93
94
  requirements:
@@ -96,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  version: '0'
97
98
  segments:
98
99
  - 0
99
- hash: -2890209421750652881
100
+ hash: -1693508584259767020
100
101
  requirements: []
101
102
  rubyforge_project:
102
103
  rubygems_version: 1.8.21