jazzy 0.15.4 → 0.15.5
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 +4 -4
- data/.github/workflows/Tests.yml +5 -5
- data/.rubocop.yml +49 -1
- data/CHANGELOG.md +19 -0
- data/Gemfile.lock +72 -72
- data/README.md +1 -1
- data/bin/sourcekitten +0 -0
- data/jazzy.gemspec +2 -2
- data/lib/jazzy/config.rb +5 -9
- data/lib/jazzy/doc_builder.rb +4 -7
- data/lib/jazzy/gem_version.rb +1 -1
- data/lib/jazzy/jazzy_markdown.rb +1 -2
- data/lib/jazzy/podspec_documenter.rb +3 -6
- data/lib/jazzy/search_builder.rb +28 -0
- data/lib/jazzy/source_declaration/type.rb +1 -2
- data/lib/jazzy/source_declaration.rb +1 -2
- data/lib/jazzy/sourcekitten.rb +6 -12
- data/lib/jazzy/symbol_graph/graph.rb +1 -2
- data/lib/jazzy/symbol_graph/symbol.rb +1 -2
- data/spec/integration_spec.rb +40 -39
- data/spec/realm-build.sh +2 -0
- metadata +13 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6512e08b5febcc111ae5af8a632ef2231de5fe4124b7f82d5644f439ff7db779
|
|
4
|
+
data.tar.gz: 74bf03412186f7638600bcb38b0fe3ccd7ed5237998273150573786f0414599b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcc7c2761c0976374961ad38c834fa14ac75146f4d05d5d6be5d61c03714c4107bcfd93543235f5d4a4438819fa58f94a6bea4eca68df44904c08db958e919b3
|
|
7
|
+
data.tar.gz: c059374937484bbb302e71fb83db2fd83892ccc55ea6c354282fc97c29d68520a3e4c32bef52fdc99d5a010c278fbb638de8127383336e54b965dc2e383a8d4f
|
data/.github/workflows/Tests.yml
CHANGED
|
@@ -10,7 +10,7 @@ jobs:
|
|
|
10
10
|
danger_and_rubocop:
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
|
-
- uses: actions/checkout@
|
|
13
|
+
- uses: actions/checkout@v7
|
|
14
14
|
- uses: ruby/setup-ruby@v1
|
|
15
15
|
with:
|
|
16
16
|
ruby-version: 3.3
|
|
@@ -25,25 +25,25 @@ jobs:
|
|
|
25
25
|
bundle exec danger --verbose
|
|
26
26
|
|
|
27
27
|
spec:
|
|
28
|
-
runs-on:
|
|
28
|
+
runs-on: xcode-27
|
|
29
29
|
continue-on-error: true
|
|
30
30
|
strategy:
|
|
31
31
|
matrix:
|
|
32
32
|
spec: ["objc_spec", "swift_spec", "cocoapods_spec"]
|
|
33
33
|
steps:
|
|
34
|
-
- uses: actions/checkout@
|
|
34
|
+
- uses: actions/checkout@v7
|
|
35
35
|
with:
|
|
36
36
|
submodules: recursive
|
|
37
37
|
persist-credentials: false
|
|
38
38
|
- uses: maxim-lobanov/setup-xcode@v1
|
|
39
39
|
with:
|
|
40
|
-
xcode-version: '
|
|
40
|
+
xcode-version: '27.0.0'
|
|
41
41
|
- uses: ruby/setup-ruby@v1
|
|
42
42
|
with:
|
|
43
43
|
ruby-version: 3.3
|
|
44
44
|
bundler-cache: true
|
|
45
45
|
- name: Cache cocoapods
|
|
46
|
-
uses: actions/cache@
|
|
46
|
+
uses: actions/cache@v5
|
|
47
47
|
env:
|
|
48
48
|
cache-name: cocoapods
|
|
49
49
|
with:
|
data/.rubocop.yml
CHANGED
|
@@ -8,7 +8,7 @@ AllCops:
|
|
|
8
8
|
SuggestExtensions: false
|
|
9
9
|
TargetRubyVersion: 2.6
|
|
10
10
|
|
|
11
|
-
#- Pending Cops as of 1.
|
|
11
|
+
#- Pending Cops as of 1.91.0 ---------------------------------------------#
|
|
12
12
|
|
|
13
13
|
Gemspec/AddRuntimeDependency: # new in 1.65
|
|
14
14
|
Enabled: true
|
|
@@ -32,6 +32,8 @@ Lint/AmbiguousAssignment: # (new in 1.7)
|
|
|
32
32
|
Enabled: true
|
|
33
33
|
Lint/AmbiguousRange: # (new in 1.19)
|
|
34
34
|
Enabled: true
|
|
35
|
+
Lint/ArgumentMismatch: # new in 1.90
|
|
36
|
+
Enabled: true
|
|
35
37
|
Lint/ArrayLiteralInRegexp: # new in 1.71
|
|
36
38
|
Enabled: true
|
|
37
39
|
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
|
@@ -40,8 +42,12 @@ Lint/ConstantReassignment: # new in 1.70
|
|
|
40
42
|
Enabled: true
|
|
41
43
|
Lint/CopDirectiveSyntax: # new in 1.72
|
|
42
44
|
Enabled: true
|
|
45
|
+
Lint/DataDefineOverride: # new in 1.85
|
|
46
|
+
Enabled: true
|
|
43
47
|
Lint/DeprecatedConstants: # (new in 1.8)
|
|
44
48
|
Enabled: true
|
|
49
|
+
Lint/DeprecatedReference: # new in 1.89
|
|
50
|
+
Enabled: true
|
|
45
51
|
Lint/DuplicateBranch: # (new in 1.3)
|
|
46
52
|
Enabled: true
|
|
47
53
|
Lint/DuplicateMagicComment: # new in 1.37
|
|
@@ -68,8 +74,12 @@ Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
|
|
|
68
74
|
Enabled: true
|
|
69
75
|
Lint/LiteralAssignmentInCondition: # new in 1.58
|
|
70
76
|
Enabled: true
|
|
77
|
+
Lint/MisplacedMagicComment: # new in 1.91
|
|
78
|
+
Enabled: true
|
|
71
79
|
Lint/MixedCaseRange: # new in 1.53
|
|
72
80
|
Enabled: true
|
|
81
|
+
Lint/NameTypo: # new in 1.89
|
|
82
|
+
Enabled: true
|
|
73
83
|
Lint/NonAtomicFileOperation: # new in 1.31
|
|
74
84
|
Enabled: true
|
|
75
85
|
Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
|
|
@@ -94,6 +104,8 @@ Lint/RequireRelativeSelfPath: # new in 1.22
|
|
|
94
104
|
Enabled: true
|
|
95
105
|
Lint/SharedMutableDefault: # new in 1.70
|
|
96
106
|
Enabled: true
|
|
107
|
+
Lint/SuperArgumentMismatch: # new in 1.90
|
|
108
|
+
Enabled: true
|
|
97
109
|
Lint/SuppressedExceptionInNumberConversion: # new in 1.72
|
|
98
110
|
Enabled: true
|
|
99
111
|
Lint/SymbolConversion: # (new in 1.9)
|
|
@@ -108,6 +120,8 @@ Lint/UnexpectedBlockArity: # (new in 1.5)
|
|
|
108
120
|
Enabled: true
|
|
109
121
|
Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
|
|
110
122
|
Enabled: true
|
|
123
|
+
Lint/UnreachablePatternBranch: # new in 1.85
|
|
124
|
+
Enabled: true
|
|
111
125
|
Lint/UselessConstantScoping: # new in 1.72
|
|
112
126
|
Enabled: true
|
|
113
127
|
Lint/UselessDefaultValueArgument: # new in 1.76
|
|
@@ -160,10 +174,14 @@ Style/DataInheritance: # new in 1.49
|
|
|
160
174
|
Enabled: true
|
|
161
175
|
Style/DigChain: # new in 1.69
|
|
162
176
|
Enabled: true
|
|
177
|
+
Style/DirectiveScope: # new in 1.90
|
|
178
|
+
Enabled: true
|
|
163
179
|
Style/DirEmpty: # new in 1.48
|
|
164
180
|
Enabled: true
|
|
165
181
|
Style/DocumentDynamicEvalDefinition: # (new in 1.1)
|
|
166
182
|
Enabled: true
|
|
183
|
+
Style/EmptyClassDefinition: # new in 1.84
|
|
184
|
+
Enabled: true
|
|
167
185
|
Style/EmptyHeredoc: # new in 1.32
|
|
168
186
|
Enabled: true
|
|
169
187
|
Style/EmptyStringInsideInterpolation: # new in 1.76
|
|
@@ -180,6 +198,8 @@ Style/FileEmpty: # new in 1.48
|
|
|
180
198
|
Enabled: true
|
|
181
199
|
Style/FileNull: # new in 1.69
|
|
182
200
|
Enabled: true
|
|
201
|
+
Style/FileOpen: # new in 1.85
|
|
202
|
+
Enabled: true
|
|
183
203
|
Style/FileRead: # new in 1.24
|
|
184
204
|
Enabled: true
|
|
185
205
|
Style/FileTouch: # new in 1.69
|
|
@@ -210,16 +230,22 @@ Style/MapCompactWithConditionalBlock: # new in 1.30
|
|
|
210
230
|
Enabled: true
|
|
211
231
|
Style/MapIntoArray: # new in 1.63
|
|
212
232
|
Enabled: true
|
|
233
|
+
Style/MapJoin: # new in 1.85
|
|
234
|
+
Enabled: true
|
|
213
235
|
Style/MapToHash: # new in 1.24
|
|
214
236
|
Enabled: true
|
|
215
237
|
Style/MapToSet: # new in 1.42
|
|
216
238
|
Enabled: true
|
|
217
239
|
Style/MinMaxComparison: # new in 1.42
|
|
218
240
|
Enabled: true
|
|
241
|
+
Style/ModuleMemberExistenceCheck: # new in 1.82
|
|
242
|
+
Enabled: true
|
|
219
243
|
Style/MultilineInPatternThen: # (new in 1.16)
|
|
220
244
|
Enabled: true
|
|
221
245
|
Style/NegatedIfElseCondition: # (new in 1.2)
|
|
222
246
|
Enabled: true
|
|
247
|
+
Style/NegativeArrayIndex: # new in 1.84
|
|
248
|
+
Enabled: true
|
|
223
249
|
Style/NestedFileDirname: # new in 1.26
|
|
224
250
|
Enabled: true
|
|
225
251
|
Style/NilLambda: # (new in 1.3)
|
|
@@ -234,8 +260,14 @@ Style/OpenStructUse: # new in 1.23
|
|
|
234
260
|
Enabled: true
|
|
235
261
|
Style/OperatorMethodCall: # new in 1.37
|
|
236
262
|
Enabled: true
|
|
263
|
+
Style/PartitionInsteadOfDoubleSelect: # new in 1.85
|
|
264
|
+
Enabled: true
|
|
265
|
+
Style/PredicateWithKind: # new in 1.85
|
|
266
|
+
Enabled: true
|
|
237
267
|
Style/QuotedSymbols: # (new in 1.16)
|
|
238
268
|
Enabled: true
|
|
269
|
+
Style/ReduceToHash: # new in 1.85
|
|
270
|
+
Enabled: true
|
|
239
271
|
Style/RedundantArgument: # (new in 1.4)
|
|
240
272
|
Enabled: true
|
|
241
273
|
Style/RedundantArrayConstructor: # new in 1.52
|
|
@@ -262,6 +294,8 @@ Style/RedundantInterpolationUnfreeze: # new in 1.66
|
|
|
262
294
|
Enabled: true
|
|
263
295
|
Style/RedundantLineContinuation: # new in 1.49
|
|
264
296
|
Enabled: true
|
|
297
|
+
Style/RedundantMinMaxBy: # new in 1.85
|
|
298
|
+
Enabled: true
|
|
265
299
|
Style/RedundantRegexpArgument: # new in 1.53
|
|
266
300
|
Enabled: true
|
|
267
301
|
Style/RedundantRegexpConstructor: # new in 1.52
|
|
@@ -272,8 +306,14 @@ Style/RedundantStringEscape: # new in 1.37
|
|
|
272
306
|
Enabled: true
|
|
273
307
|
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
|
274
308
|
Enabled: true
|
|
309
|
+
Style/ReverseFind: # new in 1.84
|
|
310
|
+
Enabled: true
|
|
275
311
|
Style/SafeNavigationChainLength: # new in 1.68
|
|
276
312
|
Enabled: true
|
|
313
|
+
Style/SelectByKind: # new in 1.85
|
|
314
|
+
Enabled: true
|
|
315
|
+
Style/SelectByRange: # new in 1.85
|
|
316
|
+
Enabled: true
|
|
277
317
|
Style/SelectByRegexp: # new in 1.22
|
|
278
318
|
Enabled: true
|
|
279
319
|
Style/SendWithLiteralMethodName: # new in 1.64
|
|
@@ -288,6 +328,10 @@ Style/SuperWithArgsParentheses: # new in 1.58
|
|
|
288
328
|
Enabled: true
|
|
289
329
|
Style/SwapValues: # (new in 1.1)
|
|
290
330
|
Enabled: true
|
|
331
|
+
Style/TallyMethod: # new in 1.85
|
|
332
|
+
Enabled: true
|
|
333
|
+
Style/TimeNow: # new in 1.90
|
|
334
|
+
Enabled: true
|
|
291
335
|
Style/YAMLFileRead: # new in 1.53
|
|
292
336
|
Enabled: true
|
|
293
337
|
|
|
@@ -388,6 +432,10 @@ Style/RegexpLiteral:
|
|
|
388
432
|
Style/AccessorGrouping:
|
|
389
433
|
Enabled: false
|
|
390
434
|
|
|
435
|
+
# Too restrictive
|
|
436
|
+
Style/OneClassPerFile:
|
|
437
|
+
Enabled: false
|
|
438
|
+
|
|
391
439
|
# Avoid mandatory wide indentation
|
|
392
440
|
Layout/MultilineMethodCallIndentation:
|
|
393
441
|
EnforcedStyle: indented
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 0.15.5
|
|
2
|
+
|
|
3
|
+
##### Breaking
|
|
4
|
+
|
|
5
|
+
* None.
|
|
6
|
+
|
|
7
|
+
##### Enhancements
|
|
8
|
+
|
|
9
|
+
* Generate docs using SwiftPM 6.4
|
|
10
|
+
[John Fairhurst](https://github.com/johnfairh)
|
|
11
|
+
|
|
12
|
+
* Support mustache 1.1.3
|
|
13
|
+
[John Fairhurst](https://github.com/johnfairh)
|
|
14
|
+
[#1435](https://github.com/realm/jazzy/issues/1435)
|
|
15
|
+
|
|
16
|
+
##### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* None.
|
|
19
|
+
|
|
1
20
|
## 0.15.4
|
|
2
21
|
|
|
3
22
|
##### Breaking
|
data/Gemfile.lock
CHANGED
|
@@ -9,7 +9,7 @@ GIT
|
|
|
9
9
|
PATH
|
|
10
10
|
remote: .
|
|
11
11
|
specs:
|
|
12
|
-
jazzy (0.15.
|
|
12
|
+
jazzy (0.15.5)
|
|
13
13
|
activesupport (>= 5.0, < 8)
|
|
14
14
|
cocoapods (~> 1.5)
|
|
15
15
|
logger
|
|
@@ -19,17 +19,14 @@ PATH
|
|
|
19
19
|
rexml (>= 3.2.7, < 4.0)
|
|
20
20
|
rouge (>= 2.0.6, < 5.0)
|
|
21
21
|
sassc (~> 2.1)
|
|
22
|
-
sqlite3 (
|
|
22
|
+
sqlite3 (>= 1.3, < 3.0)
|
|
23
23
|
xcinvoke (~> 0.3.0)
|
|
24
24
|
|
|
25
25
|
GEM
|
|
26
26
|
remote: https://rubygems.org/
|
|
27
27
|
specs:
|
|
28
|
-
CFPropertyList (3.0.
|
|
29
|
-
|
|
30
|
-
nkf
|
|
31
|
-
rexml
|
|
32
|
-
activesupport (7.2.2.2)
|
|
28
|
+
CFPropertyList (3.0.8)
|
|
29
|
+
activesupport (7.2.3.2)
|
|
33
30
|
base64
|
|
34
31
|
benchmark (>= 0.3)
|
|
35
32
|
bigdecimal
|
|
@@ -38,11 +35,11 @@ GEM
|
|
|
38
35
|
drb
|
|
39
36
|
i18n (>= 1.6, < 2)
|
|
40
37
|
logger (>= 1.4.2)
|
|
41
|
-
minitest (>= 5.1)
|
|
38
|
+
minitest (>= 5.1, < 6)
|
|
42
39
|
securerandom (>= 0.3)
|
|
43
40
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
44
|
-
addressable (2.
|
|
45
|
-
public_suffix (>= 2.0.2, <
|
|
41
|
+
addressable (2.9.0)
|
|
42
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
46
43
|
algoliasearch (1.27.5)
|
|
47
44
|
httpclient (~> 2.8, >= 2.8.3)
|
|
48
45
|
json (>= 1.5.1)
|
|
@@ -50,17 +47,17 @@ GEM
|
|
|
50
47
|
atomos (0.1.3)
|
|
51
48
|
bacon (1.2.0)
|
|
52
49
|
base64 (0.3.0)
|
|
53
|
-
benchmark (0.
|
|
54
|
-
bigdecimal (
|
|
50
|
+
benchmark (0.5.0)
|
|
51
|
+
bigdecimal (4.1.3)
|
|
55
52
|
claide (1.1.0)
|
|
56
53
|
claide-plugins (0.9.2)
|
|
57
54
|
cork
|
|
58
55
|
nap
|
|
59
56
|
open4 (~> 1.3)
|
|
60
|
-
cocoapods (1.
|
|
57
|
+
cocoapods (1.17.0)
|
|
61
58
|
addressable (~> 2.8)
|
|
62
59
|
claide (>= 1.0.2, < 2.0)
|
|
63
|
-
cocoapods-core (= 1.
|
|
60
|
+
cocoapods-core (= 1.17.0)
|
|
64
61
|
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
|
65
62
|
cocoapods-downloader (>= 2.1, < 3.0)
|
|
66
63
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
|
@@ -68,14 +65,13 @@ GEM
|
|
|
68
65
|
cocoapods-trunk (>= 1.6.0, < 2.0)
|
|
69
66
|
cocoapods-try (>= 1.1.0, < 2.0)
|
|
70
67
|
colored2 (~> 3.1)
|
|
71
|
-
escape (~> 0.0.4)
|
|
72
68
|
fourflusher (>= 2.3.0, < 3.0)
|
|
73
69
|
gh_inspector (~> 1.0)
|
|
74
70
|
molinillo (~> 0.8.0)
|
|
75
71
|
nap (~> 1.0)
|
|
76
|
-
ruby-macho (
|
|
77
|
-
xcodeproj (>= 1.
|
|
78
|
-
cocoapods-core (1.
|
|
72
|
+
ruby-macho (~> 4.1.0)
|
|
73
|
+
xcodeproj (>= 1.28.1, < 2.0)
|
|
74
|
+
cocoapods-core (1.17.0)
|
|
79
75
|
activesupport (>= 5.0, < 8)
|
|
80
76
|
addressable (~> 2.8)
|
|
81
77
|
algoliasearch (~> 1.0)
|
|
@@ -95,14 +91,14 @@ GEM
|
|
|
95
91
|
netrc (~> 0.11)
|
|
96
92
|
cocoapods-try (1.2.0)
|
|
97
93
|
colored2 (3.1.2)
|
|
98
|
-
concurrent-ruby (1.3.
|
|
99
|
-
connection_pool (
|
|
94
|
+
concurrent-ruby (1.3.8)
|
|
95
|
+
connection_pool (3.0.2)
|
|
100
96
|
cork (0.3.0)
|
|
101
97
|
colored2 (~> 3.1)
|
|
102
|
-
crack (1.0.
|
|
98
|
+
crack (1.0.1)
|
|
103
99
|
bigdecimal
|
|
104
100
|
rexml
|
|
105
|
-
danger (9.
|
|
101
|
+
danger (9.6.1)
|
|
106
102
|
base64 (~> 0.2)
|
|
107
103
|
claide (~> 1.0)
|
|
108
104
|
claide-plugins (>= 0.9.2)
|
|
@@ -110,7 +106,7 @@ GEM
|
|
|
110
106
|
cork (~> 0.1)
|
|
111
107
|
faraday (>= 0.9.0, < 3.0)
|
|
112
108
|
faraday-http-cache (~> 2.0)
|
|
113
|
-
git (>= 1.13
|
|
109
|
+
git (>= 1.13)
|
|
114
110
|
kramdown (>= 2.5.1, < 3.0)
|
|
115
111
|
kramdown-parser-gfm (~> 1.0)
|
|
116
112
|
octokit (>= 4.0)
|
|
@@ -118,124 +114,128 @@ GEM
|
|
|
118
114
|
terminal-table (>= 1, < 5)
|
|
119
115
|
diffy (3.4.4)
|
|
120
116
|
drb (2.2.3)
|
|
121
|
-
|
|
122
|
-
ethon (0.15.0)
|
|
117
|
+
ethon (0.18.0)
|
|
123
118
|
ffi (>= 1.15.0)
|
|
124
|
-
|
|
119
|
+
logger
|
|
120
|
+
faraday (2.14.4)
|
|
125
121
|
faraday-net_http (>= 2.0, < 3.5)
|
|
126
122
|
json
|
|
127
123
|
logger
|
|
128
|
-
faraday-http-cache (2.
|
|
124
|
+
faraday-http-cache (2.8.0)
|
|
129
125
|
faraday (>= 0.8)
|
|
130
|
-
faraday-net_http (3.4.
|
|
131
|
-
net-http (
|
|
132
|
-
ffi (1.17.
|
|
126
|
+
faraday-net_http (3.4.4)
|
|
127
|
+
net-http (~> 0.5)
|
|
128
|
+
ffi (1.17.4)
|
|
133
129
|
fourflusher (2.3.1)
|
|
134
130
|
fuzzy_match (2.0.4)
|
|
135
131
|
gh_inspector (1.1.3)
|
|
136
|
-
git (
|
|
132
|
+
git (5.6.0)
|
|
137
133
|
activesupport (>= 5.0)
|
|
138
134
|
addressable (~> 2.8)
|
|
139
|
-
process_executer (~>
|
|
140
|
-
rchardet (~> 1.
|
|
135
|
+
process_executer (~> 4.1)
|
|
136
|
+
rchardet (~> 1.9)
|
|
141
137
|
hashdiff (1.2.1)
|
|
142
138
|
httpclient (2.9.0)
|
|
143
139
|
mutex_m
|
|
144
|
-
i18n (1.
|
|
140
|
+
i18n (1.15.2)
|
|
145
141
|
concurrent-ruby (~> 1.0)
|
|
146
|
-
json (
|
|
147
|
-
kramdown (2.5.
|
|
148
|
-
rexml (>= 3.
|
|
142
|
+
json (3.0.2)
|
|
143
|
+
kramdown (2.5.2)
|
|
144
|
+
rexml (>= 3.4.4)
|
|
149
145
|
kramdown-parser-gfm (1.1.0)
|
|
150
146
|
kramdown (~> 2.0)
|
|
151
|
-
language_server-protocol (3.17.0.
|
|
147
|
+
language_server-protocol (3.17.0.6)
|
|
152
148
|
liferaft (0.0.6)
|
|
153
149
|
lint_roller (1.1.0)
|
|
154
150
|
logger (1.7.0)
|
|
155
151
|
mini_portile2 (2.8.9)
|
|
156
|
-
minitest (5.
|
|
157
|
-
mocha (
|
|
152
|
+
minitest (5.27.0)
|
|
153
|
+
mocha (3.1.0)
|
|
158
154
|
ruby2_keywords (>= 0.0.5)
|
|
159
155
|
mocha-on-bacon (0.2.3)
|
|
160
156
|
mocha (>= 0.13.0)
|
|
161
157
|
molinillo (0.8.0)
|
|
162
|
-
mustache (1.1.
|
|
158
|
+
mustache (1.1.3)
|
|
163
159
|
mutex_m (0.3.0)
|
|
164
160
|
nanaimo (0.4.0)
|
|
165
161
|
nap (1.1.0)
|
|
166
|
-
net-http (0.
|
|
167
|
-
uri
|
|
162
|
+
net-http (0.9.1)
|
|
163
|
+
uri (>= 0.11.1)
|
|
168
164
|
netrc (0.11.0)
|
|
169
|
-
nkf (0.
|
|
165
|
+
nkf (0.3.0)
|
|
170
166
|
octokit (10.0.0)
|
|
171
167
|
faraday (>= 1, < 3)
|
|
172
168
|
sawyer (~> 0.9)
|
|
173
169
|
open4 (1.3.4)
|
|
174
|
-
parallel (
|
|
175
|
-
parser (3.3.
|
|
170
|
+
parallel (2.2.0)
|
|
171
|
+
parser (3.3.12.0)
|
|
176
172
|
ast (~> 2.4.1)
|
|
177
173
|
racc
|
|
178
174
|
prettybacon (0.0.2)
|
|
179
175
|
bacon (~> 1.2)
|
|
180
|
-
prism (1.
|
|
181
|
-
process_executer (1.
|
|
182
|
-
|
|
176
|
+
prism (1.9.0)
|
|
177
|
+
process_executer (4.1.1)
|
|
178
|
+
track_open_instances (~> 0.1)
|
|
179
|
+
pstore (0.2.1)
|
|
183
180
|
public_suffix (4.0.7)
|
|
184
181
|
racc (1.8.1)
|
|
185
182
|
rainbow (3.1.1)
|
|
186
|
-
rake (13.
|
|
187
|
-
rchardet (1.10.
|
|
183
|
+
rake (13.4.2)
|
|
184
|
+
rchardet (1.10.2)
|
|
188
185
|
redcarpet (3.6.1)
|
|
189
|
-
regexp_parser (2.
|
|
186
|
+
regexp_parser (2.13.1)
|
|
190
187
|
rexml (3.4.4)
|
|
191
|
-
rouge (4.
|
|
192
|
-
rubocop (1.
|
|
193
|
-
json (
|
|
188
|
+
rouge (4.7.0)
|
|
189
|
+
rubocop (1.91.0)
|
|
190
|
+
json (>= 2.3)
|
|
194
191
|
language_server-protocol (~> 3.17.0.2)
|
|
195
192
|
lint_roller (~> 1.1.0)
|
|
196
|
-
parallel (
|
|
193
|
+
parallel (>= 1.10)
|
|
197
194
|
parser (>= 3.3.0.2)
|
|
198
195
|
rainbow (>= 2.2.2, < 4.0)
|
|
199
196
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
200
|
-
rubocop-ast (>= 1.
|
|
197
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
201
198
|
ruby-progressbar (~> 1.7)
|
|
202
199
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
203
|
-
rubocop-ast (1.
|
|
200
|
+
rubocop-ast (1.50.0)
|
|
204
201
|
parser (>= 3.3.7.2)
|
|
205
|
-
prism (~> 1.
|
|
206
|
-
ruby-macho (
|
|
202
|
+
prism (~> 1.7)
|
|
203
|
+
ruby-macho (4.1.0)
|
|
207
204
|
ruby-progressbar (1.13.0)
|
|
208
205
|
ruby2_keywords (0.0.5)
|
|
209
206
|
sassc (2.4.0)
|
|
210
207
|
ffi (~> 1.9)
|
|
211
|
-
sawyer (0.9.
|
|
208
|
+
sawyer (0.9.3)
|
|
212
209
|
addressable (>= 2.3.5)
|
|
213
210
|
faraday (>= 0.17.3, < 3)
|
|
214
211
|
securerandom (0.4.1)
|
|
215
|
-
sqlite3 (
|
|
212
|
+
sqlite3 (2.9.6)
|
|
216
213
|
mini_portile2 (~> 2.8.0)
|
|
217
214
|
terminal-table (4.0.0)
|
|
218
215
|
unicode-display_width (>= 1.1.1, < 4)
|
|
219
|
-
|
|
220
|
-
|
|
216
|
+
track_open_instances (0.1.15)
|
|
217
|
+
typhoeus (1.6.0)
|
|
218
|
+
ethon (>= 0.18.0)
|
|
221
219
|
tzinfo (2.0.6)
|
|
222
220
|
concurrent-ruby (~> 1.0)
|
|
223
|
-
unicode-display_width (3.
|
|
224
|
-
unicode-emoji (~> 4.
|
|
225
|
-
unicode-emoji (4.
|
|
226
|
-
uri (1.
|
|
227
|
-
webmock (3.
|
|
221
|
+
unicode-display_width (3.3.0)
|
|
222
|
+
unicode-emoji (~> 4.3)
|
|
223
|
+
unicode-emoji (4.3.0)
|
|
224
|
+
uri (1.1.1)
|
|
225
|
+
webmock (3.26.4)
|
|
228
226
|
addressable (>= 2.8.0)
|
|
229
227
|
crack (>= 0.3.2)
|
|
230
228
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
231
229
|
xcinvoke (0.3.0)
|
|
232
230
|
liferaft (~> 0.0.6)
|
|
233
|
-
xcodeproj (1.
|
|
231
|
+
xcodeproj (1.28.1)
|
|
234
232
|
CFPropertyList (>= 2.3.3, < 4.0)
|
|
235
233
|
atomos (~> 0.1.3)
|
|
234
|
+
base64
|
|
236
235
|
claide (>= 1.0.2, < 2.0)
|
|
237
236
|
colored2 (~> 3.1)
|
|
238
237
|
nanaimo (~> 0.4.0)
|
|
238
|
+
nkf
|
|
239
239
|
rexml (>= 3.3.6, < 4.0)
|
|
240
240
|
|
|
241
241
|
PLATFORMS
|
|
@@ -243,7 +243,7 @@ PLATFORMS
|
|
|
243
243
|
|
|
244
244
|
DEPENDENCIES
|
|
245
245
|
bacon
|
|
246
|
-
bundler (~>
|
|
246
|
+
bundler (~> 4.0)
|
|
247
247
|
clintegracon!
|
|
248
248
|
danger
|
|
249
249
|
diffy
|
|
@@ -256,4 +256,4 @@ DEPENDENCIES
|
|
|
256
256
|
webmock
|
|
257
257
|
|
|
258
258
|
BUNDLED WITH
|
|
259
|
-
|
|
259
|
+
4.0.22
|
data/README.md
CHANGED
|
@@ -358,7 +358,7 @@ of the modules being documented.
|
|
|
358
358
|
|
|
359
359
|
Three themes are provided with jazzy: `apple` (default), `fullwidth` and `jony`.
|
|
360
360
|
|
|
361
|
-
* `apple` example: <https://
|
|
361
|
+
* `apple` example: <https://johnfairh.github.io/demo-jazzy-apple-theme/>
|
|
362
362
|
* `fullwidth` example: <https://reduxkit.github.io/ReduxKit/>
|
|
363
363
|
* `jony` example: <https://harshilshah.github.io/IGListKit/>
|
|
364
364
|
|
data/bin/sourcekitten
CHANGED
|
Binary file
|
data/jazzy.gemspec
CHANGED
|
@@ -27,10 +27,10 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.add_dependency 'rexml', ['>= 3.2.7', '< 4.0']
|
|
28
28
|
spec.add_dependency 'rouge', ['>= 2.0.6', '< 5.0']
|
|
29
29
|
spec.add_dependency 'sassc', '~> 2.1'
|
|
30
|
-
spec.add_dependency 'sqlite3', '
|
|
30
|
+
spec.add_dependency 'sqlite3', ['>= 1.3', '< 3.0']
|
|
31
31
|
spec.add_dependency 'xcinvoke', '~> 0.3.0'
|
|
32
32
|
|
|
33
|
-
spec.add_development_dependency 'bundler', '~>
|
|
33
|
+
spec.add_development_dependency 'bundler', '~> 4.0'
|
|
34
34
|
spec.add_development_dependency 'rake', '~> 13.0'
|
|
35
35
|
|
|
36
36
|
spec.required_ruby_version = '>= 2.6.3'
|
data/lib/jazzy/config.rb
CHANGED
|
@@ -8,9 +8,9 @@ require 'jazzy/podspec_documenter'
|
|
|
8
8
|
require 'jazzy/source_declaration/access_control_level'
|
|
9
9
|
|
|
10
10
|
module Jazzy
|
|
11
|
-
# rubocop:disable Metrics/ClassLength
|
|
11
|
+
# rubocop:disable-next Metrics/ClassLength
|
|
12
12
|
class Config
|
|
13
|
-
# rubocop:disable Naming/AccessorMethodName
|
|
13
|
+
# rubocop:disable-next Naming/AccessorMethodName
|
|
14
14
|
class Attribute
|
|
15
15
|
attr_reader :name, :description, :command_line, :config_file_key,
|
|
16
16
|
:default, :parse, :per_module
|
|
@@ -74,7 +74,6 @@ module Jazzy
|
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
|
-
# rubocop:enable Naming/AccessorMethodName
|
|
78
77
|
|
|
79
78
|
def self.config_attr(name, **opts)
|
|
80
79
|
attr_accessor name
|
|
@@ -543,7 +542,7 @@ module Jazzy
|
|
|
543
542
|
|
|
544
543
|
def theme_directory=(theme_directory)
|
|
545
544
|
@theme_directory = theme_directory
|
|
546
|
-
Doc.template_path = theme_directory + 'templates'
|
|
545
|
+
Doc.template_path = (theme_directory + 'templates').to_s
|
|
547
546
|
end
|
|
548
547
|
|
|
549
548
|
def self.parse!
|
|
@@ -563,7 +562,7 @@ module Jazzy
|
|
|
563
562
|
warn "WARNING: #{message}"
|
|
564
563
|
end
|
|
565
564
|
|
|
566
|
-
# rubocop:disable Metrics/MethodLength
|
|
565
|
+
# rubocop:disable-next Metrics/MethodLength
|
|
567
566
|
def parse_command_line
|
|
568
567
|
OptionParser.new do |opt|
|
|
569
568
|
opt.banner = 'Usage: jazzy'
|
|
@@ -669,8 +668,6 @@ module Jazzy
|
|
|
669
668
|
end
|
|
670
669
|
end
|
|
671
670
|
|
|
672
|
-
# rubocop:enable Metrics/MethodLength
|
|
673
|
-
|
|
674
671
|
# Module Configs
|
|
675
672
|
#
|
|
676
673
|
# The user can enter module information in three different ways. This
|
|
@@ -791,7 +788,7 @@ module Jazzy
|
|
|
791
788
|
puts attr.name.to_s.tr('_', ' ').upcase
|
|
792
789
|
puts
|
|
793
790
|
puts " Config file: #{attr.config_file_key}"
|
|
794
|
-
cmd_line_forms = attr.command_line.
|
|
791
|
+
cmd_line_forms = attr.command_line.grep(String)
|
|
795
792
|
if cmd_line_forms.any?
|
|
796
793
|
puts " Command line: #{cmd_line_forms.join(', ')}"
|
|
797
794
|
end
|
|
@@ -839,5 +836,4 @@ module Jazzy
|
|
|
839
836
|
end
|
|
840
837
|
end
|
|
841
838
|
end
|
|
842
|
-
# rubocop:enable Metrics/ClassLength
|
|
843
839
|
end
|
data/lib/jazzy/doc_builder.rb
CHANGED
|
@@ -299,8 +299,8 @@ module Jazzy
|
|
|
299
299
|
end
|
|
300
300
|
end
|
|
301
301
|
|
|
302
|
-
# rubocop:disable Metrics/MethodLength
|
|
303
|
-
|
|
302
|
+
# rubocop:disable-next Metrics/MethodLength
|
|
303
|
+
#
|
|
304
304
|
# Generates an SVG similar to those from shields.io displaying the
|
|
305
305
|
# documentation percentage
|
|
306
306
|
# @param [Number] coverage The documentation coverage percentage
|
|
@@ -346,12 +346,11 @@ module Jazzy
|
|
|
346
346
|
badge_output = options.output + 'badge.svg'
|
|
347
347
|
File.open(badge_output, 'w') { |f| f << svg }
|
|
348
348
|
end
|
|
349
|
-
# rubocop:enable Metrics/MethodLength
|
|
350
349
|
|
|
351
350
|
# Build mustache item for a top-level doc
|
|
352
351
|
# @param [Hash] item Parsed doc child item
|
|
353
352
|
# @param [Config] options Build options
|
|
354
|
-
# rubocop:disable Metrics/MethodLength
|
|
353
|
+
# rubocop:disable-next Metrics/MethodLength
|
|
355
354
|
def self.render_item(item, source_module)
|
|
356
355
|
# Combine abstract and discussion into abstract
|
|
357
356
|
abstract = (item.abstract || '') + (item.discussion || '')
|
|
@@ -382,7 +381,6 @@ module Jazzy
|
|
|
382
381
|
declaration_note: item.declaration_note,
|
|
383
382
|
}
|
|
384
383
|
end
|
|
385
|
-
# rubocop:enable Metrics/MethodLength
|
|
386
384
|
|
|
387
385
|
def self.make_task(mark, uid, items, doc_model)
|
|
388
386
|
{
|
|
@@ -415,7 +413,7 @@ module Jazzy
|
|
|
415
413
|
end
|
|
416
414
|
end
|
|
417
415
|
|
|
418
|
-
# rubocop:disable Metrics/MethodLength
|
|
416
|
+
# rubocop:disable-next Metrics/MethodLength
|
|
419
417
|
# Build Mustache document from single parsed decl
|
|
420
418
|
# @param [SourceModule] module-wide settings
|
|
421
419
|
# @param [Hash] doc_model Parsed doc. @see SourceKitten.parse
|
|
@@ -449,7 +447,6 @@ module Jazzy
|
|
|
449
447
|
doc[:usage_discouraged] = doc_model.usage_discouraged?
|
|
450
448
|
doc.render.gsub(ELIDED_AUTOLINK_TOKEN, path_to_root)
|
|
451
449
|
end
|
|
452
|
-
# rubocop:enable Metrics/MethodLength
|
|
453
450
|
|
|
454
451
|
# Breadcrumbs for a page - doesn't include the top 'readme' crumb
|
|
455
452
|
def self.make_breadcrumbs(doc_model)
|
data/lib/jazzy/gem_version.rb
CHANGED
data/lib/jazzy/jazzy_markdown.rb
CHANGED
|
@@ -45,7 +45,7 @@ module Jazzy
|
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
# rubocop:disable Metrics/ClassLength
|
|
48
|
+
# rubocop:disable-next Metrics/ClassLength
|
|
49
49
|
class JazzyHTML < Redcarpet::Render::HTML
|
|
50
50
|
include Redcarpet::Render::SmartyPants
|
|
51
51
|
include Rouge::Plugins::Redcarpet
|
|
@@ -195,7 +195,6 @@ module Jazzy
|
|
|
195
195
|
Highlighter::Formatter.new(lexer.tag)
|
|
196
196
|
end
|
|
197
197
|
end
|
|
198
|
-
# rubocop:enable Metrics/ClassLength
|
|
199
198
|
|
|
200
199
|
REDCARPET_OPTIONS = {
|
|
201
200
|
autolink: true,
|
|
@@ -4,7 +4,7 @@ require 'tmpdir'
|
|
|
4
4
|
require 'json'
|
|
5
5
|
|
|
6
6
|
module Jazzy
|
|
7
|
-
# rubocop:disable Metrics/ClassLength
|
|
7
|
+
# rubocop:disable-next Metrics/ClassLength
|
|
8
8
|
class PodspecDocumenter
|
|
9
9
|
attr_reader :podspec
|
|
10
10
|
|
|
@@ -44,7 +44,7 @@ module Jazzy
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
# rubocop:disable Metrics/MethodLength
|
|
47
|
+
# rubocop:disable-next Metrics/MethodLength
|
|
48
48
|
def self.apply_config_defaults(podspec, config)
|
|
49
49
|
return unless podspec
|
|
50
50
|
|
|
@@ -74,7 +74,6 @@ module Jazzy
|
|
|
74
74
|
config.swift_version_configured = true
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
|
-
# rubocop:enable Metrics/MethodLength
|
|
78
77
|
|
|
79
78
|
private
|
|
80
79
|
|
|
@@ -141,7 +140,7 @@ module Jazzy
|
|
|
141
140
|
end
|
|
142
141
|
end
|
|
143
142
|
|
|
144
|
-
# rubocop:disable Metrics/MethodLength
|
|
143
|
+
# rubocop:disable-next Metrics/MethodLength
|
|
145
144
|
def podfile(config)
|
|
146
145
|
swift_version = compiler_swift_version(config.swift_version)
|
|
147
146
|
podspec = @podspec
|
|
@@ -174,7 +173,5 @@ module Jazzy
|
|
|
174
173
|
end
|
|
175
174
|
end
|
|
176
175
|
end
|
|
177
|
-
# rubocop:enable Metrics/MethodLength
|
|
178
176
|
end
|
|
179
|
-
# rubocop:enable Metrics/ClassLength
|
|
180
177
|
end
|
data/lib/jazzy/search_builder.rb
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
# Workarounds for:
|
|
4
|
+
# 1. CocoaPods has died leaving a dep on activesupport < 8.0
|
|
5
|
+
# 2. JSON (builtin) is now at 3.0+
|
|
6
|
+
# 3. JSON 3+ is not supported by activesupport < 8.0
|
|
7
|
+
#
|
|
8
|
+
# Try to support CocoaPods for one more year by patching the
|
|
9
|
+
# problematic methods.
|
|
10
|
+
|
|
11
|
+
module JSON
|
|
12
|
+
class << self
|
|
13
|
+
# Store a reference to the original json gem's parse method
|
|
14
|
+
alias real_parse parse
|
|
15
|
+
alias real_generate generate
|
|
16
|
+
|
|
17
|
+
def parse(source, **opts)
|
|
18
|
+
opts = opts.dup
|
|
19
|
+
opts.delete(:quirks_mode)
|
|
20
|
+
real_parse(source, **opts)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def generate(source, **opts)
|
|
24
|
+
opts = opts.dup
|
|
25
|
+
opts.delete(:quirks_mode)
|
|
26
|
+
real_generate(source, **opts)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
3
31
|
module Jazzy
|
|
4
32
|
module SearchBuilder
|
|
5
33
|
def self.build(source_module, output_dir)
|
|
@@ -6,7 +6,7 @@ require 'active_support/inflector'
|
|
|
6
6
|
|
|
7
7
|
module Jazzy
|
|
8
8
|
class SourceDeclaration
|
|
9
|
-
# rubocop:disable Metrics/ClassLength
|
|
9
|
+
# rubocop:disable-next Metrics/ClassLength
|
|
10
10
|
class Type
|
|
11
11
|
def self.all
|
|
12
12
|
TYPES.keys.map { |k| new(k) }.reject { |t| t.name.nil? }
|
|
@@ -471,6 +471,5 @@ module Jazzy
|
|
|
471
471
|
}.freeze,
|
|
472
472
|
}.freeze
|
|
473
473
|
end
|
|
474
|
-
# rubocop:enable Metrics/ClassLength
|
|
475
474
|
end
|
|
476
475
|
end
|
|
@@ -4,7 +4,7 @@ require 'jazzy/source_declaration/access_control_level'
|
|
|
4
4
|
require 'jazzy/source_declaration/type'
|
|
5
5
|
|
|
6
6
|
module Jazzy
|
|
7
|
-
# rubocop:disable Metrics/ClassLength
|
|
7
|
+
# rubocop:disable-next Metrics/ClassLength
|
|
8
8
|
class SourceDeclaration
|
|
9
9
|
# kind of declaration (e.g. class, variable, function)
|
|
10
10
|
attr_accessor :type
|
|
@@ -296,5 +296,4 @@ module Jazzy
|
|
|
296
296
|
Config.instance.abstract_glob.select { |e| File.file? e }
|
|
297
297
|
end
|
|
298
298
|
end
|
|
299
|
-
# rubocop:enable Metrics/ClassLength
|
|
300
299
|
end
|
data/lib/jazzy/sourcekitten.rb
CHANGED
|
@@ -76,7 +76,7 @@ module Jazzy
|
|
|
76
76
|
end
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
# rubocop:disable Metrics/MethodLength
|
|
79
|
+
# rubocop:disable-next Metrics/MethodLength
|
|
80
80
|
# Generate doc URL by prepending its parents' URLs
|
|
81
81
|
# @return [Hash] input docs with URLs
|
|
82
82
|
def self.make_doc_urls(docs)
|
|
@@ -111,7 +111,6 @@ module Jazzy
|
|
|
111
111
|
end
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
|
-
# rubocop:enable Metrics/MethodLength
|
|
115
114
|
|
|
116
115
|
# Determine the subdirectory in which a doc should be placed.
|
|
117
116
|
# Guides in the root for back-compatibility.
|
|
@@ -532,9 +531,9 @@ module Jazzy
|
|
|
532
531
|
declaration.mark_for_children)
|
|
533
532
|
end
|
|
534
533
|
|
|
535
|
-
# rubocop:disable Metrics/MethodLength
|
|
536
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
|
537
|
-
# rubocop:disable Metrics/PerceivedComplexity
|
|
534
|
+
# rubocop:disable-next Metrics/MethodLength
|
|
535
|
+
# rubocop:disable-next Metrics/CyclomaticComplexity
|
|
536
|
+
# rubocop:disable-next Metrics/PerceivedComplexity
|
|
538
537
|
def self.make_source_declarations(docs, parent = nil, mark = SourceMark.new)
|
|
539
538
|
declarations = []
|
|
540
539
|
current_mark = mark
|
|
@@ -627,9 +626,6 @@ module Jazzy
|
|
|
627
626
|
end
|
|
628
627
|
declarations
|
|
629
628
|
end
|
|
630
|
-
# rubocop:enable Metrics/PerceivedComplexity
|
|
631
|
-
# rubocop:enable Metrics/CyclomaticComplexity
|
|
632
|
-
# rubocop:enable Metrics/MethodLength
|
|
633
629
|
|
|
634
630
|
def self.find_generic_requirements(parsed_declaration)
|
|
635
631
|
parsed_declaration =~ /\bwhere\s+(.*)$/m
|
|
@@ -755,8 +751,8 @@ module Jazzy
|
|
|
755
751
|
end
|
|
756
752
|
end
|
|
757
753
|
|
|
758
|
-
# rubocop:disable Metrics/MethodLength
|
|
759
|
-
# rubocop:disable Metrics/PerceivedComplexity
|
|
754
|
+
# rubocop:disable-next Metrics/MethodLength
|
|
755
|
+
# rubocop:disable-next Metrics/PerceivedComplexity
|
|
760
756
|
# Merges all of the given types and extensions into a single document.
|
|
761
757
|
def self.merge_declarations(decls)
|
|
762
758
|
extensions, typedecls = decls.partition { |d| d.type.extension? }
|
|
@@ -789,8 +785,6 @@ module Jazzy
|
|
|
789
785
|
merge_type_and_extensions(typedecls, extensions)
|
|
790
786
|
end
|
|
791
787
|
end
|
|
792
|
-
# rubocop:enable Metrics/PerceivedComplexity
|
|
793
|
-
# rubocop:enable Metrics/MethodLength
|
|
794
788
|
|
|
795
789
|
def self.merge_type_and_extensions(typedecls, extensions)
|
|
796
790
|
# Constrained extensions at the end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# rubocop:disable Metrics/ClassLength
|
|
3
|
+
# rubocop:disable-next Metrics/ClassLength
|
|
4
4
|
module Jazzy
|
|
5
5
|
module SymbolGraph
|
|
6
6
|
# A Graph is the coordinator to import a symbolgraph json file.
|
|
@@ -209,4 +209,3 @@ module Jazzy
|
|
|
209
209
|
end
|
|
210
210
|
end
|
|
211
211
|
end
|
|
212
|
-
# rubocop:enable Metrics/ClassLength
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# rubocop:disable Metrics/ClassLength
|
|
3
|
+
# rubocop:disable-next Metrics/ClassLength
|
|
4
4
|
module Jazzy
|
|
5
5
|
module SymbolGraph
|
|
6
6
|
# A Symbol is a tidied-up SymbolGraph JSON object
|
|
@@ -274,4 +274,3 @@ module Jazzy
|
|
|
274
274
|
end
|
|
275
275
|
end
|
|
276
276
|
end
|
|
277
|
-
# rubocop:enable Metrics/ClassLength
|
data/spec/integration_spec.rb
CHANGED
|
@@ -113,16 +113,12 @@ describe_cli 'jazzy' do
|
|
|
113
113
|
# Remove version numbers from CocoaPods dependencies
|
|
114
114
|
# to make specs resilient against dependency updates.
|
|
115
115
|
s.replace_pattern(/(Installing \w+ )\((.*)\)/, '\1(X.Y.Z)')
|
|
116
|
-
# Xcode 13.3 etc workaround
|
|
117
|
-
s.replace_pattern(/202[\d.:\- ]+xcodebuild.*?\n/, '')
|
|
118
|
-
# Xcode 14 / in-proc sourcekitd workaround
|
|
119
|
-
s.replace_pattern(/<unknown>:0: remark.*?\n/, '')
|
|
120
116
|
# CLIntegracon 0.8
|
|
121
117
|
s.replace_pattern(%r{/transformed/}, '/')
|
|
122
|
-
# Xcode 15 workaround
|
|
123
|
-
s.replace_pattern(/objc\[.....\]: Class _?DTX\w+ is implemented in both.*?\n/, '')
|
|
124
118
|
# arm vs. intel workaround
|
|
125
119
|
s.replace_pattern(%r{(?<=build/)(arm64|x86_64)(?=-apple)}, '')
|
|
120
|
+
# Xcode install dependencies
|
|
121
|
+
s.replace_pattern(/^{ platform:.*\n/, '')
|
|
126
122
|
end
|
|
127
123
|
|
|
128
124
|
require 'shellwords'
|
|
@@ -146,15 +142,6 @@ describe_cli 'jazzy' do
|
|
|
146
142
|
</script>
|
|
147
143
|
HTML
|
|
148
144
|
|
|
149
|
-
realm_jazzy_yaml = <<-YAML
|
|
150
|
-
build_tool_arguments:
|
|
151
|
-
- "-scheme"
|
|
152
|
-
- "RealmSwift"
|
|
153
|
-
- "SWIFT_VERSION=4.2"
|
|
154
|
-
- "-destination"
|
|
155
|
-
- "platform=OS X,arch=x86_64"
|
|
156
|
-
YAML
|
|
157
|
-
|
|
158
145
|
spec_subset = ENV.fetch('JAZZY_SPEC_SUBSET', nil)
|
|
159
146
|
|
|
160
147
|
# rubocop:disable Style/MultilineIfModifier
|
|
@@ -165,9 +152,11 @@ build_tool_arguments:
|
|
|
165
152
|
relative_path = 'spec/integration_specs/document_realm_objc/before'
|
|
166
153
|
Dir.chdir(ROOT + relative_path) do
|
|
167
154
|
realm_version = `./build.sh get-version`.chomp
|
|
155
|
+
`./build.sh update-core`
|
|
168
156
|
# jazzy will fail if it can't find all public header files
|
|
169
157
|
`touch Realm/RLMPlatform.h`
|
|
170
158
|
end
|
|
159
|
+
|
|
171
160
|
behaves_like cli_spec 'document_realm_objc',
|
|
172
161
|
'--objc ' \
|
|
173
162
|
'--author Realm ' \
|
|
@@ -212,25 +201,31 @@ build_tool_arguments:
|
|
|
212
201
|
'--skip-undocumented ' \
|
|
213
202
|
'--clean ' \
|
|
214
203
|
'--xcodebuild-arguments ' \
|
|
215
|
-
"-destination,'platform=OS X'"
|
|
204
|
+
"-destination,'platform=OS X',__DIAGNOSE_INVALID_DEPLOYMENT_TARGET_AS_ERROR=NO"
|
|
216
205
|
end
|
|
217
206
|
|
|
218
207
|
describe 'Creates Realm Swift docs' do
|
|
219
208
|
realm_version = ''
|
|
220
209
|
realm_path = ROOT + 'spec/integration_specs/document_realm_swift/before'
|
|
221
|
-
realm_jazzy_path = realm_path + '.jazzy.yaml'
|
|
222
210
|
|
|
223
211
|
Dir.chdir(realm_path) do
|
|
224
212
|
realm_version = `./build.sh get-version`.chomp
|
|
213
|
+
`./build.sh download-core`
|
|
225
214
|
end
|
|
226
|
-
|
|
227
|
-
|
|
215
|
+
|
|
216
|
+
build_patch = ROOT + 'spec/realm-build.sh'
|
|
217
|
+
build_used = ROOT + realm_path + 'build.sh'
|
|
218
|
+
build_save = ROOT + 'spec/realm-build.sh.safe'
|
|
219
|
+
FileUtils.cp_r build_used, build_save, remove_destination: true
|
|
220
|
+
FileUtils.cp_r build_patch, build_used, remove_destination: true
|
|
228
221
|
|
|
229
222
|
behaves_like cli_spec 'document_realm_swift',
|
|
230
223
|
'--author Realm ' \
|
|
231
224
|
'--author_url "https://realm.io" ' \
|
|
232
225
|
'--source-host-url ' \
|
|
233
226
|
'https://github.com/realm/realm-cocoa ' \
|
|
227
|
+
'--xcodebuild-arguments ' \
|
|
228
|
+
'-scheme,RealmSwift ' \
|
|
234
229
|
'--source-host-files-url https://github.com/realm/' \
|
|
235
230
|
"realm-cocoa/tree/v#{realm_version} " \
|
|
236
231
|
'--module RealmSwift ' \
|
|
@@ -238,7 +233,9 @@ build_tool_arguments:
|
|
|
238
233
|
'--root-url https://realm.io/docs/swift/' \
|
|
239
234
|
"#{realm_version}/api/ " \
|
|
240
235
|
"--head #{realm_head.shellescape}"
|
|
241
|
-
|
|
236
|
+
|
|
237
|
+
FileUtils.cp_r build_save, build_used, remove_destination: true
|
|
238
|
+
FileUtils.rm_rf build_save
|
|
242
239
|
end
|
|
243
240
|
|
|
244
241
|
describe 'Creates Siesta docs' do
|
|
@@ -246,7 +243,8 @@ build_tool_arguments:
|
|
|
246
243
|
# Use the default Swift version rather than the specified 4.0
|
|
247
244
|
behaves_like cli_spec 'document_siesta',
|
|
248
245
|
'--output api-docs ' \
|
|
249
|
-
'--swift-version= '
|
|
246
|
+
'--swift-version= ' \
|
|
247
|
+
'--xcodebuild-arguments __DIAGNOSE_INVALID_DEPLOYMENT_TARGET_AS_ERROR=NO'
|
|
250
248
|
end
|
|
251
249
|
|
|
252
250
|
describe 'Creates docs for Swift project with a variety of contents' do
|
|
@@ -257,13 +255,14 @@ build_tool_arguments:
|
|
|
257
255
|
build_path = Dir.getwd + '/tmp/.build'
|
|
258
256
|
package_path =
|
|
259
257
|
ROOT + 'spec/integration_specs/misc_jazzy_symgraph_features/before'
|
|
260
|
-
|
|
261
|
-
|
|
258
|
+
path_args = "--package-path #{package_path} --scratch-path #{build_path}"
|
|
259
|
+
`swift build #{path_args}`
|
|
260
|
+
module_path = `swift build #{path_args} --show-bin-path`
|
|
262
261
|
behaves_like cli_spec 'misc_jazzy_symgraph_features',
|
|
263
262
|
'--swift-build-tool symbolgraph ' \
|
|
264
263
|
'--build-tool-arguments ' \
|
|
265
264
|
'-emit-extension-block-symbols,-I,' \
|
|
266
|
-
"#{module_path.chomp}
|
|
265
|
+
"#{module_path.chomp}"
|
|
267
266
|
end
|
|
268
267
|
|
|
269
268
|
describe 'Creates docs for a multiple-module project' do
|
|
@@ -271,21 +270,23 @@ build_tool_arguments:
|
|
|
271
270
|
end
|
|
272
271
|
end if !spec_subset || spec_subset == 'swift'
|
|
273
272
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
273
|
+
# Can't build on xcode27 because alamofire dep has bad ios deployment level
|
|
274
|
+
#
|
|
275
|
+
# describe 'jazzy cocoapods' do
|
|
276
|
+
# # Xcode 14.3 workaround, special podspec
|
|
277
|
+
# podspec_patch = ROOT + 'spec/Moya.podspec'
|
|
278
|
+
# podspec_used = ROOT + 'spec/integration_specs/document_moya_podspec/before/Moya.podspec'
|
|
279
|
+
# podspec_save = ROOT + 'spec/Moya.podspec.safe'
|
|
280
|
+
# FileUtils.cp_r podspec_used, podspec_save, remove_destination: true
|
|
281
|
+
# FileUtils.cp_r podspec_patch, podspec_used, remove_destination: true
|
|
282
|
+
# configure_cocoapods
|
|
283
|
+
# describe 'Creates docs for a podspec with dependencies and subspecs' do
|
|
284
|
+
# behaves_like cli_spec 'document_moya_podspec',
|
|
285
|
+
# '--podspec=Moya.podspec'
|
|
286
|
+
# end
|
|
287
|
+
# FileUtils.cp_r podspec_save, podspec_used, remove_destination: true
|
|
288
|
+
# FileUtils.rm_rf podspec_save
|
|
289
|
+
# end if !spec_subset || spec_subset == 'cocoapods'
|
|
289
290
|
|
|
290
291
|
# rubocop:enable Style/MultilineIfModifier
|
|
291
292
|
end
|
data/spec/realm-build.sh
ADDED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jazzy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.15.
|
|
4
|
+
version: 0.15.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- JP Simard
|
|
@@ -160,16 +160,22 @@ dependencies:
|
|
|
160
160
|
name: sqlite3
|
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
|
162
162
|
requirements:
|
|
163
|
-
- - "
|
|
163
|
+
- - ">="
|
|
164
164
|
- !ruby/object:Gem::Version
|
|
165
165
|
version: '1.3'
|
|
166
|
+
- - "<"
|
|
167
|
+
- !ruby/object:Gem::Version
|
|
168
|
+
version: '3.0'
|
|
166
169
|
type: :runtime
|
|
167
170
|
prerelease: false
|
|
168
171
|
version_requirements: !ruby/object:Gem::Requirement
|
|
169
172
|
requirements:
|
|
170
|
-
- - "
|
|
173
|
+
- - ">="
|
|
171
174
|
- !ruby/object:Gem::Version
|
|
172
175
|
version: '1.3'
|
|
176
|
+
- - "<"
|
|
177
|
+
- !ruby/object:Gem::Version
|
|
178
|
+
version: '3.0'
|
|
173
179
|
- !ruby/object:Gem::Dependency
|
|
174
180
|
name: xcinvoke
|
|
175
181
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -190,14 +196,14 @@ dependencies:
|
|
|
190
196
|
requirements:
|
|
191
197
|
- - "~>"
|
|
192
198
|
- !ruby/object:Gem::Version
|
|
193
|
-
version: '
|
|
199
|
+
version: '4.0'
|
|
194
200
|
type: :development
|
|
195
201
|
prerelease: false
|
|
196
202
|
version_requirements: !ruby/object:Gem::Requirement
|
|
197
203
|
requirements:
|
|
198
204
|
- - "~>"
|
|
199
205
|
- !ruby/object:Gem::Version
|
|
200
|
-
version: '
|
|
206
|
+
version: '4.0'
|
|
201
207
|
- !ruby/object:Gem::Dependency
|
|
202
208
|
name: rake
|
|
203
209
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -393,6 +399,7 @@ files:
|
|
|
393
399
|
- lib/jazzy/themes/jony/templates/tasks.mustache
|
|
394
400
|
- spec/Moya.podspec
|
|
395
401
|
- spec/integration_spec.rb
|
|
402
|
+
- spec/realm-build.sh
|
|
396
403
|
- spec/spec_helper.rb
|
|
397
404
|
- spec/spec_helper/pre_flight.rb
|
|
398
405
|
homepage: https://github.com/realm/jazzy
|
|
@@ -414,7 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
414
421
|
- !ruby/object:Gem::Version
|
|
415
422
|
version: '0'
|
|
416
423
|
requirements: []
|
|
417
|
-
rubygems_version:
|
|
424
|
+
rubygems_version: 4.0.17
|
|
418
425
|
specification_version: 4
|
|
419
426
|
summary: Soulful docs for Swift & Objective-C.
|
|
420
427
|
test_files: []
|