hitimes 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HISTORY +5 -0
- data/ext/hitimes/extconf.rb +2 -6
- data/gemspec.rb +8 -5
- data/lib/hitimes.rb +3 -6
- data/lib/hitimes/version.rb +1 -1
- data/spec/interval_spec.rb +1 -1
- data/spec/mutex_stats_spec.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- data/tasks/announce.rake +9 -6
- data/tasks/distribution.rake +7 -4
- data/tasks/extension.rake +13 -3
- metadata +2 -2
data/HISTORY
CHANGED
data/ext/hitimes/extconf.rb
CHANGED
@@ -13,9 +13,5 @@ else
|
|
13
13
|
end
|
14
14
|
|
15
15
|
# put in a different location if on windows so we can have fat binaries
|
16
|
-
|
17
|
-
|
18
|
-
v = RUBY_VERSION.gsub(/\.\d$/,'')
|
19
|
-
parent_dir = File.join( parent_dir, v )
|
20
|
-
end
|
21
|
-
create_makefile("#{parent_dir}/hitimes_ext")
|
16
|
+
subdir = RUBY_VERSION.gsub(/\.\d$/,'')
|
17
|
+
create_makefile("hitimes/#{subdir}/hitimes_ext")
|
data/gemspec.rb
CHANGED
@@ -49,9 +49,12 @@ Hitimes::GEM_SPEC = Gem::Specification.new do |spec|
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
Hitimes::
|
53
|
-
Hitimes::
|
54
|
-
Hitimes::
|
55
|
-
#Hitimes::GEM_SPEC_WIN.files +=
|
52
|
+
Hitimes::GEM_SPEC_MSWIN32 = Hitimes::GEM_SPEC.clone
|
53
|
+
Hitimes::GEM_SPEC_MSWIN32.platform = ::Gem::Platform.new( "i386-mswin32" )
|
54
|
+
Hitimes::GEM_SPEC_MSWIN32.extensions = []
|
56
55
|
|
57
|
-
Hitimes::
|
56
|
+
Hitimes::GEM_SPEC_MINGW32= Hitimes::GEM_SPEC.clone
|
57
|
+
Hitimes::GEM_SPEC_MINGW32.platform = ::Gem::Platform.new( "i386-mingw32" )
|
58
|
+
Hitimes::GEM_SPEC_MINGW32.extensions = []
|
59
|
+
|
60
|
+
Hitimes::SPECS = [ Hitimes::GEM_SPEC, Hitimes::GEM_SPEC_MSWIN32, Hitimes::GEM_SPEC_MINGW32 ]
|
data/lib/hitimes.rb
CHANGED
@@ -19,12 +19,9 @@ end
|
|
19
19
|
require 'hitimes/paths'
|
20
20
|
require 'hitimes/version'
|
21
21
|
|
22
|
-
#
|
23
|
-
|
24
|
-
|
25
|
-
else
|
26
|
-
require 'hitimes/hitimes_ext'
|
27
|
-
end
|
22
|
+
# use a version subdirectory for extensions, initially to support windows, but
|
23
|
+
# why make a special case. It doesn't hurt anyone to have an extra subdir.
|
24
|
+
require "hitimes/#{RUBY_VERSION.sub(/\.\d$/,'')}/hitimes_ext"
|
28
25
|
require 'hitimes/stats'
|
29
26
|
require 'hitimes/mutexed_stats'
|
30
27
|
require 'hitimes/metric'
|
data/lib/hitimes/version.rb
CHANGED
data/spec/interval_spec.rb
CHANGED
data/spec/mutex_stats_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/tasks/announce.rake
CHANGED
@@ -17,16 +17,19 @@ namespace :announce do
|
|
17
17
|
mail.puts
|
18
18
|
mail.puts info[:title]
|
19
19
|
mail.puts
|
20
|
-
mail.puts "
|
20
|
+
mail.puts "{{ Release notes for Version #{Hitimes::VERSION} }}"
|
21
21
|
mail.puts
|
22
|
-
mail.puts info[:
|
23
|
-
mail.puts
|
24
|
-
mail.puts info[:
|
22
|
+
mail.puts info[:release_notes]
|
23
|
+
mail.puts
|
24
|
+
mail.puts " #{info[:urls]}"
|
25
25
|
mail.puts
|
26
|
-
mail.puts "
|
26
|
+
mail.puts "=== Installation"
|
27
|
+
mail.puts
|
28
|
+
mail.puts " gem install #{Hitimes::GEM_SPEC.name}"
|
27
29
|
mail.puts
|
28
|
-
mail.puts
|
30
|
+
mail.puts "=== Description"
|
29
31
|
mail.puts
|
32
|
+
mail.puts info[:description]
|
30
33
|
end
|
31
34
|
puts "Created the following as email.txt:"
|
32
35
|
puts "-" * 72
|
data/tasks/distribution.rake
CHANGED
@@ -49,10 +49,13 @@ if pkg_config = Configuration.for_if_exist?("packaging") then
|
|
49
49
|
cp "ext/hitimes/hitimes_ext.so", "lib/hitimes/#{s}/", :verbose => true
|
50
50
|
end
|
51
51
|
|
52
|
-
Hitimes::
|
53
|
-
|
54
|
-
|
55
|
-
|
52
|
+
Hitimes::SPECS.each do |spec|
|
53
|
+
next if spec.platform == "ruby"
|
54
|
+
spec.files += FileList["lib/hitimes/{1.8,1.9}/**.{dll,so}"]
|
55
|
+
Gem::Builder.new( spec ).build
|
56
|
+
mkdir "pkg" unless File.directory?( 'pkg' )
|
57
|
+
mv Dir["*.gem"].first, "pkg"
|
58
|
+
end
|
56
59
|
end
|
57
60
|
|
58
61
|
task :clobber do
|
data/tasks/extension.rake
CHANGED
@@ -9,13 +9,19 @@ if ext_config = Configuration.for_if_exist?('extension') then
|
|
9
9
|
namespace :ext do
|
10
10
|
desc "Build the extension(s)"
|
11
11
|
task :build => :clean do
|
12
|
-
|
13
|
-
path
|
12
|
+
ext_config.configs.each do |extension|
|
13
|
+
path = Pathname.new(extension)
|
14
14
|
parts = path.split
|
15
|
-
conf
|
15
|
+
conf = parts.last
|
16
16
|
Dir.chdir(path.dirname) do |d|
|
17
17
|
ruby conf.to_s
|
18
18
|
sh "make"
|
19
|
+
|
20
|
+
# install into requireable location so specs will run
|
21
|
+
subdir = "hitimes/#{RUBY_VERSION.sub(/\.\d$/,'')}"
|
22
|
+
dest_dir = Hitimes::Paths.lib_path( subdir )
|
23
|
+
mkdir_p dest_dir, :verbose => true
|
24
|
+
cp "hitimes_ext.#{Config::CONFIG['DLEXT']}", dest_dir, :verbose => true
|
19
25
|
end
|
20
26
|
end
|
21
27
|
end
|
@@ -34,6 +40,9 @@ if ext_config = Configuration.for_if_exist?('extension') then
|
|
34
40
|
parts = path.split
|
35
41
|
conf = parts.last
|
36
42
|
Dir.chdir(path.dirname) do |d|
|
43
|
+
if File.exist?( "Makefile" ) then
|
44
|
+
sh "make clean distclean"
|
45
|
+
end
|
37
46
|
cp "#{rbconfig}", "rbconfig.rb"
|
38
47
|
sh "#{ruby_exe} -I. extconf.rb"
|
39
48
|
sh "make"
|
@@ -61,6 +70,7 @@ if ext_config = Configuration.for_if_exist?('extension') then
|
|
61
70
|
if File.exist?( "Makefile" ) then
|
62
71
|
sh "make clean"
|
63
72
|
end
|
73
|
+
rm_f "rbconfig.rb"
|
64
74
|
end
|
65
75
|
end
|
66
76
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hitimes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Hinegardner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-01 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|