Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Set up guard for tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwynn committed Mar 23, 2013
1 parent d5c44d3 commit 7628387
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
tmp/fakehome/.rdio
pkg/
tmp/rspec_guard_result
9 changes: 9 additions & 0 deletions Gemfile
@@ -1,2 +1,11 @@
source 'https://rubygems.org'
group :development do
gem 'guard-rspec'
gem 'rake', '~> 10.0.3'
gem 'rb-fsevent', '~> 0.9.3'
gem 'rspec', '~> 2.12.0'
gem 'rspec-mocks', '~> 2.12.0'
gem 'simplecov'
gem 'webmock'
end
gemspec
37 changes: 30 additions & 7 deletions Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
rdio-cli (0.1.0)
rdio-cli (1.2.0)
gli (= 2.5.2)
highline (~> 1.6.15)
launchy (~> 2.1.2)
Expand All @@ -10,16 +10,31 @@ GEM
remote: https://rubygems.org/
specs:
addressable (2.3.2)
coderay (1.0.9)
crack (0.3.1)
diff-lcs (1.1.3)
gli (2.5.2)
guard (1.5.4)
listen (>= 0.4.2)
lumberjack (>= 1.0.2)
pry (>= 0.9.10)
thor (>= 0.14.6)
guard-rspec (2.5.1)
guard (>= 1.1)
rspec (~> 2.11)
highline (1.6.15)
json (1.7.5)
launchy (2.1.2)
addressable (~> 2.3)
rake (10.0.1)
rdoc (3.12)
json (~> 1.4)
listen (0.6.0)
lumberjack (1.0.2)
method_source (0.8.1)
multi_json (1.7.1)
pry (0.9.12)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
rake (10.0.3)
rb-fsevent (0.9.3)
rspec (2.12.0)
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
Expand All @@ -28,6 +43,12 @@ GEM
rspec-expectations (2.12.0)
diff-lcs (~> 1.1.3)
rspec-mocks (2.12.0)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
slop (3.4.3)
thor (0.17.0)
webmock (1.8.7)
addressable (>= 2.2.7)
crack (>= 0.1.7)
Expand All @@ -36,9 +57,11 @@ PLATFORMS
ruby

DEPENDENCIES
rake
guard-rspec
rake (~> 10.0.3)
rb-fsevent (~> 0.9.3)
rdio-cli!
rdoc
rspec (~> 2.12.0)
rspec-mocks (~> 2.12.0)
simplecov
webmock
18 changes: 18 additions & 0 deletions Guardfile
@@ -0,0 +1,18 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'rspec' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }

notification :tmux,
:display_message => true,
:timeout => 5, # in seconds
:default_message_format => '%s // %s',
# the first %s will show the title, the second the message
# Alternately you can also configure *success_message_format*,
# *pending_message_format*, *failed_message_format*
:line_separator => ' > ', # since we are single line we need a separator
:color_location => '-a pane-active-border-fg' # to customize which tmux element will change color
end

5 changes: 0 additions & 5 deletions rdio-cli.gemspec
Expand Up @@ -19,10 +19,5 @@ spec = Gem::Specification.new do |s|
s.executables << 'rdio'
s.add_dependency('highline', '~> 1.6.15')
s.add_dependency('launchy', '~> 2.1.2')
s.add_development_dependency('rake')
s.add_development_dependency('rdoc')
s.add_development_dependency('rspec', '~> 2.12.0')
s.add_development_dependency('rspec-mocks', '~> 2.12.0')
s.add_development_dependency 'webmock'
s.add_runtime_dependency('gli','2.5.2')
end

0 comments on commit 7628387

Please sign in to comment.