guard-tap 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c260cdd1152df46d79ed52f74a682d750723e0af
4
+ data.tar.gz: d2cdaa5d653f1dfae215cd9087c8bb6afe645481
5
+ SHA512:
6
+ metadata.gz: 451a2e26489e541f06e8f8e64d2f689319064b6b3200cdc028461aaaa641fd137d4d4a657909a92a58ebcf38b6f3c0827c4b0171a9e8acafdb1abde6d4251e64
7
+ data.tar.gz: 7eb71ad8d67dc5855514e5ebf87b5bb4482bd88e661e3d9c74a3441d1e9e1072703326d4b67dbe7d381e9bb098e77753acac3c8175aeafc1d97665c19dcd3a35
data/guard-tap.gemspec CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_dependency 'guard', '>= 1.8'
24
+ spec.add_dependency 'guard-compat', '~> 1.0'
24
25
 
25
26
  spec.add_development_dependency 'rspec'
26
27
  spec.add_development_dependency 'guard-rspec'
27
- spec.add_development_dependency 'rspec'
28
28
  end
data/lib/guard/tap.rb CHANGED
@@ -1,13 +1,10 @@
1
1
  require "guard/tap/version"
2
2
 
3
- require 'guard'
4
- require 'guard/guard'
5
- require 'guard/watcher'
6
-
3
+ require 'guard/compat/plugin'
7
4
  require 'shellwords'
8
5
 
9
6
  module Guard
10
- class Tap < Guard
7
+ class Tap < Plugin
11
8
 
12
9
  autoload :Runner, 'guard/tap/runner'
13
10
 
@@ -16,7 +16,7 @@ module Guard
16
16
 
17
17
  IO.popen(command, "r+"){ |io|
18
18
  while line = io.gets
19
- UI.debug line
19
+ ::Guard::Compat::UI.debug line
20
20
  if line =~ /^ok/
21
21
  now_error = false
22
22
  flush_error.call
@@ -47,7 +47,7 @@ module Guard
47
47
  end
48
48
 
49
49
  def notify log_level, message, args = { }
50
- ::Guard::UI.send log_level, message
50
+ ::Guard::Compat::UI.send log_level, message
51
51
  ::Guard::Notifier.notify message, args
52
52
  end
53
53
 
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module TapVersion
3
- VERSION = '1.2.0'
3
+ VERSION = '1.3.0'
4
4
  end
5
5
  end
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'guard/compat/test/helper'
2
3
 
3
4
  describe Guard::Tap::Runner do
4
5
 
@@ -29,7 +30,7 @@ describe Guard::Tap::Runner do
29
30
 
30
31
  it 'handles not ok (TODO)' do
31
32
  runner.should_not_receive(:notify_error)
32
- runner.run('echo not ok 1 # TODO')
33
+ runner.run('echo not ok 1 \\# TODO')
33
34
  end
34
35
  end
35
36
 
@@ -39,7 +40,7 @@ describe Guard::Tap::Runner do
39
40
  end
40
41
 
41
42
  it 'calls UI and Notifier' do
42
- Guard::UI.should_receive(:info).with('hi')
43
+ Guard::Compat::UI.should_receive(:info).with('hi')
43
44
  Guard::Notifier.should_receive(:notify).with('hi', foo: 'bar')
44
45
  runner.notify :info, 'hi', foo: 'bar'
45
46
  end
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'guard/compat/test/helper'
2
3
 
3
4
  describe Guard::Tap do
4
5
 
@@ -39,7 +40,7 @@ describe Guard::Tap do
39
40
  end
40
41
 
41
42
  context 'with the :command option' do
42
- let(:guard) { Guard::Tap.new(nil, :command => 'perl') }
43
+ let(:guard) { Guard::Tap.new(:command => 'perl') }
43
44
 
44
45
  it 'makes the command with specified command' do
45
46
  guard.make_command('test.pl').should == 'perl test.pl 2>&1'
data/spec/spec_helper.rb CHANGED
@@ -7,12 +7,12 @@ RSpec.configure do |config|
7
7
  ENV["GUARD_ENV"] = 'test'
8
8
  @project_path = Pathname.new(File.expand_path('../../', __FILE__))
9
9
 
10
- Guard::UI.stub(:info)
11
- Guard::UI.stub(:debug)
12
- Guard::UI.stub(:error)
13
- Guard::UI.stub(:success)
14
- Guard::UI.stub(:warning)
15
- Guard::UI.stub(:notify)
10
+ Guard::Compat::UI.stub(:info)
11
+ Guard::Compat::UI.stub(:debug)
12
+ Guard::Compat::UI.stub(:error)
13
+ Guard::Compat::UI.stub(:success)
14
+ Guard::Compat::UI.stub(:warning)
15
+ Guard::Compat::UI.stub(:notify)
16
16
  end
17
17
 
18
18
  config.after(:each) do
metadata CHANGED
@@ -1,110 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-tap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
5
- prerelease:
4
+ version: 1.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - hitode909
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-12 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: guard
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.8'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '1.8'
62
55
  - !ruby/object:Gem::Dependency
63
- name: rspec
56
+ name: guard-compat
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
61
+ version: '1.0'
62
+ type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
- version: '0'
68
+ version: '1.0'
78
69
  - !ruby/object:Gem::Dependency
79
- name: guard-rspec
70
+ name: rspec
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
- name: rspec
84
+ name: guard-rspec
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  description: Guard::Tap automatically run your tests using TAP(Test Anything Protocol).
@@ -114,8 +101,8 @@ executables: []
114
101
  extensions: []
115
102
  extra_rdoc_files: []
116
103
  files:
117
- - .gitignore
118
- - .travis.yml
104
+ - ".gitignore"
105
+ - ".travis.yml"
119
106
  - Gemfile
120
107
  - Guardfile
121
108
  - LICENSE.txt
@@ -132,33 +119,26 @@ files:
132
119
  homepage: http://github.com/hitode909/guard-tap
133
120
  licenses:
134
121
  - MIT
122
+ metadata: {}
135
123
  post_install_message:
136
124
  rdoc_options: []
137
125
  require_paths:
138
126
  - lib
139
127
  required_ruby_version: !ruby/object:Gem::Requirement
140
- none: false
141
128
  requirements:
142
- - - ! '>='
129
+ - - ">="
143
130
  - !ruby/object:Gem::Version
144
131
  version: '0'
145
- segments:
146
- - 0
147
- hash: 268043442950140840
148
132
  required_rubygems_version: !ruby/object:Gem::Requirement
149
- none: false
150
133
  requirements:
151
- - - ! '>='
134
+ - - ">="
152
135
  - !ruby/object:Gem::Version
153
136
  version: '0'
154
- segments:
155
- - 0
156
- hash: 268043442950140840
157
137
  requirements: []
158
138
  rubyforge_project:
159
- rubygems_version: 1.8.25
139
+ rubygems_version: 2.2.2
160
140
  signing_key:
161
- specification_version: 3
141
+ specification_version: 4
162
142
  summary: Guard gem for Test Anything Protocol)
163
143
  test_files:
164
144
  - spec/guard/tap/runner_spec.rb