pod-builder 0.9.8 → 0.9.9

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: dd39cd37072f2d15ef137216d3f48e0d7cee2a5cbcab015b2bfd8797f9012b58
4
- data.tar.gz: 4906e5fd1f5bc2fa6f3baee652ef818c58c3b799a692516aa7850f7c5a2964a9
3
+ metadata.gz: a5d7b7bb753baab42ba1ebf90cff6c4f46160a0e0161336a0d9c035ce2a0d7b2
4
+ data.tar.gz: 431039e01adb554df23b8832be48f3908994b39945d5242881e780824f3be3a9
5
5
  SHA512:
6
- metadata.gz: c14818440ca78ab2c5014e9382627666b79b7af44cdfa6a01469d0adbd81256c215b046983bbf881499533002aff5d7aa4c566fad952dfaa9197fd7b90c09192
7
- data.tar.gz: dc8e6a192b7435afae5832ccdd1d16e3dc5029898d5e0fe96820d06b1c76a0e46baf7509e4699c0e84c2be1b1dc96274f77eb0aa35dd64de056c6fa5f230b938
6
+ metadata.gz: 438e67d0ed933e30f4556bbf9ab8c60a4a6af038a973bfdc735cc3fb6a45ee1805a0ad8d3dcaa0794c0e28cc2b165ca1aa55025abd90b9e3c2e5112f0e402d46
7
+ data.tar.gz: 63aec152527fc2c7592b136350e84c950350449fe307192593169a03d3990c102f5198948c411d5d2f207c5520cf1fa3c971ecee2ae569b84678adc9755b22b9
@@ -23,10 +23,17 @@ module PodBuilder
23
23
  PodBuilder::safe_rm_rf(Configuration.build_path)
24
24
  FileUtils.mkdir_p(Configuration.build_path)
25
25
 
26
+ # Copy the repo to extract license (and potentially other files in the future)
26
27
  podfile_items.select { |x| x.is_development_pod }.each do |podfile_item|
27
28
  destination_path = "#{Configuration.build_path}/Pods/#{podfile_item.module_name}"
28
29
  FileUtils.mkdir_p(destination_path)
29
- FileUtils.cp_r("#{podfile_item.path}/.", destination_path)
30
+
31
+ if Pathname.new(podfile_item.path).absolute?
32
+ FileUtils.cp_r("#{podfile_item.path}/.", destination_path)
33
+ else
34
+ FileUtils.cp_r("#{PodBuilder::basepath(podfile_item.path)}/.", destination_path)
35
+ end
36
+
30
37
  license_files = Dir.glob("#{destination_path}/**/*acknowledgements.plist").each { |f| File.delete(f) }
31
38
  end
32
39
 
@@ -111,9 +111,7 @@ module PodBuilder
111
111
  @repo = checkout_options[opts_key][:git]
112
112
  @tag = checkout_options[opts_key][:tag]
113
113
  @commit = checkout_options[opts_key][:commit]
114
- if checkout_path = checkout_options[opts_key][:path]
115
- @path = Pathname.new(checkout_path).realpath.to_s
116
- end
114
+ @path = checkout_options[opts_key][:path]
117
115
  @branch = checkout_options[opts_key][:branch]
118
116
  @is_external = true
119
117
  else
@@ -1,4 +1,4 @@
1
1
  module PodBuilder
2
- VERSION = "0.9.8"
2
+ VERSION = "0.9.9"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pod-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Camin