cocoapods-modularization 0.0.6 → 0.0.7

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: de8f24caef31650588dd309bd663416bb5322030af7c3b642f6c44db43d49d21
4
- data.tar.gz: e955afc7b9efd3b975ad53cf8be764de90c5e881e0557ef458fa4aa43375373d
3
+ metadata.gz: 4510890b5b9707a51dd5291e4a565674a111844032e5a6b7fdfe5abda75aaaa5
4
+ data.tar.gz: ec80954f70e23ff54844067ae1eb00b1ce5d55d789c0ac04fa19fe70e25b8ba7
5
5
  SHA512:
6
- metadata.gz: 54f16cd703bc29bab7a39b4427106e1eab975444898d624309b0aac426b1700b7d7b48db9671db39dbdfd63f4af564120deab327c8083519520ee33c5b82c387
7
- data.tar.gz: 9fe85d77afaf64152ce9b4ce33e2790f50f4f8c7c6ee2d09f38804c4ef73d36af26c6c800e505290b0dd2b2a3a16decc8189514678b2e1a4262aaf194db34111
6
+ metadata.gz: 489abd5d11b1e4768519dad073826def567196805b03b2804eebab7bbf6c65ffb942fbc434f9dcadf68881159e3a5721141ef14c5091d57eea82bf7fa3d68861
7
+ data.tar.gz: b09e113d23769e468173f466fc155fe9eca9a3f62473cf691c13bdafae66e6eb312e2d8b13992beed3759b7866574979c9b3d0121c2a8189286c760cb99b2fc2
@@ -1,3 +1,3 @@
1
1
  module CocoapodsModularization
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -120,7 +120,7 @@ module Pod
120
120
  def try_source(e, dependency_data)
121
121
  binary = dependency_data[MetaConstants.binary_key]
122
122
  source_url = dependency_data[MetaConstants.source_key]
123
- puts "e: #{e}, dependency_data: #{dependency_data}"
123
+
124
124
  if binary && source_url == Private::PrivateCache.source_repo_url
125
125
  source_url = Private::PrivateCache.binary_repo_url
126
126
  else
@@ -1 +1,10 @@
1
- require 'cocoapods-modularization/command'
1
+ require 'cocoapods-core'
2
+ require_relative 'hooks.rb'
3
+
4
+ module Pod
5
+ module CocoapodsModularization
6
+ Pod::HooksManager.register('cocoapods-modularization', :post_install) do |context|
7
+ Hooks.new.hook_post_install(context)
8
+ end
9
+ end
10
+ end
data/lib/hooks.rb ADDED
@@ -0,0 +1,16 @@
1
+ require 'cocoapods'
2
+ require 'cocoapods-modularization/command'
3
+
4
+ module Pod
5
+ module CocoapodsModularization
6
+ class Hooks
7
+ require 'xcodeproj'
8
+
9
+ def hook_post_install(context)
10
+ Dir.glob("#{Meta::MetaConstants.post_install_hooks_path}/**/*.rb").each do |script|
11
+ system("/usr/bin/ruby #{script}")
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - lazy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-31 00:00:00.000000000 Z
11
+ date: 2022-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,6 +86,7 @@ files:
86
86
  - lib/cocoapods-modularization/private.rb
87
87
  - lib/cocoapods-modularization/private/private_cache.rb
88
88
  - lib/cocoapods_plugin.rb
89
+ - lib/hooks.rb
89
90
  homepage: https://github.com/EXAMPLE/cocoapods-modularization
90
91
  licenses:
91
92
  - MIT