rspec-formatter-webkit 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 86a1fd12c87ae8b06be208717d6b6e92d82606f2
4
- data.tar.gz: 4d9cbe72a88090b67939ef3115bfd78b7fa92995
2
+ SHA256:
3
+ metadata.gz: 03c7137b9f2e8672323805644cbef12b2b245a159a0afbc890f46bf361152083
4
+ data.tar.gz: 4d05991ce677ad4230e10a96b79307d58f2dfe94fd28df7bcfe42831331d71fd
5
5
  SHA512:
6
- metadata.gz: b752c435a1b130eed81a91ea780111e8466c847d52b55f2cc030cc459b0b7bfe7f920429cb3cc5b11c023fe1ec9d41acefeb0e66f9fcd2602711ef994ca19fa6
7
- data.tar.gz: 46358a839b07aefbc95a271fc27c2478977da354c89d123e5dad57d782a44c696117c63c1afd54ad0ebc23e83af294bc7e41bb4430ff1718a80a6b68478d03cc
6
+ metadata.gz: e84bf97fdc8adb321f0b4fc509e33dda278af8b8535240742073fed37288d97e0015d179da579dfa5e818c7563a6e2e35a68774dfb8468accfaac467fc4793de
7
+ data.tar.gz: 456f74a35dc55c4c2bd71befc222a7bbbd827f413a11a901461d97172d53ede0b1c93da5d34a87da47ab9e47cd47444f2079d730f442ede2b99ca77b691787d9
Binary file
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,8 +1,64 @@
1
+ 2018-01-17 Michael Granger <ged@FaerieMUD.org>
2
+
3
+ * .hoerc, Manifest.txt:
4
+ Update manifest.
5
+ [6c2e5921970b] [github/master, github/version_3, tip]
6
+
7
+ * spec/rspec/core/formatters/webkit_spec.rb, spec/spec_helper.rb:
8
+ Add beginnings of specs
9
+ [ac56d7951d92]
10
+
11
+ * .hgignore, lib/rspec/core/formatters/webkit.rb:
12
+ Remove use of deprecated Gem.datadir
13
+ [a9bccb554eb9]
14
+
15
+ 2018-01-16 Michael Granger <ged@FaerieMUD.org>
16
+
17
+ * .ruby-gemset, .ruby-version, .rvmrc, Rakefile, rspec-formatter-
18
+ webkit.gemspec:
19
+ Update for Ruby 2.5, RSpec 3.7
20
+ [761ead50b60d]
21
+
22
+ 2015-11-16 Michael Granger <ged@FaerieMUD.org>
23
+
24
+ * .hgtags:
25
+ Added tag v2.6.0 for changeset a3e7fbd6ab36
26
+ [f32c2ffddd5f]
27
+
28
+ * .hgsigs:
29
+ Added signature for changeset 0ee9ee48c83b
30
+ [a3e7fbd6ab36] [v2.6.0]
31
+
32
+ * .hoerc, Rakefile, rspec-formatter-webkit.gemspec:
33
+ Update hoerc to ignore the renamed gemset file.
34
+ [0ee9ee48c83b]
35
+
36
+ * History.rdoc, lib/rspec/core/formatters/webkit.rb:
37
+ Bump minor version, update history.
38
+ [f3f0d2c6e58c]
39
+
40
+ * .gems, .rvm.gems, .rvmrc, Rakefile,
41
+ lib/rspec/core/formatters/webkit.rb, rspec-formatter-webkit.gemspec:
42
+ Updated for rspec-core 3.4.
43
+ [b6309683ca46]
44
+
1
45
  2015-02-20 Michael Granger <ged@FaerieMUD.org>
2
46
 
47
+ * .hgtags:
48
+ Added tag v2.5.0 for changeset 24d96e7e1fc9
49
+ [4be1b3744e78]
50
+
51
+ * .hgsigs:
52
+ Added signature for changeset db9d49c06519
53
+ [24d96e7e1fc9] [v2.5.0]
54
+
55
+ * Manifest.txt, Rakefile, rspec-formatter-webkit.gemspec:
56
+ Update the manifest file.
57
+ [db9d49c06519]
58
+
3
59
  * .hgignore, Gemfile, Rakefile, rspec-formatter-webkit.gemspec:
