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,149 @@
|
|
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
|
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";
|
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 (C)</a> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">CocoapodsRepoSq</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
|
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.rb<span class="defines">,<br />
|
82
|
+
lib/cocoapods_repo_sq/source.rb,<br /> lib/cocoapods_repo_sq/downloader.rb,<br /> lib/cocoapods_repo_sq/repository.rb,<br /> lib/cocoapods_repo_sq/repository_store.rb</span>
|
83
|
+
</dd>
|
84
|
+
</dl>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<h2>Overview</h2><div class="docstring">
|
89
|
+
<div class="discussion">
|
90
|
+
|
91
|
+
<p>Main namespace for cocoapods-repo-sq plugin</p>
|
92
|
+
|
93
|
+
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
<div class="tags">
|
97
|
+
|
98
|
+
|
99
|
+
</div><h2>Defined Under Namespace</h2>
|
100
|
+
<p class="children">
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="CocoapodsRepoSq/Downloader.html" title="CocoapodsRepoSq::Downloader (class)">Downloader</a></span>, <span class='object_link'><a href="CocoapodsRepoSq/Repository.html" title="CocoapodsRepoSq::Repository (class)">Repository</a></span>, <span class='object_link'><a href="CocoapodsRepoSq/RepositoryStore.html" title="CocoapodsRepoSq::RepositoryStore (class)">RepositoryStore</a></span>, <span class='object_link'><a href="CocoapodsRepoSq/Source.html" title="CocoapodsRepoSq::Source (class)">Source</a></span>
|
106
|
+
|
107
|
+
|
108
|
+
</p>
|
109
|
+
|
110
|
+
<h2>Constant Summary</h2>
|
111
|
+
<dl class="constants">
|
112
|
+
|
113
|
+
<dt id="VERSION-constant" class="">VERSION =
|
114
|
+
<div class="docstring">
|
115
|
+
<div class="discussion">
|
116
|
+
|
117
|
+
<p>Plugin version</p>
|
118
|
+
|
119
|
+
|
120
|
+
</div>
|
121
|
+
</div>
|
122
|
+
<div class="tags">
|
123
|
+
|
124
|
+
|
125
|
+
</div>
|
126
|
+
</dt>
|
127
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.0.1</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
128
|
+
|
129
|
+
</dl>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
</div>
|
140
|
+
|
141
|
+
<div id="footer">
|
142
|
+
Generated on Fri Apr 27 10:49:52 2018 by
|
143
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
144
|
+
0.9.12 (ruby-2.4.0).
|
145
|
+
</div>
|
146
|
+
|
147
|
+
</div>
|
148
|
+
</body>
|
149
|
+
</html>
|
@@ -0,0 +1,436 @@
|
|
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: Pod::Command::RepoSq::Add
|
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 = "Pod::Command::RepoSq::Add";
|
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 (A)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../../Pod.html" title="Pod (module)">Pod</a></span></span> » <span class='title'><span class='object_link'><a href="../../Command.html" title="Pod::Command (class)">Command</a></span></span> » <span class='title'><span class='object_link'><a href="../RepoSq.html" title="Pod::Command::RepoSq (class)">RepoSq</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Add</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: Pod::Command::RepoSq::Add
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName"><span class='object_link'><a href="../RepoSq.html" title="Pod::Command::RepoSq (class)">Pod::Command::RepoSq</a></span></span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next"><span class='object_link'><a href="../../Command.html" title="Pod::Command (class)">Pod::Command</a></span></li>
|
78
|
+
|
79
|
+
<li class="next"><span class='object_link'><a href="../RepoSq.html" title="Pod::Command::RepoSq (class)">Pod::Command::RepoSq</a></span></li>
|
80
|
+
|
81
|
+
<li class="next">Pod::Command::RepoSq::Add</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
</dl>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<dl>
|
100
|
+
<dt>Defined in:</dt>
|
101
|
+
<dd>lib/pod/command/repo_sq/add.rb</dd>
|
102
|
+
</dl>
|
103
|
+
|
104
|
+
</div>
|
105
|
+
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
107
|
+
<div class="discussion">
|
108
|
+
|
109
|
+
<p>Subclass of <span class='object_link'><a href="../RepoSq.html" title="Pod::Command::RepoSq (class)">Pod::Command::RepoSq</a></span> Provides support for the <code>pod repo-sq add</code>
|
110
|
+
which adds a Square SDK repository to the user's cocoapods local
|
111
|
+
repositories store.</p>
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
<div class="tags">
|
117
|
+
|
118
|
+
|
119
|
+
</div>
|
120
|
+
<h2>Constant Summary</h2>
|
121
|
+
<dl class="constants">
|
122
|
+
|
123
|
+
<dt id="DEFAULT_URL-constant" class="">DEFAULT_URL =
|
124
|
+
<div class="docstring">
|
125
|
+
<div class="discussion">
|
126
|
+
|
127
|
+
<p>Default Square SDK repositories server URL. This URL can be customized by
|
128
|
+
providing a fourth undocumented parameter to this command but not intended
|
129
|
+
for public use.</p>
|
130
|
+
|
131
|
+
|
132
|
+
</div>
|
133
|
+
</div>
|
134
|
+
<div class="tags">
|
135
|
+
|
136
|
+
<p class="tag_title">Returns:</p>
|
137
|
+
<ul class="return">
|
138
|
+
|
139
|
+
<li>
|
140
|
+
|
141
|
+
|
142
|
+
<span class='type'>(<tt>String</tt>)</span>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
—
|
147
|
+
<div class='inline'>
|
148
|
+
<p>default Square SDK repositories server URL.</p>
|
149
|
+
</div>
|
150
|
+
|
151
|
+
</li>
|
152
|
+
|
153
|
+
</ul>
|
154
|
+
|
155
|
+
</div>
|
156
|
+
</dt>
|
157
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>https://sdk.squareup.com/ios</span><span class='tstring_end'>'</span></span></pre></dd>
|
158
|
+
|
159
|
+
</dl>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
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="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(argv) ⇒ Add </a>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
</span>
|
183
|
+
|
184
|
+
|
185
|
+
<span class="note title constructor">constructor</span>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
<span class="summary_desc"><div class='inline'>
|
195
|
+
<p>A new instance of Add.</p>
|
196
|
+
</div></span>
|
197
|
+
|
198
|
+
</li>
|
199
|
+
|
200
|
+
|
201
|
+
<li class="public ">
|
202
|
+
<span class="summary_signature">
|
203
|
+
|
204
|
+
<a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong> ⇒ Object </a>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
</span>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
<span class="summary_desc"><div class='inline'>
|
219
|
+
<p>Registers a Square SDK repository on the current user
|
220
|
+
<span class='object_link'><a href="../../../CocoapodsRepoSq/RepositoryStore.html" title="CocoapodsRepoSq::RepositoryStore (class)">CocoapodsRepoSq::RepositoryStore</a></span>.</p>
|
221
|
+
</div></span>
|
222
|
+
|
223
|
+
</li>
|
224
|
+
|
225
|
+
|
226
|
+
<li class="public ">
|
227
|
+
<span class="summary_signature">
|
228
|
+
|
229
|
+
<a href="#validate!-instance_method" title="#validate! (instance method)">#<strong>validate!</strong> ⇒ Object </a>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
</span>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<span class="summary_desc"><div class='inline'>
|
244
|
+
<p>Validates that all required arguments are present: <code>NAME</code>,
|
245
|
+
<code>USERNAME</code> and <code>PASSWORD</code>.</p>
|
246
|
+
</div></span>
|
247
|
+
|
248
|
+
</li>
|
249
|
+
|
250
|
+
|
251
|
+
</ul>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
<div id="constructor_details" class="method_details_list">
|
267
|
+
<h2>Constructor Details</h2>
|
268
|
+
|
269
|
+
<div class="method_details first">
|
270
|
+
<h3 class="signature first" id="initialize-instance_method">
|
271
|
+
|
272
|
+
#<strong>initialize</strong>(argv) ⇒ <tt><span class='object_link'><a href="" title="Pod::Command::RepoSq::Add (class)">Add</a></span></tt>
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
</h3><div class="docstring">
|
279
|
+
<div class="discussion">
|
280
|
+
|
281
|
+
<p>Returns a new instance of Add</p>
|
282
|
+
|
283
|
+
|
284
|
+
</div>
|
285
|
+
</div>
|
286
|
+
<div class="tags">
|
287
|
+
|
288
|
+
|
289
|
+
</div><table class="source_code">
|
290
|
+
<tr>
|
291
|
+
<td>
|
292
|
+
<pre class="lines">
|
293
|
+
|
294
|
+
|
295
|
+
50
|
296
|
+
51
|
297
|
+
52
|
298
|
+
53
|
299
|
+
54
|
300
|
+
55
|
301
|
+
56</pre>
|
302
|
+
</td>
|
303
|
+
<td>
|
304
|
+
<pre class="code"><span class="info file"># File 'lib/pod/command/repo_sq/add.rb', line 50</span>
|
305
|
+
|
306
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_argv'>argv</span><span class='rparen'>)</span>
|
307
|
+
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_argv'>argv</span><span class='period'>.</span><span class='id identifier rubyid_shift_argument'>shift_argument</span>
|
308
|
+
<span class='ivar'>@username</span> <span class='op'>=</span> <span class='id identifier rubyid_argv'>argv</span><span class='period'>.</span><span class='id identifier rubyid_shift_argument'>shift_argument</span>
|
309
|
+
<span class='ivar'>@password</span> <span class='op'>=</span> <span class='id identifier rubyid_argv'>argv</span><span class='period'>.</span><span class='id identifier rubyid_shift_argument'>shift_argument</span>
|
310
|
+
<span class='ivar'>@url</span> <span class='op'>=</span> <span class='id identifier rubyid_argv'>argv</span><span class='period'>.</span><span class='id identifier rubyid_shift_argument'>shift_argument</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="#DEFAULT_URL-constant" title="Pod::Command::RepoSq::Add::DEFAULT_URL (constant)">DEFAULT_URL</a></span></span>
|
311
|
+
<span class='kw'>super</span>
|
312
|
+
<span class='kw'>end</span></pre>
|
313
|
+
</td>
|
314
|
+
</tr>
|
315
|
+
</table>
|
316
|
+
</div>
|
317
|
+
|
318
|
+
</div>
|
319
|
+
|
320
|
+
|
321
|
+
<div id="instance_method_details" class="method_details_list">
|
322
|
+
<h2>Instance Method Details</h2>
|
323
|
+
|
324
|
+
|
325
|
+
<div class="method_details first">
|
326
|
+
<h3 class="signature first" id="run-instance_method">
|
327
|
+
|
328
|
+
#<strong>run</strong> ⇒ <tt>Object</tt>
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
</h3><div class="docstring">
|
335
|
+
<div class="discussion">
|
336
|
+
|
337
|
+
<p>Registers a Square SDK repository on the current user
|
338
|
+
<span class='object_link'><a href="../../../CocoapodsRepoSq/RepositoryStore.html" title="CocoapodsRepoSq::RepositoryStore (class)">CocoapodsRepoSq::RepositoryStore</a></span>. It checks that the user name and
|
339
|
+
password are valid and that the repository exists on the Square server.</p>
|
340
|
+
|
341
|
+
|
342
|
+
</div>
|
343
|
+
</div>
|
344
|
+
<div class="tags">
|
345
|
+
|
346
|
+
|
347
|
+
</div><table class="source_code">
|
348
|
+
<tr>
|
349
|
+
<td>
|
350
|
+
<pre class="lines">
|
351
|
+
|
352
|
+
|
353
|
+
71
|
354
|
+
72
|
355
|
+
73
|
356
|
+
74
|
357
|
+
75
|
358
|
+
76
|
359
|
+
77</pre>
|
360
|
+
</td>
|
361
|
+
<td>
|
362
|
+
<pre class="code"><span class="info file"># File 'lib/pod/command/repo_sq/add.rb', line 71</span>
|
363
|
+
|
364
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
|
365
|
+
<span class='id identifier rubyid_section'>section</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Adding Square SDK repository `</span><span class='embexpr_beg'>#{</span><span class='ivar'>@name</span><span class='embexpr_end'>}</span><span class='tstring_content'>`</span><span class='tstring_end'>"</span></span>
|
366
|
+
<span class='const'>UI</span><span class='period'>.</span><span class='id identifier rubyid_section'>section</span><span class='lparen'>(</span><span class='id identifier rubyid_section'>section</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
367
|
+
<span class='id identifier rubyid_repository'>repository</span> <span class='op'>=</span> <span class='id identifier rubyid_repository_store'>repository_store</span><span class='period'>.</span><span class='id identifier rubyid_register'>register</span><span class='lparen'>(</span><span class='ivar'>@name</span><span class='comma'>,</span> <span class='ivar'>@username</span><span class='comma'>,</span> <span class='ivar'>@password</span><span class='comma'>,</span> <span class='ivar'>@url</span><span class='rparen'>)</span>
|
368
|
+
<span class='id identifier rubyid_repository'>repository</span><span class='period'>.</span><span class='id identifier rubyid_update_specs'>update_specs</span>
|
369
|
+
<span class='kw'>end</span>
|
370
|
+
<span class='kw'>end</span></pre>
|
371
|
+
</td>
|
372
|
+
</tr>
|
373
|
+
</table>
|
374
|
+
</div>
|
375
|
+
|
376
|
+
<div class="method_details ">
|
377
|
+
<h3 class="signature " id="validate!-instance_method">
|
378
|
+
|
379
|
+
#<strong>validate!</strong> ⇒ <tt>Object</tt>
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
</h3><div class="docstring">
|
386
|
+
<div class="discussion">
|
387
|
+
|
388
|
+
<p>Validates that all required arguments are present: <code>NAME</code>,
|
389
|
+
<code>USERNAME</code> and <code>PASSWORD</code></p>
|
390
|
+
|
391
|
+
|
392
|
+
</div>
|
393
|
+
</div>
|
394
|
+
<div class="tags">
|
395
|
+
|
396
|
+
|
397
|
+
</div><table class="source_code">
|
398
|
+
<tr>
|
399
|
+
<td>
|
400
|
+
<pre class="lines">
|
401
|
+
|
402
|
+
|
403
|
+
60
|
404
|
+
61
|
405
|
+
62
|
406
|
+
63
|
407
|
+
64
|
408
|
+
65</pre>
|
409
|
+
</td>
|
410
|
+
<td>
|
411
|
+
<pre class="code"><span class="info file"># File 'lib/pod/command/repo_sq/add.rb', line 60</span>
|
412
|
+
|
413
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_validate!'>validate!</span>
|
414
|
+
<span class='kw'>super</span>
|
415
|
+
<span class='kw'>unless</span> <span class='ivar'>@name</span> <span class='op'>&&</span> <span class='ivar'>@username</span> <span class='op'>&&</span> <span class='ivar'>@password</span>
|
416
|
+
<span class='id identifier rubyid_help!'>help!</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Adding a Square SDK repository needs a `NAME`, `USERNAME` and a `PASSWORD`.</span><span class='tstring_end'>'</span></span>
|
417
|
+
<span class='kw'>end</span>
|
418
|
+
<span class='kw'>end</span></pre>
|
419
|
+
</td>
|
420
|
+
</tr>
|
421
|
+
</table>
|
422
|
+
</div>
|
423
|
+
|
424
|
+
</div>
|
425
|
+
|
426
|
+
</div>
|
427
|
+
|
428
|
+
<div id="footer">
|
429
|
+
Generated on Fri Apr 27 10:49:52 2018 by
|
430
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
431
|
+
0.9.12 (ruby-2.4.0).
|
432
|
+
</div>
|
433
|
+
|
434
|
+
</div>
|
435
|
+
</body>
|
436
|
+
</html>
|