hitimes 1.0.4-x86-mswin32 → 1.0.5-x86-mswin32

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -1,5 +1,10 @@
1
1
  = Changelog
2
- == Version 1.0.4 2009-08-1
2
+ == Version 1.0.5 2010-07-20
3
+
4
+ * Fix 'circular require considered harmful' warnings in 1.9.x (reported by Roger Pack)
5
+ * Fix 'method redefined' warnings in 1.9.x (reported by Roger Pack)
6
+
7
+ == Version 1.0.4 2009-08-01
3
8
 
4
9
  * Add in support for x86-mingw32 gem
5
10
  * Add version subdirectory for extension on all platforms
@@ -24,6 +24,7 @@ require 'hitimes/version'
24
24
  require "hitimes/#{RUBY_VERSION.sub(/\.\d$/,'')}/hitimes_ext"
25
25
  require 'hitimes/stats'
26
26
  require 'hitimes/mutexed_stats'
27
+
27
28
  require 'hitimes/metric'
28
29
  require 'hitimes/value_metric'
29
30
  require 'hitimes/timed_metric'
@@ -1,3 +1,9 @@
1
+
2
+ #--
3
+ # Copyright (c) 2008, 2009 Jeremy Hinegardner
4
+ # All rights reserved. See LICENSE and/or COPYING for details.
5
+ #++
6
+
1
7
  module Hitimes
2
8
  #
3
9
  # Metric hold the common meta information for all derived metric classes
@@ -1,4 +1,8 @@
1
- require 'hitimes'
1
+ #--
2
+ # Copyright (c) 2008, 2009 Jeremy Hinegardner
3
+ # All rights reserved. See LICENSE and/or COPYING for details.
4
+ #++
5
+
2
6
  require 'thread'
3
7
 
4
8
  module Hitimes
@@ -1,4 +1,8 @@
1
- require 'hitimes'
1
+ #--
2
+ # Copyright (c) 2008, 2009 Jeremy Hinegardner
3
+ # All rights reserved. See LICENSE and/or COPYING for details.
4
+ #++
5
+
2
6
  require 'stringio'
3
7
  module Hitimes
4
8
  class Stats
@@ -3,7 +3,6 @@
3
3
  # All rights reserved. See LICENSE and/or COPYING for details.
4
4
  #++
5
5
 
6
- require 'hitimes'
7
6
  require 'forwardable'
8
7
  module Hitimes
9
8
  #
@@ -171,7 +170,7 @@ module Hitimes
171
170
 
172
171
  # forward appropriate calls directly to the stats object
173
172
  extend Forwardable
174
- def_delegators :@stats, :count, :sum, :max, :mean, :min, :rate, :stddev, :sum, :sumsq
173
+ def_delegators :@stats, :count, :max, :mean, :min, :rate, :stddev, :sum, :sumsq
175
174
  alias :duration :sum
176
175
  end
177
176
  end
@@ -3,8 +3,6 @@
3
3
  # All rights reserved. See LICENSE and/or COPYING for details.
4
4
  #++
5
5
 
6
- require 'hitimes'
7
-
8
6
  module Hitimes
9
7
  #
10
8
  # A TimedValueMetric holds the metrics on how long it takes to do a batch of something.
@@ -4,7 +4,6 @@
4
4
  #++
5
5
 
6
6
  require 'forwardable'
7
- require 'hitimes'
8
7
  module Hitimes
9
8
  #
10
9
  # A ValueMetric holds the data from measuring a single value over a period of
@@ -67,6 +66,6 @@ module Hitimes
67
66
 
68
67
  # forward appropriate calls directly to the stats object
69
68
  extend Forwardable
70
- def_delegators :@stats, :count, :sum, :max, :mean, :min, :stddev, :sum, :sumsq
71
- end
69
+ def_delegators :@stats, :count, :max, :mean, :min, :stddev, :sum, :sumsq
70
+ end
72
71
  end
@@ -16,7 +16,7 @@ module Hitimes
16
16
  MINOR = 0
17
17
 
18
18
  # Build number
19
- BUILD = 4
19
+ BUILD = 5
20
20
 
21
21
  #
22
22
  # :call-seq:
@@ -30,21 +30,20 @@ if ext_config = Configuration.for_if_exist?('extension') then
30
30
  ext_config = Configuration.for("extension")
31
31
  rbconfig = ext_config.cross_rbconfig["rbconfig-#{version}"]
32
32
  raise ArgumentError, "No cross compiler for version #{version}, we have #{ext_config.cross_rbconfig.keys.join(",")}" unless rbconfig
33
- ruby_exe = if version =~ /1\.8/ then
34
- "ruby"
35
- else
36
- "ruby1.9"
37
- end
38
33
  Hitimes::GEM_SPEC.extensions.each do |extension|
39
34
  path = Pathname.new(extension)
40
35
  parts = path.split
41
36
  conf = parts.last
