jazzy 0.2.1 → 0.2.2
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 +4 -4
- data/.travis.yml +16 -0
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +21 -18
- data/README.md +9 -2
- data/lib/jazzy/config.rb +13 -0
- data/lib/jazzy/doc.rb +2 -1
- data/lib/jazzy/gem_version.rb +1 -1
- data/lib/jazzy/{doc.mustache → templates/doc.mustache} +4 -4
- data/lib/jazzy/{partials → templates}/footer.mustache +0 -0
- data/lib/jazzy/{partials → templates}/header.mustache +0 -0
- data/lib/jazzy/{partials → templates}/nav.mustache +0 -0
- data/lib/jazzy/{partials → templates}/parameter.mustache +0 -0
- data/lib/jazzy/{partials → templates}/task.mustache +1 -1
- data/lib/jazzy/{partials → templates}/tasks.mustache +1 -1
- data/spec/integration_spec.rb +5 -1
- metadata +10 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19c85014e711d310498a311bb30099ee0a6c9bbb
|
|
4
|
+
data.tar.gz: d6c589b0ef0551de858cfc471da17108fe762972
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78fdb1e5bb33da47b03ec512f448873fa1bfc46a08cd96cb633080c4b6ed81593f14c6269710c3da2291825c0a938e0aeca47be2b88de7d6175d68689f196647
|
|
7
|
+
data.tar.gz: 3d27a0e9fbcab0e860873c9e00594c6e43d533ad710cc0fc562c146adfd180e5841d18c2c17370fbdfe758901ab8951279c1d87ae397d146ff23dc03d7ebecbc
|
data/.travis.yml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
language: objective-c
|
|
2
|
+
osx_image: beta-xcode6.3
|
|
3
|
+
cache: bundler
|
|
4
|
+
branches:
|
|
5
|
+
only:
|
|
6
|
+
- master
|
|
7
|
+
rvm:
|
|
8
|
+
- system
|
|
9
|
+
before_install:
|
|
10
|
+
- sudo gem install bundler
|
|
11
|
+
- git submodule update --init --recursive
|
|
12
|
+
script:
|
|
13
|
+
- bundle exec rake spec
|
|
14
|
+
notifications:
|
|
15
|
+
email: false
|
|
16
|
+
slack: realmio:vPdpsG9NLDo2DNlbqtcMAQuE
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 0.2.2
|
|
2
|
+
|
|
3
|
+
##### Breaking
|
|
4
|
+
|
|
5
|
+
* None.
|
|
6
|
+
|
|
7
|
+
##### Enhancements
|
|
8
|
+
|
|
9
|
+
* Added support for custom templates: use the `-t`/`--template-directory`
|
|
10
|
+
argument to jazzy.
|
|
11
|
+
[JP Simard](https://github.com/jpsim)
|
|
12
|
+
[#20](https://github.com/realm/jazzy/issues/20)
|
|
13
|
+
|
|
14
|
+
##### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* None.
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## 0.2.1
|
|
2
20
|
|
|
3
21
|
##### Breaking
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
jazzy (0.2.
|
|
4
|
+
jazzy (0.2.2)
|
|
5
5
|
cocoapods (~> 0.37)
|
|
6
6
|
mustache (~> 0.99)
|
|
7
7
|
open4
|
|
@@ -13,7 +13,7 @@ PATH
|
|
|
13
13
|
GEM
|
|
14
14
|
remote: http://rubygems.org/
|
|
15
15
|
specs:
|
|
16
|
-
activesupport (4.2.
|
|
16
|
+
activesupport (4.2.3)
|
|
17
17
|
i18n (~> 0.7)
|
|
18
18
|
json (~> 1.7, >= 1.7.7)
|
|
19
19
|
minitest (~> 5.1)
|
|
@@ -24,34 +24,34 @@ GEM
|
|
|
24
24
|
astrolabe (1.3.0)
|
|
25
25
|
parser (>= 2.2.0.pre.3, < 3.0)
|
|
26
26
|
bacon (1.2.0)
|
|
27
|
-
claide (0.8.
|
|
27
|
+
claide (0.8.2)
|
|
28
28
|
clintegracon (0.5.3)
|
|
29
29
|
colored (~> 1.2)
|
|
30
30
|
diffy
|
|
31
|
-
cocoapods (0.37.
|
|
31
|
+
cocoapods (0.37.2)
|
|
32
32
|
activesupport (>= 3.2.15)
|
|
33
33
|
claide (~> 0.8.1)
|
|
34
|
-
cocoapods-core (= 0.37.
|
|
34
|
+
cocoapods-core (= 0.37.2)
|
|
35
35
|
cocoapods-downloader (~> 0.9.0)
|
|
36
36
|
cocoapods-plugins (~> 0.4.2)
|
|
37
|
-
cocoapods-trunk (~> 0.6.
|
|
38
|
-
cocoapods-try (~> 0.4.
|
|
37
|
+
cocoapods-trunk (~> 0.6.1)
|
|
38
|
+
cocoapods-try (~> 0.4.5)
|
|
39
39
|
colored (~> 1.2)
|
|
40
40
|
escape (~> 0.0.4)
|
|
41
41
|
molinillo (~> 0.2.3)
|
|
42
42
|
nap (~> 0.8)
|
|
43
|
-
xcodeproj (~> 0.24.
|
|
44
|
-
cocoapods-core (0.37.
|
|
43
|
+
xcodeproj (~> 0.24.2)
|
|
44
|
+
cocoapods-core (0.37.2)
|
|
45
45
|
activesupport (>= 3.2.15)
|
|
46
46
|
fuzzy_match (~> 2.0.4)
|
|
47
47
|
nap (~> 0.8.0)
|
|
48
|
-
cocoapods-downloader (0.9.
|
|
48
|
+
cocoapods-downloader (0.9.1)
|
|
49
49
|
cocoapods-plugins (0.4.2)
|
|
50
50
|
nap
|
|
51
|
-
cocoapods-trunk (0.6.
|
|
51
|
+
cocoapods-trunk (0.6.1)
|
|
52
52
|
nap (>= 0.8)
|
|
53
53
|
netrc (= 0.7.8)
|
|
54
|
-
cocoapods-try (0.4.
|
|
54
|
+
cocoapods-try (0.4.5)
|
|
55
55
|
colored (1.2)
|
|
56
56
|
crack (0.4.2)
|
|
57
57
|
safe_yaml (~> 1.0.0)
|
|
@@ -59,9 +59,9 @@ GEM
|
|
|
59
59
|
escape (0.0.4)
|
|
60
60
|
fuzzy_match (2.0.4)
|
|
61
61
|
i18n (0.7.0)
|
|
62
|
-
json (1.8.
|
|
62
|
+
json (1.8.3)
|
|
63
63
|
metaclass (0.0.4)
|
|
64
|
-
minitest (5.
|
|
64
|
+
minitest (5.7.0)
|
|
65
65
|
mocha (1.1.0)
|
|
66
66
|
metaclass (~> 0.0.1)
|
|
67
67
|
mocha-on-bacon (0.2.2)
|
|
@@ -79,8 +79,8 @@ GEM
|
|
|
79
79
|
bacon (~> 1.2)
|
|
80
80
|
rainbow (2.0.0)
|
|
81
81
|
rake (10.3.2)
|
|
82
|
-
redcarpet (3.2
|
|
83
|
-
rouge (1.
|
|
82
|
+
redcarpet (3.3.2)
|
|
83
|
+
rouge (1.9.0)
|
|
84
84
|
rubocop (0.26.1)
|
|
85
85
|
astrolabe (~> 1.3)
|
|
86
86
|
parser (>= 2.2.0.pre.4, < 3.0)
|
|
@@ -89,7 +89,7 @@ GEM
|
|
|
89
89
|
ruby-progressbar (~> 1.4)
|
|
90
90
|
ruby-progressbar (1.6.0)
|
|
91
91
|
safe_yaml (1.0.4)
|
|
92
|
-
sass (3.4.
|
|
92
|
+
sass (3.4.15)
|
|
93
93
|
slop (3.6.0)
|
|
94
94
|
sqlite3 (1.3.10)
|
|
95
95
|
thread_safe (0.3.5)
|
|
@@ -98,7 +98,7 @@ GEM
|
|
|
98
98
|
webmock (1.20.0)
|
|
99
99
|
addressable (>= 2.3.6)
|
|
100
100
|
crack (>= 0.3.2)
|
|
101
|
-
xcodeproj (0.24.
|
|
101
|
+
xcodeproj (0.24.3)
|
|
102
102
|
activesupport (>= 3)
|
|
103
103
|
colored (~> 1.2)
|
|
104
104
|
|
|
@@ -117,3 +117,6 @@ DEPENDENCIES
|
|
|
117
117
|
rake (~> 10.3)
|
|
118
118
|
rubocop
|
|
119
119
|
webmock
|
|
120
|
+
|
|
121
|
+
BUNDLED WITH
|
|
122
|
+
1.10.5
|
data/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
+

|
|
6
|
+
|
|
5
7
|
jazzy is a command-line utility that generates documentation for your Swift or
|
|
6
8
|
Objective-C projects.
|
|
7
9
|
|
|
@@ -19,8 +21,8 @@ documentation, post WWDC 2014.
|
|
|
19
21
|
|
|
20
22
|
### Requirements
|
|
21
23
|
|
|
22
|
-
* [Xcode 6.
|
|
23
|
-
* `xcode-select -p` should print Xcode 6.
|
|
24
|
+
* [Xcode 6.3][xcode], installed in `/Applications/Xcode.app`
|
|
25
|
+
* `xcode-select -p` should print Xcode 6.3's path. If it doesn't, run
|
|
24
26
|
`sudo xcode-select -s /Applications/Xcode.app/Contents/Developer`
|
|
25
27
|
|
|
26
28
|
### Installing
|
|
@@ -32,6 +34,11 @@ To install jazzy, run `[sudo] gem install jazzy` from your command line.
|
|
|
32
34
|
Run `jazzy` from your command line. Run `jazzy -h` for a list of additional
|
|
33
35
|
options.
|
|
34
36
|
|
|
37
|
+
### Troubleshooting
|
|
38
|
+
|
|
39
|
+
#### Only extensions are listed in the documentation.
|
|
40
|
+
By default, jazzy only documents public declarations. To generate documentation for declarations with a lower accessibility level (internal or private), please set the `--min-acl` flag to `internal` or `private`.
|
|
41
|
+
|
|
35
42
|
### Development
|
|
36
43
|
|
|
37
44
|
jazzy is composed of two parts: the parser ([sourcekitten][sourcekitten],
|
data/lib/jazzy/config.rb
CHANGED
|
@@ -2,6 +2,7 @@ require 'optparse'
|
|
|
2
2
|
require 'pathname'
|
|
3
3
|
require 'uri'
|
|
4
4
|
|
|
5
|
+
require 'jazzy/doc'
|
|
5
6
|
require 'jazzy/podspec_documenter'
|
|
6
7
|
require 'jazzy/source_declaration/access_control_level'
|
|
7
8
|
|
|
@@ -29,6 +30,7 @@ module Jazzy
|
|
|
29
30
|
attr_accessor :docset_path
|
|
30
31
|
attr_accessor :source_directory
|
|
31
32
|
attr_accessor :excluded_files
|
|
33
|
+
attr_accessor :template_directory
|
|
32
34
|
|
|
33
35
|
def initialize
|
|
34
36
|
PodspecDocumenter.configure(self, Dir['*.podspec{,.json}'].first)
|
|
@@ -44,12 +46,18 @@ module Jazzy
|
|
|
44
46
|
self.skip_undocumented = false
|
|
45
47
|
self.source_directory = Pathname.pwd
|
|
46
48
|
self.excluded_files = []
|
|
49
|
+
self.template_directory = Pathname(__FILE__).parent + 'templates'
|
|
47
50
|
end
|
|
48
51
|
|
|
49
52
|
def podspec=(podspec)
|
|
50
53
|
@podspec = PodspecDocumenter.configure(self, podspec)
|
|
51
54
|
end
|
|
52
55
|
|
|
56
|
+
def template_directory=(template_directory)
|
|
57
|
+
@template_directory = template_directory
|
|
58
|
+
Doc.template_path = template_directory
|
|
59
|
+
end
|
|
60
|
+
|
|
53
61
|
# rubocop:disable Metrics/MethodLength
|
|
54
62
|
def self.parse!
|
|
55
63
|
config = new
|
|
@@ -161,6 +169,11 @@ module Jazzy
|
|
|
161
169
|
config.source_directory = Pathname(source_directory)
|
|
162
170
|
end
|
|
163
171
|
|
|
172
|
+
opt.on('t', '--template-directory DIRPATH', 'The directory that ' \
|
|
173
|
+
'contains the mustache templates to use') do |template_directory|
|
|
174
|
+
config.template_directory = Pathname(template_directory)
|
|
175
|
+
end
|
|
176
|
+
|
|
164
177
|
opt.on('--readme FILEPATH',
|
|
165
178
|
'The path to a markdown README file') do |readme|
|
|
166
179
|
config.readme_path = Pathname(readme)
|
data/lib/jazzy/doc.rb
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
require 'date'
|
|
2
2
|
require 'pathname'
|
|
3
|
+
require 'mustache'
|
|
3
4
|
|
|
4
5
|
require 'jazzy/gem_version'
|
|
5
6
|
|
|
6
7
|
module Jazzy
|
|
7
8
|
class Doc < Mustache
|
|
8
|
-
self.
|
|
9
|
+
self.template_name = 'doc'
|
|
9
10
|
|
|
10
11
|
def date
|
|
11
12
|
# Fake date is used to keep integration tests consistent
|
data/lib/jazzy/gem_version.rb
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<a name="//apple_ref/swift/{{dash_type}}/{{name}}" class="dashAnchor"></a>
|
|
14
14
|
{{/dash_type}}
|
|
15
15
|
<a title="{{name}} {{kind}} Reference"></a>
|
|
16
|
-
{{>
|
|
16
|
+
{{> header}}
|
|
17
17
|
<div class="content-wrapper">
|
|
18
18
|
<p id="breadcrumbs">
|
|
19
19
|
<a href="{{path_to_root}}index.html">{{module_name}} Reference</a>
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
</p>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="content-wrapper">
|
|
25
|
-
{{>
|
|
25
|
+
{{> nav}}
|
|
26
26
|
<article class="main-content">
|
|
27
27
|
<section>
|
|
28
28
|
<section class="section">
|
|
29
29
|
{{^hide_name}}<h1>{{name}}</h1>{{/hide_name}}
|
|
30
30
|
{{{overview}}}
|
|
31
31
|
</section>
|
|
32
|
-
{{>
|
|
32
|
+
{{> tasks}}
|
|
33
33
|
</section>
|
|
34
|
-
{{>
|
|
34
|
+
{{> footer}}
|
|
35
35
|
</article>
|
|
36
36
|
</div>
|
|
37
37
|
</body>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/spec/integration_spec.rb
CHANGED
|
@@ -48,6 +48,10 @@ require 'pretty_bacon'
|
|
|
48
48
|
require 'colored'
|
|
49
49
|
require 'CLIntegracon'
|
|
50
50
|
|
|
51
|
+
require 'cocoapods'
|
|
52
|
+
Pod::Config.instance.silent = true
|
|
53
|
+
Pod::Command::Setup.invoke
|
|
54
|
+
|
|
51
55
|
CLIntegracon.configure do |c|
|
|
52
56
|
c.spec_path = ROOT + 'spec/integration_specs'
|
|
53
57
|
c.temp_path = ROOT + 'tmp'
|
|
@@ -77,7 +81,7 @@ describe_cli 'jazzy' do
|
|
|
77
81
|
s.environment_vars = {
|
|
78
82
|
'JAZZY_FAKE_DATE' => 'YYYY-MM-DD',
|
|
79
83
|
'JAZZY_FAKE_VERSION' => 'X.X.X',
|
|
80
|
-
'
|
|
84
|
+
'COCOAPODS_SKIP_UPDATE_MESSAGE' => 'TRUE',
|
|
81
85
|
}
|
|
82
86
|
s.default_args = []
|
|
83
87
|
s.replace_path ROOT.to_s, 'ROOT'
|
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.2.
|
|
4
|
+
version: 0.2.2
|
|
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: 2015-
|
|
13
|
+
date: 2015-07-07 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: cocoapods
|
|
@@ -151,6 +151,7 @@ files:
|
|
|
151
151
|
- ".gitignore"
|
|
152
152
|
- ".gitmodules"
|
|
153
153
|
- ".rubocop.yml"
|
|
154
|
+
- ".travis.yml"
|
|
154
155
|
- CHANGELOG.md
|
|
155
156
|
- Gemfile
|
|
156
157
|
- Gemfile.lock
|
|
@@ -192,7 +193,6 @@ files:
|
|
|
192
193
|
- lib/jazzy/assets/js/jazzy.js
|
|
193
194
|
- lib/jazzy/assets/js/jquery.min.js
|
|
194
195
|
- lib/jazzy/config.rb
|
|
195
|
-
- lib/jazzy/doc.mustache
|
|
196
196
|
- lib/jazzy/doc.rb
|
|
197
197
|
- lib/jazzy/doc_builder.rb
|
|
198
198
|
- lib/jazzy/docset_builder.rb
|
|
@@ -201,12 +201,6 @@ files:
|
|
|
201
201
|
- lib/jazzy/gem_version.rb
|
|
202
202
|
- lib/jazzy/highlighter.rb
|
|
203
203
|
- lib/jazzy/jazzy_markdown.rb
|
|
204
|
-
- lib/jazzy/partials/footer.mustache
|
|
205
|
-
- lib/jazzy/partials/header.mustache
|
|
206
|
-
- lib/jazzy/partials/nav.mustache
|
|
207
|
-
- lib/jazzy/partials/parameter.mustache
|
|
208
|
-
- lib/jazzy/partials/task.mustache
|
|
209
|
-
- lib/jazzy/partials/tasks.mustache
|
|
210
204
|
- lib/jazzy/podspec_documenter.rb
|
|
211
205
|
- lib/jazzy/readme_generator.rb
|
|
212
206
|
- lib/jazzy/source_declaration.rb
|
|
@@ -215,6 +209,13 @@ files:
|
|
|
215
209
|
- lib/jazzy/source_mark.rb
|
|
216
210
|
- lib/jazzy/source_module.rb
|
|
217
211
|
- lib/jazzy/sourcekitten.rb
|
|
212
|
+
- lib/jazzy/templates/doc.mustache
|
|
213
|
+
- lib/jazzy/templates/footer.mustache
|
|
214
|
+
- lib/jazzy/templates/header.mustache
|
|
215
|
+
- lib/jazzy/templates/nav.mustache
|
|
216
|
+
- lib/jazzy/templates/parameter.mustache
|
|
217
|
+
- lib/jazzy/templates/task.mustache
|
|
218
|
+
- lib/jazzy/templates/tasks.mustache
|
|
218
219
|
- logo.jpg
|
|
219
220
|
- logo.sketch
|
|
220
221
|
- screenshot.jpg
|