hexoid 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGES.txt +5 -1
  2. data/hexoid.gemspec +1 -1
  3. data/lib/hexoid.rb +1 -1
  4. metadata +2 -2
data/CHANGES.txt CHANGED
@@ -1,6 +1,10 @@
1
1
  HEXOID, CHANGES
2
2
 
3
3
 
4
- #### 0.2.0 (2009-09-??) ###############################
4
+ #### 0.2.1 (2009-09-22) ###############################
5
+
6
+ * Use the absolute value of the object id.
7
+
8
+ #### 0.2.0 (2009-09-21) ###############################
5
9
 
6
10
  * Initial public release
data/hexoid.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "hexoid"
3
3
  s.rubyforge_project = 'hexoid'
4
- s.version = "0.2.0"
4
+ s.version = "0.2.1"
5
5
  s.summary = "Hexoid: Encode your object IDs like Ruby does."
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
data/lib/hexoid.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  class Object
4
4
  def hex_object_id
5
5
  prefix = RUBY_VERSION >= '1.9' ? '0x00000' : '0x'
6
- "%s%x" % [prefix, (self.object_id << 1)]
6
+ "%s%x" % [prefix, (self.object_id.abs << 1)]
7
7
  end
8
8
  alias hexoid hex_object_id
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-21 00:00:00 -04:00
12
+ date: 2009-10-08 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15