jazzy 0.9.2 → 0.9.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
  SHA1:
3
- metadata.gz: ded8d78313e2fcab8ead87a65f4cf9f35d2584a1
4
- data.tar.gz: eb426a586c8fce20e5e87c9ccbaac0466bd10d8d
3
+ metadata.gz: accd6c9ed649bd4be1a4bbc78ad1d0bce7c426de
4
+ data.tar.gz: 7b3d85bc26cef54041f0b9536e9273f283e952d6
5
5
  SHA512:
6
- metadata.gz: 6694288ef466e3f3fa62508ae1905cbb1c76cf9a0a010b46ca167d08aa2d3dbc6951d306bcfb48102fe36758e8f89a45d429a992ac934b2dbe924198f3380891
7
- data.tar.gz: 56ba55fa32962a163b739455a6f1965aead62019582e3cb8ca81e39f8d26df4723965ab5029fca2db0a3fecf62c11d3c948e93a987ae22d2826d3f67e32e8d02
6
+ metadata.gz: f738c74fb08575c110f13407de425ad988b582f56798fa09899a8e87735c62d966faf4e519eeae349a97393ee69b6c8ece48b1a2df3c2fc9623976dc4d1289d1
7
+ data.tar.gz: 77fd0c7d2d0ca3af3c284c04c1789747bff4e1dee6c7dfa567092bd3539ee3a1f9e67bf2438bda43f96aa572c4374ac21534006fb17b2df72f54984eaa171dfb
@@ -1,3 +1,23 @@
1
+ ## 0.9.3
2
+
3
+ ##### Breaking
4
+
5
+ * None.
6
+
7
+ ##### Enhancements
8
+
9
+ * None.
10
+
11
+ ##### Bug Fixes
12
+
13
+ * Fix crash when specifying empty Swift version. Now correctly uses the default
14
+ Swift version.
15
+ [JP Simard](https://github.com/jpsim)
16
+
17
+ * Fix jony theme selection.
18
+ [John Fairhurst](https://github.com/johnfairh)
19
+ [#962](https://github.com/realm/jazzy/issues/962)
20
+
1
21
  ## 0.9.2
2
22
 
3
23
  ##### Breaking
@@ -738,7 +758,7 @@
738
758
  [#310](https://github.com/realm/jazzy/pull/310)
739
759
 
740
760
  * Render special list items (e.g. Throws, See, etc.). See
741
- http://ericasadun.com/2015/06/14/swift-header-documentation-in-xcode-7/ for
761
+ https://ericasadun.com/2015/06/14/swift-header-documentation-in-xcode-7/ for
742
762
  a complete list.
743
763
  [JP Simard](https://github.com/jpsim)
744
764
  [#317](https://github.com/realm/jazzy/issues/317)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jazzy (0.9.2)
4
+ jazzy (0.9.3)
5
5
  cocoapods (~> 1.0)
6
6
  mustache (~> 0.99)
7
7
  open4
data/README.md CHANGED
@@ -54,7 +54,7 @@ all available options, run `jazzy --help config`.
54
54
  ### Supported keywords
55
55
 
56
56
  Swift documentation is written in markdown and supports a number of special keywords.
57
- For a complete list and examples, see Erica Sadun's post on [*Swift header documentation in Xcode 7*](http://ericasadun.com/2015/06/14/swift-header-documentation-in-xcode-7/),
57
+ For a complete list and examples, see Erica Sadun's post on [*Swift header documentation in Xcode 7*](https://ericasadun.com/2015/06/14/swift-header-documentation-in-xcode-7/),
58
58
  her [book on Swift Documentation Markup](https://itunes.apple.com/us/book/swift-documentation-markup/id1049010423), and the [Xcode Markup Formatting Reference](https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_markup_formatting_ref/).
59
59
 
60
60
  For Objective-C documentation the same keywords are supported, but note that the format
@@ -186,7 +186,7 @@ Unlike the `--documentation` option, these files are not included in navigation
186
186
 
187
187
  This is very helpful when using `custom_categories` for grouping types and including relevant documentation in those sections.
188
188
 
189
- For an example of a project using both `--documentation` and `--abstract` see: [http://reswift.github.io/ReSwift/](http://reswift.github.io/ReSwift/)
189
+ For an example of a project using both `--documentation` and `--abstract` see: [https://reswift.github.io/ReSwift/](https://reswift.github.io/ReSwift/)
190
190
 
191
191
  ### Controlling what is documented
192
192
 
@@ -273,10 +273,10 @@ See [our other open source projects](https://github.com/realm),
273
273
  read [our blog](https://realm.io/news) or say hi on twitter
274
274
  ([@realm](https://twitter.com/realm)).
275
275
 
276
- [clang]: http://clang.llvm.org "Clang"
277
- [sourcekit]: http://www.jpsim.com/uncovering-sourcekit "Uncovering SourceKit"
278
- [ast]: http://clang.llvm.org/docs/IntroductionToTheClangAST.html "Introduction To The Clang AST"
276
+ [clang]: https://clang.llvm.org "Clang"
277
+ [sourcekit]: https://www.jpsim.com/uncovering-sourcekit "Uncovering SourceKit"
278
+ [ast]: https://clang.llvm.org/docs/IntroductionToTheClangAST.html "Introduction To The Clang AST"
279
279
  [xcode]: https://developer.apple.com/xcode "Xcode"
280
280
  [SourceKitten]: https://github.com/jpsim/SourceKitten "SourceKitten"
281
- [bundler]: http://rubygems.org/gems/bundler
282
- [mustache]: http://mustache.github.io "Mustache"
281
+ [bundler]: https://rubygems.org/gems/bundler
282
+ [mustache]: https://mustache.github.io "Mustache"
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.description = 'Soulful docs for Swift & Objective-C. ' \
12
12
  "Run in your Xcode project's root directory for " \
13
13
  'instant HTML docs.'
14
- spec.homepage = 'http://github.com/realm/jazzy'
14
+ spec.homepage = 'https://github.com/realm/jazzy'
15
15
  spec.license = 'MIT'
16
16
 
17
17
  spec.files = `git ls-files`.split($/)
@@ -180,9 +180,12 @@ module Jazzy
180
180
  command_line: '--swift-version VERSION',
181
181
  default: nil,
182
182
  parse: ->(v) do
183
- return nil if v.to_s.empty?
184
- raise 'jazzy only supports Swift 2.0 or later.' if v.to_f < 2
185
- v
183
+ if v.to_s.empty?
184
+ nil
185
+ else
186
+ raise 'jazzy only supports Swift 2.0 or later.' if v.to_f < 2
187
+ v
188
+ end
186
189
  end
187
190
 
188
191
  # ──────── Metadata ────────
@@ -194,7 +197,7 @@ module Jazzy
194
197
 
195
198
  config_attr :author_url,
196
199
  command_line: ['-u', '--author_url URL'],
197
- description: 'Author URL of this project (e.g. http://realm.io)',
200
+ description: 'Author URL of this project (e.g. https://realm.io)',
198
201
  default: '',
199
202
  parse: ->(u) { URI(u) }
200
203
 
@@ -252,7 +255,7 @@ module Jazzy
252
255
  config_attr :dash_url,
253
256
  command_line: ['-d', '--dash_url URL'],
254
257
  description: 'Location of the dash XML feed '\
255
- 'e.g. http://realm.io/docsets/realm.xml)',
258
+ 'e.g. https://realm.io/docsets/realm.xml)',
256
259
  parse: ->(d) { URI(d) }
257
260
 
258
261
  config_attr :github_url,
@@ -302,7 +305,7 @@ module Jazzy
302
305
  description: ['Custom navigation categories to replace the standard '\
303
306
  '“Classes, Protocols, etc.”', 'Types not explicitly named '\
304
307
  'in a custom category appear in generic groups at the end.',
305
- 'Example: http://git.io/v4Bcp'],
308
+ 'Example: https://git.io/v4Bcp'],
306
309
  default: []
307
310
 
308
311
  config_attr :custom_head,
@@ -310,15 +313,19 @@ module Jazzy
310
313
  description: 'Custom HTML to inject into <head></head>.',
311
314
  default: ''
312
315
 
316
+ BUILTIN_THEME_DIR = Pathname(__FILE__).parent + 'themes'
317
+ BUILTIN_THEMES = BUILTIN_THEME_DIR.children(false).map(&:to_s)
318
+
313
319
  config_attr :theme_directory,
314
- command_line: '--theme [apple | fullwidth | jony | DIRPATH]',
320
+ command_line: "--theme [#{BUILTIN_THEMES.join(' | ')} | DIRPATH]",
315
321
  description: "Which theme to use. Specify either 'apple' (default), "\
316
- "'fullwidth', 'jony' or the path to your mustache " \
317
- 'templates and other assets for a custom theme.',
322
+ 'one of the other built-in theme names, or the path to '\
323
+ 'your mustache templates and other assets for a custom '\
324
+ 'theme.',
318
325
  default: 'apple',
319
326
  parse: ->(t) do
320
- if %w[apple fullwidth].include?(t)
321
- Pathname(__FILE__).parent + 'themes' + t
327
+ if BUILTIN_THEMES.include?(t)
328
+ BUILTIN_THEME_DIR + t
322
329
  else
323
330
  expand_path(t)
324
331
  end
@@ -3,7 +3,7 @@ require 'sqlite3'
3
3
 
4
4
  module Jazzy
5
5
  module DocBuilder
6
- # Follows the instructions found at http://kapeli.com/docsets#dashDocset.
6
+ # Follows the instructions found at https://kapeli.com/docsets#dashDocset.
7
7
  class DocsetBuilder
8
8
  include Config::Mixin
9
9
 
@@ -1,3 +1,3 @@
1
1
  module Jazzy
2
- VERSION = '0.9.2'.freeze unless defined? Jazzy::VERSION
2
+ VERSION = '0.9.3'.freeze unless defined? Jazzy::VERSION
3
3
  end
@@ -1,4 +1,4 @@
1
1
  <section id="footer">
2
2
  {{{copyright}}}
3
- <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
3
+ <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
4
4
  </section>
@@ -1,4 +1,4 @@
1
1
  <section class="footer">
2
2
  {{{copyright}}}
3
- <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
3
+ <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
4
4
  </section>
@@ -1,4 +1,4 @@
1
1
  <section id="footer">
2
2
  {{{copyright}}}
3
- <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
3
+ <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v{{jazzy_version}}</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
4
4
  </section>
@@ -210,8 +210,9 @@ describe_cli 'jazzy' do
210
210
  behaves_like cli_spec 'document_siesta',
211
211
  # Siesta already has Docs/
212
212
  '--output api-docs',
213
- # Use Swift 4.1 rather than the specified 3.0.2
214
- '--swift-version=4.1'
213
+ # Use the default Swift version rather than the
214
+ # specified 4.0
215
+ '--swift-version='
215
216
  end
216
217
 
217
218
  describe 'Creates docs for Swift project with a variety of contents' do
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.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Simard
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-04-21 00:00:00.000000000 Z
13
+ date: 2018-05-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cocoapods
@@ -258,7 +258,7 @@ files:
258
258
  - spec/sourcekitten_spec.rb
259
259
  - spec/spec_helper.rb
260
260
  - spec/spec_helper/pre_flight.rb
261
- homepage: http://github.com/realm/jazzy
261
+ homepage: https://github.com/realm/jazzy
262
262
  licenses:
263
263
  - MIT
264
264
  metadata: {}