From 43bcf7b1d2bef20774c227306861c51d95bc4f6e Mon Sep 17 00:00:00 2001 From: menttofly <1028365614@qq.com> Date: Fri, 30 Apr 2021 22:02:06 +0800 Subject: [PATCH] update comments --- lib/cocoapods-monorepo/gem_version.rb | 2 +- lib/cocoapods-monorepo/podspec_local_cache.rb | 4 ++-- lib/cocoapods_plugin.rb | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cocoapods-monorepo/gem_version.rb b/lib/cocoapods-monorepo/gem_version.rb index aaaeafd..435b882 100644 --- a/lib/cocoapods-monorepo/gem_version.rb +++ b/lib/cocoapods-monorepo/gem_version.rb @@ -1,3 +1,3 @@ module CocoapodsMonorepo - VERSION = "1.0.0" + VERSION = "1.0.1" end diff --git a/lib/cocoapods-monorepo/podspec_local_cache.rb b/lib/cocoapods-monorepo/podspec_local_cache.rb index ce9c9d5..a0d7b05 100644 --- a/lib/cocoapods-monorepo/podspec_local_cache.rb +++ b/lib/cocoapods-monorepo/podspec_local_cache.rb @@ -15,10 +15,10 @@ def initialize(local_podspecs) # Create instance of `PodspecLocalCache` from some directory. def self.from_local_path(directory_path) unless File.directory?(directory_path) - raise Pod::Informative, "[cocoapods-monorepo]: `#{directory_path}` is not a directory" + raise Pod::Informative, "[cocoapods-monorepo]: `#{directory_path}` is not a directory!" end podspecs = {} - podspec_files = Dir.glob(File.join(directory_path, "*", "*.podspec")) + podspec_files = Dir.glob(File.join(directory_path, "**", "*.podspec")) podspec_files.each do |podspec_file| specification = Pod::Specification.from_file(podspec_file) validate_podspec(specification) diff --git a/lib/cocoapods_plugin.rb b/lib/cocoapods_plugin.rb index 3528d37..86a7cbf 100644 --- a/lib/cocoapods_plugin.rb +++ b/lib/cocoapods_plugin.rb @@ -3,11 +3,11 @@ module CocoapodsMonorepo Pod::HooksManager.register("cocoapods-monorepo", :pre_install) do |context, options| - Pod::UI.puts "[cocoapods-monorepo]: start injecting sub-repo into monorepo 🚀...".green + Pod::UI.puts "[cocoapods-monorepo]: Integrating Pods with monorepo..".green require 'cocoapods-monorepo/resolver' unless options.key?(:path) - raise Pod::DSLError.new("[cocoapods-monorepo]: require pass `:path` option by using `:path => directory` in Podfile", + raise Pod::DSLError.new("[cocoapods-monorepo]: Require pass `:path` option by using `:path => dir` in Podfile", context.podfile.defined_in_file.to_s, Exception.new("")) end