boss-protocol 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -1
- data/lib/boss-protocol/version.rb +1 -1
- data/lib/boss-protocol.rb +3 -1
- data/spec/boss_spec.rb +1 -0
- metadata +3 -3
data/README.md
CHANGED
@@ -30,7 +30,7 @@ Supported types:
|
|
30
30
|
* Boolean values (true/false)
|
31
31
|
* UTF-8 encoded texts, any length
|
32
32
|
* Binary data, any length
|
33
|
-
* Time objects (rounded to
|
33
|
+
* Time objects (date and time rounded to 1 second resolution)
|
34
34
|
* Arrays with any number of elements
|
35
35
|
* Hashes with any keys and values and unlimited length
|
36
36
|
* Reference to the object that already was serialized
|
@@ -120,6 +120,13 @@ pipes, tcp sockets, stringIO - everything is ok.
|
|
120
120
|
The protocol could be very effectively used to form higher level protocols over the
|
121
121
|
network as it caches data on the fly and can provide links (if used with
|
122
122
|
|
123
|
+
## Note about caching objects
|
124
|
+
|
125
|
+
When reconstructing object tree, cache is used for strings. As ruby language hash
|
126
|
+
mutable strings, it might cause side effects, as all ecounters of a given string
|
127
|
+
will share same object after reconstruction. For this reason, ruby implementation
|
128
|
+
freezes shared strings.
|
129
|
+
|
123
130
|
## Contributing
|
124
131
|
|
125
132
|
1. Fork it
|
data/lib/boss-protocol.rb
CHANGED
data/spec/boss_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boss-protocol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bzip2-ruby
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 1.8.
|
86
|
+
rubygems_version: 1.8.25
|
87
87
|
signing_key:
|
88
88
|
specification_version: 3
|
89
89
|
summary: Traversable and streamable to protocol supports lists, hashes, caching, compression
|