Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Set up guard for tmux

  • Loading branch information...
commit 7628387b8703d6599cd5dd442c466a11adec79de 1 parent d5c44d3
Wynn Netherland authored
1  .gitignore
... ... @@ -1,2 +1,3 @@
1 1 tmp/fakehome/.rdio
2 2 pkg/
  3 +tmp/rspec_guard_result
9 Gemfile
... ... @@ -1,2 +1,11 @@
1 1 source 'https://rubygems.org'
  2 +group :development do
  3 + gem 'guard-rspec'
  4 + gem 'rake', '~> 10.0.3'
  5 + gem 'rb-fsevent', '~> 0.9.3'
  6 + gem 'rspec', '~> 2.12.0'
  7 + gem 'rspec-mocks', '~> 2.12.0'
  8 + gem 'simplecov'
  9 + gem 'webmock'
  10 +end
2 11 gemspec
37 Gemfile.lock
... ... @@ -1,7 +1,7 @@
1 1 PATH
2 2 remote: .
3 3 specs:
4   - rdio-cli (0.1.0)
  4 + rdio-cli (1.2.0)
5 5 gli (= 2.5.2)
6 6 highline (~> 1.6.15)
7 7 launchy (~> 2.1.2)
@@ -10,16 +10,31 @@ GEM
10 10 remote: https://rubygems.org/
11 11 specs:
12 12 addressable (2.3.2)
  13 + coderay (1.0.9)
13 14 crack (0.3.1)
14 15 diff-lcs (1.1.3)
15 16 gli (2.5.2)
  17 + guard (1.5.4)
  18 + listen (>= 0.4.2)
  19 + lumberjack (>= 1.0.2)
  20 + pry (>= 0.9.10)
  21 + thor (>= 0.14.6)
  22 + guard-rspec (2.5.1)
  23 + guard (>= 1.1)
  24 + rspec (~> 2.11)
16 25 highline (1.6.15)
17   - json (1.7.5)
18 26 launchy (2.1.2)
19 27 addressable (~> 2.3)
20   - rake (10.0.1)
21   - rdoc (3.12)
22   - json (~> 1.4)
  28 + listen (0.6.0)
  29 + lumberjack (1.0.2)
  30 + method_source (0.8.1)
  31 + multi_json (1.7.1)
  32 + pry (0.9.12)
  33 + coderay (~> 1.0.5)
  34 + method_source (~> 0.8)
  35 + slop (~> 3.4)
  36 + rake (10.0.3)
  37 + rb-fsevent (0.9.3)
23 38 rspec (2.12.0)
24 39 rspec-core (~> 2.12.0)
25 40 rspec-expectations (~> 2.12.0)
@@ -28,6 +43,12 @@ GEM
28 43 rspec-expectations (2.12.0)
29 44 diff-lcs (~> 1.1.3)
30 45 rspec-mocks (2.12.0)
  46 + simplecov (0.7.1)
  47 + multi_json (~> 1.0)
  48 + simplecov-html (~> 0.7.1)
  49 + simplecov-html (0.7.1)
  50 + slop (3.4.3)
  51 + thor (0.17.0)
31 52 webmock (1.8.7)
32 53 addressable (>= 2.2.7)
33 54 crack (>= 0.1.7)
@@ -36,9 +57,11 @@ PLATFORMS
36 57 ruby
37 58
38 59 DEPENDENCIES
39   - rake
  60 + guard-rspec
  61 + rake (~> 10.0.3)
  62 + rb-fsevent (~> 0.9.3)
40 63 rdio-cli!
41   - rdoc
42 64 rspec (~> 2.12.0)
43 65 rspec-mocks (~> 2.12.0)
  66 + simplecov
44 67 webmock
18 Guardfile
... ... @@ -0,0 +1,18 @@
  1 +# A sample Guardfile
  2 +# More info at https://github.com/guard/guard#readme
  3 +guard 'rspec' do
  4 + watch(%r{^spec/.+_spec\.rb$})
  5 + watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
  6 + watch('spec/spec_helper.rb') { "spec" }
  7 +
  8 + notification :tmux,
  9 + :display_message => true,
  10 + :timeout => 5, # in seconds
  11 + :default_message_format => '%s // %s',
  12 + # the first %s will show the title, the second the message
  13 + # Alternately you can also configure *success_message_format*,
  14 + # *pending_message_format*, *failed_message_format*
  15 + :line_separator => ' > ', # since we are single line we need a separator
  16 + :color_location => '-a pane-active-border-fg' # to customize which tmux element will change color
  17 +end
  18 +
5 rdio-cli.gemspec
@@ -19,10 +19,5 @@ spec = Gem::Specification.new do |s|
19 19 s.executables << 'rdio'
20 20 s.add_dependency('highline', '~> 1.6.15')
21 21 s.add_dependency('launchy', '~> 2.1.2')
22   - s.add_development_dependency('rake')
23   - s.add_development_dependency('rdoc')
24   - s.add_development_dependency('rspec', '~> 2.12.0')
25   - s.add_development_dependency('rspec-mocks', '~> 2.12.0')
26   - s.add_development_dependency 'webmock'
27 22 s.add_runtime_dependency('gli','2.5.2')
28 23 end

0 comments on commit 7628387

Please sign in to comment.
Something went wrong with that request. Please try again.