spectator 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/CHANGELOG +1 -0
- data/README.md +11 -21
- data/bin/spectator +8 -8
- data/lib/spectator/version.rb +1 -1
- data/spectator.gemspec +1 -1
- metadata +21 -22
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MWYyMWQ1NjQwZjM2NGVhYTJhYjQxOTcyYzA5ZGM2YjJmMzgwYjQyMg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NDY4ODI5YjMyNGIwM2M0YzUzOTQwMzQxYzk1ZTkxN2VkMDYxMjZhNg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZGRiY2Y5MDM1YjlhYzcwMDgyYzRhMDBiMTYyNTQ4ODg0Y2RhNzQ4ZDJjZDRl
|
10
|
+
YmYwZTg3YzI3M2U3OTVhMjU2OTBlMjc0YmIwZWFhNzhlMzA5YWQyYmUwNTk3
|
11
|
+
YjVlNjQ4MDFmNDM1NGYwZmU4YmE1Y2I3YjYwZWEwOWY3MzEyYmM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YTJlNjBkNGY2ZmIyYjE5Y2JjMzYzNjg3NTFhOWUxYzFlZDFiNTg3YWVjODUx
|
14
|
+
ZDhjNjc5Y2Y2ODc0MGFlZjNmZjAzZGMzMzE2NDljMDlhMDQ3NjQ3YjM2NjNl
|
15
|
+
MWMyY2M3N2RkNzc4NGZjNzlkZTEwY2RkNTk5NTgzZDZkY2EyMTM=
|
data/CHANGELOG
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Version 1.4.1: load config files from both the current directory and user's home folder
|
data/README.md
CHANGED
@@ -72,35 +72,25 @@ spectator
|
|
72
72
|
```
|
73
73
|
|
74
74
|
|
75
|
-
#### With a `.spectator`
|
76
|
-
|
77
|
-
```yaml
|
78
|
-
# contents of ".spectator" file
|
79
|
-
BASE_DIR_REGEXP: 'lib/opal'
|
80
|
-
SPEC_DIR_REGEXP: 'spec/cli'
|
81
|
-
```
|
82
|
-
|
83
|
-
spectator
|
84
|
-
|
75
|
+
#### With a `.spectator.rb` script file
|
85
76
|
|
86
|
-
|
77
|
+
This file can be present in each project folder or in your home directory if you want to share general settings.
|
78
|
+
When files are present in both folders the one in the home directory will be loaded first.
|
87
79
|
|
88
|
-
```
|
89
|
-
# contents of ".
|
90
|
-
BASE_DIR_REGEXP: 'lib/opal'
|
91
|
-
SPEC_DIR_REGEXP: 'spec/cli'
|
92
|
-
```
|
80
|
+
```ruby
|
81
|
+
# contents of ".spectator.rb" file
|
93
82
|
|
94
|
-
|
83
|
+
ENV['BASE_DIR_REGEXP'] = '(?:opal/corelib|stdlib|spec)'
|
84
|
+
ENV['SPEC_DIR_REGEXP:'] = '(?:spec/corelib/core|spec/stdlib/\w+/spec)'
|
85
|
+
ENV['RSPEC_COMMAND'] = 'bundle exec ./bin/opal-mspec'
|
95
86
|
|
96
|
-
|
87
|
+
require 'spectator/success_notifier'
|
97
88
|
|
98
|
-
```ruby
|
99
|
-
# contents of ".spectator.rb" file
|
100
89
|
module Spectator
|
101
90
|
class SuccessNotifier
|
102
91
|
def notify(success)
|
103
|
-
fork {
|
92
|
+
fork { exec "say #{say_message(success)}" }
|
93
|
+
super
|
104
94
|
end
|
105
95
|
|
106
96
|
def say_message(success)
|
data/bin/spectator
CHANGED
@@ -17,21 +17,21 @@ when '--help', 'help'
|
|
17
17
|
exit
|
18
18
|
end
|
19
19
|
|
20
|
-
require 'spectator'
|
21
|
-
|
22
20
|
require 'yaml'
|
23
21
|
|
24
|
-
config_files = ARGV.empty? ? %w[.spectator .spectator.rb] : ARGV
|
25
|
-
|
22
|
+
config_files = ARGV.empty? ? %w[.spectator ~/.spectator.rb .spectator.rb] : ARGV
|
26
23
|
config_files.each do |config_file|
|
27
|
-
|
28
|
-
|
24
|
+
file_path = File.expand_path(config_file)
|
25
|
+
|
26
|
+
if file_path.end_with?('.rb')
|
27
|
+
load file_path if File.exist? file_path
|
29
28
|
else
|
30
|
-
YAML.load_file(
|
29
|
+
YAML.load_file(file_path).each do |name, value|
|
31
30
|
ENV[name] ||= value
|
32
|
-
end if File.exist?
|
31
|
+
end if File.exist? file_path
|
33
32
|
end
|
34
33
|
end
|
35
34
|
|
35
|
+
require 'spectator'
|
36
36
|
config = Spectator.config(debug: ARGV.include?('--debug'))
|
37
37
|
Spectator.run(config)
|
data/lib/spectator/version.rb
CHANGED
data/spectator.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'spectator/version'
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'spectator'
|
8
8
|
s.version = Spectator::VERSION
|
9
|
-
s.authors =
|
9
|
+
s.authors = ['Elia Schito']
|
10
10
|
s.email = %w[elia@schito.me]
|
11
11
|
s.homepage = ''
|
12
12
|
s.summary = %q{Watches specs for a Ruby or Rails project}
|
metadata
CHANGED
@@ -1,98 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Elia
|
8
|
-
- Schito
|
7
|
+
- Elia Schito
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: listen
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- -
|
17
|
+
- - ~>
|
19
18
|
- !ruby/object:Gem::Version
|
20
19
|
version: 1.3.0
|
21
20
|
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
|
-
- -
|
24
|
+
- - ~>
|
26
25
|
- !ruby/object:Gem::Version
|
27
26
|
version: 1.3.0
|
28
27
|
- !ruby/object:Gem::Dependency
|
29
28
|
name: term-ansicolor
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
31
30
|
requirements:
|
32
|
-
- -
|
31
|
+
- - ~>
|
33
32
|
- !ruby/object:Gem::Version
|
34
33
|
version: 1.2.2
|
35
34
|
type: :runtime
|
36
35
|
prerelease: false
|
37
36
|
version_requirements: !ruby/object:Gem::Requirement
|
38
37
|
requirements:
|
39
|
-
- -
|
38
|
+
- - ~>
|
40
39
|
- !ruby/object:Gem::Version
|
41
40
|
version: 1.2.2
|
42
41
|
- !ruby/object:Gem::Dependency
|
43
42
|
name: notify
|
44
43
|
requirement: !ruby/object:Gem::Requirement
|
45
44
|
requirements:
|
46
|
-
- -
|
45
|
+
- - ~>
|
47
46
|
- !ruby/object:Gem::Version
|
48
47
|
version: 0.5.2
|
49
48
|
type: :runtime
|
50
49
|
prerelease: false
|
51
50
|
version_requirements: !ruby/object:Gem::Requirement
|
52
51
|
requirements:
|
53
|
-
- -
|
52
|
+
- - ~>
|
54
53
|
- !ruby/object:Gem::Version
|
55
54
|
version: 0.5.2
|
56
55
|
- !ruby/object:Gem::Dependency
|
57
56
|
name: rake
|
58
57
|
requirement: !ruby/object:Gem::Requirement
|
59
58
|
requirements:
|
60
|
-
- -
|
59
|
+
- - ~>
|
61
60
|
- !ruby/object:Gem::Version
|
62
61
|
version: '10'
|
63
62
|
type: :development
|
64
63
|
prerelease: false
|
65
64
|
version_requirements: !ruby/object:Gem::Requirement
|
66
65
|
requirements:
|
67
|
-
- -
|
66
|
+
- - ~>
|
68
67
|
- !ruby/object:Gem::Version
|
69
68
|
version: '10'
|
70
69
|
- !ruby/object:Gem::Dependency
|
71
70
|
name: bundler
|
72
71
|
requirement: !ruby/object:Gem::Requirement
|
73
72
|
requirements:
|
74
|
-
- -
|
73
|
+
- - ~>
|
75
74
|
- !ruby/object:Gem::Version
|
76
75
|
version: '1.0'
|
77
76
|
type: :development
|
78
77
|
prerelease: false
|
79
78
|
version_requirements: !ruby/object:Gem::Requirement
|
80
79
|
requirements:
|
81
|
-
- -
|
80
|
+
- - ~>
|
82
81
|
- !ruby/object:Gem::Version
|
83
82
|
version: '1.0'
|
84
83
|
- !ruby/object:Gem::Dependency
|
85
84
|
name: rspec
|
86
85
|
requirement: !ruby/object:Gem::Requirement
|
87
86
|
requirements:
|
88
|
-
- -
|
87
|
+
- - ! '>='
|
89
88
|
- !ruby/object:Gem::Version
|
90
89
|
version: 3.0.0.beta2
|
91
90
|
type: :development
|
92
91
|
prerelease: false
|
93
92
|
version_requirements: !ruby/object:Gem::Requirement
|
94
93
|
requirements:
|
95
|
-
- -
|
94
|
+
- - ! '>='
|
96
95
|
- !ruby/object:Gem::Version
|
97
96
|
version: 3.0.0.beta2
|
98
97
|
description: Watches specs for a Ruby (1.8 or 1.9) or Rails (2 or 3) project
|
@@ -103,8 +102,9 @@ executables:
|
|
103
102
|
extensions: []
|
104
103
|
extra_rdoc_files: []
|
105
104
|
files:
|
106
|
-
-
|
107
|
-
-
|
105
|
+
- .gitignore
|
106
|
+
- .rspec
|
107
|
+
- CHANGELOG
|
108
108
|
- Gemfile
|
109
109
|
- MIT-LICENSE
|
110
110
|
- README.md
|
@@ -133,17 +133,17 @@ require_paths:
|
|
133
133
|
- lib
|
134
134
|
required_ruby_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ! '>='
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '1.9'
|
139
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
|
-
- -
|
141
|
+
- - ! '>='
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
145
|
rubyforge_project: rspec-rails-watchr
|
146
|
-
rubygems_version: 2.
|
146
|
+
rubygems_version: 2.2.2
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Watches specs for a Ruby or Rails project
|
@@ -151,4 +151,3 @@ test_files:
|
|
151
151
|
- spec/spec_helper.rb
|
152
152
|
- spec/spectator/specs_matcher_spec.rb
|
153
153
|
- spec/spectator_spec.rb
|
154
|
-
has_rdoc:
|