gem_footprint_analyzer 0.1.3 → 0.1.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
  SHA256:
3
- metadata.gz: 69c4c34c88102817c70c7d4a69e1716152213337d19edcb9139437c8c4ce80f0
4
- data.tar.gz: 98e61556aa5bf8fdc6c8498f2157e16abb8f45294ed0e5345958652604d0c7a8
3
+ metadata.gz: 51f8dc305195b0396066fb37d2784977a39c225d8e8ebe9693811ecb66eeaec7
4
+ data.tar.gz: d90ac3f57a39cb90d0f607ed98e2ee1787aa3be947ad757cde2f5ecb86fddd35
5
5
  SHA512:
6
- metadata.gz: b582135703728eaaa2ca71217ed4ad796e7c4add2e78c503887017a9f0666dad5bf09022b6dbc83a63cab5d60102524220ffc7e9b14797cb715dec8e16c64e37
7
- data.tar.gz: 3c0b25663dd56f72928c0b3e7319e0f2c8c9dffcbefd7d5e6dcac3fa64636b5e10eec91673853cc2e2d2f739cff31851f35d8cc5fe7b9bf6444db95141611e3e
6
+ metadata.gz: 3ecda064933c31a6316721de08859046f63beebfc9cc2bc68d9ff789996c4c7b2daae8135b7687a35684a0e42cd168f8f548d6156e76414313fd8010a5809d0b
7
+ data.tar.gz: e0dc8d0ddd3bacc5b6e2411b212c8379a2ec94d87d0204310d82ba87fb261e4fd7298b211deb2972e405dfe3c5457224e05800304c10c4f43bee459a74c2c194
@@ -13,3 +13,6 @@ Style/RegexpLiteral:
13
13
 
14
14
  Layout/SpaceInsideHashLiteralBraces:
15
15
  EnforcedStyle: no_space
16
+
17
+ Style/SignalException:
18
+ EnforcedStyle: semantic
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gem_footprint_analyzer (0.1.2)
4
+ gem_footprint_analyzer (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -10,4 +10,4 @@ cli = GemFootprintAnalyzer::CLI.new
10
10
  t1 = Time.now.to_f
11
11
  cli.run(ARGV)
12
12
  t2 = Time.now.to_f
13
- puts format("\nTotal runtime %0.4fs", (t2 - t1))
13
+ STDERR.puts(format("\nTotal runtime %0.4fs", (t2 - t1)))
@@ -18,6 +18,7 @@ module GemFootprintAnalyzer
18
18
 
19
19
  process_id = fork_and_require(require_string || library, child_transport)
20
20
  fail 'Unable to fork' unless process_id
21
+
21
22
  detach_process(process_id)
22
23
  requires = collect_requires(parent_transport, process_id)
23
24
 
@@ -7,7 +7,7 @@ module GemFootprintAnalyzer
7
7
  # @param runs [Integer] optional number of runs to perform
8
8
  # @param run_block [proc] actual unit of work to be done runs times
9
9
  def initialize(runs = RUNS, &run_block)
10
- raise ArgumentError, 'runs must be > 0' unless runs > 0
10
+ fail ArgumentError, 'runs must be > 0' unless runs > 0
11
11
 
12
12
  @run_block = run_block
13
13
  @runs = runs
@@ -61,7 +61,7 @@ module GemFootprintAnalyzer
61
61
  end
62
62
 
63
63
  opts.on('-n', '--runs-num NUMBER', OptParse::DecimalInteger, 'Number of runs') do |runs|
64
- raise OptionParser::InvalidArgument, 'must be a number greater than 0' if runs < 1
64
+ fail OptionParser::InvalidArgument, 'must be a number greater than 0' if runs < 1
65
65
 
66
66
  options[:runs] = runs
67
67
  end
@@ -1,3 +1,3 @@
1
1
  module GemFootprintAnalyzer
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_footprint_analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciek Dubiński
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-27 00:00:00.000000000 Z
11
+ date: 2018-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler