droonga-message-pack-packer 1.0.1 → 1.0.2
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 +4 -4
- data/doc/text/news.md +8 -0
- data/lib/droonga/message-pack-packer.rb +4 -0
- data/lib/droonga/message-pack-packer/version.rb +1 -1
- data/test/test-packer.rb +19 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aca651e3a98e1bb4a7c52bc7beeeb1f1b222db11
|
4
|
+
data.tar.gz: c5290c2c7fbec492109fdebdef2d654f00ef343d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cefca8044151a6079a265bd570f6e434d3910938f9434a1b16bb8be610c074ff305ba3ba955f844d812577bd399da05c46323f048245076b19b9df09033d8f2
|
7
|
+
data.tar.gz: 11b0ed9fdd956b39f196c0695fc6eddebd6cd4cc467a22d10d8e71292401b43811943dafd907527a66c7421ddf6987f0fd7d2d44f8d0eae66ddc91cd809b6b61
|
data/doc/text/news.md
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.0.2: 2014-09-07
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Added `Droonga::MessagePackPacker#clear` to reuse packer instance.
|
8
|
+
|
3
9
|
## 1.0.1: 2014-05-29
|
4
10
|
|
11
|
+
### Improvements
|
12
|
+
|
5
13
|
* Support packing of `Groonga::WGS84GeoPoint` and `Groonga::TokyoGeoPoint` values.
|
6
14
|
|
7
15
|
## 1.0.0: 2014-04-10
|
data/test/test-packer.rb
CHANGED
@@ -96,4 +96,23 @@ class PackerTest < Test::Unit::TestCase
|
|
96
96
|
def unpack(msgpack)
|
97
97
|
MessagePack.unpack(msgpack)
|
98
98
|
end
|
99
|
+
|
100
|
+
class ClearTest < self
|
101
|
+
def setup
|
102
|
+
@packer = Droonga::MessagePackPacker.new
|
103
|
+
end
|
104
|
+
|
105
|
+
def test_empty
|
106
|
+
assert_equal("", @packer.to_s)
|
107
|
+
@packer.clear
|
108
|
+
assert_equal("", @packer.to_s)
|
109
|
+
end
|
110
|
+
|
111
|
+
def test_have_content
|
112
|
+
@packer.pack("string")
|
113
|
+
assert_equal("string", unpack(@packer.to_s))
|
114
|
+
@packer.clear
|
115
|
+
assert_equal("", @packer.to_s)
|
116
|
+
end
|
117
|
+
end
|
99
118
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: droonga-message-pack-packer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Droonga Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|