cocoapods-timeconsuming 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 311b76e5eb66f9e6f5deec04a429f7adfdb79002
4
- data.tar.gz: 4b636b76af9077da7d3bc1eb26f79beb483ded9a
3
+ metadata.gz: c36eb6a9f80aad425c2ed1f66d3698928e985752
4
+ data.tar.gz: e2991879dac6018be7a31ba1225cd154dfdeeb98
5
5
  SHA512:
6
- metadata.gz: 1f8ec3d094d5eff0eed3e51ce066f6c885606648136e4dd945738f07020c4da4b0f4af1f2cf8afdcda02b63c57324de26c7f00e68152f948966c56eb9f33c00c
7
- data.tar.gz: b424ec58a1e5d55a0ebbe924237a99178af4c10c7616f3070a82b7524aa8cbd228c01c0c113b1ac8abbc8cfe02706de357edb1791c073b0ef5c594a82ae758ca
6
+ metadata.gz: fd4af33a3a88339de9fd3e665181e54333ed3d68ec3a0d9c3186687569c08350d30d5e0a59b0e4d5917c7e5d449dcbc351321888a1447b2253cc6eb7c40495a0
7
+ data.tar.gz: e16ac83c49945142a6c6fef0a74aa49155933480a6058d57f0d42aede440e3c12cb992baa8668032adf790a6589ad791376e2899ddcfb0e0e761e7d608009bd8
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cocoapods-timeconsuming/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "cocoapods-timeconsuming"
8
+ spec.version = CocoapodsTimeconsuming::VERSION
9
+ spec.authors = ["晨燕"]
10
+ spec.email = ["chenyan.mnn@taobao.com"]
11
+ spec.summary = 'pod install 耗时统计'
12
+ spec.description = 'pod install 各阶段及总耗时统计'
13
+ spec.homepage = "https://github.com/mahaiyannn/cocoapods-timeconsuming"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = Dir["lib/**/*.rb"]+Dir["cocoapods-timeconsuming.gemspec"]
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.6"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "cocoapods"
24
+
25
+ end
@@ -52,5 +52,43 @@ if Pod::VERSION=='1.0.0'
52
52
  end
53
53
  end
54
54
  end
55
+ elsif (Pod::VERSION=='0.35.0' or Pod::VERSION=='0.39.0')
56
+ module Pod
57
+ class Installer
58
+ def install!
59
+ start_time = Time.new
60
+ prepare
61
+ cost_time = Time.new.to_i-start_time.to_i
62
+ p 'prepare cost: '+cost_time.to_s
63
+ end_time = Time.new
64
+
65
+ resolve_dependencies
66
+ cost_time = Time.new.to_i-end_time.to_i
67
+ p 'resolve_dependencies cost: '+cost_time.to_s
68
+ end_time = Time.new
69
+
70
+ download_dependencies
71
+ cost_time = Time.new.to_i-end_time.to_i
72
+ p 'download_dependencies cost: '+cost_time.to_s
73
+ end_time = Time.new
74
+
75
+ generate_pods_project
76
+ cost_time = Time.new.to_i-end_time.to_i
77
+ p 'generate_pods_project cost: '+cost_time.to_s
78
+ end_time = Time.new
79
+
80
+ integrate_user_project if config.integrate_targets?
81
+ cost_time = Time.new.to_i-end_time.to_i
82
+ p 'integrate_user_project cost: '+cost_time.to_s
83
+ end_time = Time.new
84
+
85
+ perform_post_install_actions
86
+ cost_time = Time.new.to_i-end_time.to_i
87
+ p 'perform_post_install_actions cost: '+cost_time.to_s
88
+ p 'total cost: '+(Time.new.to_i-start_time.to_i).to_s
89
+ end
90
+ end
91
+ end
92
+
55
93
  end
56
94
 
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTimeconsuming
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-timeconsuming
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 晨燕
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-12 00:00:00.000000000 Z
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -62,6 +62,7 @@ files:
62
62
  - lib/cocoapods-timeconsuming/version.rb
63
63
  - lib/cocoapods-timeconsuming.rb
64
64
  - lib/cocoapods_plugin.rb
65
+ - cocoapods-timeconsuming.gemspec
65
66
  homepage: https://github.com/mahaiyannn/cocoapods-timeconsuming
66
67
  licenses:
67
68
  - MIT