class_stat 0.0.2 → 0.0.3

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: 1f795b0aefd1a72e5316344aa64b238f6e5ebb4a
4
- data.tar.gz: 0ece78825bdaef2d74d7e535d6103aec2e3217db
3
+ metadata.gz: e86fe919f9c58c5895c43d356e17c26bd0f080b6
4
+ data.tar.gz: 0186a5ff40b80d01627a32efff3e52243c2972c9
5
5
  SHA512:
6
- metadata.gz: b9bc8e2229f3a66a52b10c98f610c37763cb87ebebe6e69702df6862f0d90cf0cc874b6309fcc79f41150c0047a30020f42c0017bd5eebf7e1806f1b3c06a262
7
- data.tar.gz: b056358effdc2e29b55304a9bc667e94d3803a47c94407ca03cd0bd30e5079e4f0f876b352775136406920a0333adfe398d3de719b504af3a06da6e471feeef6
6
+ metadata.gz: 020348453aef883605af8c179795a2193675f2cce19d0e2ff29963b1ceae5b6b86633c310f70e2b9f6744e1dd696831b88c7e73fab7b391bc67f0815d6d52159
7
+ data.tar.gz: ffaa2076be70605d2f536dcbc75a91c353b3c6565b8a8b7f52de8409c28172e9debb75ddb9a96b58732193a49735439e875f577c94d276c2aa48313684c1240f
@@ -1,5 +1,6 @@
1
1
 
2
2
  #include <ruby/ruby.h>
3
+ #include <ruby/version.h>
3
4
 
4
5
  void rb_objspace_each_objects(
5
6
  int (*callback)(void *start, void *end, size_t stride, void *data),
@@ -26,9 +27,6 @@ countup(VALUE h, VALUE k, int n)
26
27
  rb_hash_aset(h, k, cn);
27
28
  }
28
29
 
29
- static int
30
- msize(VALUE klass)
31
- {
32
30
  #if RUBY_API_VERSION_MAJOR == 2 && (RUBY_API_VERSION_MINOR == 2 || RUBY_API_VERSION_MINOR == 1)
33
31
  struct method_table_wrapper {
34
32
  st_table *tbl;
@@ -40,6 +38,9 @@ struct method_table_wrapper {
40
38
  #define RCLASS_M_TBL(c) (RCLASS(c)->m_tbl)
41
39
  #endif
42
40
 
41
+ static int
42
+ msize(VALUE klass)
43
+ {
43
44
  if (RCLASS_M_TBL(klass)) {
44
45
  return RCLASS_M_TBL(klass)->num_entries;
45
46
  }
@@ -1,3 +1,3 @@
1
1
  module ClassStat
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: class_stat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Sasada