jazzy 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/Gemfile.lock +1 -1
- data/bin/sourcekitten +0 -0
- data/jazzy.gemspec +2 -2
- data/lib/jazzy/doc_builder.rb +13 -3
- data/lib/jazzy/gem_version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5028341546a9eec4aae38995c657eef80a78d6e
|
4
|
+
data.tar.gz: 901bdc8c444a31d0f5bf7560384539e8631c5fe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04e557511f3f4da5961fb5b34dd07ee5c7e7fbd377d6b87b45eac00c27b69a27d8421a6515ac94d47abdddbb2af03e1ddf583a9c3b36b0997203aa994be7ddf5
|
7
|
+
data.tar.gz: 3192502b4f65c2442861f924d49d2284aa7b81c1249b5a1a0ebc38c185f2f693bcdfd0ac69cb2e514a7628cef5e5517dddea3b1ef23ca53db625c78eb7e9208f
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
## 0.0.19
|
2
|
+
|
3
|
+
[sourcekitten](https://github.com/jpsim/sourcekitten/compare/0.2.3...0.2.6)
|
4
|
+
|
5
|
+
##### Breaking
|
6
|
+
|
7
|
+
None.
|
8
|
+
|
9
|
+
##### Enhancements
|
10
|
+
|
11
|
+
* Added CHANGELOG.md.
|
12
|
+
[JP Simard](https://github.com/jpsim)
|
13
|
+
[#125](https://github.com/realm/jazzy/issues/125)
|
14
|
+
|
15
|
+
* Include parse errors in the JSON output & print to STDERR.
|
16
|
+
[JP Simard](https://github.com/jpsim)
|
17
|
+
[jpsim/sourcekitten#16](https://github.com/jpsim/sourcekitten/issues/16)
|
18
|
+
|
19
|
+
##### Bug Fixes
|
20
|
+
|
21
|
+
* Fixed crash when files contained a declaration on the first line.
|
22
|
+
[JP Simard](https://github.com/jpsim)
|
23
|
+
[jpsim/sourcekitten#14](https://github.com/jpsim/sourcekitten/issues/14)
|
24
|
+
|
25
|
+
* Fixed invalid JSON issue when last file in an Xcode project failed to parse.
|
26
|
+
[JP Simard](https://github.com/jpsim)
|
27
|
+
|
28
|
+
* Fixed crash when attempting to parse the declaration of `extension Array`.
|
29
|
+
[JP Simard](https://github.com/jpsim)
|
30
|
+
[#126](https://github.com/realm/jazzy/issues/126)
|
data/Gemfile.lock
CHANGED
data/bin/sourcekitten
CHANGED
Binary file
|
data/jazzy.gemspec
CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.version = Jazzy::VERSION
|
8
8
|
spec.authors = ['JP Simard', 'Tim Anglade', 'Samuel Giddins']
|
9
9
|
spec.email = ['jp@realm.io']
|
10
|
-
spec.summary = '
|
11
|
-
spec.description = '
|
10
|
+
spec.summary = 'Soulful docs for Swift & Objective-C.'
|
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
14
|
spec.homepage = 'http://github.com/realm/jazzy'
|
data/lib/jazzy/doc_builder.rb
CHANGED
@@ -121,6 +121,18 @@ module Jazzy
|
|
121
121
|
puts "jam out ♪♫ to your fresh new docs in `#{output_dir}`"
|
122
122
|
end
|
123
123
|
|
124
|
+
def self.decl_for_token(token)
|
125
|
+
if token['key.parsed_declaration']
|
126
|
+
token['key.parsed_declaration']
|
127
|
+
elsif token['key.annotated_decl']
|
128
|
+
token['key.annotated_decl'].gsub(/<[^>]+>/, '')
|
129
|
+
elsif token['key.name']
|
130
|
+
token['key.name']
|
131
|
+
else
|
132
|
+
'unknown declaration'
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
124
136
|
def self.write_undocumented_file(undocumented, output_dir)
|
125
137
|
(output_dir + 'undocumented.txt').open('w') do |f|
|
126
138
|
tokens_by_file = undocumented.group_by do |d|
|
@@ -133,9 +145,7 @@ module Jazzy
|
|
133
145
|
tokens_by_file.each_key do |file|
|
134
146
|
f.write(file + "\n")
|
135
147
|
tokens_by_file[file].each do |token|
|
136
|
-
|
137
|
-
token['key.annotated_decl'].gsub(/<[^>]+>/, '')
|
138
|
-
f.write("\t" + decl + "\n")
|
148
|
+
f.write("\t" + decl_for_token(token) + "\n")
|
139
149
|
end
|
140
150
|
end
|
141
151
|
end
|
data/lib/jazzy/gem_version.rb
CHANGED
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.0.
|
4
|
+
version: 0.0.19
|
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: 2014-12-
|
13
|
+
date: 2014-12-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mustache
|
@@ -138,8 +138,8 @@ dependencies:
|
|
138
138
|
- - "~>"
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '10.3'
|
141
|
-
description:
|
142
|
-
|
141
|
+
description: Soulful docs for Swift & Objective-C. Run in your Xcode project's root
|
142
|
+
directory for instant HTML docs.
|
143
143
|
email:
|
144
144
|
- jp@realm.io
|
145
145
|
executables:
|
@@ -151,6 +151,7 @@ files:
|
|
151
151
|
- ".gitmodules"
|
152
152
|
- ".rubocop.yml"
|
153
153
|
- ".travis.yml"
|
154
|
+
- CHANGELOG.md
|
154
155
|
- Gemfile
|
155
156
|
- Gemfile.lock
|
156
157
|
- LICENSE
|
@@ -335,5 +336,5 @@ rubyforge_project:
|
|
335
336
|
rubygems_version: 2.2.2
|
336
337
|
signing_key:
|
337
338
|
specification_version: 4
|
338
|
-
summary:
|
339
|
+
summary: Soulful docs for Swift & Objective-C.
|
339
340
|
test_files: []
|