4
60
  Update/check in the gemspec and Gemfile.
5
- [c30cce13579a] [github/master, github/version_3, tip]
61
+ [c30cce13579a]
6
62
 
7
63
  * History.rdoc, lib/rspec/core/formatters/webkit.rb:
8
64
  Bump the minor version, update history.
@@ -1,3 +1,11 @@
1
+ == v2.7.0 [2018-01-17] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Enhancements:
4
+
5
+ - Remove use of deprecated Gem.datadir
6
+ - Update for Ruby 2.5, RSpec 3.7
7
+
8
+
1
9
  == v2.6.0 [2015-11-16] Michael Granger <ged@FaerieMUD.org>
2
10
 
3
11
  - Updated for RSpec 3.4.
@@ -51,3 +51,5 @@ docs/tmrspec-example.png
51
51
  docs/tmrspecopts-shellvar.png
52
52
  lib/rspec/core/formatters/web_kit.rb
53
53
  lib/rspec/core/formatters/webkit.rb
54
+ spec/rspec/core/formatters/webkit_spec.rb
55
+ spec/spec_helper.rb
data/Rakefile CHANGED
@@ -24,8 +24,7 @@ hoespec = Hoe.spec 'rspec-formatter-webkit' do
24
24
  self.developer 'Michael Granger', 'ged@FaerieMUD.org'
25
25
  self.license 'Ruby'
26
26
 
27
- self.dependency 'rspec-core', '~> 3.4'
28
- self.dependency 'hoe-bundler', '~> 1.2', :development
27
+ self.dependency 'rspec-core', '~> 3.7'
29
28
 
