jazzy 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -2
  3. data/.gitmodules +3 -0
  4. data/.rubocop.yml +67 -0
  5. data/.rubocop_todo.yml +16 -0
  6. data/.travis.yml +6 -0
  7. data/Gemfile +15 -7
  8. data/Gemfile.lock +62 -12
  9. data/LICENSE +0 -0
  10. data/README.md +39 -12
  11. data/Rakefile +87 -1
  12. data/bin/jazzy +10 -44
  13. data/bin/sourcekitten +0 -0
  14. data/jazzy.gemspec +16 -16
  15. data/lib/jazzy.rb +1 -159
  16. data/lib/jazzy/assets/css/jazzy.css +561 -0
  17. data/lib/{assets/Images/carat_2x.png → jazzy/assets/img/carat.png} +0 -0
  18. data/lib/jazzy/assets/img/dash.png +0 -0
  19. data/lib/jazzy/assets/img/gh.png +0 -0
  20. data/lib/jazzy/assets/js/jazzy.js +15 -0
  21. data/lib/jazzy/assets/js/jquery.min.js +4 -0
  22. data/lib/jazzy/config.rb +100 -0
  23. data/lib/jazzy/doc.mustache +46 -0
  24. data/lib/jazzy/doc.rb +23 -0
  25. data/lib/jazzy/doc_builder.rb +166 -0
  26. data/lib/jazzy/gem_version.rb +3 -0
  27. data/lib/jazzy/jazzy_markdown.rb +13 -0
  28. data/lib/jazzy/partials/footer.mustache +4 -0
  29. data/lib/jazzy/partials/nav.mustache +16 -0
  30. data/lib/jazzy/partials/parameter.mustache +12 -0
  31. data/lib/jazzy/partials/task.mustache +66 -0
  32. data/lib/jazzy/partials/tasks.mustache +7 -0
  33. data/lib/jazzy/source_declaration.rb +19 -0
  34. data/lib/jazzy/sourcekitten.rb +146 -0
  35. data/lib/jazzy/xml_helper.rb +15 -0
  36. data/screenshot.jpg +0 -0
  37. data/spec/.gitkeep +0 -0
  38. data/spec/integration_spec.rb +89 -0
  39. data/spec/integration_specs/document_alamofire/after/docs/Classes.html +266 -0
  40. data/spec/integration_specs/document_alamofire/after/docs/Classes/Manager.html +677 -0
  41. data/spec/integration_specs/document_alamofire/after/docs/Classes/Manager/SessionDelegate.html +866 -0
  42. data/spec/integration_specs/document_alamofire/after/docs/Classes/Manager/Singleton.html +246 -0
  43. data/spec/integration_specs/document_alamofire/after/docs/Classes/Request.html +1376 -0
  44. data/spec/integration_specs/document_alamofire/after/docs/Classes/Request/DataTaskDelegate.html +486 -0
  45. data/spec/integration_specs/document_alamofire/after/docs/Classes/Request/TaskDelegate.html +506 -0
  46. data/spec/integration_specs/document_alamofire/after/docs/Enums.html +266 -0
  47. data/spec/integration_specs/document_alamofire/after/docs/Enums/ParameterEncoding.html +391 -0
  48. data/spec/integration_specs/document_alamofire/after/docs/Extensions.html +641 -0
  49. data/spec/integration_specs/document_alamofire/after/docs/Extensions/Manager.html +376 -0
  50. data/spec/integration_specs/document_alamofire/after/docs/Extensions/NSURL.html +226 -0
  51. data/spec/integration_specs/document_alamofire/after/docs/Extensions/NSURLComponents.html +226 -0
  52. data/spec/integration_specs/document_alamofire/after/docs/Extensions/NSURLRequest.html +226 -0
  53. data/spec/integration_specs/document_alamofire/after/docs/Extensions/Request.html +377 -0
  54. data/spec/integration_specs/document_alamofire/after/docs/Extensions/Request/DownloadTaskDelegate.html +406 -0
  55. data/spec/integration_specs/document_alamofire/after/docs/Extensions/Request/MIMEType.html +286 -0
  56. data/spec/integration_specs/document_alamofire/after/docs/Extensions/Request/UploadTaskDelegate.html +266 -0
  57. data/spec/integration_specs/document_alamofire/after/docs/Extensions/String.html +226 -0
  58. data/spec/integration_specs/document_alamofire/after/docs/Functions.html +1001 -0
  59. data/spec/integration_specs/document_alamofire/after/docs/Global Variables.html +236 -0
  60. data/spec/integration_specs/document_alamofire/after/docs/Protocols.html +266 -0
  61. data/spec/integration_specs/document_alamofire/after/docs/Protocols/URLRequestConvertible.html +236 -0
  62. data/spec/integration_specs/document_alamofire/after/docs/Protocols/URLStringConvertible.html +236 -0
  63. data/spec/integration_specs/document_alamofire/after/docs/Typealiases.html +266 -0
  64. data/spec/integration_specs/document_alamofire/after/docs/css/jazzy.css +561 -0
  65. data/spec/integration_specs/document_alamofire/after/docs/img/carat.png +0 -0
  66. data/spec/integration_specs/document_alamofire/after/docs/img/dash.png +0 -0
  67. data/spec/integration_specs/document_alamofire/after/docs/img/gh.png +0 -0
  68. data/spec/integration_specs/document_alamofire/after/docs/index.html +194 -0
  69. data/spec/integration_specs/document_alamofire/after/docs/js/jazzy.js +15 -0
  70. data/spec/integration_specs/document_alamofire/after/docs/js/jquery.min.js +4 -0
  71. data/spec/integration_specs/document_alamofire/after/execution_output.txt +2 -0
  72. data/spec/integration_specs/misc_jazzy_features/after/docs/Classes.html +317 -0
  73. data/spec/integration_specs/misc_jazzy_features/after/docs/Classes/ImplicitlyInternalTopLevelClass.html +138 -0
  74. data/spec/integration_specs/misc_jazzy_features/after/docs/Enums.html +155 -0
  75. data/spec/integration_specs/misc_jazzy_features/after/docs/Enums/DocumentedEnum.html +128 -0
  76. data/spec/integration_specs/misc_jazzy_features/after/docs/Global Variables.html +138 -0
  77. data/spec/integration_specs/misc_jazzy_features/after/docs/css/jazzy.css +561 -0
  78. data/spec/integration_specs/misc_jazzy_features/after/docs/img/carat.png +0 -0
  79. data/spec/integration_specs/misc_jazzy_features/after/docs/img/dash.png +0 -0
  80. data/spec/integration_specs/misc_jazzy_features/after/docs/img/gh.png +0 -0
  81. data/spec/integration_specs/misc_jazzy_features/after/docs/index.html +99 -0
  82. data/spec/integration_specs/misc_jazzy_features/after/docs/js/jazzy.js +15 -0
  83. data/spec/integration_specs/misc_jazzy_features/after/docs/js/jquery.min.js +4 -0
  84. data/spec/integration_specs/misc_jazzy_features/after/execution_output.txt +2 -0
  85. data/spec/integration_specs/misc_jazzy_features/before/MiscJazzyFeatures.xcodeproj/project.pbxproj +293 -0
  86. data/{parser/ASTDump.xcodeproj → spec/integration_specs/misc_jazzy_features/before/MiscJazzyFeatures.xcodeproj}/project.xcworkspace/contents.xcworkspacedata +1 -1
  87. data/spec/integration_specs/misc_jazzy_features/before/MiscJazzyFeatures/Classes.swift +60 -0
  88. data/spec/integration_specs/misc_jazzy_features/before/MiscJazzyFeatures/Info.plist +28 -0
  89. data/spec/integration_specs/misc_jazzy_features/before/MiscJazzyFeatures/MiscJazzyFeatures.h +10 -0
  90. data/spec/integration_specs/misc_jazzy_features/before/docs/Classes.html +317 -0
  91. data/spec/integration_specs/misc_jazzy_features/before/docs/Classes/ImplicitlyInternalTopLevelClass.html +138 -0
  92. data/spec/integration_specs/misc_jazzy_features/before/docs/Enums.html +155 -0
  93. data/spec/integration_specs/misc_jazzy_features/before/docs/Enums/DocumentedEnum.html +128 -0
  94. data/spec/integration_specs/misc_jazzy_features/before/docs/Global Variables.html +138 -0
  95. data/spec/integration_specs/misc_jazzy_features/before/docs/css/jazzy.css +561 -0
  96. data/spec/integration_specs/misc_jazzy_features/before/docs/img/carat.png +0 -0
  97. data/spec/integration_specs/misc_jazzy_features/before/docs/img/dash.png +0 -0
  98. data/spec/integration_specs/misc_jazzy_features/before/docs/img/gh.png +0 -0
  99. data/spec/integration_specs/misc_jazzy_features/before/docs/index.html +99 -0
  100. data/spec/integration_specs/misc_jazzy_features/before/docs/js/jazzy.js +15 -0
  101. data/spec/integration_specs/misc_jazzy_features/before/docs/js/jquery.min.js +4 -0
  102. metadata +112 -76
  103. data/DEV_README.md +0 -35
  104. data/bin/ASTDump +0 -0
  105. data/bin/generate_swift_header.sh +0 -14
  106. data/lib/assets/CSS/style-1.1.15.css +0 -3366
  107. data/lib/assets/Images/apple2.png +0 -0
  108. data/lib/assets/Images/check.png +0 -0
  109. data/lib/assets/Images/class_node_parent_and_child_2x.png +0 -0
  110. data/lib/assets/Images/class_node_subclass_last_child_2x.png +0 -0
  111. data/lib/assets/Images/class_node_subclass_with_siblings_2x.png +0 -0
  112. data/lib/assets/Images/closebox_2x.png +0 -0
  113. data/lib/assets/Images/collection_last_child_2x.png +0 -0
  114. data/lib/assets/Images/collection_last_child_orphan_grandparent_2x.png +0 -0
  115. data/lib/assets/Images/collection_last_child_orphan_parent_2x.png +0 -0
  116. data/lib/assets/Images/collection_last_child_orphan_parent_and_grandparent_2x.png +0 -0
  117. data/lib/assets/Images/collection_node_2x.png +0 -0
  118. data/lib/assets/Images/collection_node_orphan_grandparent_2x.png +0 -0
  119. data/lib/assets/Images/collection_node_orphan_parent_2x.png +0 -0
  120. data/lib/assets/Images/collection_node_orphan_parent_and_grandparent_2x.png +0 -0
  121. data/lib/assets/Images/collection_node_parent_2x.png +0 -0
  122. data/lib/assets/Images/collection_node_parent_last_child_orphan_parent_2x.png +0 -0
  123. data/lib/assets/Images/collection_node_parent_orphan_parent_2x.png +0 -0
  124. data/lib/assets/Images/collection_parent_last_child_2x.png +0 -0
  125. data/lib/assets/Images/download_2x.png +0 -0
  126. data/lib/assets/Images/left_arrow_2x.png +0 -0
  127. data/lib/assets/Images/magnify_2x.png +0 -0
  128. data/lib/assets/Images/minus_2x.png +0 -0
  129. data/lib/assets/Images/playbutton.svg +0 -15
  130. data/lib/assets/Images/plus_2x.png +0 -0
  131. data/lib/assets/Images/right_arrow_2x.png +0 -0
  132. data/lib/assets/Images/search_2x.png +0 -0
  133. data/lib/assets/Images/shortstack_2x.png +0 -0
  134. data/lib/assets/JavaScript/devpubs-1.1.15.js +0 -1293
  135. data/lib/jazzy/jazzhtml.rb +0 -7
  136. data/lib/jazzy/klass.mustache +0 -150
  137. data/lib/jazzy/klass.rb +0 -23
  138. data/lib/jazzy/partials/klass-method.mustache +0 -70
  139. data/lib/jazzy/partials/klass-overview.mustache +0 -6
  140. data/lib/jazzy/partials/klass-property.mustache +0 -41
  141. data/parser/ASTDump.xcodeproj/project.pbxproj +0 -301
  142. data/parser/ASTDump.xcodeproj/project.xcworkspace/xcshareddata/ASTDump.xccheckout +0 -41
  143. data/parser/ASTDump.xcodeproj/project.xcworkspace/xcuserdata/ta.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  144. data/parser/ASTDump.xcodeproj/xcuserdata/ta.xcuserdatad/xcschemes/ASTDump.xcscheme +0 -86
  145. data/parser/ASTDump.xcodeproj/xcuserdata/ta.xcuserdatad/xcschemes/xcschememanagement.plist +0 -22
  146. data/parser/ASTDump/main.cpp +0 -71
  147. data/parser/clang-c/BuildSystem.h +0 -148
  148. data/parser/clang-c/CXCompilationDatabase.h +0 -170
  149. data/parser/clang-c/CXErrorCode.h +0 -64
  150. data/parser/clang-c/CXString.h +0 -61
  151. data/parser/clang-c/Documentation.h +0 -554
  152. data/parser/clang-c/Index.h +0 -5454
  153. data/parser/clang-c/Platform.h +0 -45
  154. data/sample/JAZMusician.h +0 -38
  155. data/sample/JAZMusician.m +0 -19
  156. data/sample/Musician.swift +0 -37
