cocoapods-repo-sq 0.0.1.9 → 0.0.2.14

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.
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; 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'><h1 id="cocoapodsreposq">CocoapodsRepoSq</h1>
61
- <p><a href="http://rubygems.org/gems/cocoapods-repo-sq"><img src="https://badge.fury.io/rb/cocoapods-repo-sq.svg" alt="Gem Version" /></a>
62
- <a href="https://travis-ci.org/square/cocoapods-repo-sq"><img src="https://travis-ci.org/square/cocoapods-repo-sq.svg?branch=master" alt="Build Status" /></a>
63
- <a href="https://github.com/square/cocoapods-repo-sq/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-Apache2-blue.svg" alt="Apache 2 licensed" /></a></p>
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="installation">Installation</h2>
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="usage">Usage</h2>
77
+ <h2 id="label-Usage">Usage</h2>
73
78
 
74
- <h3 id="integrate-in-your-project">Integrate in your project</h3>
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. <code>NAME</code> is a nickname you’ll use to refer to this repository later in your <code>Podfile</code> and other <code>pod repo-sq</code> commands:
77
- <code>shell
78
- $ pod repo-sq add NAME USERNAME PASSWORD
79
- </code></p>
81
+ <p>Add a Square SDK Repository to your local cocoapods registry.
82
+ <code>NAME</code> is a nickname you&#39;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
- ```ruby
83
- plugin ‘cocoapods-repo-sq’, :repository =&gt; ‘NAME’</p>
86
+ <p>Specify your Square SDK repository in your <code>Podfile</code>: “`ruby
87
+ plugin &#39;cocoapods-repo-sq&#39;, :repository =&gt; &#39;NAME&#39;</p>
84
88
 
85
- <p>target MyTarget do
86
- pod ‘SquareSDK’
87
- end
88
- ```</p>
89
+ <p>target &#39;MyTarget&#39; do pod &#39;SquareSDK&#39; end “`</p>
89
90
 
90
- <h3 id="commands">Commands</h3>
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="multiple-applications">Multiple Applications</h2>
109
+ <h2 id="label-Multiple+Applications">Multiple Applications</h2>
113
110
 
114
- <p>If you have multiple Square Applications you will have multiple SDK Repositories. <code>cocoapods-repo-sq</code> supports this by allowing you to add multiple repositories to your registry. Just remember to point your <code>Podfile</code> to the right one using the <code>plugin 'cocoapods-repo-sq', :repository =&gt; 'NAME'</code> statement.</p>
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
+ &#39;cocoapods-repo-sq&#39;, :repository =&gt; &#39;NAME&#39;</code>
116
+ statement.</p>
115
117
 
116
- <h2 id="contributing">Contributing</h2>
118
+ <h2 id="label-Contributing">Contributing</h2>
117
119
 
118
- <p>We are currently not accepting code contributions to this repository. If you found a bug or have a feature request please <a href="https://github.com/square/cocoapods-repo-sq/issues/new">Submit it here</a>.</p>
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 following guides:
121
- - https://blog.cocoapods.org/CocoaPods-0.28/
122
- - https://guides.cocoapods.org/reference.html
123
- - https://github.com/CocoaPods/cocoapods-plugins</p>
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="building">Building</h2>
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="testing">Testing</h2>
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="license">License</h2>
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 &quot;AS IS&quot; 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 Tue May 8 15:22:22 2018 by
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.9 (ruby-2.4.2).
161
+ 0.9.12 (ruby-2.4.0).
157
162
  </div>
158
163
 
159
164
  </div>
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <title>Documentation by YARD 0.9.9</title>
5
+ <title>Documentation by YARD 0.9.12</title>
6
6
  </head>
7
7
  <script type="text/javascript" charset="utf-8">
