Skip to content
Browse files

Release 0.5.7 (remove hanna, hexoid dependencies)

  • Loading branch information...
1 parent 7e7e242 commit 75cbef39e961d599e357cf9179c3d7f7d4aea65b @delano committed Feb 20, 2010
Showing with 39 additions and 20 deletions.
  1. +7 −0 CHANGES.txt
  2. +6 −3 Rakefile
  3. +3 −5 benelux.gemspec
  4. +2 −4 lib/benelux.rb
  5. +21 −0 lib/benelux/{mixins/thread.rb → mixins.rb}
  6. +0 −8 lib/benelux/mixins/symbol.rb
View
7 CHANGES.txt
@@ -1,5 +1,12 @@
BENELUX, CHANGES
+#### 0.5.7 (2010-02-20) ###############################
+
+* CHANGE: Remove hanna dependency
+* CHANGE: Remove hexoid dependency
+* CHANGE: Combine mixins to single file
+
+
#### 0.5.6 (2010-02-10) ###############################
* ADDED: Benelux::Tms#to_f
View
9 Rakefile
@@ -1,13 +1,16 @@
require 'rake/clean'
require 'rake/gempackagetask'
-require 'hanna/rdoctask'
require 'rake/testtask'
-require 'shoulda/tasks'
require 'rake/runtest'
-require 'monkeyspecdoc' # http://jgre.org/2008/09/03/monkeyspecdoc/
require 'fileutils'
include FileUtils
+
+begin
+ require 'hanna/rdoctask'
+rescue LoadError
+ require 'rake/rdoctask'
+end
task :default => :test
View
8 benelux.gemspec
@@ -1,7 +1,7 @@
@spec = Gem::Specification.new do |s|
s.name = "benelux"
s.rubyforge_project = 'benelux'
- s.version = "0.5.6"
+ s.version = "0.5.7"
s.summary = "Benelux: A mad way to time Ruby codes"
s.description = s.summary
s.author = "Delano Mandelbaum"
@@ -13,8 +13,6 @@
s.rdoc_options = ["--line-numbers", "--title", s.summary, "--main", "README.rdoc"]
s.require_paths = %w[lib]
- s.add_dependency 'hexoid'
-
# = MANIFEST =
# git ls-files
s.files = %w(
@@ -25,8 +23,7 @@
benelux.gemspec
lib/benelux.rb
lib/benelux/mark.rb
- lib/benelux/mixins/symbol.rb
- lib/benelux/mixins/thread.rb
+ lib/benelux/mixins.rb
lib/benelux/packer.rb
lib/benelux/range.rb
lib/benelux/stats.rb
@@ -41,6 +38,7 @@
tryouts/20_tracks_tryouts.rb
tryouts/30_reporter_tryouts.rb
tryouts/30_timeline_tryouts.rb
+ tryouts/benelux_bm.rb
tryouts/proofs/alias_performance.rb
tryouts/proofs/array_performance.rb
tryouts/proofs/thread_array.rb
View
6 lib/benelux.rb
@@ -1,11 +1,10 @@
require 'attic'
-require 'hexoid'
require 'thread'
require 'thwait'
require 'selectable'
module Benelux
- VERSION = "0.5.6"
+ VERSION = "0.5.7"
NOTSUPPORTED = [Class, Object, Kernel]
class BeneluxError < RuntimeError; end
@@ -18,10 +17,9 @@ class BadRecursion < BeneluxError; end
require 'benelux/track'
require 'benelux/range'
require 'benelux/stats'
+ require 'benelux/mixins'
require 'benelux/packer'
require 'benelux/timeline'
- require 'benelux/mixins/thread'
- require 'benelux/mixins/symbol'
class << self
attr_reader :packed_methods
View
21 lib/benelux/mixins/thread.rb → lib/benelux/mixins.rb
@@ -1,5 +1,26 @@
+
+class Object
+ def hex_object_id
+ prefix = RUBY_VERSION >= '1.9' ? '0x00000' : '0x'
+ "%s%x" % [prefix, (self.object_id.abs << 1)]
+ end
+ alias hexoid hex_object_id
+end
+
+
+
+#if RUBY_VERSION =~ /1.8/
+ class Symbol
+ def <=>(other)
+ self.to_s <=> other.to_s
+ end
+ end
+#end
+
+
+
class Thread
extend Attic
attic :timeline
View
8 lib/benelux/mixins/symbol.rb
@@ -1,8 +0,0 @@
-
-#if RUBY_VERSION =~ /1.8/
- class Symbol
- def <=>(other)
- self.to_s <=> other.to_s
- end
- end
-#end

0 comments on commit 75cbef3

Please sign in to comment.
Something went wrong with that request. Please try again.