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 +4 -4
- data/lib/cocoapods-show-podpsecs-in-project/gem_version.rb +1 -1
- data/lib/cocoapods_plugin.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7b562e2c9474cf557f2892b0454d5d8232d3352
|
4
|
+
data.tar.gz: 16c1a009e58140f418a563c763922c1b7b31a4e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e39cf1d6151db397cc83e2821c8fb11861e21b241ffcabbf74d6d8adc0910cc4bf6d1bf38ca4868c0aaf03b24fd61a6e6b470f9867d866da7fd1ec061e483282
|
7
|
+
data.tar.gz: a7781cc00295e5c3dd95cf9ea14b9639f675626ec92288012743cf61ab86660af1479cc0fb5de099212630342db9b9d95139ad9b62b516510e4f55adb920d511
|
data/lib/cocoapods_plugin.rb
CHANGED
@@ -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(
|
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
|
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.
|
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
|
+
date: 2018-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|