click 0.0.1 → 0.0.2

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.
data/lib/click/clicker.rb CHANGED
@@ -7,7 +7,14 @@ module Click
7
7
 
8
8
  @state = Hash.new(0)
9
9
  ObjectSpace.each_object do |object|
10
- @state[object.class] += 1
10
+ begin
11
+ klass = object.class
12
+ next unless klass.is_a?(Class)
13
+ rescue NoMethodError
14
+ next
15
+ end
16
+
17
+ @state[klass] += 1
11
18
  end
12
19
 
13
20
  @state[Symbol] = Symbol.all_symbols.count
data/lib/click/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Click
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: click
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: