Skip to content

Commit 73829b1

Browse files
authored
Release 0.14.2 and update gems (#1303)
1 parent 2867df3 commit 73829b1

8 files changed

+60
-54
lines changed

.rubocop.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ AllCops:
77
SuggestExtensions: false
88
TargetRubyVersion: 2.6
99

10-
#- Pending Cops as of 1.22.0 ---------------------------------------------#
10+
#- Pending Cops as of 1.26.0 ---------------------------------------------#
1111

1212
Gemspec/DateAssignment: # (new in 1.10)
1313
Enabled: true
14+
Gemspec/RequireMFA: # new in 1.23
15+
Enabled: true
1416
Layout/SpaceBeforeBrackets: # (new in 1.7)
1517
Enabled: true
1618
Lint/AmbiguousAssignment: # (new in 1.7)
@@ -53,6 +55,10 @@ Lint/UnexpectedBlockArity: # (new in 1.5)
5355
Enabled: true
5456
Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
5557
Enabled: true
58+
Lint/UselessRuby2Keywords: # new in 1.23
59+
Enabled: true
60+
Naming/BlockForwarding: # new in 1.24
61+
Enabled: true
5662
Naming/InclusiveLanguage: # (new in 1.18)
5763
Enabled: true
5864
Security/IoMethods: # new in 1.22
@@ -65,6 +71,10 @@ Style/DocumentDynamicEvalDefinition: # (new in 1.1)
6571
Enabled: true
6672
Style/EndlessMethod: # (new in 1.8)
6773
Enabled: true
74+
Style/FileRead: # new in 1.24
75+
Enabled: true
76+
Style/FileWrite: # new in 1.24
77+
Enabled: true
6878
Style/HashConversion: # (new in 1.10)
6979
Enabled: true
7080
Style/HashExcept: # (new in 1.7)
@@ -73,16 +83,22 @@ Style/IfWithBooleanLiteralBranches: # (new in 1.9)
7383
Enabled: true
7484
Style/InPatternThen: # (new in 1.16)
7585
Enabled: true
86+
Style/MapToHash: # new in 1.24
87+
Enabled: true
7688
Style/MultilineInPatternThen: # (new in 1.16)
7789
Enabled: true
7890
Style/NegatedIfElseCondition: # (new in 1.2)
7991
Enabled: true
92+
Style/NestedFileDirname: # new in 1.26
93+
Enabled: true
8094
Style/NilLambda: # (new in 1.3)
8195
Enabled: true
8296
Style/NumberedParameters: # new in 1.22
8397
Enabled: true
8498
Style/NumberedParametersLimit: # new in 1.22
8599
Enabled: true
100+
Style/OpenStructUse: # new in 1.23
101+
Enabled: true
86102
Style/QuotedSymbols: # (new in 1.16)
87103
Enabled: true
88104
Style/RedundantArgument: # (new in 1.4)

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Master
1+
## 0.14.2
22

33
##### Breaking
44

@@ -16,7 +16,7 @@
1616
[John Fairhurst](https://github.com/johnfairh)
1717
[#900](https://github.com/realm/jazzy/issues/900)
1818

19-
* Support Swift 5.6.
19+
* Support Swift 5.6. The bundled `sourcekitten` is a universal binary.
2020
[John Fairhurst](https://github.com/johnfairh)
2121

2222
##### Bug Fixes

Gemfile.lock

+33-29
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
jazzy (0.14.1)
4+
jazzy (0.14.2)
55
cocoapods (~> 1.5)
66
mustache (~> 1.1)
77
open4 (~> 1.3)
@@ -15,9 +15,9 @@ PATH
1515
GEM
1616
remote: https://rubygems.org/
1717
specs:
18-
CFPropertyList (3.0.4)
18+
CFPropertyList (3.0.5)
1919
rexml
20-
activesupport (6.1.4.1)
20+
activesupport (6.1.5)
2121
concurrent-ruby (~> 1.0, >= 1.0.2)
2222
i18n (>= 1.6, < 2)
2323
minitest (>= 5.1)
@@ -31,18 +31,18 @@ GEM
3131
ast (2.4.2)
3232
atomos (0.1.3)
3333
bacon (1.2.0)
34-
claide (1.0.3)
34+
claide (1.1.0)
3535
claide-plugins (0.9.2)
3636
cork
3737
nap
3838
open4 (~> 1.3)
3939
clintegracon (0.7.0)
4040
colored (~> 1.2)
4141
diffy
42-
cocoapods (1.11.2)
42+
cocoapods (1.11.3)
4343
addressable (~> 2.8)
4444
claide (>= 1.0.2, < 2.0)
45-
cocoapods-core (= 1.11.2)
45+
cocoapods-core (= 1.11.3)
4646
cocoapods-deintegrate (>= 1.0.3, < 2.0)
4747
cocoapods-downloader (>= 1.4.0, < 2.0)
4848
cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -57,7 +57,7 @@ GEM
5757
nap (~> 1.0)
5858
ruby-macho (>= 1.0, < 3.0)
5959
xcodeproj (>= 1.21.0, < 2.0)
60-
cocoapods-core (1.11.2)
60+
cocoapods-core (1.11.3)
6161
activesupport (>= 5.0, < 7)
6262
addressable (~> 2.8)
6363
algoliasearch (~> 1.0)
@@ -83,7 +83,7 @@ GEM
8383
colored2 (~> 3.1)
8484
crack (0.4.5)
8585
rexml
86-
danger (8.4.0)
86+
danger (8.4.5)
8787
claide (~> 1.0)
8888
claide-plugins (>= 0.9.2)
8989
colored2 (~> 3.1)
@@ -98,46 +98,50 @@ GEM
9898
terminal-table (>= 1, < 4)
9999
diffy (3.4.0)
100100
escape (0.0.4)
101-
ethon (0.14.0)
101+
ethon (0.15.0)
102102
ffi (>= 1.15.0)
103-
faraday (1.8.0)
103+
faraday (1.10.0)
104104
faraday-em_http (~> 1.0)
105105
faraday-em_synchrony (~> 1.0)
106106
faraday-excon (~> 1.1)
107-
faraday-httpclient (~> 1.0.1)
107+
faraday-httpclient (~> 1.0)
108+
faraday-multipart (~> 1.0)
108109
faraday-net_http (~> 1.0)
109-
faraday-net_http_persistent (~> 1.1)
110+
faraday-net_http_persistent (~> 1.0)
110111
faraday-patron (~> 1.0)
111112
faraday-rack (~> 1.0)
112-
multipart-post (>= 1.2, < 3)
113+
faraday-retry (~> 1.0)
113114
ruby2_keywords (>= 0.0.4)
114115
faraday-em_http (1.0.0)
115116
faraday-em_synchrony (1.0.0)
116117
faraday-excon (1.1.0)
117118
faraday-http-cache (2.2.0)
118119
faraday (>= 0.8)
119120
faraday-httpclient (1.0.1)
121+
faraday-multipart (1.0.3)
122+
multipart-post (>= 1.2, < 3)
120123
faraday-net_http (1.0.1)
121124
faraday-net_http_persistent (1.2.0)
122125
faraday-patron (1.0.0)
123126
faraday-rack (1.0.0)
124-
ffi (1.15.4)
127+
faraday-retry (1.0.3)
128+
ffi (1.15.5)
125129
fourflusher (2.3.1)
126130
fuzzy_match (2.0.4)
127131
gh_inspector (1.1.3)
128-
git (1.9.1)
132+
git (1.10.2)
129133
rchardet (~> 1.8)
130134
hashdiff (1.0.1)
131135
httpclient (2.8.3)
132-
i18n (1.8.10)
136+
i18n (1.10.0)
133137
concurrent-ruby (~> 1.0)
134-
json (2.5.1)
138+
json (2.6.1)
135139
kramdown (2.3.1)
136140
rexml
137141
kramdown-parser-gfm (1.1.0)
138142
kramdown (~> 2.0)
139143
liferaft (0.0.6)
140-
minitest (5.14.4)
144+
minitest (5.15.0)
141145
mocha (1.13.0)
142146
mocha-on-bacon (0.2.3)
143147
mocha (>= 0.13.0)
@@ -148,34 +152,34 @@ GEM
148152
nap (1.1.0)
149153
netrc (0.11.0)
150154
no_proxy_fix (0.1.2)
151-
octokit (4.21.0)
155+
octokit (4.22.0)
152156
faraday (>= 0.9)
153157
sawyer (~> 0.8.0, >= 0.5.3)
154158
open4 (1.3.4)
155159
parallel (1.21.0)
156-
parser (3.0.2.0)
160+
parser (3.1.1.0)
157161
ast (~> 2.4.1)
158162
prettybacon (0.0.2)
159163
bacon (~> 1.2)
160164
public_suffix (4.0.6)
161-
rainbow (3.0.0)
165+
rainbow (3.1.1)
162166
rake (13.0.6)
163167
rchardet (1.8.0)
164168
redcarpet (3.5.1)
165-
regexp_parser (2.1.1)
169+
regexp_parser (2.2.1)
166170
rexml (3.2.5)
167-
rouge (3.26.1)
168-
rubocop (1.22.0)
171+
rouge (3.28.0)
172+
rubocop (1.26.0)
169173
parallel (~> 1.10)
170-
parser (>= 3.0.0.0)
174+
parser (>= 3.1.0.0)
171175
rainbow (>= 2.2.2, < 4.0)
172176
regexp_parser (>= 1.8, < 3.0)
173177
rexml
174-
rubocop-ast (>= 1.12.0, < 2.0)
178+
rubocop-ast (>= 1.16.0, < 2.0)
175179
ruby-progressbar (~> 1.7)
176180
unicode-display_width (>= 1.4.0, < 3.0)
177-
rubocop-ast (1.12.0)
178-
parser (>= 3.0.1.1)
181+
rubocop-ast (1.16.0)
182+
parser (>= 3.1.1.0)
179183
ruby-macho (2.5.1)
180184
ruby-progressbar (1.11.0)
181185
ruby2_keywords (0.0.5)
@@ -205,7 +209,7 @@ GEM
205209
colored2 (~> 3.1)
206210
nanaimo (~> 0.3.0)
207211
rexml (~> 3.2.4)
208-
zeitwerk (2.4.2)
212+
zeitwerk (2.5.4)
209213

210214
PLATFORMS
211215
ruby

jazzy.gemspec

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
1010
spec.email = ['[email protected]']
1111
spec.summary = 'Soulful docs for Swift & Objective-C.'
1212
spec.description = 'Soulful docs for Swift & Objective-C. ' \
13-
"Run in your Xcode project's root directory for " \
13+
"Run in your SPM or Xcode project's root directory for " \
1414
'instant HTML docs.'
1515
spec.homepage = 'https://github.com/realm/jazzy'
1616
spec.license = 'MIT'
@@ -32,4 +32,5 @@ Gem::Specification.new do |spec|
3232
spec.add_development_dependency 'rake', '~> 13.0'
3333

3434
spec.required_ruby_version = '>= 2.6.3'
35+
spec.metadata['rubygems_mfa_required'] = 'true'
3536
end

lib/jazzy/gem_version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Jazzy
4-
VERSION = '0.14.1' unless defined? Jazzy::VERSION
4+
VERSION = '0.14.2' unless defined? Jazzy::VERSION
55
end

lib/jazzy/highlighter.rb

-12
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22

33
require 'rouge'
44

5-
# While Rouge is downlevel (Rouge PR#1715 unreleased)
6-
module Rouge
7-
module Lexers
8-
class Swift
9-
prepend :root do
10-
rule(/\b(?:async|await|isolated)\b/, Keyword)
11-
rule(/\b(?:actor|nonisolated)\b/, Keyword::Declaration)
12-
end
13-
end
14-
end
15-
end
16-
175
module Jazzy
186
# This module helps highlight code
197
module Highlighter

lib/jazzy/search_builder.rb

+3-5
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@ def self.build(source_module, output_dir)
66
decls = source_module.all_declarations.select do |d|
77
d.type && d.name && !d.name.empty?
88
end
9-
index = decls.map do |d|
9+
index = decls.to_h do |d|
1010
[d.url,
1111
{
1212
name: d.name,
1313
abstract: d.abstract && d.abstract.split(/\n/).map(&:strip).first,
14-
parent_name: d.parent_in_code && d.parent_in_code.name,
14+
parent_name: d.parent_in_code&.name,
1515
}.reject { |_, v| v.nil? || v.empty? }]
16-
end.to_h
17-
File.open(File.join(output_dir, 'search.json'), 'w') do |f|
18-
f.write(index.to_json)
1916
end
17+
File.write(File.join(output_dir, 'search.json'), index.to_json)
2018
end
2119
end
2220
end

spec/integration_spec.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ def configure_cocoapods
8585

8686
# Transform produced databases to csv
8787
c.transform_produced '**/*.dsidx' do |path|
88-
File.open("#{path}.csv", 'w') do |file|
89-
file.write `sqlite3 -header -csv #{path} "select * from searchIndex;"`
90-
end
88+
File.write("#{path}.csv",
89+
`sqlite3 -header -csv #{path} "select * from searchIndex;"`)
9190
end
9291
# Now that we're comparing the CSV, we don't care about the binary
9392
c.ignores '**/*.dsidx'

0 commit comments

Comments
 (0)