hitimes 1.3.0-x64-mingw32 → 1.3.1-x64-mingw32

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
  SHA256:
3
- metadata.gz: cd0753ca4c87ef476f9a46520c0d522122f735378d77c7310eaf03f8db88b341
4
- data.tar.gz: 9d1dfc523449870050d5e86a7f2145eab1742e01c83c7cf71a2493961aa9c28f
3
+ metadata.gz: 7387fa10728248c900dfc6d0363222616d85a260de49c5e7602eb02721694a36
4
+ data.tar.gz: 3d8233aacb9631d437fbfd6686a26374f717efacb46b76ffe35c4b52d85966db
5
5
  SHA512:
6
- metadata.gz: 17de5f09502c772ac53cd13f7497edb2a955db925edafe39e0f2e3daea0b3ef290213fa4362a84832dd327ea157c09c9e0f499bbf044c158e6eefd43e4764880
7
- data.tar.gz: f540282f60503bc87a3180276695b984e5ae023dd1de590bfa31da389d1df8e38b19a0f1823367aeb18cdab238ea7d003d4788aac22083e7237147d251f33db2
6
+ metadata.gz: 49f96ce60afdfcc8ec09af8d021e28494e7a2b92bc701dc4ce40afb941929eada7a2d94d442c70d5c213b4def65ea9c39fbb7aabf956ea35350e5b8cfc9533e8
7
+ data.tar.gz: 63c0e72fffc4e960048ac7bc8cfbd0549e38180be2bee84ee0adc2f008d2a559e458985bdbbcd3315b64cd500ac872d627286143d5146231a67cb14f22dbd61e
data/HISTORY.md CHANGED
@@ -1,4 +1,10 @@
1
1
  # Hitimes Changelog
