cocoapods-repo-sq 0.0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- 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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0695c6628c3127dd1d5e5f2ffacf3339cff9b16d3c9b7df2938ae521a263640b
|
4
|
+
data.tar.gz: 7f04e5fd359aeb1a1fb5ab98d407a0f99d5e21aa7904818d662e43a316d95874
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1ae5dccd0624ec369ee37a1a4514d87e2a00f397118a5d448d8c54ba895b253e7cbe5f15413da4f6418153e5105c36a9fb8d6371085fecbf3b40f6b7409f2dc6
|
7
|
+
data.tar.gz: cfa8d4b36d60ec9f0d1c4cc633603d1e8e6582177924d39fb117bdb34b2353178684d7c2dd4836e7cc0c83149734460c5be721d2df5f23132a88f41e30996546
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.0
|
4
|
+
- 2.2
|
5
|
+
- 2.4
|
6
|
+
deploy:
|
7
|
+
provider: rubygems
|
8
|
+
api_key:
|
9
|
+
secure: khdJjps5SOkhQsUfMXqGu0pMFh73P2AaKtSjHFbGQb61q5kYmGICok71F+x+TbGhAGRy56/qvDWwqvsZT0pzlvSXQ+/sYnNf04uW06pSz3S0cBT5I3zMVtK9qxFg3AJZidcufpAWsDaKVh+kuIz8FYxtvvMgtm7Nmpc3hxbdwZUzmKUZHRf+QsNNaKKzGRbRNTB4sTYiRIxQbaQpvl3v05P23qcKHQFC4JCmwTuJ4Bs2PnvYshRiy4hM5XTrQZNakSjkY5MACfWYjIrJMtoNuERyzOb8EPRaD8A9gs+EJOYfAdfEY01V/gyChYOUJ5j+OKfeWWIgoPO+wI3J9CFGjzWYIISn2EDl+7eoDvek5JXu6oKbNfOSwyMm9hvBYF7hQyagXv3y7VRLbiB8AEHg+tKzo407LqrljrZAKf+gyhGp69QNoaQA+ZDiK1D3fkUlBOA02CeGQpB7SbIgFdl6CcKnpi/gp/Rc/w0n/Z1zV2iGPjr7lh6BEVesSSyldpyULYlr7NA+6vKxuopBsdM+JPEk7bhQAjiQiDoP04YGr1bNyco2HYcQAhtVtwYM8ZNKTJUeka7Lx3JjYJADomHIrF0h7xiv+FnaoKHWwksRr1BAaTCtF2PgQ8UBWU8VB385tOSuhRz+YQw4HG7K2d6+epkYIwd5jDX2Uxus1uvHMTU=
|
10
|
+
gem: cocoapods-repo-sq
|
11
|
+
on:
|
12
|
+
tags: true
|
13
|
+
repo: square/cocoapods-repo-sq
|
data/CHANGES.md
ADDED
File without changes
|
data/CONTRIBUTING.md
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
CocoapodsRepoSq
|
2
|
+
===============
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/cocoapods-repo-sq.svg)](http://rubygems.org/gems/cocoapods-repo-sq)
|
4
|
+
[![Build Status](https://travis-ci.org/square/cocoapods-repo-sq.svg?branch=master)](https://travis-ci.org/square/cocoapods-repo-sq)
|
5
|
+
[![Apache 2 licensed](https://img.shields.io/badge/license-Apache2-blue.svg)](https://github.com/square/cocoapods-repo-sq/blob/master/LICENSE)
|
6
|
+
|
7
|
+
Adds support for Square SDK Repositories to Cocoapods
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
$ gem install cocoapods-repo-sq
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
### Integrate in your project
|
16
|
+
|
17
|
+
Add a Square SDK Repository to your local cocoapods registry. `NAME` is a nickname you'll use to refer to this repository later in your `Podfile` and other `pod repo-sq` commands:
|
18
|
+
```shell
|
19
|
+
$ pod repo-sq add NAME USERNAME PASSWORD
|
20
|
+
```
|
21
|
+
|
22
|
+
Specify your Square SDK repository in your `Podfile`:
|
23
|
+
```ruby
|
24
|
+
plugin 'cocoapods-repo-sq', :repository => 'NAME'
|
25
|
+
|
26
|
+
target 'MyTarget' do
|
27
|
+
pod 'SquareSDK'
|
28
|
+
end
|
29
|
+
```
|
30
|
+
|
31
|
+
### Commands
|
32
|
+
|
33
|
+
Add
|
34
|
+
|
35
|
+
$ pod repo-sq add NAME USERNAME PASSWORD
|
36
|
+
|
37
|
+
List
|
38
|
+
|
39
|
+
$ pod repo-sq list
|
40
|
+
|
41
|
+
Update
|
42
|
+
|
43
|
+
$ pod repo-sq update NAME
|
44
|
+
|
45
|
+
Remove
|
46
|
+
|
47
|
+
$ pod repo-sq remove NAME
|
48
|
+
|
49
|
+
## Multiple Applications
|
50
|
+
|
51
|
+
If you have multiple Square Applications you will have multiple SDK Repositories. `cocoapods-repo-sq` supports this by allowing you to add multiple repositories to your registry. Just remember to point your `Podfile` to the right one using the `plugin 'cocoapods-repo-sq', :repository => 'NAME'` statement.
|
52
|
+
|
53
|
+
## Contributing
|
54
|
+
|
55
|
+
We are currently not accepting code contributions to this repository. If you found a bug or have a feature request please [Submit it here](https://github.com/square/cocoapods-repo-sq/issues/new).
|
56
|
+
|
57
|
+
If you are curious about Cocoapods and its plugin system take a look at the following guides:
|
58
|
+
- https://blog.cocoapods.org/CocoaPods-0.28/
|
59
|
+
- https://guides.cocoapods.org/reference.html
|
60
|
+
- https://github.com/CocoaPods/cocoapods-plugins
|
61
|
+
|
62
|
+
## Building
|
63
|
+
|
64
|
+
$ rake build
|
65
|
+
|
66
|
+
## Testing
|
67
|
+
|
68
|
+
$ rake specs
|
69
|
+
|
70
|
+
## License
|
71
|
+
|
72
|
+
Copyright 2018 Square Inc.
|
73
|
+
|
74
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
75
|
+
you may not use this file except in compliance with the License.
|
76
|
+
You may obtain a copy of the License at
|
77
|
+
|
78
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
79
|
+
|
80
|
+
Unless required by applicable law or agreed to in writing, software
|
81
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
82
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
83
|
+
See the License for the specific language governing permissions and
|
84
|
+
limitations under the License.
|
data/Rakefile
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
# This source file is part of the cocoapods-repo-sq plugin under the Apache 2.0
|
4
|
+
# license:
|
5
|
+
#
|
6
|
+
# Copyright 2018 Square Inc.
|
7
|
+
#
|
8
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
# you may not use this file except in compliance with the License.
|
10
|
+
# You may obtain a copy of the License at
|
11
|
+
#
|
12
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
#
|
14
|
+
# Unless required by applicable law or agreed to in writing, software
|
15
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
# See the License for the specific language governing permissions and
|
18
|
+
# limitations under the License.
|
19
|
+
#
|
20
|
+
# =============================================================================
|
21
|
+
|
22
|
+
require 'bundler/gem_tasks'
|
23
|
+
|
24
|
+
def specs(dir)
|
25
|
+
FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
|
26
|
+
end
|
27
|
+
|
28
|
+
desc 'Runs all the specs'
|
29
|
+
task :specs do
|
30
|
+
sh "bundle exec bacon -I spec/ -r spec_helper #{specs('**')}"
|
31
|
+
end
|
32
|
+
|
33
|
+
task :default => :specs
|
34
|
+
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
# This source file is part of the cocoapods-repo-sq plugin under the Apache 2.0
|
4
|
+
# license:
|
5
|
+
#
|
6
|
+
# Copyright 2018 Square Inc.
|
7
|
+
#
|
8
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
# you may not use this file except in compliance with the License.
|
10
|
+
# You may obtain a copy of the License at
|
11
|
+
#
|
12
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
#
|
14
|
+
# Unless required by applicable law or agreed to in writing, software
|
15
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
# See the License for the specific language governing permissions and
|
18
|
+
# limitations under the License.
|
19
|
+
#
|
20
|
+
# =============================================================================
|
21
|
+
|
22
|
+
lib = File.expand_path('../lib', __FILE__)
|
23
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
24
|
+
require 'cocoapods_repo_sq'
|
25
|
+
|
26
|
+
Gem::Specification.new do |spec|
|
27
|
+
spec.name = 'cocoapods-repo-sq'
|
28
|
+
spec.version = CocoapodsRepoSq::VERSION
|
29
|
+
spec.version = "#{spec.version}.#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
|
30
|
+
spec.authors = ['Square, Inc.']
|
31
|
+
spec.email = ['developers@squareup.com']
|
32
|
+
spec.description = 'Support for Square SDK Repositories on Cocoapods'
|
33
|
+
spec.summary = 'Support for Square SDK Repositories on Cocoapods. For more information see https://docs.connect.squareup.com'
|
34
|
+
spec.homepage = 'https://github.com/square/cocoapods-repo-sq'
|
35
|
+
spec.license = 'Apache-2.0'
|
36
|
+
|
37
|
+
spec.files = `git ls-files`.split($/)
|
38
|
+
spec.test_files = spec.files.grep(%r{^spec/})
|
39
|
+
spec.require_paths = ['lib']
|
40
|
+
|
41
|
+
spec.add_runtime_dependency 'cocoapods', '~> 1', '>= 1.4.0'
|
42
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
43
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
44
|
+
spec.add_development_dependency 'yard', '~> 0.9'
|
45
|
+
end
|
@@ -0,0 +1,225 @@
|
|
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::Downloader::Extensions
|
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::Downloader::Extensions";
|
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 (E)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../CocoapodsRepoSq.html" title="CocoapodsRepoSq (module)">CocoapodsRepoSq</a></span></span> » <span class='title'><span class='object_link'><a href="../Downloader.html" title="CocoapodsRepoSq::Downloader (class)">Downloader</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Extensions</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::Downloader::Extensions
|
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)">CocoapodsRepoSq::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> ⇒ Hash{Symbol=>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 available to the
|
135
|
+
<a href="https://guides.cocoapods.org/syntax/podspec.html#source" target="_parent" title="podfile source setting">podfile source setting</a>.</p>
|
136
|
+
</div></span>
|
137
|
+
|
138
|
+
</li>
|
139
|
+
|
140
|
+
|
141
|
+
</ul>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
<div id="instance_method_details" class="method_details_list">
|
147
|
+
<h2>Instance Method Details</h2>
|
148
|
+
|
149
|
+
|
150
|
+
<div class="method_details first">
|
151
|
+
<h3 class="signature first" id="downloader_class_by_key-instance_method">
|
152
|
+
|
153
|
+
#<strong>downloader_class_by_key</strong> ⇒ <tt>Hash{Symbol=>Class}</tt>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
</h3><div class="docstring">
|
160
|
+
<div class="discussion">
|
161
|
+
|
162
|
+
<p>Map of downloaded classes supported by Cocoapods available to the
|
163
|
+
<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
|
164
|
+
hosted podspecs and pods.</p>
|
165
|
+
|
166
|
+
|
167
|
+
</div>
|
168
|
+
</div>
|
169
|
+
<div class="tags">
|
170
|
+
|
171
|
+
<p class="tag_title">Returns:</p>
|
172
|
+
<ul class="return">
|
173
|
+
|
174
|
+
<li>
|
175
|
+
|
176
|
+
|
177
|
+
<span class='type'>(<tt>Hash{Symbol=>Class}</tt>)</span>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
—
|
182
|
+
<div class='inline'>
|
183
|
+
<p>a map where the key is a symbol used in the podspec source setting such as
|
184
|
+
<code>:http</code>, <code>:git</code>, <code>:square</code> and the class
|
185
|
+
is the one responsible for implementing a particular download strategy</p>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
</li>
|
189
|
+
|
190
|
+
</ul>
|
191
|
+
|
192
|
+
</div><table class="source_code">
|
193
|
+
<tr>
|
194
|
+
<td>
|
195
|
+
<pre class="lines">
|
196
|
+
|
197
|
+
|
198
|
+
44
|
199
|
+
45
|
200
|
+
46</pre>
|
201
|
+
</td>
|
202
|
+
<td>
|
203
|
+
<pre class="code"><span class="info file"># File 'lib/cocoapods_repo_sq/downloader.rb', line 44</span>
|
204
|
+
|
205
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_downloader_class_by_key'>downloader_class_by_key</span>
|
206
|
+
<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'>=></span> <span class='const'><span class='object_link'><a href="../Downloader.html" title="CocoapodsRepoSq::Downloader (class)">Downloader</a></span></span><span class='rparen'>)</span>
|
207
|
+
<span class='kw'>end</span></pre>
|
208
|
+
</td>
|
209
|
+
</tr>
|
210
|
+
</table>
|
211
|
+
</div>
|
212
|
+
|
213
|
+
</div>
|
214
|
+
|
215
|
+
</div>
|
216
|
+
|
217
|
+
<div id="footer">
|
218
|
+
Generated on Fri Apr 27 10:49:52 2018 by
|
219
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
220
|
+
0.9.12 (ruby-2.4.0).
|
221
|
+
</div>
|
222
|
+
|
223
|
+
</div>
|
224
|
+
</body>
|
225
|
+
</html>
|