jazzy 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b069018d7703d12f82c015af5684c9e3ca3fbc41
4
- data.tar.gz: 7524e6e46b8bd59be148df44ea5fdfb873c0c1a5
3
+ metadata.gz: f5028341546a9eec4aae38995c657eef80a78d6e
4
+ data.tar.gz: 901bdc8c444a31d0f5bf7560384539e8631c5fe7
5
5
  SHA512:
6
- metadata.gz: 3db8afa17755cd9e7e7bc4594fd3ab39e55661b70a3dab637b3732d4647d1866abfc94fb2b2a2910f4b6c5bb0c04e2ee14464fafb8389f19d50e140c5f6bfc5b
7
- data.tar.gz: 5c8e88b4b8e53373d7475be94c0bdc718b1eed0bc5b0d4615feebb7370fc2111d2bdf186578026ad4097a95517368f155e405aac8ed31bfb24c66f87e3eb0eca
6
+ metadata.gz: 04e557511f3f4da5961fb5b34dd07ee5c7e7fbd377d6b87b45eac00c27b69a27d8421a6515ac94d47abdddbb2af03e1ddf583a9c3b36b0997203aa994be7ddf5
7
+ data.tar.gz: 3192502b4f65c2442861f924d49d2284aa7b81c1249b5a1a0ebc38c185f2f693bcdfd0ac69cb2e514a7628cef5e5517dddea3b1ef23ca53db625c78eb7e9208f
@@ -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)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jazzy (0.0.18)
4
+ jazzy (0.0.19)
5
5
  activesupport (~> 4.1)
6
6
  mustache (~> 0.99)
7
7
  nokogiri (~> 1.6)
Binary file
@@ -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 = 'A soulful way to generate docs for Swift.'
11
- spec.description = 'A soulful way to generate docs for Swift. ' \
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'
@@ -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
- decl = token['key.parsed_declaration'] ||
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
@@ -1,3 +1,3 @@
1
1
  module Jazzy
2
- VERSION = '0.0.18' unless defined? Jazzy::VERSION
2
+ VERSION = '0.0.19' unless defined? Jazzy::VERSION
3
3
  end
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.18
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-23 00:00:00.000000000 Z
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: A soulful way to generate docs for Swift. Run in your Xcode project's
142
- root directory for instant HTML docs.
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: A soulful way to generate docs for Swift.
339
+ summary: Soulful docs for Swift & Objective-C.
339
340
  test_files: []