2
+ ## Version 1.3.1 2019-01-18
3
+
4
+ * Update jruby extension to not use global runtime state (thanks @kares) (#70)
5
+ * Update travis CI config
6
+ * Update documentataion for Ruby 2.6
7
+
2
8
  ## Version 1.3.0 2018-06-15
3
9
 
4
10
  * Add api method `Hitimes.raw_instant` to expose raw OS instant value
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/copiousfreetime/hitimes.svg?branch=master)](https://travis-ci.org/copiousfreetime/hitimes)
4
4
 
5
+ ## Description
6
+
5
7
  A fast, high resolution timer library for recording peformance metrics.
6
8
 
7
9
  * [Homepage](http://github.com/copiousfreetime/hitimes)
@@ -159,8 +161,8 @@ Hitimes also follows [semantic versioning](http://semver.org/).
159
161
 
160
162
  The current officially supported versions of Ruby are:
161
163
 
162
- * MRI Ruby (all platforms) 2.3 - 2.5
163
- * JRuby 9.1.17.0, 9.2.0.0
164
+ * MRI Ruby (all platforms) 2.3 - 2.6
165
+ * JRuby 9.1.17.0, 9.2.X.X
164
166
 
165
167
  Unofficially supported versions, these have been supported in the past when they
166
168
  were the primary rubies around. In all likelihood they still work, but are not
@@ -4,7 +4,10 @@
4
4
  #include <mach/mach.h>
5
5
  #include <mach/mach_time.h>
6
6
 
7
- /* All this OSX code is adapted from http://developer.apple.com/library/mac/#qa/qa1398/_index.html */
7
+ /* All this OSX code is adapted from
8
+ * https://developer.apple.com/library/archive/qa/qa1398/_index.html
9
+ */
10
+
8
11
 
9
12
  /*
10
13
  * returns the conversion factor, this value is used to convert
@@ -3,20 +3,18 @@ package hitimes;
3
3
  import java.lang.Math;
4
4
  import java.lang.System;
5
5
 
6
- import org.jruby.anno.JRubyClass;
7
- import org.jruby.anno.JRubyMethod;
8
- import org.jruby.anno.JRubyModule;
9
- import org.jruby.anno.JRubyConstant;
10
- import org.jruby.runtime.Visibility;
11
-
12
6
  import org.jruby.Ruby;
13
7
  import org.jruby.RubyClass;
14
8
  import org.jruby.RubyException;
15
9
  import org.jruby.RubyModule;
16
10
  import org.jruby.RubyObject;
17
-
11
+ import org.jruby.anno.JRubyClass;
12
+ import org.jruby.anno.JRubyMethod;
13
+ import org.jruby.anno.JRubyModule;
14
+ import org.jruby.anno.JRubyConstant;
18
15
  import org.jruby.exceptions.RaiseException;
19
-
16
+ import org.jruby.runtime.ThreadContext;
17
+ import org.jruby.runtime.Visibility;
20
18
  import org.jruby.runtime.builtin.IRubyObject;
21
19
 
22
20
 
@@ -28,15 +26,14 @@ public class Hitimes {
28
26
 
29
27
  public static final double INSTANT_CONVERSION_FACTOR = 1000000000d;
30
28
 
31
- private static final Ruby __ruby__ = Ruby.getGlobalRuntime();
32
-
33
29
  public static RubyClass hitimesIntervalClass;
30
+
34
31
  /**
35
32
  * Create the Hitimes module and add it to the Ruby runtime.
36
33
  */
37
34
  public static RubyModule createHitimesModule( Ruby runtime ) {
38
35
  RubyModule mHitimes = runtime.defineModule("Hitimes");
39
- mHitimes.defineConstant("INSTANT_CONVERSION_FACTOR", __ruby__.newFloat(INSTANT_CONVERSION_FACTOR));
36
+ mHitimes.defineConstant("INSTANT_CONVERSION_FACTOR", runtime.newFloat(INSTANT_CONVERSION_FACTOR));
40
37
  mHitimes.defineAnnotatedMethods( Hitimes.class );
41
38
 
42
39
  RubyClass cStandardError = runtime.getStandardError();
@@ -59,8 +56,8 @@ public class Hitimes {
59
56
 
60
57
 
61
58
  @JRubyMethod( name = "raw_instant", module = true )
62
- public static IRubyObject rawInstant(IRubyObject self) {
63
- return __ruby__.newFixnum( System.nanoTime() );
59
+ public static IRubyObject rawInstant(ThreadContext context, IRubyObject self) {
60
+ return context.runtime.newFixnum( System.nanoTime() );
64
61
  }
65
62
 
66
63
  }
Binary file
Binary file
Binary file
Binary file
@@ -4,5 +4,5 @@
4
4
  #++
5
5
 
6
6
  module Hitimes
7
- VERSION = "1.3.0"
7
+ VERSION = "1.3.1"
8
8
  end
@@ -28,7 +28,7 @@ class ThisProject
28
28
  @exclude_from_manifest = Regexp.union(/\.(git|DS_Store)/,
29
29
  /^(doc|coverage|pkg|tmp|Gemfile(\.lock)?)/,
30
30
  /^[^\/]+\.gemspec/,
31
- /\.(swp|jar|bundle|so|rvmrc|travis.yml)$/,
31
+ /\.(swp|jar|bundle|so|rvmrc|travis.yml|byebug_history)$/,
32
32
  /~$/)
33
33
  @gemspecs = Hash.new
34
34
  yield self if block_given?
@@ -146,7 +146,7 @@ class ThisProject
146
146
  spec.rdoc_options = [ "--main" , 'README.md',
147
147
  "--markup", "tomdoc" ]
148
148
 
149
- spec.required_ruby_version = '>= 1.9.3'
149
+ spec.required_ruby_version = '>= 2.2.2'
150
150
  end
151
151
  end
152
152
 
@@ -178,9 +178,9 @@ class ThisProject
178
178
  (RUBY_PLATFORM == "java") ? 'java' : Gem::Platform::RUBY
179
179
  end
180
180
 
181
- # Internal: Return the DESCRIPTION section of the README.rdoc file
181
+ # Internal: Return the Description section of the README.rdoc file
182
182
  def description_section
183
- section_of( 'README.md', 'Hitimes')
183
+ section_of( 'README.md', 'Description')
184
184
  end
185
185
 
186
186
  # Internal: Return the summary text from the README
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hitimes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Jeremy Hinegardner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-15 00:00:00.000000000 Z
11
+ date: 2019-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -108,10 +108,9 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.14'
111
- description: "(https://travis-ci.org/copiousfreetime/hitimes.svg?branch=master)](https://travis-ci.org/copiousfreetime/hitimes)
112
- A fast, high resolution timer library for recording peformance metrics. * (http://github.com/copiousfreetime/hitimes)
113
- * (http://github.com.org/copiousfreetime/hitimes) * email jeremy at copiousfreetime
114
- dot org * `git clone url git://github.com/copiousfreetime/hitimes.git`"
111
+ description: A fast, high resolution timer library for recording peformance metrics.
112
+ * (http://github.com/copiousfreetime/hitimes) * (http://github.com.org/copiousfreetime/hitimes)
113
+ * email jeremy at copiousfreetime dot org * `git clone url git://github.com/copiousfreetime/hitimes.git`
115
114
  email: jeremy@copiousfreetime.org
116
115
  executables: []
117
116
  extensions: []
@@ -143,12 +142,11 @@ files:
143
142
  - ext/hitimes/java/src/hitimes/HitimesService.java
144
143
  - ext/hitimes/java/src/hitimes/HitimesStats.java
145
144
  - lib/hitimes.rb
146
- - lib/hitimes/2.0/hitimes.so
147
- - lib/hitimes/2.1/hitimes.so
148
145
  - lib/hitimes/2.2/hitimes.so
149
146
  - lib/hitimes/2.3/hitimes.so
150
147
  - lib/hitimes/2.4/hitimes.so
151
148
  - lib/hitimes/2.5/hitimes.so
149
+ - lib/hitimes/2.6/hitimes.so
152
150
  - lib/hitimes/metric.rb
153
151
  - lib/hitimes/mutexed_stats.rb
154
152
  - lib/hitimes/paths.rb
@@ -187,10 +185,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
185
  requirements:
188
186
  - - ">="
189
187
  - !ruby/object:Gem::Version
190
- version: '2.0'
188
+ version: '2.2'
191
189
  - - "<"
192
190
  - !ruby/object:Gem::Version
193
- version: '2.6'
191
+ version: 2.7.dev
194
192
  required_rubygems_version: !ruby/object:Gem::Requirement
195
193
  requirements:
196
194
  - - ">="
@@ -198,10 +196,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
196
  version: '0'
199
197
  requirements: []
200
198
  rubyforge_project:
201
- rubygems_version: 2.7.3
199
+ rubygems_version: 2.7.8
202
200
  signing_key:
203
201
  specification_version: 4
204
- summary: "[![Build Status](https://travis-ci.org/copiousfreetime/hitimes.svg?branch=master)](https://travis-ci.org/copiousfreetime/hitimes)"
202
+ summary: A fast, high resolution timer library for recording peformance metrics.
205
203
  test_files:
206
204
  - spec/hitimes_spec.rb
207
205
  - spec/interval_spec.rb
Binary file