rspec-doom 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: d7786f1ff6b902d89bda213599275fa63eb396d3f310ebb6654d46a0ffe197ee
4
- data.tar.gz: 8c970f53eb0d8091d8533ccb54970c4c9a89a421dbb1ead9dde9b012b11f4358
3
+ metadata.gz: f607551f00aad94a6f35a02d2620167a393acdfad706dfb2780b633d671e5a1a
4
+ data.tar.gz: 9cdc445d15e3fcacfdf463c3bc7de47e2a8028daf99601e04e2409a79a85a7ce
5
5
  SHA512:
6
- metadata.gz: ed87672a16d727a78baf33d43b1b25e258f537227566d5871e93edb3e0f9c7cbaf83d3879f68238a811cca63889b728db8f4cefb42c47141783be75eaa72383f
7
- data.tar.gz: 926c19d4b9783be514aa3af0769d4bd3d813899f952f0ff615eac7ed58ab11513ae71d28921b8d51ad957c9b0d3e34eeee446ed0cb803e541f02529955e50c78
6
+ metadata.gz: 273d49a17f8dde87d7ba28dc98400234e95d9368776fcb4390fe42fbddbacb90727a103368dcdb5b09e3ee7d5ba5a64adbfd4e69229e2e705813fb21700b3296
7
+ data.tar.gz: 2b1bed48f0e83d082aada44c3bb333b7b299b4318dcbe41bc4144483fb844232fe7226dcf7e5c4ad78bc8d6ae2a2d4587ab56b92db0edd504e9a24427552faba
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-doom (0.1.0)
4
+ rspec-doom (0.1.1)
5
5
  cruise
6
6
  logger
7
7
  notiffany
@@ -70,7 +70,7 @@ CHECKSUMS
70
70
  rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
71
71
  rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
72
72
  rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
73
- rspec-doom (0.1.0)
73
+ rspec-doom (0.1.1)
74
74
  rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
75
75
  rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
76
76
  rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RSpecDoom
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
@@ -4,7 +4,7 @@ require 'cruise'
4
4
 
5
5
  module RSpecDoom
6
6
  class Watcher
7
- EVENTS_INTERESTED_IN = %i[modified created renamed changed].freeze
7
+ EVENTS_INTERESTED_IN = %i[modified created renamed changed removed].freeze
8
8
  DEFAULT_DEBOUNCE = 0.1
9
9
 
10
10
  attr_reader :options
@@ -40,14 +40,15 @@ module RSpecDoom
40
40
 
41
41
  # The list of spec files to run for a changed path.
42
42
  #
43
- # spec/foo_spec.rb -> ['spec/foo_spec.rb']
44
- # app/models/foo.rb (exists) -> ['spec/models/foo_spec.rb'] (if exists)
45
- # app/models/foo.rb (no spec) -> [] (run whole suite)
43
+ # spec/foo_spec.rb (exists) -> ['spec/foo_spec.rb']
44
+ # spec/foo_spec.rb (deleted) -> [] (run whole suite)
45
+ # app/models/foo.rb (exists) -> ['spec/models/foo_spec.rb'] (if exists)
46
+ # app/models/foo.rb (no spec) -> [] (run whole suite)
46
47
  def paths_for(event_path)
47
48
  relative = relative_path(event_path)
48
49
 
49
50
  if spec_file?(relative)
50
- [relative]
51
+ File.file?(relative) ? [relative] : []
51
52
  elsif source_file?(relative)
52
53
  spec_for_source(relative)
53
54
  else
data/rspec-doom.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'rspec-doom'
5
- spec.version = '0.1.0'
5
+ spec.version = '0.1.1'
6
6
  spec.authors = ['Amalrik Maia']
7
7
  spec.email = ['amalrik.maia@gmail.com']
8
8
  spec.summary = 'RSpec file watcher with Doom-themed notifications'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-doom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amalrik Maia