guard-rspec 4.0.2 → 4.0.3

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: 55d22c3f3dbd1ae773b6e47fd104e5cc8f687e2c
4
- data.tar.gz: 7eb21c7b37b4de43724d1f9d1e98e5381158040b
3
+ metadata.gz: 5c609a64173a0f69a33c31b50d84013db7324689
4
+ data.tar.gz: b473c9faa960eed16f66b5a206aa9efef67a63c9
5
5
  SHA512:
6
- metadata.gz: 16c0c0564f7790eb16e5b30bd41be447117825683b85ef6ef95cea63ecce30a99e92e19ecd15d01c59406d5774ce71e9608cd4b86597b2289ae0a5cd1c9019fc
7
- data.tar.gz: 999a73b68f433560da200ed36e845e8cd013a7e5a635e375928a695f5686475dbdc8bde5dd212c4d818712e8fdc9258717b6580531ac6c227b994d939f68eb85
6
+ metadata.gz: f040c15dded817d6789a4b1f815be7f19776e821a550b13ba8f2c126bc01cedf997b349119a96fb6eda3eb47e9944461d21eda2fff77c6d139d1fdb771ddf137
7
+ data.tar.gz: b9f2ff448b02cdaf3a0eba502097360f18e58427601b8f0a62388741df78f32b62520e4faeffc363dfc1329e49798f63006ebe8bfc66e43d504748b32e063ea4
@@ -17,7 +17,7 @@ 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.0'
20
+ s.add_dependency 'guard', '>= 2.1.1'
21
21
  s.add_dependency 'rspec', '~> 2.14'
22
22
  s.add_development_dependency 'bundler', '>= 1.3.5'
23
23
  s.add_development_dependency 'rake'
@@ -19,7 +19,7 @@ module Guard
19
19
  end
20
20
 
21
21
  def start
22
- UI.info "Guard::RSpec is running"
22
+ ::Guard::UI.info "Guard::RSpec is running"
23
23
  run_all if options[:all_on_start]
24
24
  end
25
25
 
@@ -33,7 +33,8 @@ module Guard::RSpec::Formatters
33
33
  end
34
34
 
35
35
  def _notify(message, status)
36
- Guard::Notifier.notify(message, title: 'RSpec results', image: status, priority: _priority(status))
36
+ ::Guard::Notifier.turn_on(silent: true)
37
+ ::Guard::Notifier.notify(message, title: 'RSpec results', image: status, priority: _priority(status))
37
38
  end
38
39
 
39
40
  def _priority(status)
@@ -19,7 +19,7 @@ module Guard
19
19
 
20
20
  def run_all
21
21
  options = @options.merge(@options[:run_all])
22
- UI.info(options[:message], reset: true)
22
+ ::Guard::UI.info(options[:message], reset: true)
23
23
 
24
24
  _run(inspector.paths, [], options)
25
25
  end
@@ -29,7 +29,7 @@ module Guard
29
29
  paths = inspector.paths(paths)
30
30
  return if paths.empty?
31
31
 
32
- UI.info("Running: #{paths.join(' ')}", reset: true)
32
+ ::Guard::UI.info("Running: #{paths.join(' ')}", reset: true)
33
33
 
34
34
  _run(paths, failed_paths, options)
35
35
  end
@@ -60,7 +60,7 @@ module Guard
60
60
  def _notify_failure
61
61
  return unless options[:notification]
62
62
  return unless command_exception?
63
- Notifier.notify('Failed', title: 'RSpec results', image: :failed, priority: 2)
63
+ ::Guard::Notifier.notify('Failed', title: 'RSpec results', image: :failed, priority: 2)
64
64
  end
65
65
 
66
66
  def command_exception?
@@ -71,7 +71,7 @@ module Guard
71
71
  return unless options[:launchy]
72
72
  require 'launchy'
73
73
  pn = Pathname.new(options[:launchy])
74
- Launchy.open(options[:launchy]) if pn.exist?
74
+ ::Launchy.open(options[:launchy]) if pn.exist?
75
75
  end
76
76
 
77
77
  def _run_all_after_pass(success, failed_paths)
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RSpecVersion
3
- VERSION = '4.0.2'
3
+ VERSION = '4.0.3'
4
4
  end
5
5
  end
@@ -6,6 +6,16 @@ describe Guard::RSpec::Formatters::Notifier do
6
6
  let(:formatter) { Guard::RSpec::Formatters::Notifier.new(StringIO.new) }
7
7
 
8
8
  describe "#dump_summary" do
9
+ before {
10
+ Guard::Notifier.stub(:turn_on)
11
+ Guard::Notifier.stub(:notify)
12
+ }
13
+
14
+ it "turns on Notifier" do
15
+ expect(Guard::Notifier).to receive(:turn_on).with(silent: true)
16
+ formatter.dump_summary(123, 3, 0, 0)
17
+ end
18
+
9
19
  context "with only success" do
10
20
  it "notifies success" do
11
21
  expect(Guard::Notifier).to receive(:notify).with(
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 4.0.3
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-10-17 00:00:00.000000000 Z
11
+ date: 2013-10-18 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.0'
19
+ version: 2.1.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: 2.1.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement