Last active
January 26, 2017 23:39
-
-
Save sman591/e1febd028d7305387da413d01440ce2c to your computer and use it in GitHub Desktop.
Guard error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
ruby IO.read(File.expand_path("../.ruby-version", __FILE__)).chomp | |
gem 'rails', '~> 5.0.0' | |
gem 'mysql2' | |
gem 'puma' | |
gem 'rails_12factor', group: :production | |
gem 'test-unit', '~> 3.0' | |
gem 'rollbar', '~> 2.8' | |
gem 'skylight' | |
gem 'sidekiq', '< 5' | |
gem 'sprockets', require: nil | |
gem 'devise', '~> 4.2' | |
gem 'omniauth-mlh' | |
gem 'httparty' | |
gem 'paperclip', '~> 5.0.0' | |
gem 'aws-sdk' | |
gem 'haml-rails' | |
gem 'simple_form' | |
gem 'kaminari' | |
gem 'ajax-datatables-rails' | |
gem 'roadie-rails' | |
gem 'chartkick', '~> 2.1' | |
gem 'groupdate' | |
gem 'font-awesome-rails', '~> 4.0' # needed for icon helpers | |
gem 'strip_attributes' | |
gem 'validate_url' | |
# Previously grouped under assets: | |
gem 'sass-rails' | |
gem 'coffee-rails' | |
gem 'jquery-rails' | |
gem 'jquery-ui-sass-rails' | |
gem 'jquery-datatables-rails', '~> 3.4.0' | |
gem 'selectize-rails' | |
gem 'highcharts-rails', '~> 4.2.5' | |
gem 'uglifier', '~> 3.0' | |
gem 'dotenv-rails', groups: [:development, :test] | |
group :development do | |
gem 'better_errors' | |
gem 'binding_of_caller' | |
gem 'guard' | |
gem 'guard-minitest' | |
gem 'simplecov', require: false | |
end | |
group :test do | |
gem 'shoulda' | |
gem 'minitest-rails' | |
gem 'minitest-reporters' | |
gem 'valid_attribute' | |
gem 'factory_girl_rails' | |
gem 'codeclimate-test-reporter', '~> 0.6.0', require: nil | |
gem 'rails-controller-testing' # Rails 4 fallback | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> stuart@stuart$ be guard --debug | |
Expected string default value for '--listen-on'; got false (boolean) | |
18:38:12 - DEBUG - Notiffany: gntp not available (Please add "gem 'ruby_gntp'" to your Gemfile and run your app with "bundle exec".). | |
18:38:12 - DEBUG - Notiffany: growl not available (Please add "gem 'growl'" to your Gemfile and run your app with "bundle exec".). | |
18:38:12 - DEBUG - Notiffany: terminal_notifier not available (Please add "gem 'terminal-notifier-guard'" to your Gemfile and run your app with "bundle exec".). | |
18:38:12 - DEBUG - Notiffany: libnotify not available (Unsupported platform "darwin16.3.0"). | |
18:38:12 - DEBUG - Notiffany: notifysend not available (Unsupported platform "darwin16.3.0"). | |
18:38:12 - DEBUG - Notiffany: notifu not available (Unsupported platform "darwin16.3.0"). | |
18:38:12 - DEBUG - Command execution: {"ALTERNATE_EDITOR"=>"false"} emacsclient --eval '1' | |
18:38:12 - DEBUG - Notiffany: emacs not available (Emacs client failed). | |
18:38:12 - DEBUG - Notiffany: tmux not available (:tmux notifier is only available inside a TMux session.). | |
18:38:12 - DEBUG - Notiffany: file not available (No :path option given). | |
18:38:12 - DEBUG - Notiffany is using TerminalTitle to send notifications. | |
18:38:12 - DEBUG - Command execution: hash stty | |
18:38:12 - DEBUG - Guard starts all plugins | |
18:38:12 - DEBUG - Hook :start_begin executed for Guard::Minitest | |
18:38:12 - INFO - Guard::Minitest 2.4.6 is running, with Minitest::Unit 5.10.1! | |
18:38:12 - DEBUG - Hook :start_end executed for Guard::Minitest | |
18:38:13 - INFO - Guard is now watching at '/Users/stuart/dev/brickhack.io' | |
18:38:13 - DEBUG - Start interactor | |
18:38:13 - DEBUG - Command execution: stty -g 2>/dev/null | |
18:38:15 - DEBUG - Interactor was stopped or killed | |
18:38:15 - DEBUG - Command execution: stty 2>/dev/null | |
18:38:15 - ERROR - Problem with watch action! | |
> [#] undefined method `zero?' for 1..2:Range | |
18:38:15 - ERROR - /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/watcher/pattern/match_result.rb:12:in `[]' | |
> [#] /Users/stuart/dev/brickhack.io/Guardfile:3:in `block (2 levels) in evaluate' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/watcher.rb:75:in `call_action' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/watcher.rb:44:in `block (2 levels) in match_files' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/watcher.rb:39:in `each' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/watcher.rb:39:in `block in match_files' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/watcher.rb:38:in `each' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/watcher.rb:38:in `inject' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/watcher.rb:38:in `match_files' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/runner.rb:58:in `block (3 levels) in run_on_changes' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/runner.rb:56:in `each' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/runner.rb:56:in `block (2 levels) in run_on_changes' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/runner.rb:119:in `block (2 levels) in _run_group_plugins' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/runner.rb:117:in `each' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/runner.rb:117:in `block in _run_group_plugins' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/runner.rb:116:in `catch' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/runner.rb:116:in `_run_group_plugins' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/runner.rb:54:in `block in run_on_changes' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/runner.rb:53:in `each' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/runner.rb:53:in `run_on_changes' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/internals/queue.rb:24:in `process' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/commander.rb:43:in `start' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/cli/environments/valid.rb:16:in `start_guard' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/cli.rb:122:in `start' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/aruba_adapter.rb:32:in `execute' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/lib/guard/aruba_adapter.rb:19:in `execute!' | |
> [#] /Users/stuart/dev/brickhack.io/vendor/ruby/2.4.0/gems/guard-2.14.0/bin/_guard-core:11:in `<main>' | |
18:38:15 - DEBUG - Start interactor | |
18:38:15 - DEBUG - Command execution: stty -g 2>/dev/null | |
[1] guard(main)> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# More info at https://github.com/guard/guard#readme | |
guard :minitest, all_on_start: false, all_after_pass: false, spring: "bin/rails test" do | |
watch(%r{^app/controllers/(?:([^\/]+/))?(.+)\.rb$}) { |m| "test/controllers/#{m[1..2].join}_test.rb" } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment