hitimes 1.3.0-x86-mingw32 → 1.3.1-x86-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: dc88d5e0f6472a324291e27dc5fb0dd6686d157e9d0a13bd28b61b9774ab84ec
4
- data.tar.gz: 2428d66f48c04b6c7c7ddf50a492d2a3c972560fad1c717f3f53984c82ac9681
3
+ metadata.gz: 674790d410d319d63421e6caf0a57782fb3ea1214f1d491aabe9a4c26d57e792
4
+ data.tar.gz: 584c8574666e783ed04755318368b499ab9dd9b27ebf81995128fbc1ca964b04
5
5
  SHA512:
6
- metadata.gz: dc2a3845c1deb1203441cebf93792a7f1b9f3640cfd36cd4387edb6669435ef380551ea0f3644ccc65853a0c3f4e4b35374a3f5792824995c8291bb1866d4122
7
- data.tar.gz: 2ab963e8525d018be3e4706d2d94fb655e8ab64206b49bb03c205bee7f2bed7bde1340331ea73ba6f684b8183b948676743cd0c75d65823a7bb2926022183438
6
+ metadata.gz: ae54bfed8b4e18ab49c60b232a2d8a965a563d5ae50e4dcea1fb3f9d63f89cf3fa6b7317f3ebdaf3d8f8d2c30a26363db63428c95c3ab5d0bc31c11f1866109c
7
+ data.tar.gz: 145b110ca99fe933e088cf78aa4a31d8eefabf542e145b9bed6328b2ccd231554282a157fe1ab65f94a43bec15eec6e14a62f9cfc07b321e65badaf6eb2913cc
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: x86-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