lib/cocoapods_plugin.rb in cocoapods-show-podpsecs-in-project-0.1.0 vs lib/cocoapods_plugin.rb in cocoapods-show-podpsecs-in-project-0.1.1

- old
+ new

@@ -6,9 +6,10 @@ 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)