protocol-zmtp 0.10.2 → 0.10.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a99947180a584a86331021fac44327f3bde68cc44c50fe6264fdb7e6018cf3af
4
- data.tar.gz: 00c1b152a3763603452a42b0af92455ab02cb864d55b4cd331d0dba26396f65b
3
+ metadata.gz: ad013d03184eae1f5298d9ebbd5bc9a1fd2657ac7c45002a298547b36ad7f63d
4
+ data.tar.gz: 137204024322094d2e76ef7103444e27143c18176b8a19b06c7e978c0b1fccd1
5
5
  SHA512:
6
- metadata.gz: 6e6997a555bc1ed27bd68f51935cfc0b68bf4b7b3f5055a47b2de44f63561116b309be5d933df1ffc9e8a62d72deac7a3ed918b9b323fcb41584934a8b76a684
7
- data.tar.gz: 5a495e661e2e4c829a6e33d5cb3d98a0976c4606efb676f17201a7184a82753405816d7f66057154b95a2af78c3385d960e1d0a319674945454eb2218f8c81fd
6
+ metadata.gz: 8ddbde5122489f94110878c0854167627a39207aa3c428aafdbec536dbcbcd39e0c9522ab23a97dc464766c0a42f7b8d6cf4689322486355880b53aa1def6385
7
+ data.tar.gz: 6f069bf0af5fdff20496f376ed792bd2e3059cb64c1374674eaf7fbbbcaf2226b2f8cf69f9be9b49d994b7ab0a2e0fca26373248572b65db36653bba40846395
@@ -155,7 +155,7 @@ module Protocol
155
155
  def encrypt(body, more: false, command: false)
156
156
  flags = 0
157
157
  flags |= 0x01 if more
158
- flags |= 0x04 if command
158
+ flags |= 0x02 if command
159
159
 
160
160
  plaintext = String.new(encoding: Encoding::BINARY, capacity: 1 + body.bytesize)
161
161
  plaintext << flags << body
@@ -212,7 +212,7 @@ module Protocol
212
212
 
213
213
  flags = plaintext.getbyte(0)
214
214
  body = plaintext.byteslice(1..) || "".b
215
- Codec::Frame.new(body, more: (flags & 0x01) != 0, command: (flags & 0x04) != 0)
215
+ Codec::Frame.new(body, more: (flags & 0x01) != 0, command: (flags & 0x02) != 0)
216
216
  end
217
217
 
218
218
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Protocol
4
4
  module ZMTP
5
- VERSION = "0.10.2"
5
+ VERSION = "0.10.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-zmtp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Wenger