pod-builder 3.4.0 → 3.5.0

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: 24ce580a9fa3e410dab4cfcb639ba4e17f7b8b4b18a1c530667a5e271f05444f
4
- data.tar.gz: bcc48ff2244170439b12f30c8853e05fb7225717cab020e6c049357c418f52ba
3
+ metadata.gz: cf1ba531fbdf9edef61d09e7c1c0fe2c7822ba0823a64203895cc850d43f0288
4
+ data.tar.gz: 6d0101ec9a99a23b660cce491dffea35a66b9eb26820bb123bf704af5a67d196
5
5
  SHA512:
6
- metadata.gz: bd161a170715f3f4bb1639b5ac33d93c2e36d1bbdffa6389c09ab639e642240b0b829b755925d7ff57178fa6b49cdc2d45aa8c57e0cfbde5f228458b332e57b4
7
- data.tar.gz: de14f5a02c0d0e712c6a561954a724394febd9abd0b9bf19d29b409bf79f4b1e7d3e616998c10a7dced86f7237c9d9c690280932757f8d9189ee89d39c752857
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
- podspec = Dir.glob(File.expand_path("#{path}/**/#{podname}*.podspec*"))
227
- podspec.select! { |x| !x.include?("/Local Podspecs/") }
228
- podspec.select! { |x| Dir.glob(File.join(File.dirname(x), "*")).count > 1 } # exclude podspec folder (which has one file per folder)
229
- if podspec.count > 0
230
- podspec_path = Pathname.new(podspec.first).dirname.to_s
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
@@ -1,4 +1,4 @@
1
1
  module PodBuilder
2
- VERSION = "3.4.0"
2
+ VERSION = "3.5.0"
3
3
  end
4
4
 
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.0
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-06-23 00:00:00.000000000 Z
11
+ date: 2021-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler