jazzy 0.11.0 → 0.11.1

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: 6439cb8dc035d69bb0243f06e3b7140b079dd6892840b49e015be636efa7ff64
4
- data.tar.gz: fc97247251923d0f385637721405435e2a3211110c14369876767e2572a25175
3
+ metadata.gz: 7c8747a4dce6e077126ed85f1edf28d1086a91f803be85d79980408a615c826c
4
+ data.tar.gz: 94584ede0b4365b7412e07914048961fcd84a3d0f9fe568047a3c4569cbd4b4f
5
5
  SHA512:
6
- metadata.gz: 4049263b20f10ed92f23f23971df8d2fd57a58d95f0312fd34c5c36f1be170b6889ea82a31f3a972505025d69e4ce3f0b55343b17794ccff06bde3a46d87db3c
7
- data.tar.gz: 10ac755d262c1a19c451b8dce5969924bd95f1f5601ae5f76c2fb748ac6f74d92b3bc6240334a185da3a6a8987a29ea3cc27c138b666d6e95ed0ed9ea930d833
6
+ metadata.gz: 6c5a22a98d6f7669f1555f8196aea1a0ae9cea6f1a1e08044b8eca819e8e0a1f50976b42570a8f954d23eaa2e4ed9d6f8231335b2751a7d993063829282917bb
7
+ data.tar.gz: 30b9480645fdff451fc3bf5856c1ffb3bb0aca32349c28c55ccecc0252e5ee13238968db5908c4d90f23f6c748a0ca30d285d429291327c6a41165d7fa0b0ef8
@@ -1,3 +1,20 @@
1
+ ## 0.11.1
2
+
3
+ ##### Breaking
4
+
5
+ * None.
6
+
7
+ ##### Enhancements
8
+
9
+ * None.
10
+
11
+ ##### Bug Fixes
12
+
13
+ * Don't use SwiftPM if there is an Xcode workspace or project in a non-root
14
+ directory.
15
+ [John Fairhurst](https://github.com/johnfairh)
16
+ [#1103](https://github.com/realm/jazzy/issues/1103)
17
+
1
18
  ## 0.11.0
2
19
 
3
20
  ##### Breaking
data/README.md CHANGED
@@ -23,8 +23,11 @@ unacceptable behavior to [info@realm.io](mailto:info@realm.io).
23
23
 
24
24
  ## Requirements
25
25
 
26
- * Development tools that can build the project you wish to document. Jazzy supports
27
- both [Xcode][xcode] and [Swift Package Manager][spm] projects.
26
+ You need development tools to build the project you wish to document. Jazzy supports
27
+ both [Xcode][xcode] and [Swift Package Manager][spm] projects.
28
+
29
+ Jazzy expects to be running on __macOS__. See [below](#linux) for tips to run Jazzy
30
+ on Linux.
28
31
 
29
32
  ## Installation
30
33
 
@@ -242,6 +245,24 @@ For example to use Xcode 9.4:
242
245
  jazzy --swift-version 4.1.2
243
246
  ```
244
247
 
248
+ ## Linux
249
+
250
+ Jazzy uses [SourceKitten][sourcekitten] to communicate with the Swift build
251
+ environment and compiler. The `sourcekitten` binary included in the Jazzy gem
252
+ is built for macOS and so does not run on other operating systems.
253
+
254
+ To use Jazzy on Linux you first need to install and build `sourcekitten`
255
+ following instructions from [SourceKitten's GitHub repository][sourcekitten].
256
+
257
+ Then to generate documentation for a SwiftPM project, instead of running just
258
+ `jazzy` do:
259
+ ```shell
260
+ sourcekitten doc --spm > doc.json
261
+ jazzy --sourcekitten-sourcefile doc.json
262
+ ```
263
+
264
+ We hope to improve this process in the future.
265
+
245
266
  ## Troubleshooting
246
267
 
247
268
  ### Swift
@@ -1,3 +1,3 @@
1
1
  module Jazzy
2
- VERSION = '0.11.0'.freeze unless defined? Jazzy::VERSION
2
+ VERSION = '0.11.1'.freeze unless defined? Jazzy::VERSION
3
3
  end
@@ -185,7 +185,9 @@ module Jazzy
185
185
  def self.use_spm?(options)
186
186
  options.swift_build_tool == :spm ||
187
187
  (!options.swift_build_tool_configured &&
188
- Dir['*.xcodeproj'].empty?)
188
+ Dir['*.xcodeproj', '*.xcworkspace'].empty? &&
189
+ !options.build_tool_arguments.include?('-project') &&
190
+ !options.build_tool_arguments.include?('-workspace'))
189
191
  end
190
192
 
191
193
  # Builds SourceKitten arguments based on Jazzy options
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.11.0
4
+ version: 0.11.1
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: 2019-09-13 00:00:00.000000000 Z
13
+ date: 2019-09-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cocoapods
@@ -279,7 +279,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  - !ruby/object:Gem::Version
280
280
  version: '0'
281
281
  requirements: []
282
- rubygems_version: 3.0.3
282
+ rubyforge_project:
283
+ rubygems_version: 2.7.3
283
284
  signing_key:
284
285
  specification_version: 4
285
286
  summary: Soulful docs for Swift & Objective-C.