guard-konacha-rails 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49c882b7bb7919cc9a0816a56d50b8947ee19098
4
- data.tar.gz: a66c7b106344c78466c56a25ed8df3e258d420b1
3
+ metadata.gz: a77165519a1ca0de9baedf9f81678ca769045ae2
4
+ data.tar.gz: 6071a01d7c08b8d1ab7eea079db9b486abed1487
5
5
  SHA512:
6
- metadata.gz: 041e33ba2c902006cc9c3cac2cae003272428572850461a2dd26f7cc40248a11b3f9839ec863ad819b9b5b7377bd149f4c207db2baea165890fb4d6ca97454b0
7
- data.tar.gz: 16186c27c3825af09e5b5e0068bd43f15b118616dd67723bdf9ce15e7271863f1a36eaecb0b19b401b1e1e638a3b78bf5c67ff90ee8b29f63c702928a71c9518
6
+ metadata.gz: 367c60cfa3f24662095bbcb5579cff7e27aca2ee0413a35c36d3666ee2f9c173c0be8a62513a6a5a84589f07ebba200b44fe4d231b85d35fea9cd5c903434cec
7
+ data.tar.gz: 27dac6d3eba2c09ef0e04fb1dac33b482e3834545a48255f32de0cecbbdac252007539f6d5d054e401eccf1e9b06a3de5a9f4b088d0f12dcafbb1060041dd5a0
data/Readme.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # guard-konacha-rails
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/guard-konacha-rails.png)](http://badge.fury.io/rb/guard-konacha-rails)
4
- [![Build Status](https://travis-ci.org/lbeder/guard-konacha-rails.png)](https://travis-ci.org/lbeder/guard-konacha-rails)
5
- [![Dependency Status](https://gemnasium.com/lbeder/guard-konacha-rails.png)](https://gemnasium.com/lbeder/guard-konacha-rails)
6
- [![Coverage Status](https://coveralls.io/repos/lbeder/guard-konacha-rails/badge.svg)](https://coveralls.io/r/lbeder/guard-konacha-rails)
4
+ [![Build Status](https://travis-ci.org/keithpitty/guard-konacha-rails.png)](https://travis-ci.org/keithpitty/guard-konacha-rails)
5
+ [![Coverage Status](https://coveralls.io/repos/github/keithpitty/guard-konacha-rails/badge.svg?branch=master)](https://coveralls.io/github/keithpitty/guard-konacha-rails?branch=master)
6
+ [![Code Climate](https://lima.codeclimate.com/github/keithpitty/guard-konacha-rails/badges/gpa.svg)](https://lima.codeclimate.com/github/keithpitty/guard-konacha-rails)
7
7
 
8
8
  Automatically run your [Konacha](https://github.com/jfirebaugh/konacha) tests through [Guard](https://github.com/guard/guard/).
9
9
 
@@ -27,4 +27,4 @@ Then to run:
27
27
 
28
28
  ```bash
29
29
  $ bundle exec guard
30
- ```
30
+ ```
@@ -36,7 +36,7 @@ module Guard
36
36
  formatter.reset
37
37
 
38
38
  paths.each do |path|
39
- if path.empty? or File.exists? real_path path
39
+ if path.empty? or File.exist? real_path path
40
40
  UI.info "Guard::KonachaRails running #{specs_description(path)}"
41
41
  runner.run konacha_path(path)
42
42
  end
@@ -46,6 +46,7 @@ module Guard
46
46
  notify
47
47
  rescue => e
48
48
  UI.error(e)
49
+ UI.info(e.message)
49
50
  end
50
51
 
51
52
  private
@@ -5,6 +5,7 @@
5
5
  # - :rails_environment_file, location of rails environment file,
6
6
  # should be able to find it automatically
7
7
  guard 'konacha-rails' do
8
- watch(%r{^app/assets/javascripts/(.*)\.(js|coffee)?$}) { |m| "#{m[1]}_spec.js" }
8
+ # alter the next line if necessary e.g. if your js specs are coffee files
9
+ watch(%r{^app/assets/javascripts/(.*)\.(js|coffee)?$}) { |m| "spec/javascripts/#{m[1]}_spec.js" }
9
10
  watch(%r{^(test|spec)/javascripts/.+_(test|spec)\.(js|coffee)$})
10
11
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module KonachaRailsVersion
3
- VERSION = '1.1.5'.freeze
3
+ VERSION = '1.1.6'.freeze
4
4
  end
5
5
  end
@@ -3,4 +3,4 @@ require 'rubygems'
3
3
  # Set up gems listed in the Gemfile.
4
4
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
5
5
 
6
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
6
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
@@ -50,7 +50,7 @@ describe Guard::KonachaRails::Runner do
50
50
  end
51
51
 
52
52
  it 'should run each path through runner and format results' do
53
- allow(File).to receive(:exists?) { true }
53
+ allow(File).to receive(:exist?) { true }
54
54
  allow(runner).to receive(:formatter) { konacha_formatter }
55
55
  expect(konacha_formatter).to receive(:reset)
56
56
  expect(konacha_runner).to receive(:run).with('/1')
@@ -61,8 +61,8 @@ describe Guard::KonachaRails::Runner do
61
61
  end
62
62
 
63
63
  it 'should run each path with a valid extension' do
64
- expect(File).to receive(:exists?).with(::Rails.root.join('spec/javascripts/1.js').to_s).and_return(true)
65
- expect(File).to receive(:exists?).with(::Rails.root.join('spec/javascripts/foo/bar.js.coffee').to_s).and_return(true)
64
+ expect(File).to receive(:exist?).with(::Rails.root.join('spec/javascripts/1.js').to_s).and_return(true)
65
+ expect(File).to receive(:exist?).with(::Rails.root.join('spec/javascripts/foo/bar.js.coffee').to_s).and_return(true)
66
66
  expect(konacha_runner).to receive(:run).with('/1')
67
67
  expect(konacha_runner).to receive(:run).with('/foo/bar')
68
68
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-konacha-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Beder
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-13 00:00:00.000000000 Z
12
+ date: 2017-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 2.5.2
181
+ rubygems_version: 2.5.1
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Guard plugin for the konacha testing framework