rspec_runner 0.1.1 → 0.1.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: fa00b672b628a8fc1ea448a22eb9308530cced8e
4
- data.tar.gz: 4aba8c1b4a11d442db9dd159029db6d43c4e7062
3
+ metadata.gz: 58a4a557c6bd140b731a24af28259ed795b499e3
4
+ data.tar.gz: ec4175f860a030417a0b52cb2ca2247d533e28be
5
5
  SHA512:
6
- metadata.gz: 7862edafd77cd9f840716a687b2e06dc920b6d04d6ba029880f93df0fa79c0f8280d158ce4cbc55a067000d83213e491b287c5f32d6034b431df4e387f9f228e
7
- data.tar.gz: f696b760f92edf33f4d7f82cb3f7c81e26f5a39a43387e04a0b0c605e1080b3ec34ed1dda6afcfd48282bb4bc37639d7542faca21a29a7c18d9ecbccd0364688
6
+ metadata.gz: 9e62105908fa9d3c6f45c625b299bda45ff1492f2f5c7be45bf7f55b0a2723883c14561f04c3b2f04515218a3d86e4f8442ed5050c3596ccfff21993edc3d4ee
7
+ data.tar.gz: 56d65e4d6d819b831ac65dd65131b98e481c784957d55033423fcd3364ab66e91140d7315e612a359e6f59d3e802f02f827b0a612ca5726e93091b2fda467369
@@ -1,12 +1,13 @@
1
1
  module RspecRunner
2
2
  class Configuration
3
- attr_accessor :uri, :client_timeout, :watch_directories, :watch_pattern
3
+ attr_accessor :uri, :client_timeout, :watch_directories, :watch_pattern, :ignore_pattern
4
4
 
5
5
  def initialize
6
6
  @uri = 'druby://localhost:8787'.freeze
7
7
  @client_timeout = 10 # seconds
8
- @watch_directories = ["#{Dir.pwd}/app", "#{Dir.pwd}/lib"]
8
+ @watch_directories = ["#{Dir.pwd}"]
9
9
  @watch_pattern = /\.rb$/
10
+ @ignore_pattern = /spec\/.+_spec\.rb$/
10
11
  end
11
12
  end
12
13
 
@@ -1,3 +1,3 @@
1
1
  module RspecRunner
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -13,6 +13,7 @@ module RspecRunner
13
13
  @listener = Listen.to(
14
14
  *RspecRunner.configuration.watch_directories,
15
15
  only: RspecRunner.configuration.watch_pattern,
16
+ ignore: RspecRunner.configuration.ignore_pattern,
16
17
  wait_for_delay: 1
17
18
  ) do |modified, added, removed|
18
19
  if((modified.size + added.size + removed.size) > 0)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - exAspArk