beefcake 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed744b9caa6b57789377796034a56352d1e00021
4
- data.tar.gz: fecc18649eff37cd0d8fb136d96c8c7293269d5c
3
+ metadata.gz: 5b6d92ae52fa9c1080805ac529657758a53bba37
4
+ data.tar.gz: 19f0022337dc541b8ae5d171904491885a493fec
5
5
  SHA512:
6
- metadata.gz: 50f43b7f70831ee864940dde83a2cc995d809cfe5a7e3b71dc1cf86aa98ccb000655765a47c797aa5c4e7c2a3f5d433734a6b99b89c2f924567672c4df341dff
7
- data.tar.gz: 34fafc2e4c3d257e4a34854384e31b3260a5232caf50fc9b329c535003c90112188368d376536ecbaceaa73b7f25985b1004089ccb8624b12fad31fc60584071
6
+ metadata.gz: 96c168a8e73372b3892e65afdc324a372e0e25b04e3abee4de786cdf83e87dec2bd1e87096252a0140c5c20f05c28bc6b1ba2e0be158d29885907ba6ce408ba5
7
+ data.tar.gz: 99ba58bf9be1f0e2751f400e610981cd32f688ac9ed500ee52d5aed104669ea5c458d92e40000df14cef5d8dfb0bad3255803f6d184f7663b46c336a0728538e
@@ -1,5 +1,11 @@
1
1
  # Beefcake Release Notes
2
2
 
3
+ # 1.2.0 - 2016-06-21
4
+
5
+ Release 1.2.0 includes one bug fix.
6
+
7
+ * Clone strings before `force_encoding`. [#70](https://github.com/protobuf-ruby/beefcake/pull/70)
8
+
3
9
  # 1.1.0 - 2015-05-26
4
10
 
5
11
  Release 1.1.0 includes improvements and bug fixes.
@@ -6,11 +6,11 @@ Gem::Specification.new do |s|
6
6
  s.name = "beefcake"
7
7
  s.version = Beefcake::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.authors = ["Blake Mizerany", "Matt Proud", "Bryce Kerley"]
10
- s.email = ["blake.mizerany@gmail.com", "matt.proud@gmail.com", "bkerley@brycekerley.net"]
9
+ s.authors = ["Blake Mizerany", "Matt Proud", "Bryce Kerley", "Joshua Warchol", "Alex Dean"]
10
+ s.email = ["blake.mizerany@gmail.com", "matt.proud@gmail.com", "bkerley@brycekerley.net", "joshua@unwin.org", "github@mostlyalex.com"]
11
11
  s.homepage = "https://github.com/protobuf-ruby/beefcake"
12
- s.summary = %q{A sane protobuf library for Ruby}
13
- s.description = %q{A sane protobuf library for Ruby}
12
+ s.summary = %q{A pure-Ruby protobuf library}
13
+ s.description = %q{A pure-Ruby Protocol Buffers library}
14
14
  s.license = 'MIT'
15
15
 
16
16
  s.files = `git ls-files`.split("\n")
@@ -106,7 +106,7 @@ module Beefcake
106
106
 
107
107
  def append_string(s)
108
108
  actual_string = thaw_string s
109
- encoded = actual_string.force_encoding 'binary'
109
+ encoded = actual_string.dup.force_encoding 'binary'
110
110
  append_uint64(encoded.length)
111
111
  self << encoded
112
112
  end
@@ -1,3 +1,3 @@
1
1
  module Beefcake
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -24,6 +24,14 @@ class BufferEncodeTest < Minitest::Test
24
24
  assert_equal "\007testing", @buf.to_s
25
25
  end
26
26
 
27
+ def test_append_string_does_not_change_encoding
28
+ subject = "testing".force_encoding('UTF-8')
29
+ assert_equal 'UTF-8', subject.encoding.name
30
+
31
+ @buf.append_string(subject)
32
+ assert_equal 'UTF-8', subject.encoding.name
33
+ end
34
+
27
35
  def test_append_fixed32
28
36
  @buf.append_fixed32(1)
29
37
  assert_equal "\001\0\0\0", @buf.to_s
metadata CHANGED
@@ -1,16 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beefcake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Mizerany
8
8
  - Matt Proud
9
9
  - Bryce Kerley
10
+ - Joshua Warchol
11
+ - Alex Dean
10
12
  autorequire:
11
13
  bindir: bin
12
14
  cert_chain: []
13
- date: 2015-05-27 00:00:00.000000000 Z
15
+ date: 2016-06-21 00:00:00.000000000 Z
14
16
  dependencies:
15
17
  - !ruby/object:Gem::Dependency
16
18
  name: rake
@@ -40,11 +42,13 @@ dependencies:
40
42
  - - "~>"
41
43
  - !ruby/object:Gem::Version
42
44
  version: '5.3'
43
- description: A sane protobuf library for Ruby
45
+ description: A pure-Ruby Protocol Buffers library
44
46
  email:
45
47
  - blake.mizerany@gmail.com
46
48
  - matt.proud@gmail.com
47
49
  - bkerley@brycekerley.net
50
+ - joshua@unwin.org
51
+ - github@mostlyalex.com
48
52
  executables:
49
53
  - protoc-gen-beefcake
50
54
  extensions: []
@@ -94,10 +98,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
98
  version: '0'
95
99
  requirements: []
96
100
  rubyforge_project:
97
- rubygems_version: 2.4.6
101
+ rubygems_version: 2.4.5.1
98
102
  signing_key:
99
103
  specification_version: 4
100
- summary: A sane protobuf library for Ruby
104
+ summary: A pure-Ruby protobuf library
101
105
  test_files:
102
106
  - test/benchmark_test.rb
103
107
  - test/buffer_decode_test.rb
@@ -105,4 +109,3 @@ test_files:
105
109
  - test/buffer_test.rb
106
110
  - test/generator_test.rb
107
111
  - test/message_test.rb
108
- has_rdoc: