cocoapods-repo-sq 0.0.1.9 → 0.0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/CocoapodsRepoSq.html +8 -6
- data/doc/CocoapodsRepoSq/Downloader.html +24 -16
- data/doc/CocoapodsRepoSq/Downloader/Extensions.html +16 -10
- data/doc/CocoapodsRepoSq/Repository.html +73 -40
- data/doc/CocoapodsRepoSq/RepositoryStore.html +71 -39
- data/doc/CocoapodsRepoSq/Source.html +18 -11
- data/doc/Pod.html +13 -12
- data/doc/Pod/Command.html +3 -3
- data/doc/Pod/Command/RepoSq.html +6 -4
- data/doc/Pod/Command/RepoSq/Add.html +30 -20
- data/doc/Pod/Command/RepoSq/List.html +12 -9
- data/doc/Pod/Command/RepoSq/Remove.html +20 -13
- data/doc/Pod/Command/RepoSq/Update.html +20 -13
- data/doc/_index.html +4 -4
- data/doc/css/style.css +7 -0
- data/doc/file.README.html +54 -49
- data/doc/frames.html +1 -1
- data/doc/index.html +54 -49
- data/doc/top-level-namespace.html +3 -3
- data/lib/cocoapods_repo_sq.rb +1 -1
- data/lib/cocoapods_repo_sq/repository.rb +4 -3
- data/spec/unit/cocoapods_repo_sq/repository_spec.rb +8 -1
- metadata +3 -3
data/doc/file.README.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.12
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -57,82 +57,88 @@
|
|
57
57
|
<div class="clear"></div>
|
58
58
|
</div>
|
59
59
|
|
60
|
-
<div id="content"><div id='filecontents'
|
61
|
-
<
|
62
|
-
|
63
|
-
<a href="
|
60
|
+
<div id="content"><div id='filecontents'>
|
61
|
+
<h1 id="label-CocoapodsRepoSq">CocoapodsRepoSq</h1>
|
62
|
+
|
63
|
+
<p><a href="http://rubygems.org/gems/cocoapods-repo-sq"><img
|
64
|
+
src="https://badge.fury.io/rb/cocoapods-repo-sq.svg"></a> <a
|
65
|
+
href="https://travis-ci.org/square/cocoapods-repo-sq"><img
|
66
|
+
src="https://travis-ci.org/square/cocoapods-repo-sq.svg?branch=master"></a>
|
67
|
+
<a
|
68
|
+
href="https://github.com/square/cocoapods-repo-sq/blob/master/LICENSE"><img
|
69
|
+
src="https://img.shields.io/badge/license-Apache2-blue.svg"></a></p>
|
64
70
|
|
65
71
|
<p>Adds support for Square SDK Repositories to Cocoapods</p>
|
66
72
|
|
67
|
-
<h2 id="
|
73
|
+
<h2 id="label-Installation">Installation</h2>
|
68
74
|
|
69
|
-
<pre class="code ruby"><code class="ruby">$ gem install cocoapods-repo-sq
|
70
|
-
</code></pre>
|
75
|
+
<pre class="code ruby"><code class="ruby">$ gem install cocoapods-repo-sq</code></pre>
|
71
76
|
|
72
|
-
<h2 id="
|
77
|
+
<h2 id="label-Usage">Usage</h2>
|
73
78
|
|
74
|
-
<h3 id="
|
79
|
+
<h3 id="label-Integrate+in+your+project">Integrate in your project</h3>
|
75
80
|
|
76
|
-
<p>Add a Square SDK Repository to your local cocoapods registry.
|
77
|
-
<code>
|
78
|
-
|
79
|
-
</code></p>
|
81
|
+
<p>Add a Square SDK Repository to your local cocoapods registry.
|
82
|
+
<code>NAME</code> is a nickname you'll use to refer to this repository
|
83
|
+
later in your <code>Podfile</code> and other <code>pod repo-sq</code>
|
84
|
+
commands: <code>shell $ pod repo-sq add NAME USERNAME PASSWORD </code></p>
|
80
85
|
|
81
|
-
<p>Specify your Square SDK repository in your <code>Podfile</code>:
|
82
|
-
|
83
|
-
plugin ‘cocoapods-repo-sq’, :repository => ‘NAME’</p>
|
86
|
+
<p>Specify your Square SDK repository in your <code>Podfile</code>: “`ruby
|
87
|
+
plugin 'cocoapods-repo-sq', :repository => 'NAME'</p>
|
84
88
|
|
85
|
-
<p>target
|
86
|
-
pod ‘SquareSDK’
|
87
|
-
end
|
88
|
-
```</p>
|
89
|
+
<p>target 'MyTarget' do pod 'SquareSDK' end “`</p>
|
89
90
|
|
90
|
-
<h3 id="
|
91
|
+
<h3 id="label-Commands">Commands</h3>
|
91
92
|
|
92
93
|
<p>Add</p>
|
93
94
|
|
94
|
-
<pre class="code ruby"><code class="ruby">$ pod repo-sq add NAME USERNAME PASSWORD
|
95
|
-
</code></pre>
|
95
|
+
<pre class="code ruby"><code class="ruby">$ pod repo-sq add NAME USERNAME PASSWORD</code></pre>
|
96
96
|
|
97
97
|
<p>List</p>
|
98
98
|
|
99
|
-
<pre class="code ruby"><code class="ruby">$ pod repo-sq list
|
100
|
-
</code></pre>
|
99
|
+
<pre class="code ruby"><code class="ruby">$ pod repo-sq list</code></pre>
|
101
100
|
|
102
101
|
<p>Update</p>
|
103
102
|
|
104
|
-
<pre class="code ruby"><code class="ruby">$ pod repo-sq update NAME
|
105
|
-
</code></pre>
|
103
|
+
<pre class="code ruby"><code class="ruby">$ pod repo-sq update NAME</code></pre>
|
106
104
|
|
107
105
|
<p>Remove</p>
|
108
106
|
|
109
|
-
<pre class="code ruby"><code class="ruby">$ pod repo-sq remove NAME
|
110
|
-
</code></pre>
|
107
|
+
<pre class="code ruby"><code class="ruby">$ pod repo-sq remove NAME</code></pre>
|
111
108
|
|
112
|
-
<h2 id="
|
109
|
+
<h2 id="label-Multiple+Applications">Multiple Applications</h2>
|
113
110
|
|
114
|
-
<p>If you have multiple Square Applications you will have multiple SDK
|
111
|
+
<p>If you have multiple Square Applications you will have multiple SDK
|
112
|
+
Repositories. <code>cocoapods-repo-sq</code> supports this by allowing you
|
113
|
+
to add multiple repositories to your registry. Just remember to point your
|
114
|
+
<code>Podfile</code> to the right one using the <code>plugin
|
115
|
+
'cocoapods-repo-sq', :repository => 'NAME'</code>
|
116
|
+
statement.</p>
|
115
117
|
|
116
|
-
<h2 id="
|
118
|
+
<h2 id="label-Contributing">Contributing</h2>
|
117
119
|
|
118
|
-
<p>We are currently not accepting code contributions to this repository. If
|
120
|
+
<p>We are currently not accepting code contributions to this repository. If
|
121
|
+
you found a bug or have a feature request please <a
|
122
|
+
href="https://github.com/square/cocoapods-repo-sq/issues/new">Submit it
|
123
|
+
here</a>.</p>
|
119
124
|
|
120
|
-
<p>If you are curious about Cocoapods and its plugin system take a look at the
|
121
|
-
-
|
122
|
-
|
123
|
-
-
|
125
|
+
<p>If you are curious about Cocoapods and its plugin system take a look at the
|
126
|
+
following guides: - <a
|
127
|
+
href="https://blog.cocoapods.org/CocoaPods-0.28">blog.cocoapods.org/CocoaPods-0.28</a>/
|
128
|
+
- <a
|
129
|
+
href="https://guides.cocoapods.org/reference.html">guides.cocoapods.org/reference.html</a>
|
130
|
+
- <a
|
131
|
+
href="https://github.com/CocoaPods/cocoapods-plugins">github.com/CocoaPods/cocoapods-plugins</a></p>
|
124
132
|
|
125
|
-
<h2 id="
|
133
|
+
<h2 id="label-Building">Building</h2>
|
126
134
|
|
127
|
-
<pre class="code ruby"><code class="ruby">$ rake build
|
128
|
-
</code></pre>
|
135
|
+
<pre class="code ruby"><code class="ruby">$ rake build</code></pre>
|
129
136
|
|
130
|
-
<h2 id="
|
137
|
+
<h2 id="label-Testing">Testing</h2>
|
131
138
|
|
132
|
-
<pre class="code ruby"><code class="ruby">$ rake specs
|
133
|
-
</code></pre>
|
139
|
+
<pre class="code ruby"><code class="ruby">$ rake specs</code></pre>
|
134
140
|
|
135
|
-
<h2 id="
|
141
|
+
<h2 id="label-License">License</h2>
|
136
142
|
|
137
143
|
<pre class="code ruby"><code class="ruby">Copyright 2018 Square Inc.
|
138
144
|
|
@@ -146,14 +152,13 @@ Unless required by applicable law or agreed to in writing, software
|
|
146
152
|
distributed under the License is distributed on an "AS IS" BASIS,
|
147
153
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
148
154
|
See the License for the specific language governing permissions and
|
149
|
-
limitations under the License
|
150
|
-
</code></pre>
|
155
|
+
limitations under the License.</code></pre>
|
151
156
|
</div></div>
|
152
157
|
|
153
158
|
<div id="footer">
|
154
|
-
Generated on
|
159
|
+
Generated on Fri Jun 1 09:24:33 2018 by
|
155
160
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
156
|
-
0.9.
|
161
|
+
0.9.12 (ruby-2.4.0).
|
157
162
|
</div>
|
158
163
|
|
159
164
|
</div>
|
data/doc/frames.html
CHANGED
data/doc/index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.12
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -57,82 +57,88 @@
|
|
57
57
|
<div class="clear"></div>
|
58
58
|
</div>
|
59
59
|
|
60
|
-
<div id="content"><div id='filecontents'
|
61
|
-
<
|
62
|
-
|
63
|
-
<a href="
|
60
|
+
<div id="content"><div id='filecontents'>
|
61
|
+
<h1 id="label-CocoapodsRepoSq">CocoapodsRepoSq</h1>
|
62
|
+
|
63
|
+
<p><a href="http://rubygems.org/gems/cocoapods-repo-sq"><img
|
64
|
+
src="https://badge.fury.io/rb/cocoapods-repo-sq.svg"></a> <a
|
65
|
+
href="https://travis-ci.org/square/cocoapods-repo-sq"><img
|
66
|
+
src="https://travis-ci.org/square/cocoapods-repo-sq.svg?branch=master"></a>
|
67
|
+
<a
|
68
|
+
href="https://github.com/square/cocoapods-repo-sq/blob/master/LICENSE"><img
|
69
|
+
src="https://img.shields.io/badge/license-Apache2-blue.svg"></a></p>
|
64
70
|
|
65
71
|
<p>Adds support for Square SDK Repositories to Cocoapods</p>
|
66
72
|
|
67
|
-
<h2 id="
|
73
|
+
<h2 id="label-Installation">Installation</h2>
|
68
74
|
|
69
|
-
<pre class="code ruby"><code class="ruby">$ gem install cocoapods-repo-sq
|
70
|
-
</code></pre>
|
75
|
+
<pre class="code ruby"><code class="ruby">$ gem install cocoapods-repo-sq</code></pre>
|
71
76
|
|
72
|
-
<h2 id="
|
77
|
+
<h2 id="label-Usage">Usage</h2>
|
73
78
|
|
74
|
-
<h3 id="
|
79
|
+
<h3 id="label-Integrate+in+your+project">Integrate in your project</h3>
|
75
80
|
|
76
|
-
<p>Add a Square SDK Repository to your local cocoapods registry.
|
77
|
-
<code>
|
78
|
-
|
79
|
-
</code></p>
|
81
|
+
<p>Add a Square SDK Repository to your local cocoapods registry.
|
82
|
+
<code>NAME</code> is a nickname you'll use to refer to this repository
|
83
|
+
later in your <code>Podfile</code> and other <code>pod repo-sq</code>
|
84
|
+
commands: <code>shell $ pod repo-sq add NAME USERNAME PASSWORD </code></p>
|
80
85
|
|
81
|
-
<p>Specify your Square SDK repository in your <code>Podfile</code>:
|
82
|
-
|
83
|
-
plugin ‘cocoapods-repo-sq’, :repository => ‘NAME’</p>
|
86
|
+
<p>Specify your Square SDK repository in your <code>Podfile</code>: “`ruby
|
87
|
+
plugin 'cocoapods-repo-sq', :repository => 'NAME'</p>
|
84
88
|
|
85
|
-
<p>target
|
86
|
-
pod ‘SquareSDK’
|
87
|
-
end
|
88
|
-
```</p>
|
89
|
+
<p>target 'MyTarget' do pod 'SquareSDK' end “`</p>
|
89
90
|
|
90
|
-
<h3 id="
|
91
|
+
<h3 id="label-Commands">Commands</h3>
|
91
92
|
|
92
93
|
<p>Add</p>
|
93
94
|
|
94
|
-
<pre class="code ruby"><code class="ruby">$ pod repo-sq add NAME USERNAME PASSWORD
|
95
|
-
</code></pre>
|
95
|
+
<pre class="code ruby"><code class="ruby">$ pod repo-sq add NAME USERNAME PASSWORD</code></pre>
|
96
96
|
|
97
97
|
<p>List</p>
|
98
98
|
|
99
|
-
<pre class="code ruby"><code class="ruby">$ pod repo-sq list
|
100
|
-
</code></pre>
|
99
|
+
<pre class="code ruby"><code class="ruby">$ pod repo-sq list</code></pre>
|
101
100
|
|
102
101
|
<p>Update</p>
|
103
102
|
|
104
|
-
<pre class="code ruby"><code class="ruby">$ pod repo-sq update NAME
|
105
|
-
</code></pre>
|
103
|
+
<pre class="code ruby"><code class="ruby">$ pod repo-sq update NAME</code></pre>
|
106
104
|
|
107
105
|
<p>Remove</p>
|
108
106
|
|
109
|
-
<pre class="code ruby"><code class="ruby">$ pod repo-sq remove NAME
|
110
|
-
</code></pre>
|
107
|
+
<pre class="code ruby"><code class="ruby">$ pod repo-sq remove NAME</code></pre>
|
111
108
|
|
112
|
-
<h2 id="
|
109
|
+
<h2 id="label-Multiple+Applications">Multiple Applications</h2>
|
113
110
|
|
114
|
-
<p>If you have multiple Square Applications you will have multiple SDK
|
111
|
+
<p>If you have multiple Square Applications you will have multiple SDK
|
112
|
+
Repositories. <code>cocoapods-repo-sq</code> supports this by allowing you
|
113
|
+
to add multiple repositories to your registry. Just remember to point your
|
114
|
+
<code>Podfile</code> to the right one using the <code>plugin
|
115
|
+
'cocoapods-repo-sq', :repository => 'NAME'</code>
|
116
|
+
statement.</p>
|
115
117
|
|
116
|
-
<h2 id="
|
118
|
+
<h2 id="label-Contributing">Contributing</h2>
|
117
119
|
|
118
|
-
<p>We are currently not accepting code contributions to this repository. If
|
120
|
+
<p>We are currently not accepting code contributions to this repository. If
|
121
|
+
you found a bug or have a feature request please <a
|
122
|
+
href="https://github.com/square/cocoapods-repo-sq/issues/new">Submit it
|
123
|
+
here</a>.</p>
|
119
124
|
|
120
|
-
<p>If you are curious about Cocoapods and its plugin system take a look at the
|
121
|
-
-
|
122
|
-
|
123
|
-
-
|
125
|
+
<p>If you are curious about Cocoapods and its plugin system take a look at the
|
126
|
+
following guides: - <a
|
127
|
+
href="https://blog.cocoapods.org/CocoaPods-0.28">blog.cocoapods.org/CocoaPods-0.28</a>/
|
128
|
+
- <a
|
129
|
+
href="https://guides.cocoapods.org/reference.html">guides.cocoapods.org/reference.html</a>
|
130
|
+
- <a
|
131
|
+
href="https://github.com/CocoaPods/cocoapods-plugins">github.com/CocoaPods/cocoapods-plugins</a></p>
|
124
132
|
|
125
|
-
<h2 id="
|
133
|
+
<h2 id="label-Building">Building</h2>
|
126
134
|
|
127
|
-
<pre class="code ruby"><code class="ruby">$ rake build
|
128
|
-
</code></pre>
|
135
|
+
<pre class="code ruby"><code class="ruby">$ rake build</code></pre>
|
129
136
|
|
130
|
-
<h2 id="
|
137
|
+
<h2 id="label-Testing">Testing</h2>
|
131
138
|
|
132
|
-
<pre class="code ruby"><code class="ruby">$ rake specs
|
133
|
-
</code></pre>
|
139
|
+
<pre class="code ruby"><code class="ruby">$ rake specs</code></pre>
|
134
140
|
|
135
|
-
<h2 id="
|
141
|
+
<h2 id="label-License">License</h2>
|
136
142
|
|
137
143
|
<pre class="code ruby"><code class="ruby">Copyright 2018 Square Inc.
|
138
144
|
|
@@ -146,14 +152,13 @@ Unless required by applicable law or agreed to in writing, software
|
|
146
152
|
distributed under the License is distributed on an "AS IS" BASIS,
|
147
153
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
148
154
|
See the License for the specific language governing permissions and
|
149
|
-
limitations under the License
|
150
|
-
</code></pre>
|
155
|
+
limitations under the License.</code></pre>
|
151
156
|
</div></div>
|
152
157
|
|
153
158
|
<div id="footer">
|
154
|
-
Generated on
|
159
|
+
Generated on Fri Jun 1 09:24:33 2018 by
|
155
160
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
156
|
-
0.9.
|
161
|
+
0.9.12 (ruby-2.4.0).
|
157
162
|
</div>
|
158
163
|
|
159
164
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Top Level Namespace
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.12
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -100,9 +100,9 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on
|
103
|
+
Generated on Fri Jun 1 09:24:33 2018 by
|
104
104
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
|
-
0.9.
|
105
|
+
0.9.12 (ruby-2.4.0).
|
106
106
|
</div>
|
107
107
|
|
108
108
|
</div>
|
data/lib/cocoapods_repo_sq.rb
CHANGED
@@ -93,8 +93,9 @@ module CocoapodsRepoSq
|
|
93
93
|
|
94
94
|
# perform cleanup
|
95
95
|
specs_path = File.join(@path, 'Specs')
|
96
|
-
|
97
|
-
FileUtils.
|
96
|
+
new_specs_file = File.join(new_specs_path, "file.zip")
|
97
|
+
FileUtils.rm(new_specs_file) if File.exists?(new_specs_file)
|
98
|
+
FileUtils.rm_rf(specs_path) if Dir.exists?(specs_path)
|
98
99
|
FileUtils.mv(new_specs_path, specs_path)
|
99
100
|
nil
|
100
101
|
end
|
@@ -102,7 +103,7 @@ module CocoapodsRepoSq
|
|
102
103
|
private
|
103
104
|
def get_temporary_path
|
104
105
|
temp_path = File.join(@path, 'Specs.new')
|
105
|
-
FileUtils.rm_rf(temp_path)
|
106
|
+
FileUtils.rm_rf(temp_path) if Dir.exists?(temp_path)
|
106
107
|
temp_path
|
107
108
|
end
|
108
109
|
end
|
@@ -46,9 +46,16 @@ module CocoapodsRepoSq
|
|
46
46
|
specs_path = File.join(@path, 'Specs')
|
47
47
|
CocoapodsRepoSq::Downloader.expects(:new).with(new_specs_path, "specs.zip", :repository => @repository).returns(downloader)
|
48
48
|
|
49
|
+
Dir.expects(:exists?).with(new_specs_path).returns(true)
|
49
50
|
FileUtils.expects(:rm_rf).with(new_specs_path)
|
50
|
-
|
51
|
+
|
52
|
+
new_specs_file = File.join(new_specs_path, "file.zip")
|
53
|
+
File.expects(:exists?).with(new_specs_file).returns(true)
|
54
|
+
FileUtils.expects(:rm).with(new_specs_file)
|
55
|
+
|
56
|
+
Dir.expects(:exists?).with(specs_path).returns(true)
|
51
57
|
FileUtils.expects(:rm_rf).with(specs_path)
|
58
|
+
|
52
59
|
FileUtils.expects(:mv).with(new_specs_path, specs_path)
|
53
60
|
|
54
61
|
@repository.update_specs
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-repo-sq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Square, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.7.
|
167
|
+
rubygems_version: 2.7.7
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Support for Square SDK Repositories on Cocoapods. For more information see
|