pod-builder 0.8.1 → 0.8.2
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 +4 -4
- data/lib/pod_builder/core.rb +8 -2
- data/lib/pod_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0afe0ebdd50eeb2dc48dfda640bf47ccbc3c99339bf156e00895ab9738e5a857
|
|
4
|
+
data.tar.gz: 4e7b11dea5daa8b2a39d9a2645d6285e623bbfbda1ba3ff073d091819538f3e2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c6316acc9212ee09443e4d54e16c118aba742a7567bc7bdd0b4c27ff3d094f35c2f8426a6193e6e659772b9162d139b8384c025cb05ce82a737fe70ec37110b6
|
|
7
|
+
data.tar.gz: 5f8cd3ee09dda7b2c91574251caf8ccffc4d32fbea47f03df76f3684972695301bf115c9098e76e02385b2b5c6e4cf008763f45a96fd65c31b302813b6f6f133
|
data/lib/pod_builder/core.rb
CHANGED
|
@@ -48,7 +48,10 @@ module PodBuilder
|
|
|
48
48
|
def self.find_xcodeproj
|
|
49
49
|
project_name = File.basename(find_xcodeworkspace, ".*")
|
|
50
50
|
|
|
51
|
-
xcodeprojects = Dir.glob("#{home}/**/#{project_name}.xcodeproj").select { |x|
|
|
51
|
+
xcodeprojects = Dir.glob("#{home}/**/#{project_name}.xcodeproj").select { |x|
|
|
52
|
+
folder_in_home = x.gsub(home, "")
|
|
53
|
+
!folder_in_home.include?("/Pods/") && !x.include?(PodBuilder::basepath("Sources")) && !x.include?(basepath)
|
|
54
|
+
}
|
|
52
55
|
raise "xcodeproj not found!".red if xcodeprojects.count == 0
|
|
53
56
|
raise "Found multiple xcodeproj:\n#{xcodeprojects.join("\n")}".red if xcodeprojects.count > 1
|
|
54
57
|
|
|
@@ -56,7 +59,10 @@ module PodBuilder
|
|
|
56
59
|
end
|
|
57
60
|
|
|
58
61
|
def self.find_xcodeworkspace
|
|
59
|
-
xcworkspaces = Dir.glob("#{home}/**/#{Configuration.project_name}*.xcworkspace").select { |x|
|
|
62
|
+
xcworkspaces = Dir.glob("#{home}/**/#{Configuration.project_name}*.xcworkspace").select { |x|
|
|
63
|
+
folder_in_home = x.gsub(home, "")
|
|
64
|
+
!folder_in_home.include?("/Pods/") && !x.include?(PodBuilder::basepath("Sources")) && !x.include?(basepath) && !x.include?(".xcodeproj/")
|
|
65
|
+
}
|
|
60
66
|
raise "xcworkspace not found!".red if xcworkspaces.count == 0
|
|
61
67
|
raise "Found multiple xcworkspaces:\n#{xcworkspaces.join("\n")}".red if xcworkspaces.count > 1
|
|
62
68
|
|
data/lib/pod_builder/version.rb
CHANGED