cocoapods-time-analyze 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: dc05ca8a3125b73796ca1333f0b5378b8d5cca26
4
- data.tar.gz: 2cc1eaea1778bf0d5a75bfae4e07615eb723083b
3
+ metadata.gz: 0e78fd0973542aa064349d9b4a4bd0b97ce8e32e
4
+ data.tar.gz: 9211bee04ad0fb64063aaba9b86106d069c9f107
5
5
  SHA512:
6
- metadata.gz: 00cc70c4a98c3bf295013fbc52e6c40a400dec7527ccf2367e6fe1f42978258e79530162c55283cce94c0ed69c230301509875afc954c26ad65baf1f7d617535
7
- data.tar.gz: 249999b5914e5d34b102a98648b07dc5c44c5e0a3cd70045d4e30209f1c47933e592c25ee6681405ac585760c15a4d7cb614ed5d6bc35c520f58465d2df58358
6
+ metadata.gz: cb7e5b7f3950b44c79ac8638517e9bd39eb5b2ca806d65d6f99161dcbabb48963472798262a36e4732385ad1d94e966973f6f3f18d4c9c93212f04e6483cc86c
7
+ data.tar.gz: d04d7777826ac947287daf77e2f44596680a06ab2af51f567be56fd35adc6e2f825c2a6742862f48747f522ffb0ce8ca9762dc49918f071d8f0145f86c3c498a
@@ -1,3 +1 @@
1
1
  host: https://rubygems.org/
2
- tag: true
3
- push: true
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTimeAnalyze
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
@@ -12,7 +12,7 @@ module Pod
12
12
  TimeAnalyzeConfig::PodInstall.target_steps.each { |step| redefine_step_method(step.to_sym) }
13
13
  install_start_time = Time.now
14
14
  origin_install!
15
- total_time = Time.now - install_start_time
15
+ total_time = (Time.now - install_start_time).round(2)
16
16
 
17
17
  TimeAnalyzeConfig::PodInstall.after_all(total_time, @time_log, self)
18
18
  write_summary_file(total_time) if TimeAnalyzeConfig::PodInstall.enable_local_summary
@@ -34,7 +34,7 @@ module Pod
34
34
  block = proc do |*arguments|
35
35
  start_time = Time.now
36
36
  send("origin_#{method_sym}".to_sym, *arguments)
37
- total_time = Time.now - start_time
37
+ total_time = (Time.now - start_time).round(2)
38
38
  @time_log[method_sym] = total_time
39
39
  end
40
40
 
@@ -20,8 +20,8 @@ log_content = JSON.parse(File.read(json_log_file))
20
20
  `rm -rf #{json_log_file}`
21
21
 
22
22
  end_time_with_duration = log_content['logs'].each_with_object({}) do |log_content, hash|
23
- start_timestamp = log_content.last['timeStartedRecording'].to_i
24
- end_timestamp = log_content.last['timeStoppedRecording'].to_i
23
+ start_timestamp = log_content.last['timeStartedRecording'].round(2)
24
+ end_timestamp = log_content.last['timeStoppedRecording'].round(2)
25
25
  duration = end_timestamp - start_timestamp
26
26
  hash[end_timestamp] = duration
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-time-analyze
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
  - Forelax