@@ -0,0 +1,7 @@
1
+ {{#tasks.count}}
2
+ <section class="section task-group-section">
3
+ {{#tasks}}
4
+ {{> jazzy/partials/task}}
5
+ {{/tasks}}
6
+ </section>
7
+ {{/tasks.count}}
@@ -0,0 +1,19 @@
1
+ module Jazzy
2
+ class SourceDeclaration
3
+ attr_accessor :kindNamePlural
4
+ attr_accessor :kind
5
+ attr_accessor :kindName
6
+ attr_accessor :file
7
+ attr_accessor :line
8
+ attr_accessor :column
9
+ attr_accessor :usr
10
+ attr_accessor :name
11
+ attr_accessor :declaration
12
+ attr_accessor :abstract
13
+ attr_accessor :discussion
14
+ attr_accessor :return
15
+ attr_accessor :children
16
+ attr_accessor :parameters
17
+ attr_accessor :url
18
+ end
19
+ end
@@ -0,0 +1,146 @@
1
+ require 'active_support/inflector'
2
+ require 'json'
3
+ require 'open3'
4
+
5
+ require 'jazzy/config'
6
+ require 'jazzy/source_declaration'
7
+ require 'jazzy/xml_helper'
8
+
9
+ module Jazzy
10
+ # This module interacts with the sourcekitten command-line executable
11
+ module SourceKitten
12
+ # SourceKit-provided token kinds along with their human-readable descriptions
13
+ # @todo Make sure this list is exhaustive for source.lang.swift.decl.*
14
+ def self.kinds
15
+ {
16
+ 'source.lang.swift.decl.function.method.class' => 'Class Method',
17
+ 'source.lang.swift.decl.var.class' => 'Class Variable',
18
+ 'source.lang.swift.decl.class' => 'Class',
19
+ 'source.lang.swift.decl.function.constructor' => 'Constructor',
20
+ 'source.lang.swift.decl.function.destructor' => 'Destructor',
21
+ 'source.lang.swift.decl.var.global' => 'Global Variable',
22
+ 'source.lang.swift.decl.enumelement' => 'Enum Element',
23
+ 'source.lang.swift.decl.enum' => 'Enum',
24
+ 'source.lang.swift.decl.extension' => 'Extension',
25
+ 'source.lang.swift.decl.function.free' => 'Function',
26
+ 'source.lang.swift.decl.function.method.instance' => 'Instance Method',
27
+ 'source.lang.swift.decl.var.instance' => 'Instance Variable',
28
+ 'source.lang.swift.decl.var.local' => 'Local Variable',
29
+ 'source.lang.swift.decl.var.parameter' => 'Parameter',
30
+ 'source.lang.swift.decl.protocol' => 'Protocol',
31
+ 'source.lang.swift.decl.function.method.static' => 'Static Method',
32
+ 'source.lang.swift.decl.var.static' => 'Static Variable',
33
+ 'source.lang.swift.decl.struct' => 'Struct',
34
+ 'source.lang.swift.decl.function.subscript' => 'Subscript',
35
+ 'source.lang.swift.decl.typealias' => 'Typealias',
36
+ }
37
+ end
38
+
39
+ # Group root-level docs by kind and add as children to a group doc element
40
+ def self.group_docs(docs, kind)
41
+ kind_name_plural = kinds[kind].pluralize
42
+ group, docs = docs.partition { |doc| doc.kind == kind }
43
+ docs << SourceDeclaration.new.tap do |sd|
44
+ sd.name = kind_name_plural
45
+ sd.kind = 'Overview'
46
+ sd.abstract = "The following #{kind_name_plural.downcase} are available " \
47
+ 'globally.'
48
+ sd.children = group
49
+ end if group.count > 0
50
+ docs
51
+ end
52
+
53
+ # Generate doc URL by prepending its parents URLs
54
+ # @return [Hash] input docs with URLs
55
+ def self.make_doc_urls(docs, parents)
56
+ docs.each do |doc|
57
+ if doc.children.count > 0
58
+ # Create HTML page for this doc if it has children
59
+ parents_slash = parents.count > 0 ? '/' : ''
60
+ doc.url = parents.join('/') + parents_slash + doc.name + '.html'
61
+ doc.children = make_doc_urls(doc.children, parents + [doc.name])
62
+ else
63
+ # Don't create HTML page for this doc if it doesn't have children
64
+ # Instead, make its link a hash-link on its parent's page
65
+ doc.url = parents.join('/') + '.html#/' + doc.usr
66
+ end
67
+ end
68
+ docs
69
+ end
70
+
71
+ # Run sourcekitten with given arguments and return
72
+ # STDOUT, STDERR and exit status
73
+ def self.run_sourcekitten(arguments)
74
+ bin_path = File.expand_path(File.join(File.dirname(__FILE__), '../../bin'))
75
+ Open3.capture3("#{bin_path}/sourcekitten #{(arguments).join(' ')}")
76
+ end
77
+
78
+ def self.make_source_declarations(docs)
79
+ declarations = []
80
+ docs.each do |doc|
81
+ if doc.key?('key.diagnostic_stage')
82
+ return make_source_declarations(doc['key.substructure'])
83
+ end
84
+ declaration = SourceDeclaration.new
85
+ declaration.kind = doc['key.kind']
86
+ next unless declaration.kind =~ /^source\.lang\.swift\.decl\..*/
87
+ next if declaration.kind == 'source.lang.swift.decl.var.parameter'
88
+
89
+ declaration.kindName = kinds[declaration.kind]
90
+
91
+ raise 'Please file an issue on https://github.com/realm/jazzy/issues ' \
92
+ "about adding support for `#{declaration.kind}`" unless declaration.kindName
93
+
94
+ declaration.kindNamePlural = declaration.kindName.pluralize
95
+ declaration.file = doc['key.filepath']
96
+ declaration.usr = doc['key.usr']
97
+ declaration.name = doc['key.name']
98
+
99
+ if doc['key.doc.full_as_xml']
100
+ xml = Nokogiri::XML(doc['key.doc.full_as_xml']).root
101
+ declaration.line = XMLHelper.attribute(xml, 'line').to_i
102
+ declaration.column = XMLHelper.attribute(xml, 'column').to_i
103
+ declaration.declaration = XMLHelper.xpath(xml, 'Declaration')
104
+ declaration.abstract = XMLHelper.xpath(xml, 'Abstract')
105
+ declaration.discussion = XMLHelper.xpath(xml, 'Discussion')
106
+ declaration.return = XMLHelper.xpath(xml, 'ResultDiscussion')
107
+
108
+ parameters = []
109
+ xml.xpath('Parameters/Parameter').each do |parameter_el|
110
+ parameters << {
111
+ name: XMLHelper.xpath(parameter_el, 'Name'),
112
+ discussion: Jazzy.markdown.render(
113
+ XMLHelper.xpath(parameter_el, 'Discussion'),
114
+ ),
115
+ }
116
+ end
117
+ declaration.parameters = parameters
118
+ else
119
+ # TODO: Fix these
120
+ declaration.line = 0
121
+ declaration.column = 0
122
+ declaration.abstract = 'Undocumented'
123
+ declaration.parameters = []
124
+ end
125
+
126
+ if doc['key.substructure']
127
+ declaration.children = make_source_declarations(doc['key.substructure'])
128
+ else
129
+ declaration.children = []
130
+ end
131
+ declarations << declaration
132
+ end
133
+ declarations
134
+ end
135
+
136
+ # Parse sourcekitten STDOUT+STDERR output as JSON
137
+ # @return [Hash] structured docs
138
+ def self.parse(sourcekitten_output)
139
+ docs = make_source_declarations(JSON.parse(sourcekitten_output))
140
+ kinds.keys.each do |kind|
141
+ docs = group_docs(docs, kind)
142
+ end
143
+ make_doc_urls(docs, [])
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,15 @@
1
+ require 'nokogiri'
2
+
3
+ module Jazzy
4
+ module XMLHelper
5
+ # Gets value of XML attribute or nil (i.e. file in <Class file="Musician.swift"></Class>)
6
+ def self.attribute(node, name)
7
+ node.attributes[name].value if node.attributes[name]
8
+ end
9
+
10
+ # Gets text in XML node or nil (i.e. s:cMyUSR <USR>s:cMyUSR</USR>)
11
+ def self.xpath(node, xpath)
12
+ node.xpath(xpath).text if node.xpath(xpath).text.length > 0
13
+ end
14
+ end
15
+ end
Binary file
File without changes
@@ -0,0 +1,89 @@
1
+
2
+ # ------------------------------------ #
3
+ # Jazzy Integration tests #
4
+ # ------------------------------------ #
5
+
6
+ #-----------------------------------------------------------------------------#
7
+
8
+ # The following integrations tests are based on file comparison.
9
+ #
10
+ # 1. For each test there is a folder with a `before` and `after` subfolders.
11
+ # 2. The contents of the before folder are copied to the `TMP_DIR` folder and
12
+ # then the given arguments are passed to the `JAZZY_BINARY`.
13
+ # 3. After the jazzy command completes the execution the each file in the
14
+ # `after` subfolder is compared to the contents of the temporary
15
+ # directory. If the contents of the file do not match an error is
16
+ # registered.
17
+ #
18
+ # Notes:
19
+ #
20
+ # - The output of the jazzy command is saved in the `execution_output.txt` file
21
+ # which should be added to the `after` folder to test the Jazzy UI.
22
+ # - To create a new test, just create a before folder with the environment to
23
+ # test, copy it to the after folder and run the tested pod command inside.
24
+ # Then just add the tests below this files with the name of the folder and
25
+ # the arguments.
26
+ #
27
+ # Rationale:
28
+ #
29
+ # - Have a way to track precisely the evolution of the artifacts (and of the
30
+ # UI) produced by jazzy (git diff of the after folders).
31
+ # - Allow uses to submit pull requests with the environment necessary to
32
+ # reproduce an issue.
33
+ # - Have robust tests which don't depend on the programmatic interface of
34
+ # Jazzy. These tests depend only the binary and its arguments an thus are
35
+ # suitable for testing Jazzy regardless of the implementation (they could even
36
+ # work for a Swift one)
37
+
38
+ #-----------------------------------------------------------------------------#
39
+
40
+ # @return [Pathname] The root of the repo.
41
+ #
42
+ ROOT = Pathname.new(File.expand_path('../../', __FILE__)) unless defined? ROOT
43
+ $:.unshift((ROOT + 'spec').to_s)
44
+
45
+ require 'rubygems'
46
+ require 'bundler/setup'
47
+ require 'pretty_bacon'
48
+ require 'colored'
49
+ require 'clintegracon'
50
+
51
+ CLIntegracon.configure do |c|
52
+ c.spec_path = ROOT + 'spec/integration_specs'
53
+ c.temp_path = ROOT + 'tmp'
54
+
55
+ # Ignore certain OSX files
56
+ c.ignores '.DS_Store'
57
+ c.ignores '.git'
58
+ c.ignores /^(?!(docs\/|execution_output.txt))/
59
+
60
+ c.hook_into :bacon
61
+ end
62
+
63
+ describe_cli 'jazzy' do
64
+
65
+ subject do |s|
66
+ s.executable = "ruby #{ROOT + 'bin/jazzy'}"
67
+ s.environment_vars = { 'JAZZY_FAKE_DATE' => '2014-01-01' }
68
+ s.default_args = []
69
+ s.replace_path ROOT.to_s, 'ROOT'
70
+ end
71
+
72
+ describe 'jazzy' do
73
+ describe 'Creates docs with a module name, author name, project URL, ' \
74
+ 'xcodebuild options, and github info' do
75
+ behaves_like cli_spec 'document_alamofire',
76
+ '-m Alamofire -a Alamofire ' \
77
+ '-u https://nshipster.com/alamofire ' \
78
+ '-x -project,Alamofire.xcodeproj ' \
79
+ '-g https://github.com/Alamofire/Alamofire ' \
80
+ '--github-file-prefix https://github.com/Alamofire/Alamofire/blob/1.1.0'
81
+ end
82
+ describe 'Creates docs for Swift project with a variety of contents' do
83
+ behaves_like cli_spec 'misc_jazzy_features',
84
+ '-m MiscJazzyFeatures -a Realm ' \
85
+ '-u https://github.com/realm/jazzy ' \
86
+ '-g https://github.com/realm/jazzy '
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,266 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>Classes Reference</title>
5
+ <link rel="stylesheet" type="text/css" href="css/jazzy.css" />
6
+ <meta charset='utf-8'>
7
+ <script src="js/jquery.min.js" defer></script>
8
+ <script src="js/jazzy.js" defer></script>
9
+ </head>
10
+ <body id="reference" class="Swift">
11
+ <a title="Classes Reference"></a>
12
+ <header>
13
+ <div class="content-wrapper">
14
+ <p class="header-text"><a href="#">Alamofire Docs</a></p>
15
+ <p id="header-links"><a href="https://github.com/Alamofire/Alamofire"><img id="header-icon" src="img/gh.png" height="16px" width="16px" />View on GitHub</a></p>
16
+ <p id="header-links"><a href=""><img id="header-icon" src="img/dash.png" height="16px" width="16px" />Install in Dash</a></p>
17
+ </div>
18
+ </header>
19
+ <section id="valence">
20
+ <div class="content-wrapper">
21
+ <p id="hierarchial_navigation">
22
+ <a href="#" id="design_resources_link">Alamofire Reference</a>
23
+ <img id="carat" src="img/carat.png" height="10px" width="6px" />
24
+ Classes Reference
25
+ </p>
26
+ </div>
27
+ </section>
28
+ <div class="content-wrapper">
29
+ <nav class="book-parts">
30
+ <ul class="nav-parts">
31
+ <li class="part-name tasks">
32
+ <a href="Classes.html">Classes</a>
33
+ <ul class="nav-chapters">
34
+ <li class="nav-chapter">
35
+ <a href="Classes/Manager.html">Manager</a>
36
+ </li>
37
+ <li class="nav-chapter">
38
+ <a href="Classes/Request.html">Request</a>
39
+ </li>
40
+ </ul>
41
+ </li>
42
+ <li class="part-name tasks">
43
+ <a href="Global Variables.html">Global Variables</a>
44
+ <ul class="nav-chapters">
45
+ <li class="nav-chapter">
46
+ <a href="Global Variables.html#/s:v9Alamofire20AlamofireErrorDomainSS">AlamofireErrorDomain</a>
47
+ </li>
48
+ </ul>
49
+ </li>
50
+ <li class="part-name tasks">
51
+ <a href="Enums.html">Enums</a>
52
+ <ul class="nav-chapters">
53
+ <li class="nav-chapter">
54
+ <a href="Enums.html#/s:O9Alamofire6Method">Method</a>
55
+ </li>
56
+ <li class="nav-chapter">
57
+ <a href="Enums/ParameterEncoding.html">ParameterEncoding</a>
58
+ </li>
59
+ </ul>
60
+ </li>
61
+ <li class="part-name tasks">
62
+ <a href="Extensions.html">Extensions</a>
63
+ <ul class="nav-chapters">
64
+ <li class="nav-chapter">
65
+ <a href="Extensions/String.html">String</a>
66
+ </li>
67
+ <li class="nav-chapter">
68
+ <a href="Extensions/NSURL.html">NSURL</a>
69
+ </li>
70
+ <li class="nav-chapter">
71
+ <a href="Extensions/NSURLComponents.html">NSURLComponents</a>
72
+ </li>
73
+ <li class="nav-chapter">
74
+ <a href="Extensions/NSURLRequest.html">NSURLRequest</a>
75
+ </li>
76
+ <li class="nav-chapter">
77
+ <a href="Extensions/NSURLRequest.html">NSURLRequest</a>
78
+ </li>
79
+ <li class="nav-chapter">
80
+ <a href="Extensions/Request.html">Request</a>
81
+ </li>
82
+ <li class="nav-chapter">
83
+ <a href="Extensions/Manager.html">Manager</a>
84
+ </li>
85
+ <li class="nav-chapter">
86
+ <a href="Extensions/Request.html">Request</a>
87
+ </li>
88
+ <li class="nav-chapter">
89
+ <a href="Extensions/Manager.html">Manager</a>
90
+ </li>
91
+ <li class="nav-chapter">
92
+ <a href="Extensions/Request.html">Request</a>
93
+ </li>
94
+ <li class="nav-chapter">
95
+ <a href="Extensions/Request.html">Request</a>
96
+ </li>
97
+ <li class="nav-chapter">
98
+ <a href="Extensions/Request.html">Request</a>
99
+ </li>
100
+ <li class="nav-chapter">
101
+ <a href="Extensions/Request.html">Request</a>
102
+ </li>
103
+ <li class="nav-chapter">
104
+ <a href="Extensions/Request.html">Request</a>
105
+ </li>
106
+ <li class="nav-chapter">
107
+ <a href="Extensions/Request.html">Request</a>
108
+ </li>
109
+ </ul>
110
+ </li>
111
+ <li class="part-name tasks">
112
+ <a href="Functions.html">Functions</a>
113
+ <ul class="nav-chapters">
114
+ <li class="nav-chapter">
115
+ <a href="Functions.html#/s:F9AlamofireP33_A313450CFC1FC3D0CBEF4411412DB9E810URLRequestFTOS_6MethodPS_20URLStringConvertible__CSo12NSURLRequest">URLRequest(_:_:)</a>
116
+ </li>
117
+ <li class="nav-chapter">
118
+ <a href="Functions.html#/s:F9Alamofire7requestFTOS_6MethodPS_20URLStringConvertible_10parametersGSqGVSs10DictionarySSPSs9AnyObject___8encodingOS_17ParameterEncoding_CS_7Request">request(_:_:parameters:encoding:)</a>
119
+ </li>
120
+ <li class="nav-chapter">
121
+ <a href="Functions.html#/s:F9Alamofire7requestFPS_21URLRequestConvertible_CS_7Request">request(_:)</a>
122
+ </li>
123
+ <li class="nav-chapter">
124
+ <a href="Functions.html#/s:F9Alamofire6uploadFTOS_6MethodPS_20URLStringConvertible_CSo5NSURL_CS_7Request">upload(_:_:_:)</a>
125
+ </li>
126
+ <li class="nav-chapter">
127
+ <a href="Functions.html#/s:F9Alamofire6uploadFTPS_21URLRequestConvertible_CSo5NSURL_CS_7Request">upload(_:_:)</a>
128
+ </li>
129
+ <li class="nav-chapter">
130
+ <a href="Functions.html#/s:F9Alamofire6uploadFTOS_6MethodPS_20URLStringConvertible_CSo6NSData_CS_7Request">upload(_:_:_:)</a>
131
+ </li>
132
+ <li class="nav-chapter">
133
+ <a href="Functions.html#/s:F9Alamofire6uploadFTPS_21URLRequestConvertible_CSo6NSData_CS_7Request">upload(_:_:)</a>
134
+ </li>
135
+ <li class="nav-chapter">
136
+ <a href="Functions.html#/s:F9Alamofire6uploadFTOS_6MethodPS_20URLStringConvertible_CSo13NSInputStream_CS_7Request">upload(_:_:_:)</a>
137
+ </li>
138
+ <li class="nav-chapter">
139
+ <a href="Functions.html#/s:F9Alamofire6uploadFTPS_21URLRequestConvertible_CSo13NSInputStream_CS_7Request">upload(_:_:)</a>
140
+ </li>
141
+ <li class="nav-chapter">
142
+ <a href="Functions.html#/s:F9Alamofire8downloadFTOS_6MethodPS_20URLStringConvertible_FTCSo5NSURLCSo17NSHTTPURLResponse_S2__CS_7Request">download(_:_:_:)</a>
143
+ </li>
144
+ <li class="nav-chapter">
145
+ <a href="Functions.html#/s:F9Alamofire8downloadFTPS_21URLRequestConvertible_FTCSo5NSURLCSo17NSHTTPURLResponse_S1__CS_7Request">download(_:_:)</a>
146
+ </li>
147
+ <li class="nav-chapter">
148
+ <a href="Functions.html#/s:F9Alamofire8downloadFT10resumeDataCSo6NSDataFTCSo5NSURLCSo17NSHTTPURLResponse_S1__CS_7Request">download(resumeData:_:)</a>
149
+ </li>
150
+ </ul>
151
+ </li>
152
+ <li class="part-name tasks">
153
+ <a href="Protocols.html">Protocols</a>
154
+ <ul class="nav-chapters">
155
+ <li class="nav-chapter">
156
+ <a href="Protocols/URLStringConvertible.html">URLStringConvertible</a>
157
+ </li>
158
+ <li class="nav-chapter">
159
+ <a href="Protocols/URLRequestConvertible.html">URLRequestConvertible</a>
160
+ </li>
161
+ </ul>
162
+ </li>
163
+ <li class="part-name tasks">
164
+ <a href="Typealiases.html">Typealiases</a>
165
+ <ul class="nav-chapters">
166
+ <li class="nav-chapter">
167
+ <a href="Typealiases.html#/s:C9Alamofire7Request10Validation">Validation</a>
168
+ </li>
169
+ <li class="nav-chapter">
170
+ <a href="Typealiases.html#/s:C9Alamofire7Request23DownloadFileDestination">DownloadFileDestination</a>
171
+ </li>
172
+ </ul>
173
+ </li>
174
+ </ul>
175
+ </nav>
176
+ <div class="pixel-line"></div>
177
+ <div class="rubber-band-gap"></div>
178
+ <article class="chapter">
179
+ <a name="/"></a>
180
+ <h1 class="chapter-name">Classes</h1>
181
+ <section>
182
+ <section class="section">
183
+ <p class="para">The following classes are available globally.</p>
184
+ </section>
185
+ <section class="section task-group-section">
186
+ <div class="task-group">
187
+ <div class="task-name-container">
188
+ <a name="/Children"></a>
189
+ <a href="#/Children">
190
+ <h3 class="section-name"></h3>
191
+ </a>
192
+ </div>
193
+ <ul class="task-group-list">
194
+ <li class="item symbol">
195
+ <div class="task-group-term">
196
+ <code>
197
+ <a name="/s:C9Alamofire7Manager">
198
+ <a class="x-instance-method Swift" href="#/s:C9Alamofire7Manager">Manager</a>
199
+ </code>
200
+ </div>
201
+ <div class="height-container">
202
+ <div class="pointy-thing-container"></div>
203
+ <section class="section instance-method">
204
+ <div class="pointy-thing"></div>
205
+ <div class="abstract">
206
+ <p class="para">Responsible for creating and managing <code>Request</code> objects, as well as their underlying <code>NSURLSession</code>.</p>
207
+ </div>
208
+ <div class="declaration">
209
+ <h4>Declaration</h4>
210
+
211
+ <div class="Swift">
212
+ <p class="aside-title">Swift</p>
213
+ <p class="para">
214
+ <code>public class Manager</code>
215
+ </p>
216
+ </div>
217
+ </div>
218
+ <div class="result-description view-on-github">
219
+ <a href="https://github.com/Alamofire/Alamofire/blob/1.1.0/Source/Alamofire.swift#L215">Show on GitHub</a>
220
+ </div>
221
+ </section>
222
+ </div>
223
+ </li>
224
+ <li class="item symbol">
225
+ <div class="task-group-term">
226
+ <code>
227
+ <a name="/s:C9Alamofire7Request">
228
+ <a class="x-instance-method Swift" href="#/s:C9Alamofire7Request">Request</a>
229
+ </code>
230
+ </div>
231
+ <div class="height-container">
232
+ <div class="pointy-thing-container"></div>
233
+ <section class="section instance-method">
234
+ <div class="pointy-thing"></div>
235
+ <div class="abstract">
236
+ <p class="para">Responsible for sending a request and receiving the response and associated data from the server, as well as managing its underlying <code>NSURLSessionTask</code>.</p>
237
+ </div>
238
+ <div class="declaration">
239
+ <h4>Declaration</h4>
240
+
241
+ <div class="Swift">
242
+ <p class="aside-title">Swift</p>
243
+ <p class="para">
244
+ <code>public class Request</code>
245
+ </p>
246
+ </div>
247
+ </div>
248
+ <div class="result-description view-on-github">
249
+ <a href="https://github.com/Alamofire/Alamofire/blob/1.1.0/Source/Alamofire.swift#L522">Show on GitHub</a>
250
+ </div>
251
+ </section>
252
+ </div>
253
+ </li>
254
+ </ul>
255
+ </div>
256
+ </section>
257
+ </section>
258
+ <section id="footer">
259
+ <p class="copyright">&copy; 2014 <a class="link" href="https://nshipster.com/alamofire" target="_blank" rel="external">Alamofire</a>. All rights reserved. (Last updated: 2014-01-01)</p>
260
+ <p class="copyright">Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.0.5</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
261
+ </section>
262
+ </article>
263
+ </div>
264
+ </body>
265
+ </div>
266
+ </html>