beefcake 0.1.2 → 0.1.3
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/README.md +2 -3
- data/lib/beefcake/buffer/decode.rb +7 -1
- metadata +3 -3
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)
|
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
|
-
-
|
9
|
-
version: 0.1.
|
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-
|
17
|
+
date: 2011-01-26 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|