cocoapods-show-podpsecs-in-project 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad10b7dcb0ef3b67ca9e6978faa4620884c12bea
4
- data.tar.gz: fea9991e38dce82960ed474d2cbe827b59421bb0
3
+ metadata.gz: c7b562e2c9474cf557f2892b0454d5d8232d3352
4
+ data.tar.gz: 16c1a009e58140f418a563c763922c1b7b31a4e1
5
5
  SHA512:
6
- metadata.gz: 6f283c2c4fc98d0ec65ed276164bfd4bb1f35090101f37e83b2bed92ad49910558033a478c980cfbcf28b59ec6a0e662a681ec0906e33cb6041975e970d513c1
7
- data.tar.gz: 565611a4961ef1f68b2bd812cdb52a2cf9528ccf315399d0a4299b96952be840dacf570adafb62f041a18512f5c5324c056bd4556e4ba8eeb1867e3925afaf2a
6
+ metadata.gz: e39cf1d6151db397cc83e2821c8fb11861e21b241ffcabbf74d6d8adc0910cc4bf6d1bf38ca4868c0aaf03b24fd61a6e6b470f9867d866da7fd1ec061e483282
7
+ data.tar.gz: a7781cc00295e5c3dd95cf9ea14b9639f675626ec92288012743cf61ab86660af1479cc0fb5de099212630342db9b9d95139ad9b62b516510e4f55adb920d511
@@ -1,3 +1,3 @@
1
1
  module CocoapodsShowPodpsecsInProject
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -3,12 +3,12 @@ require 'fileutils'
3
3
 
4
4
  module CocoapodsGitHooks
5
5
  Pod::HooksManager.register('cocoapods-show-podpsecs-in-project', :post_install) do |context|
6
- specs_dir_path = File.expand_path('Pods/Podspecs')
6
+ specs_dir_path = File.expand_path("#{context.sandbox.root}/Podspecs")
7
7
  FileUtils.rm_rf specs_dir_path
8
8
  FileUtils.mkdir specs_dir_path
9
9
 
10
10
  context.umbrella_targets[0].specs.each do |spec|
11
- spec = spec.parent if spec.subspec?
11
+ spec = spec.parent while spec.parent
12
12
  path = "#{specs_dir_path}/#{spec.name}.podpsec.json"
13
13
  File.open(path, 'w') { |file| file.write(spec.to_pretty_json) }
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-show-podpsecs-in-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - X140Yu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-16 00:00:00.000000000 Z
11
+ date: 2018-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler