Skip to content

Commit

Permalink
Updated dependencies, fixed docs and specs
Browse files Browse the repository at this point in the history
  • Loading branch information
antono committed Aug 16, 2011
1 parent f0d547b commit d027f37
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,6 +1,6 @@
source "http://rubygems.org"

gem 'xdg', '1.0.0'
gem 'xdg', '2.2.1'
gem 'colored'

group :development do
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -20,7 +20,7 @@ GEM
rspec-expectations (2.1.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.1.0)
xdg (1.0.0)
xdg (2.2.1)

PLATFORMS
ruby
Expand All @@ -32,4 +32,4 @@ DEPENDENCIES
mocha
rcov
rspec
xdg (= 1.0.0)
xdg (= 2.2.1)
8 changes: 4 additions & 4 deletions lib/shelr/recorder.rb
Expand Up @@ -29,7 +29,7 @@ def initialize
end

def record!
check_data_dir
check_record_dir
request_metadata
puts HEADER.black_on_white
puts "Your session started"
Expand All @@ -38,7 +38,7 @@ def record!
system(script_cmd)
restore_terminal
puts FOOTER.black_on_white
puts "hint $ #{Shelr::AP} play #{shellcast_id}".green
puts "hint $ #{Shelr::APP_NAME} play #{record_id}".green
end

def request_metadata
Expand All @@ -53,8 +53,8 @@ def request_metadata

private

def check_data_dir
FileUtils.mkdir_p(data_dir) unless File.exists?(data_dir)
def check_record_dir
FileUtils.mkdir_p(record_dir) unless File.exists?(record_dir)
end

def init_terminal
Expand Down
22 changes: 11 additions & 11 deletions shelr.1
@@ -1,16 +1,16 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "SHELLCAST" "1" "January 2011" "" ""
.TH "SHELR" "1" "August 2011" "" ""
.
.SH "NAME"
\fBshellcast\fR \- screencasting for shell junkies
\fBshelr\fR \- screencasting for shell junkies
.
.SH "SYNOPSIS"
\fBshellcast\fR command [id]
\fBshelr\fR command [id]
.
.SH "DESCRIPTION"
\fBShellcast\fR records terminal output and can replay it
\fBShelr\fR records terminal output and can replay it
.
.SH "COMMANDS"
.
Expand All @@ -37,7 +37,7 @@ Record your shellcast:
.
.nf

$ shellcast record
$ shelr record
\.\.\. do something \.\.\.
$ exit
.
Expand All @@ -52,7 +52,7 @@ List recorded shellcasts:
.
.nf

$ shellcast list
$ shelr list
.
.fi
.
Expand All @@ -65,7 +65,7 @@ Play local shellcast:
.
.nf

$ shellcast play 1293702847
$ shelr play 1293702847
.
.fi
.
Expand All @@ -78,7 +78,7 @@ Play remote shellcast:
.
.nf

$ shellcast play http://shell\.heroku\.com/records/4d1f7c3890820d6144000002\.json
$ shelr play http://shelr\.tv/records/4d1f7c3890820d6144000002\.json
.
.fi
.
Expand All @@ -91,17 +91,17 @@ Publish your shellcast:
.
.nf

$ shellcast push 1293702847
$ shelr push 1293702847
.
.fi
.
.IP "" 0
.
.SH "BUGS"
\fBshellcast\fR is written in Ruby and depends on \fBscript\fR and \fBscriptreplay\fR, commands libraries that are non\-trivial to install on some systems\.
\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\.
.
.SH "COPYRIGHT"
Ronn is Copyright (C) 2011 Antono Vasiljev \fIhttp://antono\.info/\fR
Shelr is Copyright (C) 2011 Antono Vasiljev \fIhttp://antono\.info/\fR
.
.SH "SEE ALSO"
script(1), scriptreplay(1)
20 changes: 10 additions & 10 deletions shelr.1.ronn
@@ -1,13 +1,13 @@
shellcast(1) -- screencasting for shell junkies
shelr(1) -- screencasting for shell junkies
===============================================

## SYNOPSIS

`shellcast` command [id]
`shelr` command [id]

## DESCRIPTION

**Shellcast** records terminal output and can replay it
**Shelr** records terminal output and can replay it

## COMMANDS

Expand All @@ -28,35 +28,35 @@ shellcast(1) -- screencasting for shell junkies

Record your shellcast:

$ shellcast record
$ shelr record
... do something ...
$ exit

List recorded shellcasts:

$ shellcast list
$ shelr list

Play local shellcast:

$ shellcast play 1293702847
$ shelr play 1293702847

Play remote shellcast:

$ shellcast play http://shell.heroku.com/records/4d1f7c3890820d6144000002.json
$ shelr play http://shelr.tv/records/4d1f7c3890820d6144000002.json

Publish your shellcast:

$ shellcast push 1293702847
$ shelr push 1293702847


## BUGS

**shellcast** is written in Ruby and depends on `script` and `scriptreplay`,
**shelr** is written in Ruby and depends on `script` and `scriptreplay`,
commands libraries that are non-trivial to install on some systems.

## COPYRIGHT

Ronn is Copyright (C) 2011 Antono Vasiljev <http://antono.info/>
Shelr is Copyright (C) 2011 Antono Vasiljev <http://antono.info/>

## SEE ALSO

Expand Down
4 changes: 2 additions & 2 deletions spec/shelr_spec.rb
Expand Up @@ -6,10 +6,10 @@
end

it "should provide XDG and APP_NAME based ::DATA_DIR" do
Shelr::DATA_DIR.should == File.join(XDG['DATA_HOME'], Shelr::APP_NAME)
Shelr::DATA_DIR.should == File.join(XDG['DATA_HOME'].to_s, Shelr::APP_NAME)
end

it "should provide XDG config path" do
Shelr::CONFIG_DIR.should == File.join(XDG['CONFIG_HOME'], Shelr::APP_NAME)
Shelr::CONFIG_DIR.should == File.join(XDG['CONFIG_HOME'].to_s, Shelr::APP_NAME)
end
end
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -2,6 +2,8 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'shelr'
require "rubygems"
require "bundler/setup"

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Expand Down

0 comments on commit d027f37

Please sign in to comment.