HDRHistogram 0.1.2 → 0.1.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: 89ab25a2fbfcde31f56ca617df20f0c660005b24
4
- data.tar.gz: b98e2f077fbf771b3ebdaf9703fa33486876af5a
3
+ metadata.gz: 552613925806b789118b4fe48e14ab97d586c05c
4
+ data.tar.gz: ede44074c166d7508daed156d8f7591c58a111b1
5
5
  SHA512:
6
- metadata.gz: b4f63914e2174b198da9c1f68bb266ddb8cbc89c3c44584d3b2f6b616f3a3d1f86f237bf4c0915b97767a06ae40fb05071e7bdc34c2aae897b393dc5acdce968
7
- data.tar.gz: e718fa657e08f2981eab16a8d3edd9d39ac8e945873cad14a8dcffa8736c24c9e169bea49935eaf793f8631c2662c6d6d257f6823eaf0b921f98b3794ee3ddf8
6
+ metadata.gz: e353550b31b579eba4e36314b5494e1523e925f5260a3470b7c35a74ecd373398dc9f8cefc8e1a32581e80b9bf4f3039fa2fa284477f6dbf845b42d08c233a6f
7
+ data.tar.gz: 02f1921c20e1bd017b583b54aa32c1081fb114c4f3188a280bdc52165f45ea57f38b7974a1f9f5bb2fa03726941dbb02b0ad6d8f2e86bf734c511987e624705d
data/HDRHistogram.gemspec CHANGED
@@ -33,5 +33,4 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "rake-compiler"
34
34
  spec.add_development_dependency "minitest", "~> 5.0"
35
35
  spec.add_development_dependency "pry"
36
- spec.add_development_dependency "pry-debundle"
37
36
  end
data/Rakefile CHANGED
@@ -1,5 +1,11 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/extensiontask"
3
- task :default => :spec
3
+ require 'rake/testtask'
4
+ task :default => :test
4
5
  Rake::ExtensionTask.new 'ruby_hdr_histogram'
5
6
 
7
+
8
+ Rake::TestTask.new do |t|
9
+ t.libs << "test"
10
+ t.pattern = "test/*_test.rb"
11
+ end
data/lib/HDRHistogram.rb CHANGED
@@ -6,12 +6,12 @@ class HDRHistogram
6
6
  @multiplier = opt[:multiplier] || 1
7
7
  @unit = opt[:unit] || opt[:units]
8
8
  end
9
-
9
+
10
10
  def record(val)
11
11
  raw_record(val * 1/@multiplier)
12
12
  end
13
- def record_corrected(val)
14
- raw_record_corrected(val * 1/@multiplier)
13
+ def record_corrected(val, expected_interval)
14
+ raw_record_corrected(val * 1/@multiplier, expected_interval * 1/@multiplier)
15
15
  end
16
16
  def min
17
17
  raw_min * @multiplier
@@ -1,3 +1,3 @@
1
1
  class HDRHistogram
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HDRHistogram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo P.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-28 00:00:00.000000000 Z
11
+ date: 2017-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: pry-debundle
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  description: HdrHistogram is an algorithm designed for recording histograms of value
98
84
  measurements with configurable precision. Value precision is expressed as the number
99
85
  of significant digits, providing control over value quantization and resolution
@@ -142,9 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
128
  version: '0'
143
129
  requirements: []
144
130
  rubyforge_project:
145
- rubygems_version: 2.5.1
131
+ rubygems_version: 2.5.2
146
132
  signing_key:
147
133
  specification_version: 4
148
134
  summary: Ruby wrapper for the C hdr_histogram library
149
135
  test_files: []
150
- has_rdoc: