shelr 0.9.10 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,11 +2,23 @@
2
2
 
3
3
  ## Installation
4
4
 
5
+ ### From gem
6
+
5
7
  You'll need ruby and rubygems installed.
6
8
 
7
9
  gem install shelr
8
10
 
9
- See [shellcast](http://shelr.tv/records/4d1c5458905ba77eb7000002) for details :)
11
+ See [shellcast](http://shelr.tv/records/4f49ea4ae557800001000004) for details :)
12
+
13
+ ### From packages
14
+
15
+ #### Debian/Ubuntu
16
+
17
+ PPA: https://launchpad.net/~antono/+archive/shelr
18
+
19
+ #### Archlinux
20
+
21
+ PKGBUILD: https://aur.archlinux.org/packages.php?ID=56945
10
22
 
11
23
  ## Watching other's records
12
24
 
@@ -36,6 +48,6 @@ Not sure about other OSes.
36
48
 
37
49
  ## Copyright
38
50
 
39
- Copyright (c) 2010 Antono Vasiljev. See LICENSE.txt for further details.
51
+ Copyright (c) 2010, 2011, 2012 Antono Vasiljev. See LICENSE.txt for details.
40
52
 
41
- [TV]: http://shelr.tv/ "Shell records from shell ninjas"
53
+ [TV]: http://shelr.tv/ "Shellcasts from shell ninjas"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.10
1
+ 0.10.0
data/bin/shelr CHANGED
@@ -13,8 +13,10 @@ HELP = <<-HELP
13
13
  Commands:
14
14
  setup API_KEY - setup
15
15
  record - record new shellcast
16
+ push last - publish last record
16
17
  push RECORD_ID - publish
17
18
  list - print list of records
19
+ play last - play last local record
18
20
  play RECORD_ID - play local record
19
21
  play RECORD_URL - play remote record
20
22
 
@@ -29,7 +29,8 @@ module Shelr
29
29
 
30
30
  def prepare(id)
31
31
  puts
32
- puts 'Your record will be published under terms of Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)'
32
+ puts 'Your record will be published under terms'
33
+ puts 'of Creative Commons Attribution-ShareAlike 3.0 Unported'
33
34
  puts 'See http://creativecommons.org/licenses/by-sa/3.0/ for details.'
34
35
  puts
35
36
 
@@ -38,13 +38,13 @@ module Shelr
38
38
  restore_terminal
39
39
  puts FOOTER
40
40
  puts
41
- puts "hint $ #{Shelr::APP_NAME} play #{record_id}"
42
- puts "hint $ #{Shelr::APP_NAME} push #{record_id}"
41
+ puts "Replay : #{Shelr::APP_NAME} play last"
42
+ puts "Publish : #{Shelr::APP_NAME} push last"
43
43
  end
44
44
 
45
45
  def request_metadata
46
46
  init_terminal
47
- print "Provide HUMAN NAME for Your shellcast: "
47
+ print "Provide HUMAN NAME for Your record: "
48
48
  @meta["title"] = STDIN.gets.strip
49
49
  @meta["created_at"] = record_id
50
50
  @meta["columns"] = @user_columns
data/lib/shelr.rb CHANGED
@@ -26,7 +26,12 @@ module Shelr
26
26
  end
27
27
 
28
28
  def data_dir(record_id)
29
- File.join(Shelr::DATA_DIR, record_id.to_s)
29
+ id = record_id.strip == 'last' ? last_id : record_id.to_s
30
+ File.join(Shelr::DATA_DIR, id)
31
+ end
32
+
33
+ def last_id
34
+ File.basename(Dir[File.join(Shelr::DATA_DIR, '*')].sort.last)
30
35
  end
31
36
  end
32
37
 
data/shelr.1 CHANGED
@@ -1,10 +1,10 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "SHELR" "1" "August 2011" "" ""
4
+ .TH "SHELR" "1" "February 2012" "" ""
5
5
  .
6
6
  .SH "NAME"
7
- \fBshelr\fR \- screencasting for shell junkies
7
+ \fBshelr\fR \- screencasting for shell ninjas
8
8
  .
9
9
  .SH "SYNOPSIS"
10
10
  \fBshelr\fR command [id]
@@ -16,7 +16,7 @@
16
16
  .
17
17
  .TP
18
18
  \fBrecord\fR
19
- Will record your terminal unless you type \fBexit\fR or Ctrl+D and store it to $HOME/\.local/share/shellcast/
19
+ Will record your terminal unless you type \fBexit\fR or Ctrl+D and store it to $HOME/\.local/share/shelr/
20
20
  .
21
21
  .TP
22
22
  \fBlist\fR
@@ -66,6 +66,7 @@ Play local shellcast:
66
66
  .nf
67
67
 
68
68
  $ shelr play 1293702847
69
+ $ shelr play last # will play most recent local record
69
70
  .
70
71
  .fi
71
72
  .
@@ -92,6 +93,7 @@ Publish your shellcast:
92
93
  .nf
93
94
 
94
95
  $ shelr push 1293702847
96
+ $ shelr push last # will push most recent local record
95
97
  .
96
98
  .fi
97
99
  .
@@ -100,8 +102,17 @@ $ shelr push 1293702847
100
102
  .SH "BUGS"
101
103
  \fBshelr\fR is written in Ruby and depends on \fBscript\fR and \fBscriptreplay\fR, commands libraries that are non\-trivial to install on some systems\.
102
104
  .
105
+ .P
106
+ \fBscript\fR on BSD and Darwin does not support timings\.
107
+ .
108
+ .P
109
+ \fBWindows\fR heh\.
110
+ .
103
111
  .SH "COPYRIGHT"
104
- Shelr is Copyright (C) 2011 Antono Vasiljev \fIhttp://antono\.info/\fR
112
+ (C) 2010, 2011, 2012 Antono Vasiljev \fIself@antono\.info\fR
113
+ .
114
+ .P
115
+ Licensed under GPLv3+
105
116
  .
106
117
  .SH "SEE ALSO"
107
- script(1), scriptreplay(1)
118
+ script(1), scriptreplay(1), ttyrec(1), ttyplay(1)
data/shelr.1.ronn CHANGED
@@ -1,4 +1,4 @@
1
- shelr(1) -- screencasting for shell junkies
1
+ shelr(1) -- screencasting for shell ninjas
2
2
  ===============================================
3
3
 
4
4
  ## SYNOPSIS
@@ -13,7 +13,7 @@ shelr(1) -- screencasting for shell junkies
13
13
 
14
14
  * `record`:
15
15
  Will record your terminal unless you type `exit` or Ctrl+D and
16
- store it to $HOME/.local/share/shellcast/
16
+ store it to $HOME/.local/share/shelr/
17
17
 
18
18
  * `list`:
19
19
  lists all your shellcasts.
@@ -39,6 +39,7 @@ List recorded shellcasts:
39
39
  Play local shellcast:
40
40
 
41
41
  $ shelr play 1293702847
42
+ $ shelr play last # will play most recent local record
42
43
 
43
44
  Play remote shellcast:
44
45
 
@@ -47,6 +48,7 @@ Play remote shellcast:
47
48
  Publish your shellcast:
48
49
 
49
50
  $ shelr push 1293702847
51
+ $ shelr push last # will push most recent local record
50
52
 
51
53
 
52
54
  ## BUGS
@@ -61,8 +63,10 @@ commands libraries that are non-trivial to install on some systems.
61
63
 
62
64
  ## COPYRIGHT
63
65
 
64
- Shelr is Copyright (C) 2011 Antono Vasiljev <http://antono.info/>
66
+ (C) 2010, 2011, 2012 Antono Vasiljev <self@antono.info>
67
+
68
+ Licensed under GPLv3+
65
69
 
66
70
  ## SEE ALSO
67
71
 
68
- script(1), scriptreplay(1), ttyrec(1)
72
+ script(1), scriptreplay(1), ttyrec(1), ttyplay(1)
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.9.10
4
+ version: 0.10.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-22 00:00:00.000000000 Z
13
+ date: 2012-02-26 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
- requirement: &78707200 !ruby/object:Gem::Requirement
17
+ requirement: &10652700 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *78707200
25
+ version_requirements: *10652700
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: mocha
28
- requirement: &78706440 !ruby/object:Gem::Requirement
28
+ requirement: &10650840 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *78706440
36
+ version_requirements: *10650840
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bundler
39
- requirement: &78705100 !ruby/object:Gem::Requirement
39
+ requirement: &10649440 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *78705100
47
+ version_requirements: *10649440
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: jeweler
50
- requirement: &78729080 !ruby/object:Gem::Requirement
50
+ requirement: &10646940 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *78729080
58
+ version_requirements: *10646940
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rcov
61
- requirement: &78728000 !ruby/object:Gem::Requirement
61
+ requirement: &10632680 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *78728000
69
+ version_requirements: *10632680
70
70
  description: Screencast utility for unix shell junkies :)
71
71
  email: self@antono.info
72
72
  executables:
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 815097985
115
+ hash: -4236082943444524578
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 1.8.10
124
+ rubygems_version: 1.8.17
125
125
  signing_key:
126
126
  specification_version: 3
127
127
  summary: Screencasts for Shell Ninjas