beefcake 1.0.0.pre2 → 1.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b7cab784e70b3c3800d45d9d109687848a2d429
4
- data.tar.gz: e00c7156ab112921ec2ad56e412a4121e9106f52
3
+ metadata.gz: 4315b71a6cc3b6e07b3f92817359b4892c63019b
4
+ data.tar.gz: 01fcc7f8732015828e2add50835ab4e0b9c62c8a
5
5
  SHA512:
6
- metadata.gz: 3c4c02406d0afc4bf7cd3788c7387bae133264167371ff530eee11d4b9565ef1595824247a9556e4409354cbc1e741829e99e216bc175804afc3285498f60447
7
- data.tar.gz: 3219554a0b7023643d795ebd5cd21cb3c89da8669b7d5a5d1eb1920a4ba8904c1291be1ba120be01852679f8ebcfa9b1253e10350d430305aa6827f1f30335e2
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.8.6
152
- * Ruby 1.8.7
153
- * Ruby 1.9.2
151
+ * Ruby 1.9.3
154
152
  * Ruby 2.0.0
155
- * JRuby 1.5.6
156
- * Rubinius edge
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
 
@@ -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 read_string
15
+ def read_bytes
16
16
  read(read_uint64)
17
17
  end
18
- alias :read_bytes :read_string
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)
@@ -1,3 +1,3 @@
1
1
  module Beefcake
2
- VERSION = "1.0.0.pre2"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -19,7 +19,9 @@ class BufferDecodeTest < Minitest::Test
19
19
 
20
20
  def test_read_string
21
21
  @buf.append_string("testing")
22
- assert_equal "testing", @buf.read_string
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
@@ -10,11 +10,9 @@ class GeneratorTest < Minitest::Test
10
10
  @req = CodeGeneratorRequest.decode(mock_request)
11
11
  end
12
12
 
13
- if "".respond_to?(:encoding)
14
- def test_request_has_filenames_as_binary
15
- @req.proto_file.each do |file|
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.pre2
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-06-16 00:00:00.000000000 Z
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: 1.3.1
94
+ version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.2.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