rspec-rails-watchr-emacs 0.9.0 → 0.9.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.
data/README.md CHANGED
@@ -59,6 +59,7 @@ prompt:
59
59
 
60
60
  ESpectator supports the following options (here reported with their
61
61
  default values):
62
+
62
63
  ```ruby
63
64
  { :enotify_port => 5000, # TCP port for the enotify connection
64
65
  :enotify_host => 'localhost', # host name for the enotify connection
@@ -110,6 +111,7 @@ An example of a custom matcher:
110
111
 
111
112
  To use it with the [RSpec Org Formatter][RSpecOrgFormatter], the
112
113
  :error_count_line option should be set to -6:
114
+
113
115
  ```ruby
114
116
  @specs_watchr ||= Rspec::Rails::Watchr.new(self, :error_count_line => -6)
115
117
  ```
@@ -1,7 +1,8 @@
1
- # coding: utf-8)
1
+ # coding: utf-8
2
2
 
3
3
  require 'rspec-rails-watchr-emacs/version'
4
4
  require 'term/ansicolor'
5
+ require 'socket'
5
6
 
6
7
  class SpecWatchr
7
8
  String.send :include, Term::ANSIColor
@@ -206,9 +207,10 @@ class SpecWatchr
206
207
  def match_specs path, specs
207
208
  matched_specs = @custom_matcher.call(path, specs) if @custom_matcher
208
209
  matched_specs = default_rails_matcher(path, specs) if matched_specs.nil?
210
+ matched_specs
209
211
  end
210
212
  end
211
-
213
+
212
214
  module Control
213
215
  def exit_watchr
214
216
  @exiting = true
@@ -342,7 +344,8 @@ class SpecWatchr
342
344
 
343
345
 
344
346
  watchr.watch('^spec/(.*)_spec\.rb$') {|m| rspec_files specs_for(m[1])}
345
- watchr.watch('^(?:app|lib|script)/(.*)(?:\.rb|\.\w+|)$') {|m| rspec_files specs_for(m[1].gsub(/\.rb$/,''))}
347
+ #watchr.watch('^(?:app|lib|script)/(.*)(?:\.rb|\.\w+|)$') {|m| rspec_files specs_for(m[1].gsub(/\.rb$/,''))}
348
+ watchr.watch('^(?:app|lib|script)/(.*)(?:\.rb|\.\w+)$') {|m| rspec_files specs_for(m[1].gsub(/\.rb$/,''))}
346
349
 
347
350
  trap_int!
348
351
 
@@ -1,7 +1,7 @@
1
1
  module Rspec
2
2
  module Rails
3
3
  module Watchr
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.1'
5
5
  end
6
6
  end
7
7
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Rspec::Rails::Watchr::VERSION
8
8
  s.authors = %w[Alessandro Piras]
9
9
  s.email = %w[laynor@gmail.com]
10
- s.homepage = 'https://github.com/laynor/spectator'
10
+ s.homepage = 'https://github.com/laynor/espectator'
11
11
  s.summary = %q{Watches specs for a Rails (2 or 3) project - notifications via Emacs enotify}
12
12
  s.description = %q{Watches specs for a Rails (2 or 3) project - notifications via Emacs enotify. Fork of rspec-rails-watchr (spectator)}
13
13
  s.license = 'MIT'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-rails-watchr-emacs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-01-12 00:00:00.000000000Z
13
+ date: 2012-02-02 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: watchr
17
- requirement: &76086330 !ruby/object:Gem::Requirement
17
+ requirement: &74761030 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *76086330
25
+ version_requirements: *74761030
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: term-ansicolor
28
- requirement: &76083960 !ruby/object:Gem::Requirement
28
+ requirement: &74760800 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *76083960
36
+ version_requirements: *74760800
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: notify
39
- requirement: &76083660 !ruby/object:Gem::Requirement
39
+ requirement: &74760530 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *76083660
47
+ version_requirements: *74760530
48
48
  description: Watches specs for a Rails (2 or 3) project - notifications via Emacs
49
49
  enotify. Fork of rspec-rails-watchr (spectator)
50
50
  email:
@@ -62,7 +62,7 @@ files:
62
62
  - lib/rspec-rails-watchr-emacs.rb
63
63
  - lib/rspec-rails-watchr-emacs/version.rb
64
64
  - rspec-rails-watchr-emacs.gemspec
65
- homepage: https://github.com/laynor/spectator
65
+ homepage: https://github.com/laynor/espectator
66
66
  licenses:
67
67
  - MIT
68
68
  post_install_message: