ashtonw-slather 1.8.2

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.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +45 -0
  4. data/.travis.yml +19 -0
  5. data/CHANGELOG.md +132 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +206 -0
  9. data/Rakefile +1 -0
  10. data/assets/highlight.pack.js +1 -0
  11. data/assets/list.min.js +1 -0
  12. data/assets/slather.css +316 -0
  13. data/bin/slather +117 -0
  14. data/docs/logo.jpg +0 -0
  15. data/lib/cocoapods_plugin.rb +10 -0
  16. data/lib/slather.rb +20 -0
  17. data/lib/slather/coverage_file.rb +195 -0
  18. data/lib/slather/coverage_service/cobertura_xml_output.rb +183 -0
  19. data/lib/slather/coverage_service/coveralls.rb +186 -0
  20. data/lib/slather/coverage_service/gutter_json_output.rb +50 -0
  21. data/lib/slather/coverage_service/hardcover.rb +61 -0
  22. data/lib/slather/coverage_service/html_output.rb +244 -0
  23. data/lib/slather/coverage_service/simple_output.rb +31 -0
  24. data/lib/slather/coveralls_coverage_file.rb +13 -0
  25. data/lib/slather/project.rb +132 -0
  26. data/lib/slather/version.rb +3 -0
  27. data/slather.gemspec +32 -0
  28. data/spec/fixtures/fixtures.xcodeproj/project.pbxproj +496 -0
  29. data/spec/fixtures/fixtures.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  30. data/spec/fixtures/fixtures.xcodeproj/xcshareddata/xcschemes/fixtures.xcscheme +69 -0
  31. data/spec/fixtures/fixtures/Supporting Files/fixtures-Prefix.pch +9 -0
  32. data/spec/fixtures/fixtures/fixtures.h +16 -0
  33. data/spec/fixtures/fixtures/fixtures.m +23 -0
  34. data/spec/fixtures/fixtures/fixtures_cpp.cpp +9 -0
  35. data/spec/fixtures/fixtures/fixtures_cpp.h +6 -0
  36. data/spec/fixtures/fixtures/fixtures_m.h +5 -0
  37. data/spec/fixtures/fixtures/fixtures_m.m +5 -0
  38. data/spec/fixtures/fixtures/fixtures_mm.h +5 -0
  39. data/spec/fixtures/fixtures/fixtures_mm.mm +5 -0
  40. data/spec/fixtures/fixtures/more_files/Branches.h +15 -0
  41. data/spec/fixtures/fixtures/more_files/Branches.m +45 -0
  42. data/spec/fixtures/fixtures/more_files/Empty.h +13 -0
  43. data/spec/fixtures/fixtures/more_files/Empty.m +13 -0
  44. data/spec/fixtures/fixtures/more_files/peekaview.h +13 -0
  45. data/spec/fixtures/fixtures/more_files/peekaview.m +31 -0
  46. data/spec/fixtures/fixturesTests/BranchesTests.m +38 -0
  47. data/spec/fixtures/fixturesTests/Supporting Files/en.lproj/InfoPlist.strings +2 -0
  48. data/spec/fixtures/fixturesTests/Supporting Files/fixturesTests-Info.plist +22 -0
  49. data/spec/fixtures/fixturesTests/fixturesTests.m +36 -0
  50. data/spec/fixtures/fixturesTests/peekaviewTests.m +34 -0
  51. data/spec/fixtures/fixtures_html/Branches.m.html +261 -0
  52. data/spec/fixtures/fixtures_html/BranchesTests.m.html +228 -0
  53. data/spec/fixtures/fixtures_html/Empty.m.html +30 -0
  54. data/spec/fixtures/fixtures_html/fixtures.m.html +151 -0
  55. data/spec/fixtures/fixtures_html/fixturesTests.m.html +216 -0
  56. data/spec/fixtures/fixtures_html/fixtures_cpp.cpp.html +30 -0
  57. data/spec/fixtures/fixtures_html/fixtures_m.m.html +30 -0
  58. data/spec/fixtures/fixtures_html/fixtures_mm.mm.html +30 -0
  59. data/spec/fixtures/fixtures_html/index.html +134 -0
  60. data/spec/fixtures/fixtures_html/peekaview.m.html +190 -0
  61. data/spec/fixtures/fixtures_html/peekaviewTests.m.html +206 -0
  62. data/spec/fixtures/gutter.json +1 -0
  63. data/spec/slather/cocoapods_plugin_spec.rb +21 -0
  64. data/spec/slather/coverage_file_spec.rb +337 -0
  65. data/spec/slather/coverage_service/cobertura_xml_spec.rb +49 -0
  66. data/spec/slather/coverage_service/coveralls_spec.rb +122 -0
  67. data/spec/slather/coverage_service/gutter_json_spec.rb +28 -0
  68. data/spec/slather/coverage_service/hardcover_spec.rb +87 -0
  69. data/spec/slather/coverage_service/html_output_spec.rb +179 -0
  70. data/spec/slather/coverage_service/simple_output_spec.rb +35 -0
  71. data/spec/slather/fixtures.gcno +0 -0
  72. data/spec/slather/project_spec.rb +288 -0
  73. data/spec/spec_helper.rb +27 -0
  74. metadata +319 -0
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "self:fixtures.xcodeproj">
6
+ </FileRef>
7
+ </Workspace>
@@ -0,0 +1,69 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "0600"
4
+ version = "1.3">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <BuildActionEntries>
9
+ <BuildActionEntry
10
+ buildForTesting = "YES"
11
+ buildForRunning = "YES"
12
+ buildForProfiling = "YES"
13
+ buildForArchiving = "YES"
14
+ buildForAnalyzing = "YES">
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "8C9A202C195965F10013B6B3"
18
+ BuildableName = "libfixtures.a"
19
+ BlueprintName = "fixtures"
20
+ ReferencedContainer = "container:fixtures.xcodeproj">
21
+ </BuildableReference>
22
+ </BuildActionEntry>
23
+ </BuildActionEntries>
24
+ </BuildAction>
25
+ <TestAction
26
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
27
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
28
+ shouldUseLaunchSchemeArgsEnv = "YES"
29
+ buildConfiguration = "Debug">
30
+ <Testables>
31
+ <TestableReference
32
+ skipped = "NO">
33
+ <BuildableReference
34
+ BuildableIdentifier = "primary"
35
+ BlueprintIdentifier = "8C9A203F195965F10013B6B3"
36
+ BuildableName = "fixturesTests.xctest"
37
+ BlueprintName = "fixturesTests"
38
+ ReferencedContainer = "container:fixtures.xcodeproj">
39
+ </BuildableReference>
40
+ </TestableReference>
41
+ </Testables>
42
+ </TestAction>
43
+ <LaunchAction
44
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
45
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
46
+ launchStyle = "0"
47
+ useCustomWorkingDirectory = "NO"
48
+ buildConfiguration = "Debug"
49
+ ignoresPersistentStateOnLaunch = "NO"
50
+ debugDocumentVersioning = "YES"
51
+ allowLocationSimulation = "YES">
52
+ <AdditionalOptions>
53
+ </AdditionalOptions>
54
+ </LaunchAction>
55
+ <ProfileAction
56
+ shouldUseLaunchSchemeArgsEnv = "YES"
57
+ savedToolIdentifier = ""
58
+ useCustomWorkingDirectory = "NO"
59
+ buildConfiguration = "Release"
60
+ debugDocumentVersioning = "YES">
61
+ </ProfileAction>
62
+ <AnalyzeAction
63
+ buildConfiguration = "Debug">
64
+ </AnalyzeAction>
65
+ <ArchiveAction
66
+ buildConfiguration = "Release"
67
+ revealArchiveInOrganizer = "YES">
68
+ </ArchiveAction>
69
+ </Scheme>
@@ -0,0 +1,9 @@
1
+ //
2
+ // Prefix header
3
+ //
4
+ // The contents of this file are implicitly included at the beginning of every source file.
5
+ //
6
+
7
+ #ifdef __OBJC__
8
+ #import <Cocoa/Cocoa.h>
9
+ #endif
@@ -0,0 +1,16 @@
1
+ //
2
+ // fixtures.h
3
+ // fixtures
4
+ //
5
+ // Created by Mark Larsen on 6/24/14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ @interface fixtures : NSObject
12
+
13
+ - (void)testedMethod;
14
+ - (void)untestedMethod;
15
+
16
+ @end
@@ -0,0 +1,23 @@
1
+ //
2
+ // fixtures.m
3
+ // fixtures
4
+ //
5
+ // Created by Mark Larsen on 6/24/14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import "fixtures.h"
10
+
11
+ @implementation fixtures
12
+
13
+ - (void)testedMethod
14
+ {
15
+ NSLog(@"tested");
16
+ }
17
+
18
+ - (void)untestedMethod
19
+ {
20
+ NSLog(@"untested");
21
+ }
22
+
23
+ @end
@@ -0,0 +1,9 @@
1
+ //
2
+ // fixtures_cpp.cpp
3
+ // fixtures
4
+ //
5
+ // Created by Larsen, Mark on 4/3/15.
6
+ // Copyright (c) 2015 marklarr. All rights reserved.
7
+ //
8
+
9
+ #include "fixtures_cpp.h"
@@ -0,0 +1,6 @@
1
+ #ifndef __fixtures__fixtures_cpp__
2
+ #define __fixtures__fixtures_cpp__
3
+
4
+ #include <stdio.h>
5
+
6
+ #endif /* defined(__fixtures__fixtures_cpp__) */
@@ -0,0 +1,5 @@
1
+ #import <Foundation/Foundation.h>
2
+
3
+ @interface fixtures_m : NSObject
4
+
5
+ @end
@@ -0,0 +1,5 @@
1
+ #import "fixtures_m.h"
2
+
3
+ @implementation fixtures_m
4
+
5
+ @end
@@ -0,0 +1,5 @@
1
+ #import <Foundation/Foundation.h>
2
+
3
+ @interface fixtures_mm : NSObject
4
+
5
+ @end
@@ -0,0 +1,5 @@
1
+ #import "fixtures_mm.h"
2
+
3
+ @implementation fixtures_mm
4
+
5
+ @end
@@ -0,0 +1,15 @@
1
+ //
2
+ // Branches.h
3
+ // fixtures
4
+ //
5
+ // Created by Julian Krumow on 11.10.14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ @interface Branches : NSObject
12
+
13
+ - (void)branches:(BOOL)goIf skipBranches:(BOOL)skipBranches;
14
+
15
+ @end
@@ -0,0 +1,45 @@
1
+ //
2
+ // Branches.m
3
+ // fixtures
4
+ //
5
+ // Created by Julian Krumow on 11.10.14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import "Branches.h"
10
+
11
+ @implementation Branches
12
+
13
+ - (void)branches:(BOOL)goIf skipBranches:(BOOL)skipBranches
14
+ {
15
+ if (goIf) {
16
+ NSLog(@"foo.");
17
+
18
+ if (!skipBranches) {
19
+ NSLog(@"not skipped.");
20
+ }
21
+ } else {
22
+ NSLog(@"bar.");
23
+ }
24
+
25
+ int i = 5;
26
+ if (i == 5) {
27
+ return;
28
+ }
29
+ switch (i) {
30
+ case 0:
31
+ NSLog(@"0");
32
+ break;
33
+
34
+ case 1:
35
+ NSLog(@"1");
36
+ break;
37
+ case 5:
38
+ NSLog(@"5");
39
+ break;
40
+ default:
41
+ break;
42
+ }
43
+ }
44
+
45
+ @end
@@ -0,0 +1,13 @@
1
+ //
2
+ // Empty.h
3
+ // fixtures
4
+ //
5
+ // Created by Julian Krumow on 27.10.14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ @interface Empty : NSObject
12
+
13
+ @end
@@ -0,0 +1,13 @@
1
+ //
2
+ // Empty.m
3
+ // fixtures
4
+ //
5
+ // Created by Julian Krumow on 27.10.14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import "Empty.h"
10
+
11
+ @implementation Empty
12
+
13
+ @end
@@ -0,0 +1,13 @@
1
+ //
2
+ // peekaview.h
3
+ // fixtures
4
+ //
5
+ // Created by Mark Larsen on 6/25/14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import <AppKit/AppKit.h>
10
+
11
+ @interface peekaview : NSView
12
+
13
+ @end
@@ -0,0 +1,31 @@
1
+ //
2
+ // peekaview.m
3
+ // fixtures
4
+ //
5
+ // Created by Mark Larsen on 6/25/14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import "peekaview.h"
10
+
11
+ @implementation peekaview
12
+
13
+ - (id)initWithFrame:(CGRect)frame
14
+ {
15
+ self = [super initWithFrame:frame];
16
+ if (self) {
17
+ // Initialization code
18
+ }
19
+ return self;
20
+ }
21
+
22
+ /*
23
+ // Only override drawRect: if you perform custom drawing.
24
+ // An empty implementation adversely affects performance during animation.
25
+ - (void)drawRect:(CGRect)rect
26
+ {
27
+ // Drawing code
28
+ }
29
+ */
30
+
31
+ @end
@@ -0,0 +1,38 @@
1
+ //
2
+ // BranchesTests.m
3
+ // fixtures
4
+ //
5
+ // Created by Julian Krumow on 11.10.14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import <XCTest/XCTest.h>
10
+ #import "Branches.h"
11
+
12
+ @interface BranchesTests : XCTestCase
13
+
14
+ @end
15
+
16
+ @implementation BranchesTests
17
+
18
+ - (void)setUp {
19
+ [super setUp];
20
+ // Put setup code here. This method is called before the invocation of each test method in the class.
21
+ }
22
+
23
+ - (void)tearDown {
24
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
25
+ [super tearDown];
26
+ }
27
+
28
+ - (void)testBranchesNoBranches {
29
+ Branches *branches = [[Branches alloc] init];
30
+ [branches branches:NO skipBranches:NO];
31
+ }
32
+
33
+ - (void)testBranchesFirstBranchAndSkip {
34
+ Branches *branches = [[Branches alloc] init];
35
+ [branches branches:YES skipBranches:YES];
36
+ }
37
+
38
+ @end
@@ -0,0 +1,2 @@
1
+ /* Localized versions of Info.plist keys */
2
+
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>${EXECUTABLE_NAME}</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>marklarr.${PRODUCT_NAME:rfc1034identifier}</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundlePackageType</key>
14
+ <string>BNDL</string>
15
+ <key>CFBundleShortVersionString</key>
16
+ <string>1.0</string>
17
+ <key>CFBundleSignature</key>
18
+ <string>????</string>
19
+ <key>CFBundleVersion</key>
20
+ <string>1</string>
21
+ </dict>
22
+ </plist>
@@ -0,0 +1,36 @@
1
+ //
2
+ // fixturesTests.m
3
+ // fixturesTests
4
+ //
5
+ // Created by Mark Larsen on 6/24/14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import <XCTest/XCTest.h>
10
+ #import "fixtures.h"
11
+
12
+ @interface fixturesTests : XCTestCase
13
+
14
+ @end
15
+
16
+ @implementation fixturesTests
17
+
18
+ - (void)setUp
19
+ {
20
+ [super setUp];
21
+ // Put setup code here. This method is called before the invocation of each test method in the class.
22
+ }
23
+
24
+ - (void)tearDown
25
+ {
26
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
27
+ [super tearDown];
28
+ }
29
+
30
+ - (void)testExample
31
+ {
32
+ fixtures *f = [[fixtures alloc] init];
33
+ [f testedMethod];
34
+ }
35
+
36
+ @end
@@ -0,0 +1,34 @@
1
+ //
2
+ // peekaviewTests.m
3
+ // fixtures
4
+ //
5
+ // Created by Mark Larsen on 6/25/14.
6
+ // Copyright (c) 2014 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import <XCTest/XCTest.h>
10
+
11
+ @interface peekaviewTests : XCTestCase
12
+
13
+ @end
14
+
15
+ @implementation peekaviewTests
16
+
17
+ - (void)setUp
18
+ {
19
+ [super setUp];
20
+ // Put setup code here. This method is called before the invocation of each test method in the class.
21
+ }
22
+
23
+ - (void)tearDown
24
+ {
25
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
26
+ [super tearDown];
27
+ }
28
+
29
+ - (void)testExample
30
+ {
31
+ XCTAssert(YES, @"woot");
32
+ }
33
+
34
+ @end