rspec-legacy_formatters 1.0.0 → 1.0.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.
- checksums.yaml +6 -14
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.travis.yml +6 -3
- data/Changelog.md +10 -0
- data/Gemfile +0 -9
- data/README.md +1 -1
- data/features/support/env.rb +9 -0
- data/lib/rspec/legacy_formatters.rb +1 -0
- data/lib/rspec/legacy_formatters/snippet_extractor.rb +14 -3
- data/lib/rspec/legacy_formatters/version.rb +1 -1
- data/rspec-legacy_formatters.gemspec +2 -3
- data/spec/rspec/legacy_formatters_spec.rb +1 -4
- data/spec/spec_helper.rb +2 -0
- metadata +63 -66
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
metadata.gz: !binary |-
|
|
9
|
-
Zjk5YWRlMjJkZGE5ZGUzYTI3NDRmMjg5ZWI4NWJhMjViMWY5NzVkM2FmNWNj
|
|
10
|
-
MDQ1NzIwMWYzNTJkZTJmYmE0NDM2ZTM4MWI2Mjg2OWUyNTdmOGQ0YmViZTRl
|
|
11
|
-
ZTk0MTE0ZDA5NThmYjAyZjZiY2ZjMzU2NTFiYmM3MTNlYzljNGY=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
NTVkMDI3ZDhhZjRkNWFhNWVhMjZlNGJhZGVkMjcxMDg3Mjk1MWVlNDg2ZDEz
|
|
14
|
-
YTdjODM1MzkzMWU2MzFmOTkxOTk0ZGJhNzMxZmIyMDBhOTcwZmZkYTQ4YmM1
|
|
15
|
-
YjNkYTY4MmYwZGJmM2FjOWRjZTQyNGNhOWFhYTJhY2ZjZjA0YzU=
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 6a31dc262c49513ace20c235d84088138bc04d36
|
|
4
|
+
data.tar.gz: 0076604dd5968e361cd466ff74f409080a54a2d6
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: dc72aefd2143eddacef4d38e09897b2a24e2863256cde5ffba23882ce679d0bcd48a61785b43357e4b5e52cbcc5157ae480a6e915a66c17efcd013ef1194830e
|
|
7
|
+
data.tar.gz: 484dc289429ea35e674809dfd7f1c4ed6916c7878ac48d174c1c43b2f081cf60fb24dcd23c0e96e6e9eeb6275545c51e6c338ce33238fda5fb21b65cf931fd6a
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/.travis.yml
CHANGED
data/Changelog.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
### 1.0.1 / 2015-11-05
|
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-legacy_formatters/compare/v1.0.0...v1.0.1)
|
|
3
|
+
|
|
4
|
+
Bug Fixes:
|
|
5
|
+
|
|
6
|
+
* Require 'rspec-core' directly to ensure load ordering doesn't
|
|
7
|
+
affect us. (Jon Rowe, #9)
|
|
8
|
+
* Fix incompatibility with RSpec 3.3 related to `NullConverter`.
|
|
9
|
+
(Jon Rowe, #17)
|
|
10
|
+
|
|
1
11
|
### 1.0.0 / 2014-06-01
|
|
2
12
|
|
|
3
13
|
Minor changes to internals and specs. Releasing to take it out of pre-release.
|
data/Gemfile
CHANGED
|
@@ -2,15 +2,6 @@ source "https://rubygems.org"
|
|
|
2
2
|
|
|
3
3
|
gemspec
|
|
4
4
|
|
|
5
|
-
%w[rspec rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib|
|
|
6
|
-
library_path = File.expand_path("../../#{lib}", __FILE__)
|
|
7
|
-
if File.exist?(library_path) && !ENV['USE_GIT_REPOS']
|
|
8
|
-
gem lib, :path => library_path
|
|
9
|
-
else
|
|
10
|
-
gem lib, :git => "git://github.com/rspec/#{lib}.git"
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
|
|
14
5
|
### deps for rdoc.info
|
|
15
6
|
platforms :ruby do
|
|
16
7
|
gem 'redcarpet', '2.1.1'
|
data/README.md
CHANGED
|
@@ -34,7 +34,7 @@ $ rspec --require rspec/legacy_formatters --format MyCustomFormatter
|
|
|
34
34
|
|
|
35
35
|
## Contributing
|
|
36
36
|
|
|
37
|
-
1. Fork it ( http://github.com
|
|
37
|
+
1. Fork it ( http://github.com/rspec/rspec-legacy_formatters/fork )
|
|
38
38
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
39
39
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
40
40
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/features/support/env.rb
CHANGED
|
@@ -5,13 +5,24 @@ module RSpec
|
|
|
5
5
|
#
|
|
6
6
|
# Extracts code snippets by looking at the backtrace of the passed error and applies synax highlighting and line numbers using html.
|
|
7
7
|
class SnippetExtractor
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
if defined?(NullConverter) && (Class === NullConverter)
|
|
10
|
+
LegacyNullConverter = NullConverter.new
|
|
11
|
+
elsif defined?(NullConverter)
|
|
12
|
+
LegacyNullConverter = NullConverter
|
|
13
|
+
else
|
|
14
|
+
module LegacyNullConverter
|
|
15
|
+
def self.convert(code)
|
|
16
|
+
code
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
9
20
|
|
|
10
21
|
begin
|
|
11
22
|
require 'syntax/convertors/html'
|
|
12
23
|
@@converter = Syntax::Convertors::HTML.for_syntax "ruby"
|
|
13
24
|
rescue LoadError
|
|
14
|
-
@@converter =
|
|
25
|
+
@@converter = LegacyNullConverter
|
|
15
26
|
end
|
|
16
27
|
|
|
17
28
|
# @api private
|
|
@@ -24,7 +35,7 @@ module RSpec
|
|
|
24
35
|
# @see #post_process
|
|
25
36
|
def snippet(backtrace)
|
|
26
37
|
raw_code, line = snippet_for(backtrace[0])
|
|
27
|
-
highlighted = @@converter.convert(raw_code
|
|
38
|
+
highlighted = @@converter.convert(raw_code)
|
|
28
39
|
highlighted << "\n<span class=\"comment\"># gem install syntax to get syntax highlighting</span>" if @@converter.is_a?(NullConverter)
|
|
29
40
|
post_process(highlighted, line)
|
|
30
41
|
end
|
|
@@ -27,11 +27,10 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.cert_chain = [File.expand_path('~/.gem/rspec-gem-public_cert.pem')]
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
spec.add_runtime_dependency "rspec
|
|
31
|
-
spec.add_runtime_dependency "rspec-support", ">= 3.0.0.beta2"
|
|
30
|
+
spec.add_runtime_dependency "rspec", "~> 3.0"
|
|
32
31
|
|
|
33
32
|
spec.add_development_dependency "cucumber", "~> 1.3"
|
|
34
|
-
spec.add_development_dependency "aruba", "~> 0.5"
|
|
33
|
+
spec.add_development_dependency "aruba", "~> 0.5", "< 0.9" # because rspec support is locked
|
|
35
34
|
spec.add_development_dependency "rake", "~> 10.0.0"
|
|
36
35
|
|
|
37
36
|
# For legacy custom formatter regression tests
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
require 'rspec/core/formatters/console_codes'
|
|
2
|
-
require 'rspec/legacy_formatters'
|
|
3
|
-
|
|
4
1
|
RSpec.describe RSpec::LegacyFormatters do
|
|
5
2
|
include FormatterSupport
|
|
6
3
|
|
|
7
4
|
it 'can access attributes provided by base class accessors in #initialize' do
|
|
8
|
-
klass = Class.new(LegacyFormatterUsingSubClassing) do
|
|
5
|
+
klass = Class.new(::LegacyFormatterUsingSubClassing) do
|
|
9
6
|
def initialize(*args)
|
|
10
7
|
examples
|
|
11
8
|
super
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,113 +1,110 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-legacy_formatters
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jon Rowe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain:
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
11
|
+
- |
|
|
12
|
+
-----BEGIN CERTIFICATE-----
|
|
13
|
+
MIIF1TCCA72gAwIBAgIJAPXjfUbCjdXUMA0GCSqGSIb3DQEBBQUAMIGAMQswCQYD
|
|
14
|
+
VQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEO
|
|
15
|
+
MAwGA1UECgwFUlNwZWMxEzARBgNVBAMMCnJzcGVjLmluZm8xJTAjBgkqhkiG9w0B
|
|
16
|
+
CQEWFnJzcGVjQGdvb2dsZWdyb3Vwcy5jb20wHhcNMTQxMjIzMDkzNTIyWhcNMjQx
|
|
17
|
+
MjIyMDkzNTIyWjCBgDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24x
|
|
18
|
+
EDAOBgNVBAcMB1NlYXR0bGUxDjAMBgNVBAoMBVJTcGVjMRMwEQYDVQQDDApyc3Bl
|
|
19
|
+
Yy5pbmZvMSUwIwYJKoZIhvcNAQkBFhZyc3BlY0Bnb29nbGVncm91cHMuY29tMIIC
|
|
20
|
+
IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsSmjgcHaKlD0jizRJowi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
+pyPzVQsPPDhMlJlCrwJsADnxlpxZlAgxYSLKOan55ihscaAWA90wqRUrf/ZJM36
|
|
36
|
+
8LWCPVn5teIt5aaxZWX68RMxa+AXvpbtJOBwXLkIFk3apD8CX4DhelIdw67DbkUe
|
|
37
|
+
ghUd/u62qrnqBTVgditt7OoWIZjzh24/Fda5d0MxZyvLILGOrf5bN4cTbe/q9Cid
|
|
38
|
+
Xrik7Upm+mu3y3yQIfrw85xybHq6iNXyYHvCdSrFfCIKrGpd/0CAdmYnJlx59Fk/
|
|
39
|
+
UbD3Eyx4psBSkU+WKO0Uf+3zNI7N/nVeNIwU/Ft+l8l7/K+427656c+ZGWDO0Gt/
|
|
40
|
+
BeEOSTDKP7qQ1T+JvMrBcBQo+i0cnRT10J1aoV90BhxsvWTRizIbugbaqR6Tq3bj
|
|
41
|
+
Akt00cIlNSplL6DenIAKSh5kF7s0tRD0tC3bNkZmNjNGkdoGEcUODEpTB3RHKKiu
|
|
42
|
+
e6k2Jg6m00z5vGFQhOnROG/QaUzMA3A3mFBe1RHFo07xd0pFeoeWL3vF69Gx9Jwp
|
|
43
|
+
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
|
44
|
+
F3MdtaDehhjC
|
|
45
|
+
-----END CERTIFICATE-----
|
|
46
|
+
date: 2015-11-06 00:00:00.000000000 Z
|
|
42
47
|
dependencies:
|
|
43
48
|
- !ruby/object:Gem::Dependency
|
|
44
|
-
name: rspec
|
|
49
|
+
name: rspec
|
|
45
50
|
requirement: !ruby/object:Gem::Requirement
|
|
46
51
|
requirements:
|
|
47
|
-
- -
|
|
52
|
+
- - "~>"
|
|
48
53
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 3.0
|
|
54
|
+
version: '3.0'
|
|
50
55
|
type: :runtime
|
|
51
56
|
prerelease: false
|
|
52
57
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
58
|
requirements:
|
|
54
|
-
- -
|
|
59
|
+
- - "~>"
|
|
55
60
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: 3.0
|
|
57
|
-
- !ruby/object:Gem::Dependency
|
|
58
|
-
name: rspec-support
|
|
59
|
-
requirement: !ruby/object:Gem::Requirement
|
|
60
|
-
requirements:
|
|
61
|
-
- - ! '>='
|
|
62
|
-
- !ruby/object:Gem::Version
|
|
63
|
-
version: 3.0.0.beta2
|
|
64
|
-
type: :runtime
|
|
65
|
-
prerelease: false
|
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
67
|
-
requirements:
|
|
68
|
-
- - ! '>='
|
|
69
|
-
- !ruby/object:Gem::Version
|
|
70
|
-
version: 3.0.0.beta2
|
|
61
|
+
version: '3.0'
|
|
71
62
|
- !ruby/object:Gem::Dependency
|
|
72
63
|
name: cucumber
|
|
73
64
|
requirement: !ruby/object:Gem::Requirement
|
|
74
65
|
requirements:
|
|
75
|
-
- - ~>
|
|
66
|
+
- - "~>"
|
|
76
67
|
- !ruby/object:Gem::Version
|
|
77
68
|
version: '1.3'
|
|
78
69
|
type: :development
|
|
79
70
|
prerelease: false
|
|
80
71
|
version_requirements: !ruby/object:Gem::Requirement
|
|
81
72
|
requirements:
|
|
82
|
-
- - ~>
|
|
73
|
+
- - "~>"
|
|
83
74
|
- !ruby/object:Gem::Version
|
|
84
75
|
version: '1.3'
|
|
85
76
|
- !ruby/object:Gem::Dependency
|
|
86
77
|
name: aruba
|
|
87
78
|
requirement: !ruby/object:Gem::Requirement
|
|
88
79
|
requirements:
|
|
89
|
-
- - ~>
|
|
80
|
+
- - "~>"
|
|
90
81
|
- !ruby/object:Gem::Version
|
|
91
82
|
version: '0.5'
|
|
83
|
+
- - "<"
|
|
84
|
+
- !ruby/object:Gem::Version
|
|
85
|
+
version: '0.9'
|
|
92
86
|
type: :development
|
|
93
87
|
prerelease: false
|
|
94
88
|
version_requirements: !ruby/object:Gem::Requirement
|
|
95
89
|
requirements:
|
|
96
|
-
- - ~>
|
|
90
|
+
- - "~>"
|
|
97
91
|
- !ruby/object:Gem::Version
|
|
98
92
|
version: '0.5'
|
|
93
|
+
- - "<"
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: '0.9'
|
|
99
96
|
- !ruby/object:Gem::Dependency
|
|
100
97
|
name: rake
|
|
101
98
|
requirement: !ruby/object:Gem::Requirement
|
|
102
99
|
requirements:
|
|
103
|
-
- - ~>
|
|
100
|
+
- - "~>"
|
|
104
101
|
- !ruby/object:Gem::Version
|
|
105
102
|
version: 10.0.0
|
|
106
103
|
type: :development
|
|
107
104
|
prerelease: false
|
|
108
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
109
106
|
requirements:
|
|
110
|
-
- - ~>
|
|
107
|
+
- - "~>"
|
|
111
108
|
- !ruby/object:Gem::Version
|
|
112
109
|
version: 10.0.0
|
|
113
110
|
- !ruby/object:Gem::Dependency
|
|
@@ -186,10 +183,10 @@ executables: []
|
|
|
186
183
|
extensions: []
|
|
187
184
|
extra_rdoc_files: []
|
|
188
185
|
files:
|
|
189
|
-
- .gitignore
|
|
190
|
-
- .rspec
|
|
191
|
-
- .travis.yml
|
|
192
|
-
- .yardopts
|
|
186
|
+
- ".gitignore"
|
|
187
|
+
- ".rspec"
|
|
188
|
+
- ".travis.yml"
|
|
189
|
+
- ".yardopts"
|
|
193
190
|
- Changelog.md
|
|
194
191
|
- Gemfile
|
|
195
192
|
- License.txt
|
|
@@ -228,23 +225,23 @@ licenses:
|
|
|
228
225
|
metadata: {}
|
|
229
226
|
post_install_message:
|
|
230
227
|
rdoc_options:
|
|
231
|
-
- --charset=UTF-8
|
|
228
|
+
- "--charset=UTF-8"
|
|
232
229
|
require_paths:
|
|
233
230
|
- lib
|
|
234
231
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
235
232
|
requirements:
|
|
236
|
-
- -
|
|
233
|
+
- - ">="
|
|
237
234
|
- !ruby/object:Gem::Version
|
|
238
235
|
version: 1.8.7
|
|
239
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
237
|
requirements:
|
|
241
|
-
- -
|
|
238
|
+
- - ">="
|
|
242
239
|
- !ruby/object:Gem::Version
|
|
243
240
|
version: '0'
|
|
244
241
|
requirements: []
|
|
245
242
|
rubyforge_project:
|
|
246
|
-
rubygems_version: 2.
|
|
243
|
+
rubygems_version: 2.2.2
|
|
247
244
|
signing_key:
|
|
248
245
|
specification_version: 4
|
|
249
|
-
summary: rspec-legacy_formatters-1.0.
|
|
246
|
+
summary: rspec-legacy_formatters-1.0.1
|
|
250
247
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|