plymouth 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -7
- data/.yardopts +1 -1
- data/LICENSE +25 -25
- data/README.md +7 -1
- data/Rakefile +1 -1
- data/lib/plymouth/commands.rb +1 -1
- data/lib/plymouth/version.rb +1 -1
- data/plymouth.gemspec +7 -7
- data/test/test.rb +12 -12
- metadata +40 -47
data/.gitignore
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
Makefile
|
2
|
-
*.so
|
3
|
-
*.o
|
4
|
-
*.def
|
5
|
-
doc/
|
6
|
-
pkg/
|
7
|
-
.yardoc/
|
1
|
+
Makefile
|
2
|
+
*.so
|
3
|
+
*.o
|
4
|
+
*.def
|
5
|
+
doc/
|
6
|
+
pkg/
|
7
|
+
.yardoc/
|
data/.yardopts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
--markup markdown
|
1
|
+
--markup markdown
|
data/LICENSE
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
License
|
2
|
-
-------
|
3
|
-
|
4
|
-
(The MIT License)
|
5
|
-
|
6
|
-
Copyright (c) 2012 John Mair (banisterfiend)
|
7
|
-
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
9
|
-
a copy of this software and associated documentation files (the
|
10
|
-
'Software'), to deal in the Software without restriction, including
|
11
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
12
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
-
permit persons to whom the Software is furnished to do so, subject to
|
14
|
-
the following conditions:
|
15
|
-
|
16
|
-
The above copyright notice and this permission notice shall be
|
17
|
-
included in all copies or substantial portions of the Software.
|
18
|
-
|
19
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
20
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
22
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
23
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
24
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
25
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
License
|
2
|
+
-------
|
3
|
+
|
4
|
+
(The MIT License)
|
5
|
+
|
6
|
+
Copyright (c) 2012 John Mair (banisterfiend)
|
7
|
+
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
9
|
+
a copy of this software and associated documentation files (the
|
10
|
+
'Software'), to deal in the Software without restriction, including
|
11
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
12
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
+
permit persons to whom the Software is furnished to do so, subject to
|
14
|
+
the following conditions:
|
15
|
+
|
16
|
+
The above copyright notice and this permission notice shall be
|
17
|
+
included in all copies or substantial portions of the Software.
|
18
|
+
|
19
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
20
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
22
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
23
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
24
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
25
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -66,7 +66,7 @@ From: /Users/john/ruby/play/rspec_intercept.rb @ line 9:
|
|
66
66
|
[1] (pry) #<RSpec::Core::ExampleGroup::Nested_1>: 0> @array.size
|
67
67
|
=> 1
|
68
68
|
[2] (pry) #<RSpec::Core::ExampleGroup::Nested_1>: 0> edit --current
|
69
|
-
|
69
|
+
Waiting for Emacs...
|
70
70
|
[3] (pry) #<RSpec::Core::ExampleGroup::Nested_1>: 0> ^D
|
71
71
|
F
|
72
72
|
|
@@ -93,6 +93,11 @@ Notice the line `edit --current` from the example above. Entering this command w
|
|
93
93
|
where the failing test was defined. Once here you can modify the test code as you please. Note that the file will not be
|
94
94
|
reloaded after editing is complete, instead any modifications you make will only take effect the next time you run the test suite.
|
95
95
|
|
96
|
+
Turning plymouth off mid-test
|
97
|
+
---
|
98
|
+
|
99
|
+
If you are inside an interactive session and do not want plymouth to intercept further failing tests you
|
100
|
+
can enter the command `plymouth-off`. This will disable plymouth for the remainder of the test suite.
|
96
101
|
|
97
102
|
The 'USE_PLYMOUTH' Environment variable
|
98
103
|
-------
|
@@ -117,6 +122,7 @@ Limitations
|
|
117
122
|
* Only supports MRI.
|
118
123
|
* Currently limited to just Bacon, RSpec and Minitest. Support for more testing libraries will be added in the future.
|
119
124
|
* Only intercepts test **failures**, does not yet (generally) intercept test **errors**. Support for this will be added soon.
|
125
|
+
* Does not work with Bacon's `should.raise` and `should.not.raise` constructions.
|
120
126
|
|
121
127
|
Contact
|
122
128
|
-------
|
data/Rakefile
CHANGED
@@ -28,7 +28,7 @@ def apply_spec_defaults(s)
|
|
28
28
|
s.require_path = 'lib'
|
29
29
|
s.homepage = "http://github.com/banister/#{PROJECT_NAME}"
|
30
30
|
s.has_rdoc = 'yard'
|
31
|
-
s.add_dependency('pry-exception_explorer', '
|
31
|
+
s.add_dependency('pry-exception_explorer', '~>0.1.7')
|
32
32
|
s.add_development_dependency("bacon","~>1.1.0")
|
33
33
|
s.add_development_dependency('rspec')
|
34
34
|
s.required_ruby_version = '>= 1.9.2'
|
data/lib/plymouth/commands.rb
CHANGED
data/lib/plymouth/version.rb
CHANGED
data/plymouth.gemspec
CHANGED
@@ -2,18 +2,18 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "plymouth"
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["John Mair (banisterfiend)"]
|
9
|
-
s.date = "2012-
|
9
|
+
s.date = "2012-10-04"
|
10
10
|
s.description = "Start an interactive session when a test fails"
|
11
11
|
s.email = "jrmair@gmail.com"
|
12
|
-
s.files = [".gemtest", ".gitignore", ".yardopts", "CHANGELOG", "Gemfile", "LICENSE", "README.md", "Rakefile", "examples/example_bacon.rb", "examples/example_minitest.rb", "examples/example_rspec.rb", "lib/plymouth.rb", "lib/plymouth/version.rb", "plymouth.gemspec", "test/test.rb"]
|
12
|
+
s.files = [".gemtest", ".gitignore", ".yardopts", "CHANGELOG", "Gemfile", "LICENSE", "README.md", "Rakefile", "examples/example_bacon.rb", "examples/example_minitest.rb", "examples/example_rspec.rb", "lib/plymouth.rb", "lib/plymouth/commands.rb", "lib/plymouth/version.rb", "plymouth.gemspec", "test/test.rb"]
|
13
13
|
s.homepage = "http://github.com/banister/plymouth"
|
14
14
|
s.require_paths = ["lib"]
|
15
15
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
|
16
|
-
s.rubygems_version = "1.8.
|
16
|
+
s.rubygems_version = "1.8.15"
|
17
17
|
s.summary = "Start an interactive session when a test fails"
|
18
18
|
s.test_files = ["test/test.rb"]
|
19
19
|
|
@@ -21,16 +21,16 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.specification_version = 3
|
22
22
|
|
23
23
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
24
|
-
s.add_runtime_dependency(%q<pry-exception_explorer>, ["
|
24
|
+
s.add_runtime_dependency(%q<pry-exception_explorer>, ["~> 0.1.7"])
|
25
25
|
s.add_development_dependency(%q<bacon>, ["~> 1.1.0"])
|
26
26
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
27
27
|
else
|
28
|
-
s.add_dependency(%q<pry-exception_explorer>, ["
|
28
|
+
s.add_dependency(%q<pry-exception_explorer>, ["~> 0.1.7"])
|
29
29
|
s.add_dependency(%q<bacon>, ["~> 1.1.0"])
|
30
30
|
s.add_dependency(%q<rspec>, [">= 0"])
|
31
31
|
end
|
32
32
|
else
|
33
|
-
s.add_dependency(%q<pry-exception_explorer>, ["
|
33
|
+
s.add_dependency(%q<pry-exception_explorer>, ["~> 0.1.7"])
|
34
34
|
s.add_dependency(%q<bacon>, ["~> 1.1.0"])
|
35
35
|
s.add_dependency(%q<rspec>, [">= 0"])
|
36
36
|
end
|
data/test/test.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
direc = File.dirname(__FILE__)
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require "#{direc}/../lib/plymouth"
|
5
|
-
require 'bacon'
|
6
|
-
|
7
|
-
puts "Testing plymouth version #{Plymouth::VERSION}..."
|
8
|
-
puts "Ruby version: #{RUBY_VERSION}"
|
9
|
-
|
10
|
-
describe Plymouth do
|
11
|
-
end
|
12
|
-
|
1
|
+
direc = File.dirname(__FILE__)
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require "#{direc}/../lib/plymouth"
|
5
|
+
require 'bacon'
|
6
|
+
|
7
|
+
puts "Testing plymouth version #{Plymouth::VERSION}..."
|
8
|
+
puts "Ruby version: #{RUBY_VERSION}"
|
9
|
+
|
10
|
+
describe Plymouth do
|
11
|
+
end
|
12
|
+
|
metadata
CHANGED
@@ -1,59 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: plymouth
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.3.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- John Mair (banisterfiend)
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-10-04 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: pry-exception_explorer
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70316621784120 !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 0.1.7
|
24
22
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: bacon
|
28
23
|
prerelease: false
|
29
|
-
|
24
|
+
version_requirements: *70316621784120
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: bacon
|
27
|
+
requirement: &70316621783620 !ruby/object:Gem::Requirement
|
30
28
|
none: false
|
31
|
-
requirements:
|
29
|
+
requirements:
|
32
30
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
31
|
+
- !ruby/object:Gem::Version
|
34
32
|
version: 1.1.0
|
35
33
|
type: :development
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rspec
|
39
34
|
prerelease: false
|
40
|
-
|
35
|
+
version_requirements: *70316621783620
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
requirement: &70316621783040 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version:
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
46
44
|
type: :development
|
47
|
-
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70316621783040
|
48
47
|
description: Start an interactive session when a test fails
|
49
48
|
email: jrmair@gmail.com
|
50
49
|
executables: []
|
51
|
-
|
52
50
|
extensions: []
|
53
|
-
|
54
51
|
extra_rdoc_files: []
|
55
|
-
|
56
|
-
files:
|
52
|
+
files:
|
57
53
|
- .gemtest
|
58
54
|
- .gitignore
|
59
55
|
- .yardopts
|
@@ -72,30 +68,27 @@ files:
|
|
72
68
|
- test/test.rb
|
73
69
|
homepage: http://github.com/banister/plymouth
|
74
70
|
licenses: []
|
75
|
-
|
76
71
|
post_install_message:
|
77
72
|
rdoc_options: []
|
78
|
-
|
79
|
-
require_paths:
|
73
|
+
require_paths:
|
80
74
|
- lib
|
81
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
76
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
86
80
|
version: 1.9.2
|
87
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
82
|
none: false
|
89
|
-
requirements:
|
90
|
-
- -
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version:
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
93
87
|
requirements: []
|
94
|
-
|
95
88
|
rubyforge_project:
|
96
|
-
rubygems_version: 1.8.
|
89
|
+
rubygems_version: 1.8.15
|
97
90
|
signing_key:
|
98
91
|
specification_version: 3
|
99
92
|
summary: Start an interactive session when a test fails
|
100
|
-
test_files:
|
93
|
+
test_files:
|
101
94
|
- test/test.rb
|