beefcake 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -105,12 +105,11 @@ Source:
105
105
 
106
106
  Currently Beefcake is tested and working on:
107
107
 
108
+ * Ruby 1.8.6
108
109
  * Ruby 1.8.7
109
110
  * Ruby 1.9.2
110
111
  * JRuby 1.5.6
111
-
112
- There is a bug in Rubinius preventing proper ZigZag encoding.
113
- The team is aware and I'm sure they're working on a fix.
112
+ * Rubinius edge
114
113
 
115
114
  ## Future
116
115
 
@@ -43,7 +43,13 @@ module Beefcake
43
43
  if shift >= 64
44
44
  raise BufferOverflowError, "varint"
45
45
  end
46
- b = buf.slice!(0).ord
46
+ b = buf.slice!(0)
47
+
48
+ ## 1.8.6 to 1.9 Compat
49
+ if b.respond_to?(:ord)
50
+ b = b.ord
51
+ end
52
+
47
53
  n |= ((b & 0x7F) << shift)
48
54
  shift += 7
49
55
  if (b & 0x80) == 0
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Blake Mizerany
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-25 00:00:00 -08:00
17
+ date: 2011-01-26 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency