Sha256: b347358576e21c2c70abfbe4bf57f41cbb5af7160b83e92df326dec3295ab60a
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
require 'cocoapods' require 'fileutils' module CocoapodsGitHooks Pod::HooksManager.register('cocoapods-show-podpsecs-in-project', :post_install) do |context| specs_dir_path = File.expand_path('Pods/Podspecs') FileUtils.rm_rf specs_dir_path FileUtils.mkdir specs_dir_path context.umbrella_targets[0].specs.each do |spec| spec = spec.parent if spec.subspec? path = "#{specs_dir_path}/#{spec.name}.podpsec.json" File.open(path, 'w') { |file| file.write(spec.to_pretty_json) } end context.pods_project.main_group.new_reference(specs_dir_path) context.pods_project.save end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-show-podpsecs-in-project-0.1.1 | lib/cocoapods_plugin.rb |