rspec-legacy_formatters 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDlkMmMzOGY0NjRhYjdhNjRiMDJjMzlhNDJlZDUxY2Q5YjZkYzJkMw==
5
- data.tar.gz: !binary |-
6
- YWVkMGUyOTczYzY2OGExYzM2OTdhZTU3Y2MwMDNlMDMwNjc1OTAxYw==
7
- !binary "U0hBNTEy":
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
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -7,12 +7,15 @@ rvm:
7
7
  - 1.8.7
8
8
  - 1.9.2
9
9
  - 1.9.3
10
- - 2.0.0
11
- - 2.1.0
12
- - 2.1.1
10
+ - 2.0
11
+ - 2.1
12
+ - 2.2
13
13
  - ree
14
14
  - jruby-18mode
15
15
  - jruby
16
16
  - rbx-2
17
17
  matrix:
18
+ include:
19
+ - rvm: jruby
20
+ env: JRUBY_OPTS='--2.0'
18
21
  fast_finish: true
@@ -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/<my-github-username>/rspec-legacy_formatters/fork )
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`)
@@ -1,3 +1,12 @@
1
+ # For Aruba on 1.9.2
2
+ unless File.respond_to?(:write)
3
+ class File
4
+ def self.write(path, content)
5
+ open(path, 'w') { |f| f << content }
6
+ end
7
+ end
8
+ end
9
+
1
10
  require 'aruba/cucumber'
2
11
 
3
12
  timeouts = { 'java' => 60 }
@@ -1,3 +1,4 @@
1
+ require "rspec/core"
1
2
  require "rspec/legacy_formatters/version"
2
3
  require "rspec/legacy_formatters/adaptor"
3
4
  require 'stringio'
@@ -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
- class NullConverter; def convert(code, pre); code; end; end
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 = NullConverter.new
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, false)
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
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec LegacyFormatters.
4
4
  module Version
5
5
  # Current version of RSpec LegacyFormatters, in semantic versioning format.
6
- STRING = '1.0.0'
6
+ STRING = '1.0.1'
7
7
  end
8
8
  end
9
9
  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-core", ">= 3.0.0.beta2"
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
@@ -1,6 +1,8 @@
1
1
  require 'rspec/support/spec'
2
2
  RSpec::Support::Spec.setup_simplecov
3
3
 
4
+ require 'rspec/core/formatters/console_codes'
5
+
4
6
  # This MUST be loaded early, before rspec-core's formatters are loaded.
5
7
  require 'rspec/legacy_formatters'
6
8
 
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.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
- - !binary |-
12
- LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURqakNDQW5hZ0F3SUJB
13
- Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJHTVJJd0VBWURWUVFEREFse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AMBAf8wDQYJKoZIhvcNAQEFBQADggIBAIqbQSWH2aAF537DKwAMB8nMFsoe24MD
34
+ gtuQAyjTtbH+QBE4N2RdQF/sU7Y3PYR7nqdrCsYc3RxyqM5XXi7I3IYdpfe1RuxY
35
+ +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-core
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.0.beta2
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.0.beta2
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.0.7
243
+ rubygems_version: 2.2.2
247
244
  signing_key:
248
245
  specification_version: 4
249
- summary: rspec-legacy_formatters-1.0.0
246
+ summary: rspec-legacy_formatters-1.0.1
250
247
  test_files: []
metadata.gz.sig CHANGED
Binary file