beefcake 1.0.0.pre2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/RELEASE_NOTES.md +12 -0
- data/lib/beefcake/buffer/decode.rb +5 -2
- data/lib/beefcake/version.rb +1 -1
- data/test/buffer_decode_test.rb +3 -1
- data/test/generator_test.rb +3 -5
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4315b71a6cc3b6e07b3f92817359b4892c63019b
|
4
|
+
data.tar.gz: 01fcc7f8732015828e2add50835ab4e0b9c62c8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b24cd6f575087cdf58e640b8b9efa5c48b0b6c82472721a00a370287c85fb740d687c8e45066923b3611cbcfb5197bbc51e4051fd1d3e8c3177c9f58f2b592b3
|
7
|
+
data.tar.gz: e77014958359aac39ddaaf9483bb2d3d1f25ef7c7ababb023cd5a6a4239f75d9628a67f75e5fde1135e760f2b22a792c023a01aafb96905b1b8ef0835338a525
|
data/README.md
CHANGED
@@ -148,12 +148,12 @@ tests succeed.
|
|
148
148
|
|
149
149
|
Currently Beefcake is tested and working on:
|
150
150
|
|
151
|
-
* Ruby 1.
|
152
|
-
* Ruby 1.8.7
|
153
|
-
* Ruby 1.9.2
|
151
|
+
* Ruby 1.9.3
|
154
152
|
* Ruby 2.0.0
|
155
|
-
*
|
156
|
-
*
|
153
|
+
* Ruby 2.1.0
|
154
|
+
* Ruby 2.1.1
|
155
|
+
* Ruby 2.1.2
|
156
|
+
* JRuby in 1.9 mode
|
157
157
|
|
158
158
|
## Thank You
|
159
159
|
|
data/RELEASE_NOTES.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Beefcake Release Notes
|
2
2
|
|
3
|
+
# 0.1.0 - 2014-09-05
|
4
|
+
|
5
|
+
Release 1.0.0 includes changes and improvements.
|
6
|
+
|
7
|
+
* Version numbering now properly semantic.
|
8
|
+
* Ruby 1.8 is no longer supported.
|
9
|
+
* Field number re-use raises a `DuplicateFieldNumber` error.
|
10
|
+
* Checking to see if a type is encodable is much faster.
|
11
|
+
* Fields named `fields` are now supported.
|
12
|
+
* String read and decoding are benchmarked during testing.
|
13
|
+
* `string` fields now decode with a `UTF-8` encoding.
|
14
|
+
|
3
15
|
# 0.5.0 - 2013-12-20
|
4
16
|
|
5
17
|
Release 0.5.0 corrects a few behaviors.
|
@@ -12,10 +12,13 @@ module Beefcake
|
|
12
12
|
[fn, wire]
|
13
13
|
end
|
14
14
|
|
15
|
-
def
|
15
|
+
def read_bytes
|
16
16
|
read(read_uint64)
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
|
+
def read_string
|
20
|
+
read_bytes.force_encoding Encoding.find('utf-8')
|
21
|
+
end
|
19
22
|
|
20
23
|
def read_fixed32
|
21
24
|
bytes = read(4)
|
data/lib/beefcake/version.rb
CHANGED
data/test/buffer_decode_test.rb
CHANGED
@@ -19,7 +19,9 @@ class BufferDecodeTest < Minitest::Test
|
|
19
19
|
|
20
20
|
def test_read_string
|
21
21
|
@buf.append_string("testing")
|
22
|
-
|
22
|
+
decoded = @buf.read_string
|
23
|
+
assert_equal "testing", decoded
|
24
|
+
assert_equal Encoding.find('utf-8'), decoded.encoding
|
23
25
|
end
|
24
26
|
|
25
27
|
def test_read_fixed32
|
data/test/generator_test.rb
CHANGED
@@ -10,11 +10,9 @@ class GeneratorTest < Minitest::Test
|
|
10
10
|
@req = CodeGeneratorRequest.decode(mock_request)
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
assert_equal Encoding.find("ASCII-8BIT"), file.name.encoding
|
17
|
-
end
|
13
|
+
def test_request_has_filenames_as_string
|
14
|
+
@req.proto_file.each do |file|
|
15
|
+
assert_equal Encoding.find("UTF-8"), file.name.encoding
|
18
16
|
end
|
19
17
|
end
|
20
18
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beefcake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Mizerany
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-09-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -89,12 +89,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: 1.9.3
|
90
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- - "
|
92
|
+
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
94
|
+
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
97
|
+
rubygems_version: 2.3.0
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: A sane protobuf library for Ruby
|