ruby-prof 0.16.1 → 0.16.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae5c9b6ca4180f6308c84313afd80efc58baf848
4
- data.tar.gz: e62d90e378ddc069bd269db4bb487ee8d4d8dfd9
3
+ metadata.gz: 998f8b9ded9813ff8861c7a4fb23aaf5bd71ce92
4
+ data.tar.gz: a72b21161e6538935337a6321361449592663a66
5
5
  SHA512:
6
- metadata.gz: 9ddadfd9ee7f5eae65ae6799d007c6b04c76050e6dc36321f14885667fa2b73ad05c3da04b0c3413db1bb1d0507b88277fa9b62ac9586771af38c856c42c4f95
7
- data.tar.gz: 10b71b329214985a2727c59fd8b3c924536de3bbb7754246cc86e7beb787ff2491308ca777b7cd18c98ed527e810d3ca4a9fc7d5eeca84db6b2f5dea6c5d6647
6
+ metadata.gz: 61004f65fda9b55bc3eb68ade93060c5ae1d074215c44b94500517ea18704c7b40942d705cdd07b0bdc3a830e8ea3a3ff47af43873057769f8dcc3ecfddf4d38
7
+ data.tar.gz: 06208b57ce6d33668f5210a5c19869e0e434ab9933ce657b455adea1d8167868439976fbdb76dcf9da157f774c7744af786324405bfe85202475d7b7d6fb07ff
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ 0.16.2 (2016-08-25)
2
+ =====================
3
+ * fixed incorrect setting of RUBY_VERSION macro
4
+
1
5
  0.16.1 (2016-08-24)
2
6
  =====================
3
7
  * fixed compile problem with ruby 2.1.10
@@ -1,4 +1,4 @@
1
- Wed, 24 Aug 2016 22:07:18 +0200
1
+ Thu, 25 Aug 2016 10:46:44 +0200
2
2
  bin/ruby-prof Sat, 02 Jan 2016 16:48:57 +0100
3
3
  bin/ruby-prof-check-trace Sun, 10 Mar 2013 10:57:14 +0100
4
4
  examples/flat.txt Sun, 06 Dec 2015 14:08:42 +0100
@@ -24,7 +24,7 @@ lib/ruby-prof/profile.rb Sun, 13 Mar 2016 17:37:58 +0100
24
24
  lib/ruby-prof/rack.rb Fri, 17 Jun 2016 20:01:16 +0200
25
25
  lib/ruby-prof/task.rb Tue, 29 Jan 2013 16:43:39 +0100
26
26
  lib/ruby-prof/thread.rb Sun, 13 Mar 2016 17:39:57 +0100
27
- lib/ruby-prof/version.rb Wed, 24 Aug 2016 22:03:29 +0200
27
+ lib/ruby-prof/version.rb Thu, 25 Aug 2016 10:46:05 +0200
28
28
  lib/unprof.rb Tue, 29 Jan 2013 16:43:39 +0100
29
29
  ext/ruby_prof/ruby_prof.c Sun, 13 Mar 2016 20:27:23 +0100
30
30
  README.rdoc Fri, 17 Jun 2016 20:01:16 +0200
Binary file
@@ -45,7 +45,7 @@ end
45
45
  if !windows? && RUBY_PLATFORM !~ /(darwin|openbsd)/
46
46
  $LDFLAGS += " -lrt" # for clock_gettime
47
47
  end
48
- add_define("RUBY_VERSION", RUBY_VERSION.gsub('.', ''))
48
+ add_define("RUBY_PROF_RUBY_VERSION", RUBY_VERSION.split('.')[0..2].inject(0){|v,d| v*100+d.to_i})
49
49
 
50
50
  # for ruby 1.9, determine whether threads inherit trace flags (latest 1.9.2 and later should work correctly)
51
51
  if RUBY_VERSION > "1.9"
@@ -14,7 +14,7 @@ static VALUE cMeasureAllocations;
14
14
  #if defined(HAVE_RB_GC_STAT)
15
15
  size_t rb_gc_stat(VALUE key);
16
16
 
17
- #if RUBY_VERSION >= 2200
17
+ #if RUBY_PROF_RUBY_VERSION >= 20200
18
18
  #define TOTAL_ALLOCATED_OBJECTS_STRING "total_allocated_objects"
19
19
  #else
20
20
  #define TOTAL_ALLOCATED_OBJECTS_STRING "total_allocated_object"
@@ -29,7 +29,7 @@ measure_allocations()
29
29
  #define MEASURE_ALLOCATIONS_ENABLED Qtrue
30
30
  return rb_os_allocated_objects();
31
31
 
32
- #elif defined(HAVE_RB_GC_STAT) && RUBY_VERSION >= 210
32
+ #elif defined(HAVE_RB_GC_STAT) && RUBY_PROF_RUBY_VERSION >= 20100
33
33
  #define MEASURE_ALLOCATIONS_ENABLED Qtrue
34
34
  static VALUE total_alloc_symbol = 0;
35
35
  if (!total_alloc_symbol) {
@@ -7,23 +7,23 @@
7
7
  #include <ruby.h>
8
8
  #include <stdio.h>
9
9
 
10
- #if RUBY_VERSION == 186
10
+ #if RUBY_PROF_RUBY_VERSION == 10806
11
11
  # error 1.8.6 is not supported. Please upgrade to 1.9.3 or higher.
12
12
  #endif
13
13
 
14
- #if RUBY_VERSION == 187
14
+ #if RUBY_PROF_RUBY_VERSION == 10807
15
15
  # error 1.8.7 is not supported. Please upgrade to 1.9.3 or higher.
16
16
  #endif
17
17
 
18
- #if RUBY_VERSION == 190
18
+ #if RUBY_PROF_RUBY_VERSION == 10900
19
19
  # error 1.9.0 is not supported. Please upgrade to 1.9.3 or higher.
20
20
  #endif
21
21
 
22
- #if RUBY_VERSION == 191
22
+ #if RUBY_PROF_RUBY_VERSION == 10901
23
23
  # error 1.9.1 is not supported. Please upgrade to 1.9.3 or higher.
24
24
  #endif
25
25
 
26
- #if RUBY_VERSION == 192
26
+ #if RUBY_PROF_RUBY_VERSION == 10902
27
27
  # error 1.9.2 is not supported. Please upgrade to 1.9.3 or higher.
28
28
  #endif
29
29
 
@@ -1,3 +1,3 @@
1
1
  module RubyProf
2
- VERSION = "0.16.1"
2
+ VERSION = "0.16.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-prof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shugo Maeda, Charlie Savage, Roger Pack, Stefan Kaes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-24 00:00:00.000000000 Z
11
+ date: 2016-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest