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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/cdb/writer.rb +3 -1
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4372a50ec1e12e716a9ee612c39f2be134370007
4
- data.tar.gz: 4b25b61c43d4e03138abc2f3d70405f7b5da28b1
2
+ SHA256:
3
+ metadata.gz: 344554d5f62834689e3485748bb5c1679a6d8ffbd4421b2cd6237e38e864776f
4
+ data.tar.gz: 6671f0d09796d3e974b2e404f7037df0f2fb53df2b6413ab980625b78272ae0a
5
5
  SHA512:
6
- metadata.gz: 25cbcccb4c86db6d8e87323a351f0250b5fe6a5b0af201944e11c7fa7c7aef5be66df91020310931b9236836ff1b17ab91215cfc6dca0d739931e89192ff920c
7
- data.tar.gz: db1d1b0817fd1e13e90499142fa82e6f42cdf3bf962d385efac800f4f9dec401122c292cb35d0b96896d000437d2ccc05ca2b7d1e68cd6e82bb20d47da84b515
6
+ metadata.gz: 6c3eccbbb0a0787c3ba8faf2ea99d05a941dd2bcf340dd35f2b68d28f9576e403d9f63f9abad5ce6d424c000b096d76528b4d2075932b8f7983b353bfa47f3f0
7
+ data.tar.gz: 4b3fd508696202d3364693d78e05b2ac3d2ee0c9e8d20ff6136d712db04b0a82f5b83a2068e3be4040b8ba646860b61032e1bed86f72446e35303d566148a0cd
@@ -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
- Writer.new(file)
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.3
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: 2018-04-14 00:00:00.000000000 Z
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
- rubyforge_project:
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