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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9df88e5bdfa2915c916eb80be23f435218be52f7dc1657129595e2cf76de8b49
4
- data.tar.gz: 52cd9f825f9234af9c9a6f3a3ba70f5505414e25957acd98f3fdc23dba5d1ef4
3
+ metadata.gz: 0afe0ebdd50eeb2dc48dfda640bf47ccbc3c99339bf156e00895ab9738e5a857
4
+ data.tar.gz: 4e7b11dea5daa8b2a39d9a2645d6285e623bbfbda1ba3ff073d091819538f3e2
5
5
  SHA512:
6
- metadata.gz: df82d3f85c5420d63e8df91b422bfe6adac438b9c77c6341dc4b72ecb88be009508d2183125cb22eb5cbc45efb6d65f72989ec7c703cec43cabfd7acd1c0b1e1
7
- data.tar.gz: 6445b45c51d89e77aae95c9f818e99964e51b92358d6340abd767f95a539778327c203493d036d08f4f81f785573700cd9cd5a30de9c9eeab3bf31f54d3b6bef
6
+ metadata.gz: c6316acc9212ee09443e4d54e16c118aba742a7567bc7bdd0b4c27ff3d094f35c2f8426a6193e6e659772b9162d139b8384c025cb05ce82a737fe70ec37110b6
7
+ data.tar.gz: 5f8cd3ee09dda7b2c91574251caf8ccffc4d32fbea47f03df76f3684972695301bf115c9098e76e02385b2b5c6e4cf008763f45a96fd65c31b302813b6f6f133
@@ -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| !x.include?("/Pods/") && !x.include?(PodBuilder::basepath("Sources")) && !x.include?(basepath) }
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| !x.include?("/Pods/") && !x.include?(PodBuilder::basepath("Sources")) && !x.include?(basepath) && !x.include?(".xcodeproj/") }
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
 
@@ -1,4 +1,4 @@
1
1
  module PodBuilder
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
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.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Camin