Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
menttofly committed Apr 30, 2021
1 parent fbeea3c commit 43bcf7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/cocoapods-monorepo/gem_version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module CocoapodsMonorepo
VERSION = "1.0.0"
VERSION = "1.0.1"
end
4 changes: 2 additions & 2 deletions lib/cocoapods-monorepo/podspec_local_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions lib/cocoapods_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43bcf7b

Please sign in to comment.