xcpretty 0.3.0 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f365d9cdc169625b0f93546aa48853b2372cc067281e9816c7298497f2e08bde
4
- data.tar.gz: 144d70e94586ab5f0611cb50f17069f77de69328fe89e3a8204a8fd97aa2d257
3
+ metadata.gz: e4d1a516ddf47e483198aed60a7c374bc3e2547b436f7cf53365fa45cac388b9
4
+ data.tar.gz: 8fbc1f1037b46e16ee77feb7dc89a9bd6f618856a5d47fabcf023b4588aee6c9
5
5
  SHA512:
6
- metadata.gz: d5676d99cad363d5e27a0effa0ed9f12f1d512911780a293802ba9e550f7b7b786d8aa67490a23189f5aed2452a38107dff3c71627d17f4f34f4a65758e0e66e
7
- data.tar.gz: ef2ceecc08808821c93da0a1c233a9f01c519553b3f854779d9764e4e1305c7405836e57ebd0fd864c6d6f8b2db6f652571f5ccc582f0efe11aaa660c9aae8ed
6
+ metadata.gz: 735ebdccb3849e23907b0300124cd27a117f2a2860789902bc5e211b6167426e994974f3654114a06fbc2f05ad6e60584ddc9adb144b3e86b17c6bd1269a3f49
7
+ data.tar.gz: b1cbf9442b1ec243550686534b96c0e40644718ee4b726be3eb495e9a5bf1af1bfb58d27a2b8d078bebc388030131a5fdeb833175a5ab26ee45615e6bf567b65
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0
4
+
5
+ ###### Enhancements
6
+
7
+ * Fix unescaped HTML not being rendered properly
8
+ | [iulianOnofrei (U-lee-aan)](https://github.com/revolter)
9
+ | [#313](https://github.com/xcpretty/xcpretty/pull/313)
10
+
11
+ * Bump rouge and bundler
12
+ | [Owen Hart](https://github.com/owjsub)
13
+ | [#383](https://github.com/xcpretty/xcpretty/pull/383)
14
+
15
+
3
16
  ## 0.3.0
4
17
 
5
18
  ###### Enhancements
@@ -25,6 +38,7 @@
25
38
  | [iKiKi](https://github.com/iKiKi)
26
39
  | [#187](https://github.com/supermarin/xcpretty/pull/187)
27
40
 
41
+
28
42
  ## 0.2.1
29
43
 
30
44
  ###### Bug fixes
@@ -363,7 +363,7 @@ module XCPretty
363
363
  when UI_FAILING_TEST_MATCHER
364
364
  formatter.format_failing_test(@test_suite, @test_case, $2, $1)
365
365
  when FAILING_TEST_MATCHER
366
- formatter.format_failing_test($2, $3, $4, $1)
366
+ formatter.format_failing_test($2, $3, ERB::Util.html_escape($4), $1)
367
367
  when FATAL_ERROR_MATCHER
368
368
  formatter.format_error($1)
369
369
  when FILE_MISSING_ERROR_MATCHER
@@ -1,4 +1,4 @@
1
1
  module XCPretty
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
4
4
 
@@ -50,6 +50,7 @@ SAMPLE_XCTEST_FAILURE = ""
50
50
  SAMPLE_KIWI_FAILURE = "/Users/musalj/code/OSS/ObjectiveSugar/Example/ObjectiveSugarTests/NSNumberTests.m:49: error: -[NumberAdditions Iterators_TimesIteratesTheExactNumberOfTimes] : 'Iterators, times: iterates the exact number of times' [FAILED], expected subject to equal 4, got 5"
51
51
  SAMPLE_OLD_SPECTA_FAILURE = "/Users/musalj/code/OSS/ReactiveCocoa/ReactiveCocoaFramework/ReactiveCocoaTests/RACCommandSpec.m:458: error: -[RACCommandSpec enabled_signal_should_send_YES_while_executing_is_YES_and_allowsConcurrentExecution_is_YES] : expected: 1, got: 0"
52
52
  SAMPLE_SPECTA_FAILURE = " Test Case '-[SKWelcomeViewControllerSpecSpec SKWelcomeViewController_When_a_user_opens_the_app_from_a_clean_installation_displays_the_welcome_screen]' started. \n/Users/vickeryj/Code/ipad-register/KIFTests/Specs/SKWelcomeViewControllerSpec.m:11: error: -[SKWelcomeViewControllerSpecSpec SKWelcomeViewController_When_a_user_opens_the_app_from_a_clean_installation_displays_the_welcome_screen] : The step timed out after 2.00 seconds: Failed to find accessibility element with the label \"The asimplest way to make smarter business decisions\""
53
+ SAMPLE_SWIFT_ENUM_FAILURE = "Test Case '-[App_Tests.ComparatorSpec a_comparator__when_matching_against_test1__returns_almost_equal_for_test2]' started. \n/Users/revolt/Development/App/Comparator/ComparatorSpec.swift:76: error: -[App_Tests.ComparatorSpec a_comparator__when_matching_against_test1__returns_almost_equal_for_test2] : expected to equal <ComparisonAlmostEqual>, got <ComparisonEqual>"
53
54
  SAMPLE_SWIFT_FATAL_ERROR_IN_TEST_MAKE_TESTS_RESTARTING = %Q(\
54
55
  Test Suite 'All tests' started at 2017-07-10 15:01:12.049
55
56
  Test Suite 'xcprettyFatalErrorTests.xctest' started at 2017-07-10 15:01:12.049
@@ -181,7 +181,7 @@ module XCPretty
181
181
  it "parses specta failing tests" do
182
182
  @formatter.should receive(:format_failing_test).with("SKWelcomeViewControllerSpecSpec",
183
183
  "SKWelcomeViewController_When_a_user_opens_the_app_from_a_clean_installation_displays_the_welcome_screen",
184
- "The step timed out after 2.00 seconds: Failed to find accessibility element with the label \"The asimplest way to make smarter business decisions\"",
184
+ "The step timed out after 2.00 seconds: Failed to find accessibility element with the label &quot;The asimplest way to make smarter business decisions&quot;",
185
185
  "/Users/vickeryj/Code/ipad-register/KIFTests/Specs/SKWelcomeViewControllerSpec.m:11")
186
186
  @parser.parse(SAMPLE_SPECTA_FAILURE)
187
187
  end
@@ -219,6 +219,14 @@ module XCPretty
219
219
  @parser.parse(SAMPLE_PENDING_KIWI_TEST)
220
220
  end
221
221
 
222
+ it "parses and escapes Swift enum names", focus: true do
223
+ @formatter.should receive(:format_failing_test).with('App_Tests.ComparatorSpec',
224
+ 'a_comparator__when_matching_against_test1__returns_almost_equal_for_test2',
225
+ 'expected to equal &lt;ComparisonAlmostEqual&gt;, got &lt;ComparisonEqual&gt;',
226
+ '/Users/revolt/Development/App/Comparator/ComparatorSpec.swift:76')
227
+ @parser.parse(SAMPLE_SWIFT_ENUM_FAILURE)
228
+ end
229
+
222
230
  it 'parses measuring tests' do
223
231
  @formatter.should receive(:format_measuring_test).with(
224
232
  'SecEncodeTransformTests.SecEncodeTransformTests',
data/xcpretty.gemspec CHANGED
@@ -26,9 +26,9 @@ Gem::Specification.new do |spec|
26
26
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_dependency 'rouge', '~> 2.0.7'
29
+ spec.add_dependency 'rouge', '~> 3.28.0'
30
30
 
31
- spec.add_development_dependency "bundler", "~> 1.3"
31
+ spec.add_development_dependency "bundler", "~> 2.1.4"
32
32
  spec.add_development_dependency "rake"
33
33
  spec.add_development_dependency "rubocop", "~> 0.34.0"
34
34
  spec.add_development_dependency "rspec", "2.99.0"
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcpretty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marin Usalj
8
8
  - Delisa Mason
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-08-16 00:00:00.000000000 Z
12
+ date: 2024-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rouge
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 2.0.7
20
+ version: 3.28.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 2.0.7
27
+ version: 3.28.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '1.3'
34
+ version: 2.1.4
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.3'
41
+ version: 2.1.4
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -183,7 +183,7 @@ homepage: https://github.com/supermarin/xcpretty
183
183
  licenses:
184
184
  - MIT
185
185
  metadata: {}
186
- post_install_message:
186
+ post_install_message:
187
187
  rdoc_options: []
188
188
  require_paths:
189
189
  - lib
@@ -198,9 +198,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  - !ruby/object:Gem::Version
199
199
  version: '0'
200
200
  requirements: []
201
- rubyforge_project:
202
- rubygems_version: 2.7.7
203
- signing_key:
201
+ rubygems_version: 3.4.19
202
+ signing_key:
204
203
  specification_version: 4
205
204
  summary: xcodebuild formatter done right
206
205
  test_files: