cocoapods-modularization 0.0.8 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28c0053bcf866eb1e608b3567e2665b12679b1d8349805658b77883fdc6da9f5
4
- data.tar.gz: e1a97d843433bfc31bedace340fb42d29380cd0141ffaeaa122d7c87c6e26f7c
3
+ metadata.gz: 344109e8e13c8d2f6962ca478203b18023bb5503cdda97b025f320c209049a5f
4
+ data.tar.gz: 8561cdbbca621a95390d69123220096f789dd7a009d454e9a4fbfad349bcbd2f
5
5
  SHA512:
6
- metadata.gz: 5c120ee96da859502938d0c8bd0402c64234036085bc855eed4b705776120458f8e1df0315b8d2d6e26c4c76558472f18e6243ecd9f9c4d868b3e7918b95b7cc
7
- data.tar.gz: 4a1d95d8ea73a0e87bf5ad34e8c599bdd9501116bfbb73da2a17747ba451c40900a34fea7db12e1d6277653075ace79038d9d6fc33a81a995bfc3394461a3002
6
+ metadata.gz: 8ef2cdfe0d0671c16c36fc10fb673a548bdc1153f23097d46d5141eee27220915faddffcc6589d8fb37fb6aed8dfc07de3883d4be4b827604cb1ebe7620237b8
7
+ data.tar.gz: ef0d82c226a4c4ca030f9feb0fc131e7e0928c587f5a88aead27e7b2491fe8f31c067487c5d1b993d3d01a236ea595f6bf606f28d24f43c626acd2e62fea6a91
@@ -1,4 +1,5 @@
1
1
  require 'cocoapods-modularization/meta'
2
+ require 'fileutils'
2
3
 
3
4
  module Pod
4
5
  class Command
@@ -51,6 +52,10 @@ module Pod
51
52
 
52
53
  def run
53
54
  # encode podfile
55
+ if @enable_branch
56
+ FileUtils.rm_rf('Podfile.lock')
57
+ end
58
+
54
59
  unless @original
55
60
  begin
56
61
  Meta::MetaReference.encode_podfile(@enable_branch)
@@ -1,3 +1,3 @@
1
1
  module CocoapodsModularization
2
- VERSION = "0.0.8"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -91,6 +91,7 @@ module Pod
91
91
 
92
92
  def hash_from(e, data, enable_branch)
93
93
  dependency_data = data[e]
94
+ raise "dependency_data is empty for element: #{e}" unless dependency_data.kind_of?(Hash)
94
95
 
95
96
  git_branch_hash = try_git_branch(e, dependency_data) if enable_branch
96
97
  return git_branch_hash if git_branch_hash.kind_of?(Hash)
@@ -121,7 +122,7 @@ module Pod
121
122
  binary = dependency_data[MetaConstants.binary_key]
122
123
  source_url = dependency_data[MetaConstants.source_key]
123
124
 
124
- if binary && source_url == Private::PrivateCache.source_repo_url
125
+ if binary && (source_url == Private::PrivateCache.source_repo_url || source_url == nil)
125
126
  source_url = Private::PrivateCache.binary_repo_url
126
127
  else
127
128
  source_url ||= Private::PrivateCache.source_repo_url
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-modularization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lazy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-15 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler