guard-konacha-rails 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eec06e6ac7c9abf20b8587b9c73647c3db60c27a
4
- data.tar.gz: 9dff5d18b7c1063752c32f78c07f3c7853d867be
3
+ metadata.gz: 49c882b7bb7919cc9a0816a56d50b8947ee19098
4
+ data.tar.gz: a66c7b106344c78466c56a25ed8df3e258d420b1
5
5
  SHA512:
6
- metadata.gz: ef342bdcd95db0b8f365860e1a565277eaf747c758c3edd6f59eb4a9f6341e321064c906822f1314841896785b14f9bf75590addec4f64ebd5b0db2e25720b05
7
- data.tar.gz: 54e7ad80446d9713f97ab2588525716aeb21956f1060fb1ebbfe1a8117e82744c603ab160733bc34e92a245babb7d39175531852be278a15a6e1f252ce6ad993
6
+ metadata.gz: 041e33ba2c902006cc9c3cac2cae003272428572850461a2dd26f7cc40248a11b3f9839ec863ad819b9b5b7377bd149f4c207db2baea165890fb4d6ca97454b0
7
+ data.tar.gz: 16186c27c3825af09e5b5e0068bd43f15b118616dd67723bdf9ce15e7271863f1a36eaecb0b19b401b1e1e638a3b78bf5c67ff90ee8b29f63c702928a71c9518
data/.travis.yml CHANGED
@@ -1,16 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.5
6
- - 2.2.0
7
- - ruby-head
8
- - jruby
9
- - rbx-2
3
+ - 2.2.6
4
+ - 2.3.3
10
5
  gemfile:
11
6
  - Gemfile
12
- matrix:
13
- allow_failures:
14
- - rvm: rbx-2
15
7
  # Use the faster container based infrastructure.
16
8
  sudo: false
@@ -7,10 +7,10 @@ Gem::Specification.new do |s|
7
7
  s.name = 'guard-konacha-rails'
8
8
  s.version = Guard::KonachaRailsVersion::VERSION
9
9
  s.platform = Gem::Platform::RUBY
10
- s.authors = ['Leonid Beder']
11
- s.email = ['leonid.beder@gmail.com']
10
+ s.authors = ['Leonid Beder', 'Keith Pitty']
11
+ s.email = ['leonid.beder@gmail.com', 'keith@keithpitty.com']
12
12
  s.license = 'MIT'
13
- s.homepage = 'https://github.com/lbeder/guard-konacha-rails'
13
+ s.homepage = 'https://github.com/keithpitty/guard-konacha-rails'
14
14
  s.summary = 'Guard plugin for the konacha testing framework'
15
15
  s.description = 'Guard plugin for the konacha testing framework.'
16
16
 
@@ -37,6 +37,7 @@ module Guard
37
37
 
38
38
  paths.each do |path|
39
39
  if path.empty? or File.exists? real_path path
40
+ UI.info "Guard::KonachaRails running #{specs_description(path)}"
40
41
  runner.run konacha_path(path)
41
42
  end
42
43
  end
@@ -66,6 +67,10 @@ module Guard
66
67
  end
67
68
  end
68
69
 
70
+ def specs_description(path)
71
+ path.empty? ? "all specs" : path
72
+ end
73
+
69
74
  def runner
70
75
  ::Konacha::Runner.new(@session)
71
76
  end
@@ -75,7 +80,15 @@ module Guard
75
80
  end
76
81
 
77
82
  def real_path(path)
78
- ::Rails.root.join(::Konacha.config[:spec_dir] + konacha_path(path) + (path[/\.js(\.coffee)?$/] || '')).to_s
83
+ path.empty? ? all_specs_path : specific_path(path)
84
+ end
85
+
86
+ def all_specs_path
87
+ "#{::Rails.root.join(::Konacha.config[:spec_dir])}#{konacha_path('')}"
88
+ end
89
+
90
+ def specific_path(path)
91
+ ::Rails.root.join(path).to_s
79
92
  end
80
93
 
81
94
  def unique_id
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module KonachaRailsVersion
3
- VERSION = '1.1.4'.freeze
3
+ VERSION = '1.1.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-konacha-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Beder
8
+ - Keith Pitty
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-02-13 00:00:00.000000000 Z
12
+ date: 2016-12-13 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: guard
@@ -125,6 +126,7 @@ dependencies:
125
126
  description: Guard plugin for the konacha testing framework.
126
127
  email:
127
128
  - leonid.beder@gmail.com
129
+ - keith@keithpitty.com
128
130
  executables: []
129
131
  extensions: []
130
132
  extra_rdoc_files: []
@@ -156,7 +158,7 @@ files:
156
158
  - spec/guard/konacha-rails/rails/server_spec.rb
157
159
  - spec/guard/konacha_spec.rb
158
160
  - spec/spec_helper.rb
159
- homepage: https://github.com/lbeder/guard-konacha-rails
161
+ homepage: https://github.com/keithpitty/guard-konacha-rails
160
162
  licenses:
161
163
  - MIT
162
164
  metadata: {}
@@ -176,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
178
  version: '0'
177
179
  requirements: []
178
180
  rubyforge_project:
179
- rubygems_version: 2.4.5
181
+ rubygems_version: 2.5.2
180
182
  signing_key:
181
183
  specification_version: 4
182
184
  summary: Guard plugin for the konacha testing framework