guard-rspec 4.2.1 → 4.2.2

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: 9ba7ac616360d74d7d31fa181118e2617ba31ca6
4
- data.tar.gz: 73cf1b4042196450d9bce1272b20b19a8d8d88ef
3
+ metadata.gz: e58b29544f2cd1f336a020d5c8410127609cd197
4
+ data.tar.gz: 541252c976855b9e15a79eeec3623e585ea4b4a9
5
5
  SHA512:
6
- metadata.gz: f47fb379e871786fca1de272651e0bf9987e745540b55463e7b3915073d0acbaa91943ffcd584077f620fa20ea3e1fa4e3e567e1a03006bfcb95b594d1e8ba29
7
- data.tar.gz: 0f5c7611b61942ad60a17a5df4bd71b983bc3d695577551d97b5ddf010ca57512e85670d05d24bf262dc4256702341204e51570288b06cdd04b55c95946f5bbb
6
+ metadata.gz: 708e4e6b206918bcda271d0f1213295b3063021d6aa90163622b9216a39246740d56ca69ddcebccd3125879601b99ece61a4d7f8b29b3ef488dc893dad544ccd
7
+ data.tar.gz: 656d9c45504f178bb88f5fa39b61f142672baeae93bac115d72527a89a6d1e11ffc71c6715406cb4deaded61887e71317e2b7b9b7f8457b140f9e567fe6131a5
data/guard-rspec.gemspec CHANGED
@@ -17,10 +17,10 @@ Gem::Specification.new do |s|
17
17
  s.test_files = s.files.grep(%r{^spec/})
18
18
  s.require_path = 'lib'
19
19
 
20
- s.add_dependency 'guard', '>= 2.1.1'
20
+ s.add_dependency 'guard', '~> 2.1', '>= 2.1'
21
21
  s.add_dependency 'rspec', '>= 2.14', '~> 3.0.0.beta', '< 4.0'
22
- s.add_development_dependency 'bundler', '>= 1.3.5'
23
- s.add_development_dependency 'rake'
24
- s.add_development_dependency 'rspec'
25
- s.add_development_dependency 'launchy'
22
+
23
+ s.add_development_dependency 'bundler', '~> 1.3', '>= 1.3.5'
24
+ s.add_development_dependency 'rake', '~> 10.1'
25
+ s.add_development_dependency 'launchy', '~> 2.4'
26
26
  end
@@ -17,14 +17,14 @@ module Guard
17
17
  def run_all
18
18
  paths = options[:spec_paths]
19
19
  options = @options.merge(@options[:run_all]).freeze
20
- return if paths.empty?
20
+ return true if paths.empty?
21
21
  ::Guard::UI.info(options[:message], reset: true)
22
22
  _run(true, paths, options)
23
23
  end
24
24
 
25
25
  def run(paths)
26
26
  paths = inspector.paths(paths)
27
- return if paths.empty?
27
+ return true if paths.empty?
28
28
  ::Guard::UI.info("Running: #{paths.join(' ')}", reset: true)
29
29
  _run(false, paths, options)
30
30
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RSpecVersion
3
- VERSION = '4.2.1'
3
+ VERSION = '4.2.2'
4
4
  end
5
5
  end
@@ -40,6 +40,17 @@ describe Guard::RSpec::Runner do
40
40
  end
41
41
  end
42
42
 
43
+ shared_examples 'abort' do
44
+ it 'aborts' do
45
+ expect(Guard::UI).to_not receive(:info)
46
+ subject
47
+ end
48
+
49
+ it 'returns true' do
50
+ expect(subject).to be true
51
+ end
52
+ end
53
+
43
54
  describe '#run_all' do