37
+ rvm = %x[ which rvm ].strip
42
38
  Dir.chdir(path.dirname) do |d|
43
39
  if File.exist?( "Makefile" ) then
44
40
  sh "make clean distclean"
45
41
  end
46
42
  cp "#{rbconfig}", "rbconfig.rb"
47
- sh "#{ruby_exe} -I. extconf.rb"
43
+ rubylib = ENV['RUBYLIB']
44
+ ENV['RUBYLIB'] = "."
45
+ sh %[#{rvm} #{version} -S extconf.rb]
46
+ ENV['RUBYLIB'] = rubylib
48
47
  sh "make"
49
48
  end
50
49
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hitimes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 5
10
+ version: 1.0.5
5
11
  platform: x86-mswin32
6
12
  authors:
7
13
  - Jeremy Hinegardner
@@ -9,50 +15,87 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-08-01 00:00:00 -06:00
18
+ date: 2010-07-20 00:00:00 -06:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: rake
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ~>
22
28
  - !ruby/object:Gem::Version
29
+ hash: 61
30
+ segments:
31
+ - 0
32
+ - 8
33
+ - 1
23
34
  version: 0.8.1
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  - !ruby/object:Gem::Dependency
26
38
  name: configuration
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
30
42
  requirements:
31
43
  - - ~>
32
44
  - !ruby/object:Gem::Version
45
+ hash: 21
46
+ segments:
47
+ - 0
48
+ - 0
49
+ - 5
33
50
  version: 0.0.5
34
- version:
51
+ type: :runtime
52
+ version_requirements: *id002
35
53
  - !ruby/object:Gem::Dependency
36
54
  name: json
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
40
58
  requirements:
41
59
  - - ~>
42
60
  - !ruby/object:Gem::Version
61
+ hash: 21
62
+ segments:
63
+ - 1
64
+ - 1
65
+ - 3
43
66
  version: 1.1.3
44
- version:
67
+ type: :development
68
+ version_requirements: *id003
45
69
  - !ruby/object:Gem::Dependency
46
70
  name: rake-compiler
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
50
74
  requirements:
51
75
  - - ~>
52
76
  - !ruby/object:Gem::Version
77
+ hash: 11
78
+ segments:
79
+ - 0
80
+ - 5
81
+ - 0
53
82
  version: 0.5.0
54
- version:
55
- description: "Hitimes is a fast, high resolution timer library for recording performance metrics. It uses the appropriate C method calls for each system to get the highest granularity time increments possible. It currently supports any of the following systems: * any system with the POSIX call <tt>clock_gettime()</tt>, * Mac OS X * Windows Using Hitimes can be faster than using a series of +Time.new+ calls, and it will have a much higher granularity. It is definitely faster than using +Process.times+."
83
+ type: :development
84
+ version_requirements: *id004
85
+ description: |-
86
+ Hitimes is a fast, high resolution timer library for recording
87
+ performance metrics. It uses the appropriate C method calls for each
88
+ system to get the highest granularity time increments possible.
89
+
90
+ It currently supports any of the following systems:
91
+
92
+ * any system with the POSIX call <tt>clock_gettime()</tt>,
93
+ * Mac OS X
94
+ * Windows
95
+
96
+ Using Hitimes can be faster than using a series of +Time.new+ calls, and
97
+ it will have a much higher granularity. It is definitely faster than
98
+ using +Process.times+.
56
99
  email: jeremy@copiousfreetime.org
57
100
  executables: []
58
101
 
@@ -119,6 +162,8 @@ files:
119
162
  - lib/hitimes/1.9/hitimes_ext.so
120
163
  has_rdoc: true
121
164
  homepage: http://copiousfreetime.rubyforge.org/hitimes/
165
+ licenses: []
166
+
122
167
  post_install_message:
123
168
  rdoc_options:
124
169
  - --line-numbers
@@ -128,23 +173,29 @@ require_paths:
128
173
  - lib
129
174
  - ext
130
175
  required_ruby_version: !ruby/object:Gem::Requirement
176
+ none: false
131
177
  requirements:
132
178
  - - ">="
133
179
  - !ruby/object:Gem::Version
180
+ hash: 3
181
+ segments:
182
+ - 0
134
183
  version: "0"
135
- version:
136
184
  required_rubygems_version: !ruby/object:Gem::Requirement
185
+ none: false
137
186
  requirements:
138
187
  - - ">="
139
188
  - !ruby/object:Gem::Version
189
+ hash: 3
190
+ segments:
191
+ - 0
140
192
  version: "0"
141
- version:
142
193
  requirements: []
143
194
 
144
195
  rubyforge_project: copiousfreetime
145
- rubygems_version: 1.3.1
196
+ rubygems_version: 1.3.7
146
197
  signing_key:
147
- specification_version: 2
198
+ specification_version: 3
148
199
  summary: Hitimes is a fast, high resolution timer library for recording performance metrics
149
200
  test_files: []
150
201