jazzy 0.13.2 → 0.13.3

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
2
  SHA256:
3
- metadata.gz: b2b86b6a980392f1c5e55ebdc6a3d5be34f470c88ed12733ef10d1b10ee09078
4
- data.tar.gz: 1e6e4a7d19a8eaee854a859b0ec603d239ea3ed8fb4fbd278e3c6b58673c105e
3
+ metadata.gz: e4d4a1f9abe64eefec69e00a77a3bfd37508a7ac385e0f133c640e2c5ce27fe8
4
+ data.tar.gz: 536e7ac40c9925df3bcc72f485c13966a826ffe7ca96e1e62fea2b0f918f849f
5
5
  SHA512:
6
- metadata.gz: 0f9d68395fc4485cfbda0eb968170eeb5b624f7b5c1132e50f636cb9b74e9b6435caf69f5d66d2f1bd68220b8e0cba3dd5d526bea8d672849421ffde75627cb5
7
- data.tar.gz: a288fbb15a612580d0f6f1e95325f5899cc90d76bf04c05a4e4153c6df82044c281113a14a60179d2105ba92cfeea80fecd5b27fcbeba19eb053f91db3cefbc2
6
+ metadata.gz: 5f573f8e91c36b5bc066fc83571835646700fc738a96a3f1345e3120f6a0fb228358787798e599689c998f011fc05c075af4e890530033907ef9c0f92194163a
7
+ data.tar.gz: b315b7503a0e6bec31ddeb009b00858e835a0f7a3d08b5b050966ceda498dce82a1e540e10d6de7c393b02abf6cd05c0476525a7c81a44e004a82c3993be842f
@@ -1,3 +1,30 @@
1
+ ## 0.13.3
2
+
3
+ ##### Breaking
4
+
5
+ * None.
6
+
7
+ ##### Enhancements
8
+
9
+ * Added a config option to provide sources of privately hosted pod
10
+ dependencies when using the `--podspec` option.
11
+ `--pod-sources url1,url2,…urlN`.
12
+ [Jonathan Bailey](https://github.com/jon889)
13
+ [#650](https://github.com/realm/jazzy/issues/650)
14
+
15
+ * Improve Dash docset support: support online redirection when
16
+ `--root-url` is set, and provide `--docset-playground-url` to
17
+ support docset playground links.
18
+ [John Fairhurst](https://github.com/johnfairh)
19
+
20
+ ##### Bug Fixes
21
+
22
+ * Fix module version not being used from podspec.
23
+ [Jonathan Bailey](https://github.com/jon889)
24
+
25
+ * Autolink Swift custom attributes/property wrappers.
26
+ [John Fairhurst](https://github.com/johnfairh)
27
+
1
28
  ## 0.13.2
2
29
 
3
30
  ##### Breaking
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jazzy (0.13.2)
4
+ jazzy (0.13.3)
5
5
  cocoapods (~> 1.5)
6
6
  mustache (~> 1.1)
7
7
  open4
@@ -72,7 +72,7 @@ GEM
72
72
  cocoapods-trunk (1.4.1)
73
73
  nap (>= 0.8, < 2.0)
74
74
  netrc (~> 0.11)
75
- cocoapods-try (1.1.0)
75
+ cocoapods-try (1.2.0)
76
76
  colored (1.2)
77
77
  colored2 (3.1.2)
78
78
  concurrent-ruby (1.1.6)
@@ -80,12 +80,12 @@ GEM
80
80
  colored2 (~> 3.1)
81
81
  crack (0.4.3)
82
82
  safe_yaml (~> 1.0.0)
83
- danger (6.3.2)
83
+ danger (7.0.0)
84
84
  claide (~> 1.0)
85
85
  claide-plugins (>= 0.9.2)
86
86
  colored2 (~> 3.1)
87
87
  cork (~> 0.1)
88
- faraday (~> 0.9)
88
+ faraday (>= 0.9.0, < 2.0)
89
89
  faraday-http-cache (~> 2.0)
90
90
  git (~> 1.6)
91
91
  kramdown (~> 2.0)
@@ -97,10 +97,10 @@ GEM
97
97
  escape (0.0.4)
98
98
  ethon (0.12.0)
99
99
  ffi (>= 1.3.0)
100
- faraday (0.17.3)
100
+ faraday (1.0.1)
101
101
  multipart-post (>= 1.2, < 3)
102
- faraday-http-cache (2.0.0)
103
- faraday (~> 0.8)
102
+ faraday-http-cache (2.2.0)
103
+ faraday (>= 0.8)
104
104
  ffi (1.12.2)
105
105
  fourflusher (2.3.1)
106
106
  fuzzy_match (2.0.4)
@@ -112,7 +112,8 @@ GEM
112
112
  i18n (0.9.5)
113
113
  concurrent-ruby (~> 1.0)
114
114
  json (2.3.0)
115
- kramdown (2.1.0)
115
+ kramdown (2.2.1)
116
+ rexml
116
117
  kramdown-parser-gfm (1.1.0)
117
118
  kramdown (~> 2.0)
118
119
  liferaft (0.0.6)
@@ -132,18 +133,19 @@ GEM
132
133
  sawyer (~> 0.8.0, >= 0.5.3)
133
134
  open4 (1.3.4)
134
135
  parallel (1.19.1)
135
- parser (2.7.0.5)
136
+ parser (2.7.1.1)
136
137
  ast (~> 2.4.0)
137
138
  powerpack (0.1.2)
138
139
  prettybacon (0.0.2)
139
140
  bacon (~> 1.2)
140
- public_suffix (4.0.3)
141
+ public_suffix (4.0.4)
141
142
  rainbow (2.2.2)
142
143
  rake
143
144
  rake (13.0.1)
144
145
  rchardet (1.8.0)
145
146
  redcarpet (3.5.0)
146
- rouge (3.17.0)
147
+ rexml (3.2.4)
148
+ rouge (3.18.0)
147
149
  rubocop (0.49.0)
148
150
  parallel (~> 1.10)
149
151
  parser (>= 2.3.3.1, < 3.0)
@@ -154,7 +156,7 @@ GEM
154
156
  ruby-macho (1.4.0)
155
157
  ruby-progressbar (1.10.1)
156
158
  safe_yaml (1.0.5)
157
- sassc (2.2.1)
159
+ sassc (2.3.0)
158
160
  ffi (~> 1.9)
159
161
  sawyer (0.8.2)
160
162
  addressable (>= 2.3.5)
@@ -165,7 +167,7 @@ GEM
165
167
  thread_safe (0.3.6)
166
168
  typhoeus (1.3.1)
167
169
  ethon (>= 0.9.0)
168
- tzinfo (1.2.6)
170
+ tzinfo (1.2.7)
169
171
  thread_safe (~> 0.1)
170
172
  unicode-display_width (1.7.0)
171
173
  webmock (3.8.3)
@@ -174,7 +176,7 @@ GEM
174
176
  hashdiff (>= 0.4.0, < 2.0.0)
175
177
  xcinvoke (0.3.0)
176
178
  liferaft (~> 0.0.6)
177
- xcodeproj (1.15.0)
179
+ xcodeproj (1.16.0)
178
180
  CFPropertyList (>= 2.3.3, < 4.0)
179
181
  atomos (~> 0.1.3)
180
182
  claide (>= 1.0.2, < 2.0)
@@ -59,7 +59,7 @@ module Jazzy
59
59
 
60
60
  def full_command_line_name
61
61
  long_option_names = command_line.map do |opt|
62
- Regexp.last_match(1) if opt =~ %r{
62
+ Regexp.last_match(1) if opt.to_s =~ %r{
63
63
  ^-- # starts with double dash
64
64
  (?:\[no-\])? # optional prefix for booleans
65
65
  ([^\s]+) # long option name
@@ -289,6 +289,14 @@ module Jazzy
289
289
  parse: ->(ps) { PodspecDocumenter.create_podspec(Pathname(ps)) if ps },
290
290
  default: Dir['*.podspec{,.json}'].first
291
291
 
292
+ config_attr :pod_sources,
293
+ command_line: ['--pod-sources url1,url2,…urlN', Array],
294
+ description: 'A list of sources to find pod dependencies. Used only '\
295
+ 'with --podspec when the podspec contains references to '\
296
+ 'privately hosted pods. You must include the default pod '\
297
+ 'source if public pods are also used.',
298
+ default: []
299
+
292
300
  config_attr :docset_icon,
293
301
  command_line: '--docset-icon FILEPATH',
294
302
  parse: ->(di) { expand_path(di) }
@@ -321,6 +329,11 @@ module Jazzy
321
329
  description: 'GitHub URL file prefix of this project (e.g. '\
322
330
  'https://github.com/realm/realm-cocoa/tree/v0.87.1)'
323
331
 
332
+ config_attr :docset_playground_url,
333
+ command_line: '--docset-playground-url URL',
334
+ description: 'URL of an interactive playground to demonstrate the '\
335
+ 'framework, linked to from the docset.'
336
+
324
337
  # ──────── Doc generation options ────────
325
338
  config_attr :disable_search,
326
339
  command_line: '--disable-search',
@@ -43,6 +43,8 @@ module Jazzy
43
43
  template.read,
44
44
  lowercase_name: source_module.name.downcase,
45
45
  name: source_module.name,
46
+ root_url: config.root_url,
47
+ playground_url: config.docset_playground_url,
46
48
  )
47
49
  end
48
50
  end
@@ -16,5 +16,13 @@
16
16
  <true/>
17
17
  <key>DashDocSetFamily</key>
18
18
  <string>dashtoc</string>
19
+ {{#root_url}}
20
+ <key>DashDocSetFallbackURL</key>
21
+ <string>{{{.}}}</string>
22
+ {{/root_url}}
23
+ {{#playground_url}}
24
+ <key>DashDocSetPlayURL</key>
25
+ <string>{{{.}}}</string>
26
+ {{/playground_url}}
19
27
  </dict>
20
28
  </plist>
@@ -1,3 +1,3 @@
1
1
  module Jazzy
2
- VERSION = '0.13.2'.freeze unless defined? Jazzy::VERSION
2
+ VERSION = '0.13.3'.freeze unless defined? Jazzy::VERSION
3
3
  end
@@ -18,8 +18,7 @@ module Jazzy
18
18
  Pod::Config.instance.with_changes(installation_root: installation_root,
19
19
  verbose: false) do
20
20
  sandbox = Pod::Sandbox.new(Pod::Config.instance.sandbox_root)
21
- swift_version = compiler_swift_version(config.swift_version)
22
- installer = Pod::Installer.new(sandbox, podfile(swift_version))
21
+ installer = Pod::Installer.new(sandbox, podfile(config))
23
22
  installer.install!
24
23
  stdout = Dir.chdir(sandbox.root) do
25
24
  targets = installer.pod_targets
@@ -45,31 +44,39 @@ module Jazzy
45
44
 
46
45
  # rubocop:disable Metrics/CyclomaticComplexity
47
46
  # rubocop:disable Metrics/PerceivedComplexity
47
+ # rubocop:disable Metrics/MethodLength
48
48
  def self.apply_config_defaults(podspec, config)
49
49
  return unless podspec
50
50
 
51
51
  unless config.author_name_configured
52
52
  config.author_name = author_name(podspec)
53
+ config.author_name_configured = true
53
54
  end
54
55
  unless config.module_name_configured
55
56
  config.module_name = podspec.module_name
57
+ config.module_name_configured = true
56
58
  end
57
59
  unless config.author_url_configured
58
60
  config.author_url = podspec.homepage || github_file_prefix(podspec)
61
+ config.author_url_configured = true
59
62
  end
60
63
  unless config.version_configured
61
64
  config.version = podspec.version.to_s
65
+ config.version_configured = true
62
66
  end
63
67
  unless config.github_file_prefix_configured
64
68
  config.github_file_prefix = github_file_prefix(podspec)
69
+ config.github_file_prefix_configured = true
65
70
  end
66
71
  unless config.swift_version_configured
67
72
  trunk_swift_build = podspec.attributes_hash['pushed_with_swift_version']
68
73
  config.swift_version = trunk_swift_build if trunk_swift_build
74
+ config.swift_version_configured = true
69
75
  end
70
76
  end
71
77
  # rubocop:enable Metrics/CyclomaticComplexity
72
78
  # rubocop:enable Metrics/PerceivedComplexity
79
+ # rubocop:enable Metrics/MethodLength
73
80
 
74
81
  private
75
82
 
@@ -135,10 +142,15 @@ module Jazzy
135
142
  end
136
143
 
137
144
  # rubocop:disable Metrics/MethodLength
138
- def podfile(swift_version)
145
+ def podfile(config)
146
+ swift_version = compiler_swift_version(config.swift_version)
139
147
  podspec = @podspec
140
148
  path = pod_path
141
149
  @podfile ||= Pod::Podfile.new do
150
+ config.pod_sources.each do |src|
151
+ source src
152
+ end
153
+
142
154
  install! 'cocoapods',
143
155
  integrate_targets: false,
144
156
  deterministic_uuids: false
@@ -17,7 +17,7 @@ ELIDED_AUTOLINK_TOKEN = '36f8f5912051ae747ef441d6511ca4cb'.freeze
17
17
  def autolink_regex(middle_regex, after_highlight)
18
18
  start_tag_re, end_tag_re =
19
19
  if after_highlight
20
- [/<span class="(?:n|kt|nc)">/, '</span>']
20
+ [/<span class="(?:n|kt|kd|nc)">/, '</span>']
21
21
  else
22
22
  ['<code>', '</code>']
23
23
  end
@@ -913,9 +913,9 @@ module Jazzy
913
913
  # The `after_highlight` flag is used to differentiate between the two modes.
914
914
  def self.autolink_text(text, doc, root_decls, after_highlight = false)
915
915
  text.autolink_block(doc.url, '[^\s]+', after_highlight) do |raw_name|
916
- parts = raw_name
917
- .split(/(?<!\.)\.(?!\.)/) # dot with no neighboring dots
918
- .reject(&:empty?)
916
+ parts = raw_name.sub(/^@/, '') # ignore for custom attribute ref
917
+ .split(/(?<!\.)\.(?!\.)/) # dot with no neighboring dots
918
+ .reject(&:empty?)
919
919
 
920
920
  # First dot-separated component can match any ancestor or top-level doc
921
921
  first_part = parts.shift
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.13.2
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Simard
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-04-02 00:00:00.000000000 Z
14
+ date: 2020-04-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: cocoapods