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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6693d10d070fcf32a20f5b6a898c8b55708e86eb
4
- data.tar.gz: 9c6919feff85c5f37b0c5c4e7aaaedf7829436b5
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MWYyMWQ1NjQwZjM2NGVhYTJhYjQxOTcyYzA5ZGM2YjJmMzgwYjQyMg==
5
+ data.tar.gz: !binary |-
6
+ NDY4ODI5YjMyNGIwM2M0YzUzOTQwMzQxYzk1ZTkxN2VkMDYxMjZhNg==
5
7
  SHA512:
6
- metadata.gz: a592b163a872d7a0a6cdf21bd71094fdaf0987bf20b1254d2ea70c82776968ae6588174af27a20aa9594c0c519fe2a95d9ec36fed116697139a5e48f386ae12a
7
- data.tar.gz: 3966c15c7512642b2cb6b637b42356a849bc28327c4e5a65921db1459e3e14990e264cb0ff9bc31378c24802926b05d97bd946d5297f68a778b92ff63a0664cb
8
+ metadata.gz: !binary |-
9
+ ZGRiY2Y5MDM1YjlhYzcwMDgyYzRhMDBiMTYyNTQ4ODg0Y2RhNzQ4ZDJjZDRl
10
+ YmYwZTg3YzI3M2U3OTVhMjU2OTBlMjc0YmIwZWFhNzhlMzA5YWQyYmUwNTk3
11
+ YjVlNjQ4MDFmNDM1NGYwZmU4YmE1Y2I3YjYwZWEwOWY3MzEyYmM=
12
+ data.tar.gz: !binary |-
13
+ YTJlNjBkNGY2ZmIyYjE5Y2JjMzYzNjg3NTFhOWUxYzFlZDFiNTg3YWVjODUx
14
+ ZDhjNjc5Y2Y2ODc0MGFlZjNmZjAzZGMzMzE2NDljMDlhMDQ3NjQ3YjM2NjNl
15
+ MWMyY2M3N2RkNzc4NGZjNzlkZTEwY2RkNTk5NTgzZDZkY2EyMTM=
@@ -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` config file
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
- #### Specifying a custom config file
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
- ```shell
89
- # contents of ".my-spectator-config" file
90
- BASE_DIR_REGEXP: 'lib/opal'
91
- SPEC_DIR_REGEXP: 'spec/cli'
92
- ```
80
+ ```ruby
81
+ # contents of ".spectator.rb" file
93
82
 
94
- spectator .my-spectator-config
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
- #### With a `.spectator.rb` script file
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 { `say #{say_message(success)}`}
92
+ fork { exec "say #{say_message(success)}" }
93
+ super
104
94
  end
105
95
 
106
96
  def say_message(success)
@@ -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
- if config_file.end_with?('.rb')
28
- load config_file if File.exist? config_file
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(config_file).each do |name, value|
29
+ YAML.load_file(file_path).each do |name, value|
31
30
  ENV[name] ||= value
32
- end if File.exist? config_file
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)
@@ -1,3 +1,3 @@
1
1
  module Spectator
2
- VERSION = '1.4.0'
2
+ VERSION = '1.4.1'
3
3
  end
@@ -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 = %w[Elia Schito]
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.0
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-02 00:00:00.000000000 Z
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
- - ".gitignore"
107
- - ".rspec"
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.4.3
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: