pod-builder 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pod_builder/command/switch.rb +22 -5
- data/lib/pod_builder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf1ba531fbdf9edef61d09e7c1c0fe2c7822ba0823a64203895cc850d43f0288
|
4
|
+
data.tar.gz: 6d0101ec9a99a23b660cce491dffea35a66b9eb26820bb123bf704af5a67d196
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94d82628002ce8f8debb7aadfd6f8ad8a928ee93bfe201a0ccd40fc21a063c912be4753890f5c13d9de765eed259634125caa425e9b804d894bac463bee2eb6e
|
7
|
+
data.tar.gz: af202cee868e1e52b30b2b4549a56f1dbcb568af028f2dd1ea026523168a50e0c11f72fb0d5a7b5daec524d8f6e91ca972562b9eb962bac63a329b1106c02e5b
|
@@ -223,11 +223,28 @@ module PodBuilder
|
|
223
223
|
if Pathname.new(path).relative?
|
224
224
|
path = PodBuilder::basepath(path)
|
225
225
|
end
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
if
|
230
|
-
|
226
|
+
podspec_paths = Dir.glob(File.expand_path("#{path}/**/#{podname}*.podspec*"))
|
227
|
+
podspec_paths.select! { |t| !t.include?("/Local Podspecs/") }
|
228
|
+
podspec_paths.select! { |t| Dir.glob(File.join(File.dirname(t), "*")).count > 1 } # exclude podspec folder (which has one file per folder)
|
229
|
+
if podspec_paths.count > 1
|
230
|
+
if match_name_path = podspec_paths.find{ |t| File.basename(t, ".*") == podname }
|
231
|
+
podspec_path = Pathname.new(match_name_path).dirname.to_s
|
232
|
+
else
|
233
|
+
# Try parsing podspec
|
234
|
+
podspec_paths.each do |path|
|
235
|
+
content = File.read(path).gsub("\"", "'").gsub(" ", "")
|
236
|
+
if content.include?("name='#{podname}'")
|
237
|
+
podspec_path = path
|
238
|
+
end
|
239
|
+
unless podspec_path.nil?
|
240
|
+
break
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
break
|
246
|
+
elsif podspec_paths.count == 1
|
247
|
+
podspec_path = Pathname.new(podspec_paths.first).dirname.to_s
|
231
248
|
break
|
232
249
|
end
|
233
250
|
end
|
data/lib/pod_builder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pod-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Camin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|