8
8
  var match = unescape(window.location.hash).match(/^#!(.+)/);
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; 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'><h1 id="cocoapodsreposq">CocoapodsRepoSq</h1>
61
- <p><a href="http://rubygems.org/gems/cocoapods-repo-sq"><img src="https://badge.fury.io/rb/cocoapods-repo-sq.svg" alt="Gem Version" /></a>
62
- <a href="https://travis-ci.org/square/cocoapods-repo-sq"><img src="https://travis-ci.org/square/cocoapods-repo-sq.svg?branch=master" alt="Build Status" /></a>
63
- <a href="https://github.com/square/cocoapods-repo-sq/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-Apache2-blue.svg" alt="Apache 2 licensed" /></a></p>
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="installation">Installation</h2>
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="usage">Usage</h2>
77
+ <h2 id="label-Usage">Usage</h2>
73
78
 
74
- <h3 id="integrate-in-your-project">Integrate in your project</h3>
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. <code>NAME</code> is a nickname you’ll use to refer to this repository later in your <code>Podfile</code> and other <code>pod repo-sq</code> commands:
77
- <code>shell
78
- $ pod repo-sq add NAME USERNAME PASSWORD
79
- </code></p>
81
+ <p>Add a Square SDK Repository to your local cocoapods registry.
82
+ <code>NAME</code> is a nickname you&#39;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
- ```ruby
83
- plugin ‘cocoapods-repo-sq’, :repository =&gt; ‘NAME’</p>
86
+ <p>Specify your Square SDK repository in your <code>Podfile</code>: “`ruby
87
+ plugin &#39;cocoapods-repo-sq&#39;, :repository =&gt; &#39;NAME&#39;</p>
84
88
 
85
- <p>target MyTarget do
86
- pod ‘SquareSDK’
87
- end
88
- ```</p>
89
+ <p>target &#39;MyTarget&#39; do pod &#39;SquareSDK&#39; end “`</p>
89
90
 
90
- <h3 id="commands">Commands</h3>
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="multiple-applications">Multiple Applications</h2>
109
+ <h2 id="label-Multiple+Applications">Multiple Applications</h2>
113
110
 
114
- <p>If you have multiple Square Applications you will have multiple SDK Repositories. <code>cocoapods-repo-sq</code> supports this by allowing you to add multiple repositories to your registry. Just remember to point your <code>Podfile</code> to the right one using the <code>plugin 'cocoapods-repo-sq', :repository =&gt; 'NAME'</code> statement.</p>
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
+ &#39;cocoapods-repo-sq&#39;, :repository =&gt; &#39;NAME&#39;</code>
116
+ statement.</p>
115
117
 
116
- <h2 id="contributing">Contributing</h2>
118
+ <h2 id="label-Contributing">Contributing</h2>
117
119
 
118
- <p>We are currently not accepting code contributions to this repository. If you found a bug or have a feature request please <a href="https://github.com/square/cocoapods-repo-sq/issues/new">Submit it here</a>.</p>
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 following guides:
121
- - https://blog.cocoapods.org/CocoaPods-0.28/
122
- - https://guides.cocoapods.org/reference.html
123
- - https://github.com/CocoaPods/cocoapods-plugins</p>
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="building">Building</h2>
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="testing">Testing</h2>
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="license">License</h2>
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 &quot;AS IS&quot; 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 Tue May 8 15:22:22 2018 by
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.9 (ruby-2.4.2).
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
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; 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 Tue May 8 15:22:22 2018 by
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.9 (ruby-2.4.2).
105
+ 0.9.12 (ruby-2.4.0).
106
106
  </div>
107
107
 
108
108
  </div>
@@ -22,5 +22,5 @@
22
22
  # Main namespace for cocoapods-repo-sq plugin
23
23
  module CocoapodsRepoSq
24
24
  # Plugin version
25
- VERSION = '0.0.1'.freeze
25
+ VERSION = '0.0.2'.freeze
26
26
  end
@@ -93,8 +93,9 @@ module CocoapodsRepoSq
93
93
 
94
94
  # perform cleanup
95
95
  specs_path = File.join(@path, 'Specs')
96
- FileUtils.rm(File.join(new_specs_path, "file.zip"))
97
- FileUtils.rm_rf(specs_path)
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
- FileUtils.expects(:rm).with(File.join(new_specs_path, "file.zip"))
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.1.9
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-05-08 00:00:00.000000000 Z
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.6
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