scout_apm 2.3.0.pre3 → 2.3.0

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: f59f8432283334855f3ff0a27ab5d05b382197d7
4
- data.tar.gz: 30e3f1a76d734bc9b4db8a6a411d546822a3f04f
3
+ metadata.gz: 0824b54fafce0740afe5630ec7a19c9db7ef6b3f
4
+ data.tar.gz: 1a18d23cbcf0de3d77f850d952b9be7a1f6132e2
5
5
  SHA512:
6
- metadata.gz: 5428834f6a809a36662efa0cdff228401b61a96208c1b4c78de520b8817efee25c870668961f505055c6ca9b37d72852ff7be51276baccbb91ac097455803fdc
7
- data.tar.gz: 31e85d518d859015d53e6ec8e5cd63c9842aa1e1ce66313414fce35794b838f26eb022564a5de5036ec75656a817def0ab086880a698bd1709de539e33056239
6
+ metadata.gz: a45e6fdaf8f8b17c718f10545f0aea3a5c46a5c08d5415a7c17814273d11aa44872a6f1ed1cf96a9ba7a0d39cef27a7c939dd4f9b286737b599e85e6d315518c
7
+ data.tar.gz: 25ba8d15e6010e4ed95353c969caccfec2593cdd8bad13ec1f0a826e40ff7241f1ed57040de58b33b4efe08693ba0fd89eadbf3781f8d47a166f2edb00cf9e68
@@ -8,7 +8,7 @@ VALUE mScoutApm;
8
8
  VALUE mInstruments;
9
9
  VALUE cAllocations;
10
10
 
11
- #ifdef RUBY_INTERNAL_EVENT_NEWOBJ
11
+ #if defined(RUBY_INTERNAL_EVENT_NEWOBJ) && !defined(_WIN32)
12
12
 
13
13
  #include <sys/resource.h> // is this needed?
14
14
  #include <sys/time.h>
@@ -1,10 +1,35 @@
1
1
  // VERSION = "x.y.z"
2
2
  #include <ruby.h>
3
+ #ifdef _WIN32
4
+ #define RUSAGE_SELF 0
5
+ #define RUSAGE_CHILDREN 0
6
+ #else
3
7
  #include <sys/resource.h>
8
+ #endif
4
9
 
5
10
  VALUE v_usage_struct;
6
11
 
7
12
  static VALUE do_rusage_get(int who){
13
+ #ifdef _WIN32
14
+ return rb_struct_new(v_usage_struct,
15
+ rb_float_new(0),
16
+ rb_float_new(0),
17
+ LONG2NUM(0),
18
+ LONG2NUM(0),
19
+ LONG2NUM(0),
20
+ LONG2NUM(0),
21
+ LONG2NUM(0),
22
+ LONG2NUM(0),
23
+ LONG2NUM(0),
24
+ LONG2NUM(0),
25
+ LONG2NUM(0),
26
+ LONG2NUM(0),
27
+ LONG2NUM(0),
28
+ LONG2NUM(0),
29
+ LONG2NUM(0),
30
+ LONG2NUM(0)
31
+ );
32
+ #else // _WIN32
8
33
  struct rusage r;
9
34
  int ret;
10
35
 
@@ -30,6 +55,7 @@ static VALUE do_rusage_get(int who){
30
55
  LONG2NUM(r.ru_nvcsw),
31
56
  LONG2NUM(r.ru_nivcsw)
32
57
  );
58
+ #endif // _WIN32
33
59
  }
34
60
 
35
61
  static VALUE rusage_get(int argc, VALUE* argv, VALUE mod){
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "2.3.0.pre3"
2
+ VERSION = "2.3.0"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0.pre3
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Haynes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-10-10 00:00:00.000000000 Z
12
+ date: 2017-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -338,9 +338,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
338
338
  version: '0'
339
339
  required_rubygems_version: !ruby/object:Gem::Requirement
340
340
  requirements:
341
- - - ">"
341
+ - - ">="
342
342
  - !ruby/object:Gem::Version
343
- version: 1.3.1
343
+ version: '0'
344
344
  requirements: []
345
345
  rubyforge_project: scout_apm
346
346
  rubygems_version: 2.4.5.2