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.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.travis.yml +13 -0
- data/CHANGES.md +0 -0
- data/CONTRIBUTING.md +4 -0
- data/Gemfile +12 -0
- data/LICENSE.txt +202 -0
- data/README.md +84 -0
- data/Rakefile +34 -0
- data/cocoapods-repo-sq.gemspec +45 -0
- data/doc/CocoapodsRepoSq/Downloader/Extensions.html +225 -0
- data/doc/CocoapodsRepoSq/Downloader.html +352 -0
- data/doc/CocoapodsRepoSq/DownloaderExtensions.html +227 -0
- data/doc/CocoapodsRepoSq/Repository.html +970 -0
- data/doc/CocoapodsRepoSq/RepositoryStore.html +962 -0
- data/doc/CocoapodsRepoSq/Source.html +342 -0
- data/doc/CocoapodsRepoSq/SquareExtensions.html +227 -0
- data/doc/CocoapodsRepoSq.html +149 -0
- data/doc/Pod/Command/RepoSq/Add.html +436 -0
- data/doc/Pod/Command/RepoSq/List.html +256 -0
- data/doc/Pod/Command/RepoSq/Remove.html +378 -0
- data/doc/Pod/Command/RepoSq/Update.html +380 -0
- data/doc/Pod/Command/RepoSq.html +157 -0
- data/doc/Pod/Command.html +137 -0
- data/doc/Pod/Downloader/Square.html +334 -0
- data/doc/Pod/Downloader/SquareExtensions.html +218 -0
- data/doc/Pod/Downloader.html +105 -0
- data/doc/Pod/SquareSource.html +416 -0
- data/doc/Pod.html +146 -0
- data/doc/_index.html +256 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +499 -0
- data/doc/file.README.html +132 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +132 -0
- data/doc/js/app.js +248 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +291 -0
- data/doc/top-level-namespace.html +110 -0
- data/lib/cocoapods_plugin.rb +49 -0
- data/lib/cocoapods_repo_sq/downloader.rb +86 -0
- data/lib/cocoapods_repo_sq/repository.rb +109 -0
- data/lib/cocoapods_repo_sq/repository_store.rb +170 -0
- data/lib/cocoapods_repo_sq/source.rb +42 -0
- data/lib/cocoapods_repo_sq.rb +26 -0
- data/lib/pod/command/repo_sq/add.rb +87 -0
- data/lib/pod/command/repo_sq/list.rb +55 -0
- data/lib/pod/command/repo_sq/remove.rb +61 -0
- data/lib/pod/command/repo_sq/update.rb +62 -0
- data/lib/pod/command/repo_sq.rb +38 -0
- data/spec/spec_helper.rb +80 -0
- data/spec/test-repos/repo-1/.settings.yml +4 -0
- data/spec/test-repos/repo-2/.settings.yml +4 -0
- data/spec/unit/cocoapods_plugin_spec.rb +108 -0
- data/spec/unit/cocoapods_repo_sq/downloader_spec.rb +57 -0
- data/spec/unit/cocoapods_repo_sq/repository_spec.rb +57 -0
- data/spec/unit/cocoapods_repo_sq/repository_store_spec.rb +124 -0
- data/spec/unit/cocoapods_repo_sq/source_spec.rb +35 -0
- data/spec/unit/pod/command/add_spec.rb +73 -0
- data/spec/unit/pod/command/list_spec.rb +70 -0
- data/spec/unit/pod/command/remove_spec.rb +47 -0
- data/spec/unit/pod/command/update_spec.rb +49 -0
- metadata +184 -0
@@ -0,0 +1,962 @@
|
|
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::RepositoryStore
|
8
|
+
|
9
|
+
— 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::RepositoryStore";
|
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 (R)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../CocoapodsRepoSq.html" title="CocoapodsRepoSq (module)">CocoapodsRepoSq</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">RepositoryStore</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::RepositoryStore
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">Object</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">CocoapodsRepoSq::RepositoryStore</li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
81
|
+
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/cocoapods_repo_sq/repository_store.rb</dd>
|
98
|
+
</dl>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>Class responsible for managing user configured Square SDK repositories.
|
106
|
+
Repository settings and a local copy of the podspecs are stored on the
|
107
|
+
filesystem inside Cocoapods' home directory.</p>
|
108
|
+
|
109
|
+
|
110
|
+
</div>
|
111
|
+
</div>
|
112
|
+
<div class="tags">
|
113
|
+
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<h2>
|
124
|
+
Class Method Summary
|
125
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
126
|
+
</h2>
|
127
|
+
|
128
|
+
<ul class="summary">
|
129
|
+
|
130
|
+
<li class="public ">
|
131
|
+
<span class="summary_signature">
|
132
|
+
|
133
|
+
<a href="#default-class_method" title="default (class method)">.<strong>default</strong> ⇒ RepositoryStore </a>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
</span>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<span class="summary_desc"><div class='inline'>
|
148
|
+
<p>Default store located in Cocoapods's home directory.</p>
|
149
|
+
</div></span>
|
150
|
+
|
151
|
+
</li>
|
152
|
+
|
153
|
+
|
154
|
+
</ul>
|
155
|
+
|
156
|
+
<h2>
|
157
|
+
Instance Method Summary
|
158
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
159
|
+
</h2>
|
160
|
+
|
161
|
+
<ul class="summary">
|
162
|
+
|
163
|
+
<li class="public ">
|
164
|
+
<span class="summary_signature">
|
165
|
+
|
166
|
+
<a href="#exists%3F-instance_method" title="#exists? (instance method)">#<strong>exists?</strong>(name) ⇒ Boolean </a>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
</span>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
<span class="summary_desc"><div class='inline'>
|
181
|
+
<p>Indicates if a Square SDK repository has been added to the store.</p>
|
182
|
+
</div></span>
|
183
|
+
|
184
|
+
</li>
|
185
|
+
|
186
|
+
|
187
|
+
<li class="public ">
|
188
|
+
<span class="summary_signature">
|
189
|
+
|
190
|
+
<a href="#get-instance_method" title="#get (instance method)">#<strong>get</strong>(name) ⇒ Repository </a>
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
</span>
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
<span class="summary_desc"><div class='inline'>
|
205
|
+
<p>Returns a <span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">Repository</a></span> instance if a Square SDK repository exists in the
|
206
|
+
store with the given name.</p>
|
207
|
+
</div></span>
|
208
|
+
|
209
|
+
</li>
|
210
|
+
|
211
|
+
|
212
|
+
<li class="public ">
|
213
|
+
<span class="summary_signature">
|
214
|
+
|
215
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(path = nil) ⇒ RepositoryStore </a>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
</span>
|
220
|
+
|
221
|
+
|
222
|
+
<span class="note title constructor">constructor</span>
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
<span class="summary_desc"><div class='inline'>
|
232
|
+
<p>A new instance of RepositoryStore.</p>
|
233
|
+
</div></span>
|
234
|
+
|
235
|
+
</li>
|
236
|
+
|
237
|
+
|
238
|
+
<li class="public ">
|
239
|
+
<span class="summary_signature">
|
240
|
+
|
241
|
+
<a href="#list-instance_method" title="#list (instance method)">#<strong>list</strong> ⇒ Array<Repository> </a>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
</span>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
<span class="summary_desc"><div class='inline'>
|
256
|
+
<p>Returns all repositories currently configured in the store as a list of
|
257
|
+
<span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">Repository</a></span> objects.</p>
|
258
|
+
</div></span>
|
259
|
+
|
260
|
+
</li>
|
261
|
+
|
262
|
+
|
263
|
+
<li class="public ">
|
264
|
+
<span class="summary_signature">
|
265
|
+
|
266
|
+
<a href="#register-instance_method" title="#register (instance method)">#<strong>register</strong>(name, username, password, url) ⇒ Repository </a>
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
</span>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
<span class="summary_desc"><div class='inline'>
|
281
|
+
<p>Registers a Square SDK repository on the local store.</p>
|
282
|
+
</div></span>
|
283
|
+
|
284
|
+
</li>
|
285
|
+
|
286
|
+
|
287
|
+
<li class="public ">
|
288
|
+
<span class="summary_signature">
|
289
|
+
|
290
|
+
<a href="#remove-instance_method" title="#remove (instance method)">#<strong>remove</strong>(name) ⇒ Boolean </a>
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
</span>
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
<span class="summary_desc"><div class='inline'>
|
305
|
+
<p>Removes a Square SDK repository from the local store.</p>
|
306
|
+
</div></span>
|
307
|
+
|
308
|
+
</li>
|
309
|
+
|
310
|
+
|
311
|
+
</ul>
|
312
|
+
|
313
|
+
|
314
|
+
<div id="constructor_details" class="method_details_list">
|
315
|
+
<h2>Constructor Details</h2>
|
316
|
+
|
317
|
+
<div class="method_details first">
|
318
|
+
<h3 class="signature first" id="initialize-instance_method">
|
319
|
+
|
320
|
+
#<strong>initialize</strong>(path = nil) ⇒ <tt><span class='object_link'><a href="" title="CocoapodsRepoSq::RepositoryStore (class)">RepositoryStore</a></span></tt>
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
</h3><div class="docstring">
|
327
|
+
<div class="discussion">
|
328
|
+
|
329
|
+
<p>Returns a new instance of RepositoryStore</p>
|
330
|
+
|
331
|
+
|
332
|
+
</div>
|
333
|
+
</div>
|
334
|
+
<div class="tags">
|
335
|
+
<p class="tag_title">Parameters:</p>
|
336
|
+
<ul class="param">
|
337
|
+
|
338
|
+
<li>
|
339
|
+
|
340
|
+
<span class='name'>path</span>
|
341
|
+
|
342
|
+
|
343
|
+
<span class='type'>(<tt>String</tt>)</span>
|
344
|
+
|
345
|
+
|
346
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
347
|
+
|
348
|
+
|
349
|
+
—
|
350
|
+
<div class='inline'>
|
351
|
+
<p>the path where all Square SDK repositories will be stored. If no path is
|
352
|
+
provided a default <code>$COCOAPODS_HOME/repo-sq</code> will be used</p>
|
353
|
+
</div>
|
354
|
+
|
355
|
+
</li>
|
356
|
+
|
357
|
+
</ul>
|
358
|
+
|
359
|
+
|
360
|
+
</div><table class="source_code">
|
361
|
+
<tr>
|
362
|
+
<td>
|
363
|
+
<pre class="lines">
|
364
|
+
|
365
|
+
|
366
|
+
42
|
367
|
+
43
|
368
|
+
44
|
369
|
+
45</pre>
|
370
|
+
</td>
|
371
|
+
<td>
|
372
|
+
<pre class="code"><span class="info file"># File 'lib/cocoapods_repo_sq/repository_store.rb', line 42</span>
|
373
|
+
|
374
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
375
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>||=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../Pod.html" title="Pod (module)">Pod</a></span></span><span class='op'>::</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_home_dir'>home_dir</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>repo-sq</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
376
|
+
<span class='ivar'>@path</span> <span class='op'>=</span> <span class='id identifier rubyid_ensure_path'>ensure_path</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
377
|
+
<span class='kw'>end</span></pre>
|
378
|
+
</td>
|
379
|
+
</tr>
|
380
|
+
</table>
|
381
|
+
</div>
|
382
|
+
|
383
|
+
</div>
|
384
|
+
|
385
|
+
|
386
|
+
<div id="class_method_details" class="method_details_list">
|
387
|
+
<h2>Class Method Details</h2>
|
388
|
+
|
389
|
+
|
390
|
+
<div class="method_details first">
|
391
|
+
<h3 class="signature first" id="default-class_method">
|
392
|
+
|
393
|
+
.<strong>default</strong> ⇒ <tt><span class='object_link'><a href="" title="CocoapodsRepoSq::RepositoryStore (class)">RepositoryStore</a></span></tt>
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
</h3><div class="docstring">
|
400
|
+
<div class="discussion">
|
401
|
+
|
402
|
+
<p>Default store located in Cocoapods's home directory. Used by the plugin
|
403
|
+
to look for registered repositories or by the <code>repo-sq</code> commands
|
404
|
+
to manage registered repositories.</p>
|
405
|
+
|
406
|
+
|
407
|
+
</div>
|
408
|
+
</div>
|
409
|
+
<div class="tags">
|
410
|
+
|
411
|
+
<p class="tag_title">Returns:</p>
|
412
|
+
<ul class="return">
|
413
|
+
|
414
|
+
<li>
|
415
|
+
|
416
|
+
|
417
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="CocoapodsRepoSq::RepositoryStore (class)">RepositoryStore</a></span></tt>)</span>
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
—
|
422
|
+
<div class='inline'>
|
423
|
+
<p>the default RepositoryStore</p>
|
424
|
+
</div>
|
425
|
+
|
426
|
+
</li>
|
427
|
+
|
428
|
+
</ul>
|
429
|
+
|
430
|
+
</div><table class="source_code">
|
431
|
+
<tr>
|
432
|
+
<td>
|
433
|
+
<pre class="lines">
|
434
|
+
|
435
|
+
|
436
|
+
35
|
437
|
+
36
|
438
|
+
37</pre>
|
439
|
+
</td>
|
440
|
+
<td>
|
441
|
+
<pre class="code"><span class="info file"># File 'lib/cocoapods_repo_sq/repository_store.rb', line 35</span>
|
442
|
+
|
443
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default'>default</span>
|
444
|
+
<span class='ivar'>@default</span> <span class='op'>||=</span> <span class='id identifier rubyid_new'>new</span>
|
445
|
+
<span class='kw'>end</span></pre>
|
446
|
+
</td>
|
447
|
+
</tr>
|
448
|
+
</table>
|
449
|
+
</div>
|
450
|
+
|
451
|
+
</div>
|
452
|
+
|
453
|
+
<div id="instance_method_details" class="method_details_list">
|
454
|
+
<h2>Instance Method Details</h2>
|
455
|
+
|
456
|
+
|
457
|
+
<div class="method_details first">
|
458
|
+
<h3 class="signature first" id="exists?-instance_method">
|
459
|
+
|
460
|
+
#<strong>exists?</strong>(name) ⇒ <tt>Boolean</tt>
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
</h3><div class="docstring">
|
467
|
+
<div class="discussion">
|
468
|
+
|
469
|
+
<p>Indicates if a Square SDK repository has been added to the store</p>
|
470
|
+
|
471
|
+
|
472
|
+
</div>
|
473
|
+
</div>
|
474
|
+
<div class="tags">
|
475
|
+
<p class="tag_title">Parameters:</p>
|
476
|
+
<ul class="param">
|
477
|
+
|
478
|
+
<li>
|
479
|
+
|
480
|
+
<span class='name'>name</span>
|
481
|
+
|
482
|
+
|
483
|
+
<span class='type'>(<tt>String</tt>)</span>
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
—
|
488
|
+
<div class='inline'>
|
489
|
+
<p>the Square SDK repository name to look for</p>
|
490
|
+
</div>
|
491
|
+
|
492
|
+
</li>
|
493
|
+
|
494
|
+
</ul>
|
495
|
+
|
496
|
+
<p class="tag_title">Returns:</p>
|
497
|
+
<ul class="return">
|
498
|
+
|
499
|
+
<li>
|
500
|
+
|
501
|
+
|
502
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
—
|
507
|
+
<div class='inline'>
|
508
|
+
<p><code>true</code> if the targeted Square SDK repository is configured in
|
509
|
+
this repository store, otherwise <code>false</code>.</p>
|
510
|
+
</div>
|
511
|
+
|
512
|
+
</li>
|
513
|
+
|
514
|
+
</ul>
|
515
|
+
|
516
|
+
</div><table class="source_code">
|
517
|
+
<tr>
|
518
|
+
<td>
|
519
|
+
<pre class="lines">
|
520
|
+
|
521
|
+
|
522
|
+
55
|
523
|
+
56
|
524
|
+
57</pre>
|
525
|
+
</td>
|
526
|
+
<td>
|
527
|
+
<pre class="code"><span class="info file"># File 'lib/cocoapods_repo_sq/repository_store.rb', line 55</span>
|
528
|
+
|
529
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
530
|
+
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_settings_path'>settings_path</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
531
|
+
<span class='kw'>end</span></pre>
|
532
|
+
</td>
|
533
|
+
</tr>
|
534
|
+
</table>
|
535
|
+
</div>
|
536
|
+
|
537
|
+
<div class="method_details ">
|
538
|
+
<h3 class="signature " id="get-instance_method">
|
539
|
+
|
540
|
+
#<strong>get</strong>(name) ⇒ <tt><span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">Repository</a></span></tt>
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
</h3><div class="docstring">
|
547
|
+
<div class="discussion">
|
548
|
+
|
549
|
+
<p>Returns a <span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">CocoapodsRepoSq::Repository</a></span> instance if a Square SDK repository exists in the
|
550
|
+
store with the given name</p>
|
551
|
+
|
552
|
+
|
553
|
+
</div>
|
554
|
+
</div>
|
555
|
+
<div class="tags">
|
556
|
+
<p class="tag_title">Parameters:</p>
|
557
|
+
<ul class="param">
|
558
|
+
|
559
|
+
<li>
|
560
|
+
|
561
|
+
<span class='name'>name</span>
|
562
|
+
|
563
|
+
|
564
|
+
<span class='type'>(<tt>String</tt>)</span>
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
—
|
569
|
+
<div class='inline'>
|
570
|
+
<p>the Square SDK repository name to look for</p>
|
571
|
+
</div>
|
572
|
+
|
573
|
+
</li>
|
574
|
+
|
575
|
+
</ul>
|
576
|
+
|
577
|
+
<p class="tag_title">Returns:</p>
|
578
|
+
<ul class="return">
|
579
|
+
|
580
|
+
<li>
|
581
|
+
|
582
|
+
|
583
|
+
<span class='type'>(<tt><span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">Repository</a></span></tt>)</span>
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
—
|
588
|
+
<div class='inline'>
|
589
|
+
<p>a Square SDK repository</p>
|
590
|
+
</div>
|
591
|
+
|
592
|
+
</li>
|
593
|
+
|
594
|
+
</ul>
|
595
|
+
|
596
|
+
</div><table class="source_code">
|
597
|
+
<tr>
|
598
|
+
<td>
|
599
|
+
<pre class="lines">
|
600
|
+
|
601
|
+
|
602
|
+
79
|
603
|
+
80
|
604
|
+
81
|
605
|
+
82
|
606
|
+
83
|
607
|
+
84
|
608
|
+
85
|
609
|
+
86
|
610
|
+
87
|
611
|
+
88
|
612
|
+
89
|
613
|
+
90</pre>
|
614
|
+
</td>
|
615
|
+
<td>
|
616
|
+
<pre class="code"><span class="info file"># File 'lib/cocoapods_repo_sq/repository_store.rb', line 79</span>
|
617
|
+
|
618
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
619
|
+
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
620
|
+
|
621
|
+
<span class='id identifier rubyid_settings'>settings</span> <span class='op'>=</span> <span class='id identifier rubyid_load_settings!'>load_settings!</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
622
|
+
<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_new'><span class='object_link'><a href="Repository.html#initialize-instance_method" title="CocoapodsRepoSq::Repository#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
623
|
+
<span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
624
|
+
<span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:username</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
625
|
+
<span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:password</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
626
|
+
<span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:url</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
627
|
+
<span class='id identifier rubyid_repository_path'>repository_path</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
628
|
+
<span class='rparen'>)</span>
|
629
|
+
<span class='kw'>end</span></pre>
|
630
|
+
</td>
|
631
|
+
</tr>
|
632
|
+
</table>
|
633
|
+
</div>
|
634
|
+
|
635
|
+
<div class="method_details ">
|
636
|
+
<h3 class="signature " id="list-instance_method">
|
637
|
+
|
638
|
+
#<strong>list</strong> ⇒ <tt>Array<<span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">Repository</a></span>></tt>
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
</h3><div class="docstring">
|
645
|
+
<div class="discussion">
|
646
|
+
|
647
|
+
<p>Returns all repositories currently configured in the store as a list of
|
648
|
+
<span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">CocoapodsRepoSq::Repository</a></span> objects</p>
|
649
|
+
|
650
|
+
|
651
|
+
</div>
|
652
|
+
</div>
|
653
|
+
<div class="tags">
|
654
|
+
|
655
|
+
<p class="tag_title">Returns:</p>
|
656
|
+
<ul class="return">
|
657
|
+
|
658
|
+
<li>
|
659
|
+
|
660
|
+
|
661
|
+
<span class='type'>(<tt>Array<<span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">Repository</a></span>></tt>)</span>
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
—
|
666
|
+
<div class='inline'>
|
667
|
+
<p>the list of all Square SDK repositories</p>
|
668
|
+
</div>
|
669
|
+
|
670
|
+
</li>
|
671
|
+
|
672
|
+
</ul>
|
673
|
+
|
674
|
+
</div><table class="source_code">
|
675
|
+
<tr>
|
676
|
+
<td>
|
677
|
+
<pre class="lines">
|
678
|
+
|
679
|
+
|
680
|
+
64
|
681
|
+
65
|
682
|
+
66
|
683
|
+
67
|
684
|
+
68
|
685
|
+
69</pre>
|
686
|
+
</td>
|
687
|
+
<td>
|
688
|
+
<pre class="code"><span class="info file"># File 'lib/cocoapods_repo_sq/repository_store.rb', line 64</span>
|
689
|
+
|
690
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_list'>list</span>
|
691
|
+
<span class='const'>Dir</span><span class='lbracket'>[</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='ivar'>@path</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>*</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_dir'>dir</span><span class='op'>|</span>
|
692
|
+
<span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_dir'>dir</span><span class='rparen'>)</span>
|
693
|
+
<span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
694
|
+
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span>
|
695
|
+
<span class='kw'>end</span></pre>
|
696
|
+
</td>
|
697
|
+
</tr>
|
698
|
+
</table>
|
699
|
+
</div>
|
700
|
+
|
701
|
+
<div class="method_details ">
|
702
|
+
<h3 class="signature " id="register-instance_method">
|
703
|
+
|
704
|
+
#<strong>register</strong>(name, username, password, url) ⇒ <tt><span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">Repository</a></span></tt>
|
705
|
+
|
706
|
+
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
</h3><div class="docstring">
|
711
|
+
<div class="discussion">
|
712
|
+
|
713
|
+
<p>Registers a Square SDK repository on the local store</p>
|
714
|
+
|
715
|
+
|
716
|
+
</div>
|
717
|
+
</div>
|
718
|
+
<div class="tags">
|
719
|
+
<p class="tag_title">Parameters:</p>
|
720
|
+
<ul class="param">
|
721
|
+
|
722
|
+
<li>
|
723
|
+
|
724
|
+
<span class='name'>name</span>
|
725
|
+
|
726
|
+
|
727
|
+
<span class='type'>(<tt>String</tt>)</span>
|
728
|
+
|
729
|
+
|
730
|
+
|
731
|
+
—
|
732
|
+
<div class='inline'>
|
733
|
+
<p>the Square SDK repository name.</p>
|
734
|
+
</div>
|
735
|
+
|
736
|
+
</li>
|
737
|
+
|
738
|
+
<li>
|
739
|
+
|
740
|
+
<span class='name'>username</span>
|
741
|
+
|
742
|
+
|
743
|
+
<span class='type'>(<tt>String</tt>)</span>
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
—
|
748
|
+
<div class='inline'>
|
749
|
+
<p>the Square SDK repository username.</p>
|
750
|
+
</div>
|
751
|
+
|
752
|
+
</li>
|
753
|
+
|
754
|
+
<li>
|
755
|
+
|
756
|
+
<span class='name'>password</span>
|
757
|
+
|
758
|
+
|
759
|
+
<span class='type'>(<tt>String</tt>)</span>
|
760
|
+
|
761
|
+
|
762
|
+
|
763
|
+
—
|
764
|
+
<div class='inline'>
|
765
|
+
<p>the Square SDK repository password.</p>
|
766
|
+
</div>
|
767
|
+
|
768
|
+
</li>
|
769
|
+
|
770
|
+
<li>
|
771
|
+
|
772
|
+
<span class='name'>url</span>
|
773
|
+
|
774
|
+
|
775
|
+
<span class='type'>(<tt>String</tt>)</span>
|
776
|
+
|
777
|
+
|
778
|
+
|
779
|
+
—
|
780
|
+
<div class='inline'>
|
781
|
+
<p>the Square SDK repositories server URL.</p>
|
782
|
+
</div>
|
783
|
+
|
784
|
+
</li>
|
785
|
+
|
786
|
+
</ul>
|
787
|
+
|
788
|
+
<p class="tag_title">Returns:</p>
|
789
|
+
<ul class="return">
|
790
|
+
|
791
|
+
<li>
|
792
|
+
|
793
|
+
|
794
|
+
<span class='type'>(<tt><span class='object_link'><a href="Repository.html" title="CocoapodsRepoSq::Repository (class)">Repository</a></span></tt>)</span>
|
795
|
+
|
796
|
+
|
797
|
+
|
798
|
+
—
|
799
|
+
<div class='inline'>
|
800
|
+
<p>a Square SDK repository</p>
|
801
|
+
</div>
|
802
|
+
|
803
|
+
</li>
|
804
|
+
|
805
|
+
</ul>
|
806
|
+
<p class="tag_title">Raises:</p>
|
807
|
+
<ul class="raise">
|
808
|
+
|
809
|
+
<li>
|
810
|
+
|
811
|
+
|
812
|
+
<span class='type'>(<tt>Pod::Informative</tt>)</span>
|
813
|
+
|
814
|
+
|
815
|
+
|
816
|
+
—
|
817
|
+
<div class='inline'>
|
818
|
+
<p>if the repository has already been configured</p>
|
819
|
+
</div>
|
820
|
+
|
821
|
+
</li>
|
822
|
+
|
823
|
+
</ul>
|
824
|
+
|
825
|
+
</div><table class="source_code">
|
826
|
+
<tr>
|
827
|
+
<td>
|
828
|
+
<pre class="lines">
|
829
|
+
|
830
|
+
|
831
|
+
111
|
832
|
+
112
|
833
|
+
113
|
834
|
+
114
|
835
|
+
115
|
836
|
+
116
|
837
|
+
117
|
838
|
+
118
|
839
|
+
119
|
840
|
+
120
|
841
|
+
121
|
842
|
+
122
|
843
|
+
123
|
844
|
+
124</pre>
|
845
|
+
</td>
|
846
|
+
<td>
|
847
|
+
<pre class="code"><span class="info file"># File 'lib/cocoapods_repo_sq/repository_store.rb', line 111</span>
|
848
|
+
|
849
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_register'>register</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
|
850
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
851
|
+
<span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Square SDK repository `</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>` is already configured</span><span class='tstring_end'>"</span></span>
|
852
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Pod.html" title="Pod (module)">Pod</a></span></span><span class='op'>::</span><span class='const'>Informative</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span>
|
853
|
+
<span class='kw'>end</span>
|
854
|
+
|
855
|
+
<span class='kw'>begin</span>
|
856
|
+
<span class='id identifier rubyid_store_settings!'>store_settings!</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
|
857
|
+
<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_new'><span class='object_link'><a href="Repository.html#initialize-instance_method" title="CocoapodsRepoSq::Repository#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_repository_path'>repository_path</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
858
|
+
<span class='kw'>rescue</span> <span class='op'>=></span> <span class='id identifier rubyid_error'>error</span>
|
859
|
+
<span class='id identifier rubyid_remove'>remove</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
860
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='id identifier rubyid_error'>error</span>
|
861
|
+
<span class='kw'>end</span>
|
862
|
+
<span class='kw'>end</span></pre>
|
863
|
+
</td>
|
864
|
+
</tr>
|
865
|
+
</table>
|
866
|
+
</div>
|
867
|
+
|
868
|
+
<div class="method_details ">
|
869
|
+
<h3 class="signature " id="remove-instance_method">
|
870
|
+
|
871
|
+
#<strong>remove</strong>(name) ⇒ <tt>Boolean</tt>
|
872
|
+
|
873
|
+
|
874
|
+
|
875
|
+
|
876
|
+
|
877
|
+
</h3><div class="docstring">
|
878
|
+
<div class="discussion">
|
879
|
+
|
880
|
+
<p>Removes a Square SDK repository from the local store</p>
|
881
|
+
|
882
|
+
|
883
|
+
</div>
|
884
|
+
</div>
|
885
|
+
<div class="tags">
|
886
|
+
<p class="tag_title">Parameters:</p>
|
887
|
+
<ul class="param">
|
888
|
+
|
889
|
+
<li>
|
890
|
+
|
891
|
+
<span class='name'>name</span>
|
892
|
+
|
893
|
+
|
894
|
+
<span class='type'>(<tt>String</tt>)</span>
|
895
|
+
|
896
|
+
|
897
|
+
|
898
|
+
—
|
899
|
+
<div class='inline'>
|
900
|
+
<p>the name of the Square SDK Repository to be removed.</p>
|
901
|
+
</div>
|
902
|
+
|
903
|
+
</li>
|
904
|
+
|
905
|
+
</ul>
|
906
|
+
|
907
|
+
<p class="tag_title">Returns:</p>
|
908
|
+
<ul class="return">
|
909
|
+
|
910
|
+
<li>
|
911
|
+
|
912
|
+
|
913
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
914
|
+
|
915
|
+
|
916
|
+
|
917
|
+
—
|
918
|
+
<div class='inline'>
|
919
|
+
<p><code>true</code> if the targeted Square SDK repository was removed from
|
920
|
+
the store, otherwise <code>false</code>.</p>
|
921
|
+
</div>
|
922
|
+
|
923
|
+
</li>
|
924
|
+
|
925
|
+
</ul>
|
926
|
+
|
927
|
+
</div><table class="source_code">
|
928
|
+
<tr>
|
929
|
+
<td>
|
930
|
+
<pre class="lines">
|
931
|
+
|
932
|
+
|
933
|
+
134
|
934
|
+
135
|
935
|
+
136
|
936
|
+
137</pre>
|
937
|
+
</td>
|
938
|
+
<td>
|
939
|
+
<pre class="code"><span class="info file"># File 'lib/cocoapods_repo_sq/repository_store.rb', line 134</span>
|
940
|
+
|
941
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_remove'>remove</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
942
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='id identifier rubyid_repository_path'>repository_path</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
943
|
+
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_rm_rf'>rm_rf</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='kw'>true</span>
|
944
|
+
<span class='kw'>end</span></pre>
|
945
|
+
</td>
|
946
|
+
</tr>
|
947
|
+
</table>
|
948
|
+
</div>
|
949
|
+
|
950
|
+
</div>
|
951
|
+
|
952
|
+
</div>
|
953
|
+
|
954
|
+
<div id="footer">
|
955
|
+
Generated on Fri Apr 27 10:49:53 2018 by
|
956
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
957
|
+
0.9.12 (ruby-2.4.0).
|
958
|
+
</div>
|
959
|
+
|
960
|
+
</div>
|
961
|
+
</body>
|
962
|
+
</html>
|