44
55
  let(:options) { {
45
56
  spec_paths: %w[spec1 spec2],
@@ -56,6 +67,17 @@ describe Guard::RSpec::Runner do
56
67
  runner.run_all
57
68
  end
58
69
 
70
+ context 'when no paths are given' do
71
+ subject { runner.run_all }
72
+
73
+ let(:options) { {
74
+ spec_paths: [],
75
+ run_all: { message: 'Custom message' }
76
+ } }
77
+
78
+ include_examples 'abort'
79
+ end
80
+
59
81
  context 'with custom cmd' do
60
82
  before {
61
83
  options[:run_all][:cmd] = 'rspec -t ~slow'
@@ -82,10 +104,14 @@ describe Guard::RSpec::Runner do
82
104
  runner.run(paths)
83
105
  end
84
106
 
85
- it 'returns if no paths are given' do
86
- allow(inspector).to receive(:paths) { [] }
87
- expect(Guard::UI).to_not receive(:info)
88
- runner.run([])
107
+ context 'when no paths are given' do
108
+ subject { runner.run([]) }
109
+
110
+ before do
111
+ allow(inspector).to receive(:paths) { [] }
112
+ end
113
+
114
+ include_examples 'abort'
89
115
  end
90
116
 
91
117
  it 'builds commands with spec paths' do
metadata CHANGED
@@ -1,119 +1,117 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibaud Guillaume-Gentil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-21 00:00:00.000000000 Z
11
+ date: 2013-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.1
19
+ version: '2.1'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: '2.1'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - '>='
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '2.1'
30
+ - - ">="
25
31
  - !ruby/object:Gem::Version
26
- version: 2.1.1
32
+ version: '2.1'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rspec
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - '>='
37
+ - - ">="
32
38
  - !ruby/object:Gem::Version
33
39
  version: '2.14'
34
- - - ~>
40
+ - - "~>"
35
41
  - !ruby/object:Gem::Version
36
42
  version: 3.0.0.beta
37
- - - <
43
+ - - "<"
38
44
  - !ruby/object:Gem::Version
39
45
  version: '4.0'
40
46
  type: :runtime
41
47
  prerelease: false
42
48
  version_requirements: !ruby/object:Gem::Requirement
43
49
  requirements:
44
- - - '>='
50
+ - - ">="
45
51
  - !ruby/object:Gem::Version
46
52
  version: '2.14'
47
- - - ~>
53
+ - - "~>"
48
54
  - !ruby/object:Gem::Version
49
55
  version: 3.0.0.beta
50
- - - <
56
+ - - "<"
51
57
  - !ruby/object:Gem::Version
52
58
  version: '4.0'
53
59
  - !ruby/object:Gem::Dependency
54
60
  name: bundler
55
61
  requirement: !ruby/object:Gem::Requirement
56
62
  requirements:
57
- - - '>='
63
+ - - "~>"
64
+ - !ruby/object:Gem::Version
65
+ version: '1.3'
66
+ - - ">="
58
67
  - !ruby/object:Gem::Version
59
68
  version: 1.3.5
60
69
  type: :development
61
70
  prerelease: false
62
71
  version_requirements: !ruby/object:Gem::Requirement
63
72
  requirements:
64
- - - '>='
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.3'
76
+ - - ">="
65
77
  - !ruby/object:Gem::Version
66
78
  version: 1.3.5
67
79
  - !ruby/object:Gem::Dependency
68
80
  name: rake
69
81
  requirement: !ruby/object:Gem::Requirement
70
82
  requirements:
71
- - - '>='
72
- - !ruby/object:Gem::Version
73
- version: '0'
74
- type: :development
75
- prerelease: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - '>='
79
- - !ruby/object:Gem::Version
80
- version: '0'
81
- - !ruby/object:Gem::Dependency
82
- name: rspec
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - '>='
83
+ - - "~>"
86
84
  - !ruby/object:Gem::Version
87
- version: '0'
85
+ version: '10.1'
88
86
  type: :development
89
87
  prerelease: false
90
88
  version_requirements: !ruby/object:Gem::Requirement
91
89
  requirements:
92
- - - '>='
90
+ - - "~>"
93
91
  - !ruby/object:Gem::Version
94
- version: '0'
92
+ version: '10.1'
95
93
  - !ruby/object:Gem::Dependency
96
94
  name: launchy
97
95
  requirement: !ruby/object:Gem::Requirement
98
96
  requirements:
99
- - - '>='
97
+ - - "~>"
100
98
  - !ruby/object:Gem::Version
101
- version: '0'
99
+ version: '2.4'
102
100
  type: :development
103
101
  prerelease: false
104
102
  version_requirements: !ruby/object:Gem::Requirement
105
103
  requirements:
106
- - - '>='
104
+ - - "~>"
107
105
  - !ruby/object:Gem::Version
108
- version: '0'
106
+ version: '2.4'
109
107
  description: Guard::RSpec automatically run your specs (much like autotest).
110
108
  email: thibaud@thibaud.me
111
109
  executables: []
112
110
  extensions: []
113
111
  extra_rdoc_files: []
114
112
  files:
115
- - .gitignore
116
- - .travis.yml
113
+ - ".gitignore"
114
+ - ".travis.yml"
117
115
  - CONTRIBUTING.md
118
116
  - Gemfile
119
117
  - Guardfile
@@ -158,17 +156,17 @@ require_paths:
158
156
  - lib
159
157
  required_ruby_version: !ruby/object:Gem::Requirement
160
158
  requirements:
161
- - - '>='
159
+ - - ">="
162
160
  - !ruby/object:Gem::Version
163
161
  version: '0'
164
162
  required_rubygems_version: !ruby/object:Gem::Requirement
165
163
  requirements:
166
- - - '>='
164
+ - - ">="
167
165
  - !ruby/object:Gem::Version
168
166
  version: '0'
169
167
  requirements: []
170
168
  rubyforge_project:
171
- rubygems_version: 2.1.11
169
+ rubygems_version: 2.2.0
172
170
  signing_key:
173
171
  specification_version: 4
174
172
  summary: Guard gem for RSpec