cocoapods-repo-sq 0.0.1.6

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.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.travis.yml +13 -0
  4. data/CHANGES.md +0 -0
  5. data/CONTRIBUTING.md +4 -0
  6. data/Gemfile +12 -0
  7. data/LICENSE.txt +202 -0
  8. data/README.md +84 -0
  9. data/Rakefile +34 -0
  10. data/cocoapods-repo-sq.gemspec +45 -0
  11. data/doc/CocoapodsRepoSq/Downloader/Extensions.html +225 -0
  12. data/doc/CocoapodsRepoSq/Downloader.html +352 -0
  13. data/doc/CocoapodsRepoSq/DownloaderExtensions.html +227 -0
  14. data/doc/CocoapodsRepoSq/Repository.html +970 -0
  15. data/doc/CocoapodsRepoSq/RepositoryStore.html +962 -0
  16. data/doc/CocoapodsRepoSq/Source.html +342 -0
  17. data/doc/CocoapodsRepoSq/SquareExtensions.html +227 -0
  18. data/doc/CocoapodsRepoSq.html +149 -0
  19. data/doc/Pod/Command/RepoSq/Add.html +436 -0
  20. data/doc/Pod/Command/RepoSq/List.html +256 -0
  21. data/doc/Pod/Command/RepoSq/Remove.html +378 -0
  22. data/doc/Pod/Command/RepoSq/Update.html +380 -0
  23. data/doc/Pod/Command/RepoSq.html +157 -0
  24. data/doc/Pod/Command.html +137 -0
  25. data/doc/Pod/Downloader/Square.html +334 -0
  26. data/doc/Pod/Downloader/SquareExtensions.html +218 -0
  27. data/doc/Pod/Downloader.html +105 -0
  28. data/doc/Pod/SquareSource.html +416 -0
  29. data/doc/Pod.html +146 -0
  30. data/doc/_index.html +256 -0
  31. data/doc/class_list.html +51 -0
  32. data/doc/css/common.css +1 -0
  33. data/doc/css/full_list.css +58 -0
  34. data/doc/css/style.css +499 -0
  35. data/doc/file.README.html +132 -0
  36. data/doc/file_list.html +56 -0
  37. data/doc/frames.html +17 -0
  38. data/doc/index.html +132 -0
  39. data/doc/js/app.js +248 -0
  40. data/doc/js/full_list.js +216 -0
  41. data/doc/js/jquery.js +4 -0
  42. data/doc/method_list.html +291 -0
  43. data/doc/top-level-namespace.html +110 -0
  44. data/lib/cocoapods_plugin.rb +49 -0
  45. data/lib/cocoapods_repo_sq/downloader.rb +86 -0
  46. data/lib/cocoapods_repo_sq/repository.rb +109 -0
  47. data/lib/cocoapods_repo_sq/repository_store.rb +170 -0
  48. data/lib/cocoapods_repo_sq/source.rb +42 -0
  49. data/lib/cocoapods_repo_sq.rb +26 -0
  50. data/lib/pod/command/repo_sq/add.rb +87 -0
  51. data/lib/pod/command/repo_sq/list.rb +55 -0
  52. data/lib/pod/command/repo_sq/remove.rb +61 -0
  53. data/lib/pod/command/repo_sq/update.rb +62 -0
  54. data/lib/pod/command/repo_sq.rb +38 -0
  55. data/spec/spec_helper.rb +80 -0
  56. data/spec/test-repos/repo-1/.settings.yml +4 -0
  57. data/spec/test-repos/repo-2/.settings.yml +4 -0
  58. data/spec/unit/cocoapods_plugin_spec.rb +108 -0
  59. data/spec/unit/cocoapods_repo_sq/downloader_spec.rb +57 -0
  60. data/spec/unit/cocoapods_repo_sq/repository_spec.rb +57 -0
  61. data/spec/unit/cocoapods_repo_sq/repository_store_spec.rb +124 -0
  62. data/spec/unit/cocoapods_repo_sq/source_spec.rb +35 -0
  63. data/spec/unit/pod/command/add_spec.rb +73 -0
  64. data/spec/unit/pod/command/list_spec.rb +70 -0
  65. data/spec/unit/pod/command/remove_spec.rb +47 -0
  66. data/spec/unit/pod/command/update_spec.rb +49 -0
  67. metadata +184 -0