30
29
  self.spec_extras[:post_install_message] = %{
31
30
 
@@ -5,7 +5,7 @@ require 'erb'
5
5
  require 'pathname'
6
6
  require 'set'
7
7
 
8
- gem 'rspec', '~> 3.4.0'
8
+ gem 'rspec', '~> 3.7'
9
9
 
10
10
  require 'rspec'
11
11
  require 'rspec/core/formatters/base_text_formatter'
@@ -25,12 +25,11 @@ class RSpec::Core::Formatters::WebKit < RSpec::Core::Formatters::BaseFormatter
25
25
  include ERB::Util
26
26
 
27
27
  # Version constant
28
- VERSION = '2.6.0'
28
+ VERSION = '2.7.0'
29
29
 
30
30
  # Look up the datadir falling back to a relative path (mostly for prerelease testing)
31
31
  DATADIR = begin
32
- dir = Gem.datadir('rspec-formatter-webkit') ||
33
- Pathname( __FILE__ ).dirname.parent.parent.parent.parent +
32
+ dir = Pathname( __FILE__ ).dirname.parent.parent.parent.parent +
34
33
  'data/rspec-formatter-webkit'
35
34
  Pathname( dir )
36
35
  end
@@ -0,0 +1,84 @@
1
+ #!/usr/bin/env rspec -cfd
2
+
3
+ require_relative '../../../spec_helper'
4
+
5
+ require 'stringio'
6
+ require 'rspec/core/formatters/webkit'
7
+
8
+
9
+ RSpec.describe RSpec::Core::Formatters::WebKit do
10
+
11
+ let( :output ) { StringIO.new }
12
+
13
+
14
+ it "renders a header when the run starts" do
15
+ notification = instance_double( RSpec::Core::Notifications::StartNotification,
16
+ count: 8, load_time: 0.245 )
17
+ formatter = described_class.new( output )
18
+ formatter.start( notification )
19
+
20
+ expect( output.string ).to include(
21
+ '<html lang="en">',
22
+ '<title>RSpec results</title>',
23
+ '<div id="rspec-header">'
24
+ )
25
+ end
26
+
27
+
28
+ it "renders a top-level definition list for a top-level example group" do
29
+ group = class_double( RSpec::Core::ExampleGroup, ancestors: [Object],
30
+ name: 'DefinitionListExample', description: "something something" )
31
+ notification = instance_double( RSpec::Core::Notifications::GroupNotification,
32
+ group: group )
33
+ formatter = described_class.new( output )
34
+ formatter.example_group_started( notification )
35
+
36
+ expect( output.string ).to include(
37
+ '<dl>',
38
+ 'something something',
39
+ 'id="definitionlistexample"'
40
+ )
41
+ expect( output.string ).to_not include( '<dd class="nested-group">' )
42
+ end
43
+
44
+
45
+ it "renders a nested definition list for a nested example group" do
46
+ group = class_double( RSpec::Core::ExampleGroup, ancestors: [Object, Object],
47
+ name: 'NestedDefinitionListExample', description: "something nested something" )
48
+ notification = instance_double( RSpec::Core::Notifications::GroupNotification,
49
+ group: group )
50
+ formatter = described_class.new( output )
51
+ formatter.example_group_started( notification )
52
+
53
+ expect( output.string ).to include(
54
+ '<dd class="nested-group">',
55
+ '<dl>',
56
+ 'something nested something',
57
+ 'id="nesteddefinitionlistexample"'
58
+ )
59
+ end
60
+
61
+
62
+ it "closes previous more-deeply nested definition lists" do
63
+ group1 = class_double( RSpec::Core::ExampleGroup, ancestors: [Object, Object, Object, Object],
64
+ name: 'DefinitionListExampleOne', description: "first group" )
65
+ notification1 = instance_double( RSpec::Core::Notifications::GroupNotification,
66
+ group: group1 )
67
+
68
+ group2 = class_double( RSpec::Core::ExampleGroup, ancestors: [Object, Object],
69
+ name: 'DefinitionListExampleTwo', description: "second group" )
70
+ notification2 = instance_double( RSpec::Core::Notifications::GroupNotification,
71
+ group: group2 )
72
+
73
+ formatter = described_class.new( output )
74
+
75
+ formatter.example_group_started( notification1 )
76
+ output.truncate( 0 )
77
+ output.rewind
78
+ formatter.example_group_started( notification2 )
79
+
80
+ expect( output.string ).to match( %r{</dd>.*</dl>.*</dd>.*</dl>}m )
81
+ end
82
+
83
+ end
84
+
@@ -0,0 +1,26 @@
1
+ # -*- ruby -*-
2
+ #encoding: utf-8
3
+
4
+ require 'rspec'
5
+
6
+ RSpec.configure do |config|
7
+ config.expect_with :rspec do |expectations|
8
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
9
+ end
10
+
11
+ config.mock_with :rspec do |mocks|
12
+ mocks.verify_partial_doubles = true
13
+ end
14
+
15
+ config.shared_context_metadata_behavior = :apply_to_host_groups
16
+ config.filter_run_when_matching :focus
17
+ config.example_status_persistence_file_path = "spec/.status"
18
+ config.disable_monkey_patching!
19
+ config.warnings = true
20
+ config.profile_examples = 10
21
+ config.order = :random
22
+
23
+ Kernel.srand( config.seed )
24
+ end
25
+
26
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-formatter-webkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -10,27 +10,32 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
13
+ MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
14
14
  GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
15
- HhcNMTUwNDAxMjEyNDEzWhcNMTYwMzMxMjEyNDEzWjA+MQwwC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q8yRft0ww+3jq5iwNkrX1buL2pwBbyvgms6D/BV41
32
+ MaTVMjsHqJUwU2xVfhGtxGAWAer5S1HGYHkbio6mGVtiie0uWjmnzi7ppIlMr48a
33
+ 7BNTsoZ+/JRk3iQWmmNsyFT7xfqBKye7cH11BX8V8P4MeGB5YWlMI+Myj5DZY3fQ
34
+ st2AGD4rb1l0ia7PfubcBThSIdz61eCb8gRi/RiZZwb3/7+eyEncLJzt2Ob9fGSF
35
+ X0qdrKi+2aZZ0NGuFj9AItBsVmAvkBGIpX4TEKQp5haEbPpmaqO5nIIhV26PXmyT
36
+ OMKv6pWsoS81vw5KAGBmfX8nht/Py90DQrbRvakATGI=
32
37
  -----END CERTIFICATE-----
33
- date: 2015-11-16 00:00:00.000000000 Z
38
+ date: 2018-01-17 00:00:00.000000000 Z
34
39
  dependencies:
35
40
  - !ruby/object:Gem::Dependency
36
41
  name: rspec-core
@@ -38,14 +43,14 @@ dependencies:
38
43
  requirements:
39
44
  - - "~>"
40
45
  - !ruby/object:Gem::Version
41
- version: '3.4'
46
+ version: '3.7'
42
47
  type: :runtime
43
48
  prerelease: false
44
49
  version_requirements: !ruby/object:Gem::Requirement
45
50
  requirements:
46
51
  - - "~>"
47
52
  - !ruby/object:Gem::Version
48
- version: '3.4'
53
+ version: '3.7'
49
54
  - !ruby/object:Gem::Dependency
50
55
  name: hoe-mercurial
51
56
  requirement: !ruby/object:Gem::Requirement
@@ -66,14 +71,14 @@ dependencies:
66
71
  requirements:
67
72
  - - "~>"
68
73
  - !ruby/object:Gem::Version
69
- version: '0.7'
74
+ version: '0.9'
70
75
  type: :development
71
76
  prerelease: false
72
77
  version_requirements: !ruby/object:Gem::Requirement
73
78
  requirements:
74
79
  - - "~>"
75
80
  - !ruby/object:Gem::Version
76
- version: '0.7'
81
+ version: '0.9'
77
82
  - !ruby/object:Gem::Dependency
78
83
  name: hoe-highline
79
84
  requirement: !ruby/object:Gem::Requirement
@@ -102,34 +107,20 @@ dependencies:
102
107
  - - "~>"
103
108
  - !ruby/object:Gem::Version
104
109
  version: '4.0'
105
- - !ruby/object:Gem::Dependency
106
- name: hoe-bundler
107
- requirement: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - "~>"
110
- - !ruby/object:Gem::Version
111
- version: '1.2'
112
- type: :development
113
- prerelease: false
114
- version_requirements: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - "~>"
117
- - !ruby/object:Gem::Version
118
- version: '1.2'
119
110
  - !ruby/object:Gem::Dependency
120
111
  name: hoe
121
112
  requirement: !ruby/object:Gem::Requirement
122
113
  requirements:
123
114
  - - "~>"
124
115
  - !ruby/object:Gem::Version
125
- version: '3.14'
116
+ version: '3.16'
126
117
  type: :development
127
118
  prerelease: false
128
119
  version_requirements: !ruby/object:Gem::Requirement
129
120
  requirements:
130
121
  - - "~>"
131
122
  - !ruby/object:Gem::Version
132
- version: '3.14'
123
+ version: '3.16'
133
124
  description: |-
134
125
  This is a formatter for RSpec 2 that takes advantage of features in
135
126
  WebKit[http://webkit.org/] to make the output from RSpec in Textmate more
@@ -200,6 +191,8 @@ files:
200
191
  - docs/tmrspecopts-shellvar.png
201
192
  - lib/rspec/core/formatters/web_kit.rb
202
193
  - lib/rspec/core/formatters/webkit.rb
194
+ - spec/rspec/core/formatters/webkit_spec.rb
195
+ - spec/spec_helper.rb
203
196
  homepage: http://deveiate.org/webkit-rspec-formatter.html
204
197
  licenses:
205
198
  - BSD
@@ -225,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
218
  version: '0'
226
219
  requirements: []
227
220
  rubyforge_project:
228
- rubygems_version: 2.4.5.1
221
+ rubygems_version: 2.7.3
229
222
  signing_key:
230
223
  specification_version: 4
231
224
  summary: This is a formatter for RSpec 2 that takes advantage of features in WebKit[http://webkit.org/]
metadata.gz.sig CHANGED
Binary file