mnemonic 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: 05c96cf2563c4bb6470e8456bf26f8551561c371
4
- data.tar.gz: eb4dbd185ffe57ee89820105ec63534ad99658e9
3
+ metadata.gz: 942b6c3e36d4defc0a3f148c2049d4e091bf9e64
4
+ data.tar.gz: 79dc691f6d564dbe315944dc565c53342699dc56
5
5
  SHA512:
6
- metadata.gz: 60f9dd6f2e9c16cdfd07864fe431a730ce186794c7e9dbcf4569a993ffa435d299000ac4787f87b6a2f556236751b3dd0b75db770cc3c8433351e7009294b276
7
- data.tar.gz: d4e2835169d602649d36d4f73635c86d10a50ba539e08b2f4c42b46ef6e02847773015423fa441e81b54b9d62dd23fa5e7793d42f430e52a6e87e63e42e7aeb0
6
+ metadata.gz: 5330b551745271f6c121dd957ca832a63c0ed3484674a2694db5407c836ada6efd867395f9a201dc79c12a1f36267097c50798489bdad6361a9c6e0fbb09bb0a
7
+ data.tar.gz: 1f766d47e388ba0e5a590a14d24b5c76d57afd4ddc0fbaaed8579153e84f2211ea0176fd4fc488956a53e86fcfb58053fb3cf4aeae2276779380645bb5f88e61
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mnemonic (0.1.0)
4
+ mnemonic (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,7 +2,7 @@ require 'mnemonic'
2
2
 
3
3
  mnemonic = Mnemonic.new do |config|
4
4
  config.rss
5
- config.gc_stat :minor_gc_count, :major_gc_count
5
+ config.gc_stat
6
6
  end
7
7
 
8
8
  mnemonic.attach_pretty(STDOUT)
@@ -19,8 +19,12 @@ class Mnemonic
19
19
  yield config
20
20
 
21
21
  @root_metrics = config.metrics.map do |metric|
22
- metric.klass.new(*metric.args)
23
- end
22
+ begin
23
+ metric.klass.new(*metric.args)
24
+ rescue => e
25
+ puts e
26
+ end
27
+ end.compact
24
28
 
25
29
  @metrics = @root_metrics.flat_map do |metric|
26
30
  metric.to_enum(:each_submetric).to_a
@@ -1,3 +1,3 @@
1
1
  class Mnemonic
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mnemonic
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
  - Vladimir Kochnev