@@ -0,0 +1,352 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: CocoapodsRepoSq::Downloader
8
+
9
+ &mdash; Documentation by YARD 0.9.12
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "CocoapodsRepoSq::Downloader";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (D)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../CocoapodsRepoSq.html" title="CocoapodsRepoSq (module)">CocoapodsRepoSq</a></span></span>
41
+ &raquo;
42
+ <span class="title">Downloader</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: CocoapodsRepoSq::Downloader
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Pod::Downloader::Http</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Pod::Downloader::Http</li>
78
+
79
+ <li class="next">CocoapodsRepoSq::Downloader</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/cocoapods_repo_sq/downloader.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>Implemenents a <a href="https://github.com/CocoaPods/cocoapods-downloader" target="_parent" title="downloader strategy">downloader strategy</a> to support downloading files from a Square SDK
108
+ repository server over the HTTPS protocol with
109
+ <a href="https://tools.ietf.org/html/rfc7617" target="_parent" title="Basic HTTP Authentication RFC7617">Basic HTTP Authentication RFC7617</a></p>
110
+
111
+
112
+ </div>
113
+ </div>
114
+ <div class="tags">
115
+
116
+
117
+ </div><h2>Defined Under Namespace</h2>
118
+ <p class="children">
119
+
120
+
121
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Downloader/Extensions.html" title="CocoapodsRepoSq::Downloader::Extensions (module)">Extensions</a></span>
122
+
123
+
124
+
125
+
126
+ </p>
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ <h2>
136
+ Class Method Summary
137
+ <small><a href="#" class="summary_toggle">collapse</a></small>
138
+ </h2>
139
+
140
+ <ul class="summary">
141
+
142
+ <li class="public ">
143
+ <span class="summary_signature">
144
+
145
+ <a href="#options-class_method" title="options (class method)">.<strong>options</strong> &#x21d2; Array&lt;Symbol&gt; </a>
146
+
147
+
148
+
149
+ </span>
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+ <span class="summary_desc"><div class='inline'>
160
+ <p>Options accepted by this dowmloader strategy.</p>
161
+ </div></span>
162
+
163
+ </li>
164
+
165
+
166
+ </ul>
167
+
168
+ <h2>
169
+ Instance Method Summary
170
+ <small><a href="#" class="summary_toggle">collapse</a></small>
171
+ </h2>
172
+
173
+ <ul class="summary">
174
+
175
+ <li class="public ">
176
+ <span class="summary_signature">
177
+
178
+ <a href="#repository-instance_method" title="#repository (instance method)">#<strong>repository</strong> &#x21d2; CocoapodsRepoSq::Repository </a>
179
+
180
+
181
+
182
+ </span>
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+ <span class="summary_desc"><div class='inline'>
193
+ <p>Square SDK repository to be used by this downloader.</p>
194
+ </div></span>
195
+
196
+ </li>
197
+
198
+
199
+ </ul>
200
+
201
+
202
+
203
+
204
+
205
+ <div id="class_method_details" class="method_details_list">
206
+ <h2>Class Method Details</h2>
207
+
208
+
209
+ <div class="method_details first">
210
+ <h3 class="signature first" id="options-class_method">
211
+
212
+ .<strong>options</strong> &#x21d2; <tt>Array&lt;Symbol&gt;</tt>
213
+
214
+
215
+
216
+
217
+
218
+ </h3><div class="docstring">
219
+ <div class="discussion">
220
+
221
+ <p>Options accepted by this dowmloader strategy. The base class already
222
+ supports <code>:flatten</code>, <code>:type</code>, <code>:sha256</code>,
223
+ <code>:sha1</code>. <span class='object_link'><a href="" title="CocoapodsRepoSq::Downloader (class)">CocoapodsRepoSq::Downloader</a></span> supports passing a
224
+ <code>:repository</code> option to indicate which Square SDK repository to
225
+ download files from. If none is provided, it will try to use the current
226
+ repository. See <span class='object_link'><a href="Repository.html#current-class_method" title="CocoapodsRepoSq::Repository.current (method)">Repository.current</a></span></p>
227
+
228
+
229
+ </div>
230
+ </div>
231
+ <div class="tags">
232
+
233
+ <p class="tag_title">Returns:</p>
234
+ <ul class="return">
235
+
236
+ <li>
237
+
238
+
239
+ <span class='type'>(<tt>Array&lt;Symbol&gt;</tt>)</span>
240
+
241
+
242
+
243
+ &mdash;
244
+ <div class='inline'>
245
+ <p>a list of accepted options</p>
246
+ </div>
247
+
248
+ </li>
249
+
250
+ </ul>
251
+
252
+ </div><table class="source_code">
253
+ <tr>
254
+ <td>
255
+ <pre class="lines">
256
+
257
+
258
+ 57
259
+ 58
260
+ 59</pre>
261
+ </td>
262
+ <td>
263
+ <pre class="code"><span class="info file"># File 'lib/cocoapods_repo_sq/downloader.rb', line 57</span>
264
+
265
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_options'>options</span>
266
+ <span class='kw'>super</span> <span class='op'>+</span> <span class='lbracket'>[</span><span class='symbol'>:repository</span><span class='rbracket'>]</span>
267
+ <span class='kw'>end</span></pre>
268
+ </td>
269
+ </tr>
270
+ </table>
271
+ </div>
272
+
273
+ </div>
274
+
275
+ <div id="instance_method_details" class="method_details_list">
276
+ <h2>Instance Method Details</h2>
277
+
278
+
279
+ <div class="method_details first">
280
+ <h3 class="signature first" id="repository-instance_method">
281
+
282
+ #<strong>repository</strong> &#x21d2; <tt><span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">CocoapodsRepoSq::Repository</a></span></tt>
283
+
284
+
285
+
286
+
287
+
288
+ </h3><div class="docstring">
289
+ <div class="discussion">
290
+
291
+ <p>Square SDK repository to be used by this downloader. It can be passed as an
292
+ option when initializing this class or also taken from the current
293
+ repository. See <span class='object_link'><a href="Repository.html#current-class_method" title="CocoapodsRepoSq::Repository.current (method)">Repository.current</a></span></p>
294
+
295
+
296
+ </div>
297
+ </div>
298
+ <div class="tags">
299
+
300
+ <p class="tag_title">Returns:</p>
301
+ <ul class="return">
302
+
303
+ <li>
304
+
305
+
306
+ <span class='type'>(<tt><span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">CocoapodsRepoSq::Repository</a></span></tt>)</span>
307
+
308
+
309
+
310
+ &mdash;
311
+ <div class='inline'>
312
+ <p>a Square SDK repository</p>
313
+ </div>
314
+
315
+ </li>
316
+
317
+ </ul>
318
+
319
+ </div><table class="source_code">
320
+ <tr>
321
+ <td>
322
+ <pre class="lines">
323
+
324
+
325
+ 67
326
+ 68
327
+ 69</pre>
328
+ </td>
329
+ <td>
330
+ <pre class="code"><span class="info file"># File 'lib/cocoapods_repo_sq/downloader.rb', line 67</span>
331
+
332
+ <span class='kw'>def</span> <span class='id identifier rubyid_repository'>repository</span>
333
+ <span class='ivar'>@repository</span> <span class='op'>||=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:repository</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='const'><span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">Repository</a></span></span><span class='period'>.</span><span class='id identifier rubyid_current'><span class='object_link'><a href="Repository.html#current-class_method" title="CocoapodsRepoSq::Repository.current (method)">current</a></span></span> <span class='rbrace'>}</span>
334
+ <span class='kw'>end</span></pre>
335
+ </td>
336
+ </tr>
337
+ </table>
338
+ </div>
339
+
340
+ </div>
341
+
342
+ </div>
343
+
344
+ <div id="footer">
345
+ Generated on Fri Apr 27 10:49:52 2018 by
346
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
347
+ 0.9.12 (ruby-2.4.0).
348
+ </div>
349
+
350
+ </div>
351
+ </body>
352
+ </html>
@@ -0,0 +1,227 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Module: CocoapodsRepoSq::DownloaderExtensions
8
+
9
+ &mdash; Documentation by YARD 0.9.12
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "CocoapodsRepoSq::DownloaderExtensions";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (D)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../CocoapodsRepoSq.html" title="CocoapodsRepoSq (module)">CocoapodsRepoSq</a></span></span>
41
+ &raquo;
42
+ <span class="title">DownloaderExtensions</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Module: CocoapodsRepoSq::DownloaderExtensions
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ <dl>
80
+ <dt>Defined in:</dt>
81
+ <dd>lib/cocoapods_repo_sq/downloader.rb</dd>
82
+ </dl>
83
+
84
+ </div>
85
+
86
+ <h2>Overview</h2><div class="docstring">
87
+ <div class="discussion">
88
+
89
+ <p>Helper module used to override the
90
+ Pod::Downloader::downloader_class_by_key method to include a
91
+ <code>:square</code> key pointing to <span class='object_link'><a href="Downloader.html" title="CocoapodsRepoSq::Downloader (class)">Downloader</a></span>. This allows square to be
92
+ defined as the protocol for downloading Pods on the
93
+ <a href="https://guides.cocoapods.org/syntax/podspec.html#source" target="_parent" title="podfile source setting">podfile source setting</a></p>
94
+
95
+
96
+ </div>
97
+ </div>
98
+ <div class="tags">
99
+
100
+
101
+ </div>
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ <h2>
110
+ Instance Method Summary
111
+ <small><a href="#" class="summary_toggle">collapse</a></small>
112
+ </h2>
113
+
114
+ <ul class="summary">
115
+
116
+ <li class="public ">
117
+ <span class="summary_signature">
118
+
119
+ <a href="#downloader_class_by_key-instance_method" title="#downloader_class_by_key (instance method)">#<strong>downloader_class_by_key</strong> &#x21d2; Hash{Symbol=&gt;Class} </a>
120
+
121
+
122
+
123
+ </span>
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ <span class="summary_desc"><div class='inline'>
134
+ <p>Map of downloaded classes supported by Cocoapods to be used in the the
135
+ <a href="https://guides.cocoapods.org/syntax/podspec.html#source" target="_parent" title="podfile source setting">podfile source setting</a> Square is included to add support for Square SDK repository hosted
136
+ podspecs and pods.</p>
137
+ </div></span>
138
+
139
+ </li>
140
+
141
+
142
+ </ul>
143
+
144
+
145
+
146
+
147
+ <div id="instance_method_details" class="method_details_list">
148
+ <h2>Instance Method Details</h2>
149
+
150
+
151
+ <div class="method_details first">
152
+ <h3 class="signature first" id="downloader_class_by_key-instance_method">
153
+
154
+ #<strong>downloader_class_by_key</strong> &#x21d2; <tt>Hash{Symbol=&gt;Class}</tt>
155
+
156
+
157
+
158
+
159
+
160
+ </h3><div class="docstring">
161
+ <div class="discussion">
162
+
163
+ <p>Map of downloaded classes supported by Cocoapods to be used in the the
164
+ <a href="https://guides.cocoapods.org/syntax/podspec.html#source" target="_parent" title="podfile source setting">podfile source setting</a> Square is included to add support for Square SDK repository hosted
165
+ podspecs and pods.</p>
166
+
167
+
168
+ </div>
169
+ </div>
170
+ <div class="tags">
171
+
172
+ <p class="tag_title">Returns:</p>
173
+ <ul class="return">
174
+
175
+ <li>
176
+
177
+
178
+ <span class='type'>(<tt>Hash{Symbol=&gt;Class}</tt>)</span>
179
+
180
+
181
+
182
+ &mdash;
183
+ <div class='inline'>
184
+ <p>Returns a map where the key is a symbol used in the podspec source setting
185
+ such as <code>:http</code>, <code>:git</code>, <code>:square</code> and the
186
+ class is the one responsible for implementing a particular download
187
+ strategy</p>
188
+ </div>
189
+
190
+ </li>
191
+
192
+ </ul>
193
+
194
+ </div><table class="source_code">
195
+ <tr>
196
+ <td>
197
+ <pre class="lines">
198
+
199
+
200
+ 38
201
+ 39
202
+ 40</pre>
203
+ </td>
204
+ <td>
205
+ <pre class="code"><span class="info file"># File 'lib/cocoapods_repo_sq/downloader.rb', line 38</span>
206
+
207
+ <span class='kw'>def</span> <span class='id identifier rubyid_downloader_class_by_key'>downloader_class_by_key</span>
208
+ <span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='symbol'>:square</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="Downloader.html" title="CocoapodsRepoSq::Downloader (class)">Downloader</a></span></span><span class='rparen'>)</span>
209
+ <span class='kw'>end</span></pre>
210
+ </td>
211
+ </tr>
212
+ </table>
213
+ </div>
214
+
215
+ </div>
216
+
217
+ </div>
218
+
219
+ <div id="footer">
220
+ Generated on Fri Apr 27 09:08:32 2018 by
221
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
222
+ 0.9.12 (ruby-2.4.0).
223
+ </div>
224
+
225
+ </div>
226
+ </body>
227
+ </html>