rocksdb-ruby 1.0.0 → 1.0.1

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
- SHA1:
3
- metadata.gz: ff03f629257fdb8ac8848e41458d5d1eb585f815
4
- data.tar.gz: acec6cb4441abdd687337be38eec30be8c74fb49
2
+ SHA256:
3
+ metadata.gz: 3a31d0881ac039ce8fc05c6aa47b34984fef049367e797027dc4de381b618bcc
4
+ data.tar.gz: 713b878614320830014a92f0390ddf42f6a40803cb746f9d8b56bed32a14bdea
5
5
  SHA512:
6
- metadata.gz: 7688c4b6bcbe355a87e23a4a28923ac9d6fac529330be380b3c7fbebec5b9b6517ae311bc52e7cc6dc85eb2f6954c5014e1c530b8e11b1729ea12561c1751a2a
7
- data.tar.gz: fc91395d2ddee8543e1dcd438658ab147c21f9414855ece7649ef12ad87dc552cc5f2d46f3ef25653e701bdf420636712da4efb1131ce8b9ddc97e57d4f9a0c3
6
+ metadata.gz: 3acd74eef6bfa29bb6c972225ec8d5cfa4ab9617e3cf0663c152e0c4b472bbb70bee993cd19b65ec058568857df5d39538d3799996293d6b6055c8a63e9ffd0d
7
+ data.tar.gz: d9ca30a13ae84da30d347951e4951eb98896e38eb61211ed93cf733fd5f301d7500ad4c2167207085a636a4251561fa972e88174549d545e7210315a9f7dc1f1
data/.travis.yml CHANGED
@@ -5,6 +5,8 @@ rvm:
5
5
  - 2.4
6
6
  - 2.5
7
7
  - 2.6
8
+ - 2.7
9
+ - 3.0
8
10
 
9
11
  os:
10
12
  - linux
@@ -1,8 +1,9 @@
1
1
  #include "rocksdb_batch_rb.h"
2
2
 
3
- extern "C" {
4
3
  #include <ruby.h>
5
4
 
5
+ extern "C" {
6
+
6
7
  VALUE batch_alloc(VALUE klass){
7
8
  rocksdb::WriteBatch *batch = ALLOC(rocksdb::WriteBatch);
8
9
  batch = new rocksdb::WriteBatch;
@@ -1,9 +1,9 @@
1
1
  #include "rocksdb/db.h"
2
2
  #include "rocksdb/write_batch.h"
3
+ #include <ruby.h>
3
4
 
4
5
  extern "C" {
5
6
 
6
- #include <ruby.h>
7
7
 
8
8
  typedef VALUE (*METHOD)(...);
9
9
 
@@ -2,9 +2,9 @@
2
2
  #include "rocksdb_db_rb.h"
3
3
  #include "ruby/encoding.h"
4
4
  #include <iostream>
5
+ #include <ruby.h>
5
6
 
6
7
  extern "C" {
7
- #include <ruby.h>
8
8
 
9
9
  VALUE rocksdb_db_init(VALUE self, VALUE v_db_path, VALUE v_readonly, VALUE v_db_options) {
10
10
  rocksdb_pointer* db_pointer;
@@ -1,9 +1,9 @@
1
1
  #include "rocksdb/db.h"
2
2
  #include "rocksdb/write_batch.h"
3
3
  #include "rocksdb/utilities/convenience.h"
4
+ #include <ruby.h>
4
5
 
5
6
  extern "C" {
6
- #include <ruby.h>
7
7
  VALUE rocksdb_db_init(VALUE self, VALUE v_db_path, VALUE v_readonly, VALUE v_db_options);
8
8
  VALUE db_alloc(VALUE klass);
9
9
 
@@ -3,9 +3,9 @@
3
3
  #include "rocksdb_iterator_rb.h"
4
4
  #include "ruby/encoding.h"
5
5
  #include <iostream>
6
+ #include <ruby.h>
6
7
 
7
8
  extern "C" {
8
- #include <ruby.h>
9
9
  #define RB_CLOSE_ITERATOR(klass) (rb_funcall(klass, rb_intern("close"), 0))
10
10
  #define RB_TO_ENUM(klass, method_name) (rb_funcall(klass, rb_intern("to_enum"), 1, ID2SYM(rb_intern(method_name))))
11
11
  #define RB_TO_ENUM_ARGS(klass, method_name, argc, args...) (rb_funcall(klass, rb_intern("to_enum"), argc + 1, ID2SYM(rb_intern(method_name)), args))
@@ -1,9 +1,9 @@
1
1
  #include "rocksdb/db.h"
2
2
  #include "rocksdb/write_batch.h"
3
+ #include <ruby.h>
3
4
 
4
5
  extern "C" {
5
6
 
6
- #include <ruby.h>
7
7
 
8
8
  typedef VALUE (*METHOD)(...);
9
9
  rocksdb_iterator_pointer* get_iterator(VALUE *klass);
@@ -16,8 +16,8 @@
16
16
  + ROCKSDB_MINOR * 100 \
17
17
  + ROCKSDB_PATCH)
18
18
 
19
- extern "C" {
20
19
  #include <ruby.h>
20
+ extern "C" {
21
21
 
22
22
  #define SLICE_TO_RB_STRING(slice) (rb_enc_str_new(slice.data(), slice.size(), rb_utf8_encoding()))
23
23
  #define SLICE_FROM_RB_VALUE(entity) ({ VALUE _string = StringValue((entity)); rocksdb::Slice(RSTRING_PTR(_string), RSTRING_LEN(_string)); })
@@ -1,3 +1 @@
1
- extern "C" {
2
1
  #include <ruby.h>
3
- }
@@ -1,3 +1 @@
1
- extern "C" {
2
1
  #include <ruby.h>
3
- }
@@ -1,5 +1,5 @@
1
1
  module Rocksdb
2
2
  module Ruby
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocksdb-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isamu Arimoto
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-29 00:00:00.000000000 Z
11
+ date: 2021-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
- description:
69
+ description:
70
70
  email:
71
71
  - isamu.a@gmail.com
72
72
  executables: []
@@ -108,7 +108,7 @@ homepage: https://github.com/isamu/rocksdb-ruby
108
108
  licenses:
109
109
  - MIT
110
110
  metadata: {}
111
- post_install_message:
111
+ post_install_message:
112
112
  rdoc_options: []
113
113
  require_paths:
114
114
  - ext
@@ -124,9 +124,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubyforge_project:
128
- rubygems_version: 2.5.1
129
- signing_key:
127
+ rubyforge_project:
128
+ rubygems_version: 2.7.6
129
+ signing_key:
130
130
  specification_version: 4
131
131
  summary: A simple RocksDB library for Ruby
132
132
  test_files: