cocoapods-cafswitcher 0.0.6 → 0.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab22ddae4087c4c1bdee9b9db70decbb129d0a5d23d36c2ed42be628457f3bb0
4
- data.tar.gz: ef0da8784ff372f864a6aff89162e11b95b82ce3c85d049b1085b9a71fa0313b
3
+ metadata.gz: '029cde59eb4ac6185e6e5bded575dd366b62acc50467700e78097ba29e713159'
4
+ data.tar.gz: c10b07deb75fbe4d456a4cd42f738657673e1aa78425996c2156ad15b2a19a80
5
5
  SHA512:
6
- metadata.gz: 97801e574bdfe43f3cbf4a1d30e3a825985eab3d408f805df8f2908cfa2399893702942eed9d466c35888cc087858382157226060b92a82b435eabddbae48eb4
7
- data.tar.gz: 3ddbcc7e595317b9651b5eb3a3bce0875e14c925f880f89a7e72dcf3463140635b5d6699b37470a96ccd6030ff8473683a571533a571bef42ec06633f36fe103
6
+ metadata.gz: 7adaed5194a9bfba2b40c17ee2a36320cc2acdcef024696cac4687a40f2b03973dd438486287dd68511c5e8006f5e35a946b1e65c79743b8c0fd6fd6d551dbc3
7
+ data.tar.gz: 77543c965b8e281789de907b393f2edcb74845021f0912f0723936d14d083457b9cd7d35cf427069cd301216e8e2da7146cd4ccb2b83c82d37b2fa0e7bc9dd8c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-cafswitcher (0.0.5)
4
+ cocoapods-cafswitcher (0.0.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module CocoapodsCafswitcher
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -166,7 +166,11 @@ module Pod
166
166
  isGitPath = options.has_key?(:git)
167
167
  # pod_name = Specification.root_name(name)
168
168
  if isGitPath
169
- Pod::Podfile.needUpdatePodList << name[0,name=~/[\/]/]
169
+ index = name =~ /[\/]/
170
+ if not index
171
+ index = name.length
172
+ end
173
+ Pod::Podfile.needUpdatePodList << name[0,index]
170
174
  end
171
175
  requirements.pop if options.empty?
172
176
  end
@@ -178,7 +182,11 @@ module Pod
178
182
  isPath = options.has_key?(:path)
179
183
  # pod_name = Specification.root_name(name)
180
184
  if isPath
181
- Pod::Podfile.needUpdatePodList << name[0,name=~/[\/]/]
185
+ index = name =~ /[\/]/
186
+ if not index
187
+ index = name.length
188
+ end
189
+ Pod::Podfile.needUpdatePodList << name[0,index]
182
190
  end
183
191
  requirements.pop if options.empty?
184
192
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-cafswitcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - handa