cdb-ruby 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/cdb/writer.rb +3 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 344554d5f62834689e3485748bb5c1679a6d8ffbd4421b2cd6237e38e864776f
|
4
|
+
data.tar.gz: 6671f0d09796d3e974b2e404f7037df0f2fb53df2b6413ab980625b78272ae0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c3eccbbb0a0787c3ba8faf2ea99d05a941dd2bcf340dd35f2b68d28f9576e403d9f63f9abad5ce6d424c000b096d76528b4d2075932b8f7983b353bfa47f3f0
|
7
|
+
data.tar.gz: 4b3fd508696202d3364693d78e05b2ac3d2ee0c9e8d20ff6136d712db04b0a82f5b83a2068e3be4040b8ba646860b61032e1bed86f72446e35303d566148a0cd
|
data/lib/cdb/writer.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
module Cdb
|
2
2
|
# Provides write-only access to a cdb.
|
3
3
|
class Writer
|
4
|
+
private_class_method :new
|
5
|
+
|
4
6
|
# Initializes an empty cdb for writing to the given file-like object.
|
5
7
|
def self.create(file)
|
6
8
|
file.truncate(0)
|
7
9
|
file.write(empty_header)
|
8
|
-
|
10
|
+
new(file)
|
9
11
|
end
|
10
12
|
|
11
13
|
# Writes a key/value pair to the cdb.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cdb-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olly Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: olly.smith@gmail.com
|
@@ -39,8 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
requirements: []
|
42
|
-
|
43
|
-
rubygems_version: 2.6.14
|
42
|
+
rubygems_version: 3.0.3
|
44
43
|
signing_key:
|
45
44
|
specification_version: 4
|
46
45
|
summary: A lightweight, pure-ruby reader/writer for DJ Bernstein's cdb format
|