roma-storage-groonga 0.1.0 → 0.1.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 +4 -4
- data/README.md +28 -19
- data/lib/roma/storage/groonga/version.rb +1 -1
- data/roma-storage-groonga.gemspec +11 -17
- metadata +18 -34
- data/.gitignore +0 -11
- data/.rspec +0 -3
- data/.travis.yml +0 -5
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b625647df59c448da0557925a6d2747da769da46f0d026e295e849a64a1060c
|
|
4
|
+
data.tar.gz: 20dd5fb6440a76eac935087c906986fdad5a649591ea44800e46688edfd48025
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe793fd59ec7c427c70b3e32cc9e1e693b461c95fe2b6921467f9db10b8c199cf0a3b0533d3964f5062250fded39f2f91cf7b10a7387f7b1421ce809a684666b
|
|
7
|
+
data.tar.gz: a0ebc05ef6ab502491f2fc2bb052a02957f51db4308d076bc3a8f1fb73a97ed00fe205c50644abef62a0451d801c606ab501cd8091babe3549a97cc2cec04902
|
data/README.md
CHANGED
|
@@ -1,39 +1,48 @@
|
|
|
1
|
-
#
|
|
1
|
+
# roma-storage-groonga
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
A [Groonga](https://groonga.org/) storage for [ROMA](https://github.com/roma/roma), a distributed key-value store.
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
This gem uses [rroonga](https://github.com/ranguba/rroonga), which needs Groonga 12.0.2 or later. Install Groonga first, for example:
|
|
8
|
+
|
|
9
|
+
$ brew install groonga # macOS
|
|
10
|
+
$ sudo apt-get install libgroonga-dev # Ubuntu, from ppa:groonga/ppa
|
|
11
|
+
|
|
12
|
+
Without Groonga, rroonga builds it from the source, which takes a while. See [the install guide of Groonga](https://groonga.org/docs/install.html) for other systems.
|
|
13
|
+
|
|
14
|
+
Then add this line to the Gemfile of your ROMA server:
|
|
10
15
|
|
|
11
16
|
```ruby
|
|
12
17
|
gem 'roma-storage-groonga'
|
|
13
18
|
```
|
|
14
19
|
|
|
15
|
-
And then
|
|
16
|
-
|
|
17
|
-
$ bundle
|
|
18
|
-
|
|
19
|
-
Or install it yourself as:
|
|
20
|
+
And then run `bundle install`. Or install it yourself:
|
|
20
21
|
|
|
21
22
|
$ gem install roma-storage-groonga
|
|
22
23
|
|
|
23
24
|
## Usage
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
In the config.rb of ROMA, require the storage and set it to `STORAGE_CLASS`:
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
```ruby
|
|
29
|
+
require 'roma/storage/groonga'
|
|
30
|
+
|
|
31
|
+
module Roma
|
|
32
|
+
module Config
|
|
33
|
+
# ...
|
|
34
|
+
STORAGE_CLASS = Roma::Storage::GroongaStorage
|
|
35
|
+
# ...
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
```
|
|
30
39
|
|
|
31
|
-
|
|
40
|
+
Each node keeps its data in `STORAGE_PATH/<node-id>/<hash-name>/`, divided into `STORAGE_DIVNUM` Groonga databases named `0.grn`, `1.grn` and so on. Groonga writes some more files next to each of them.
|
|
32
41
|
|
|
33
|
-
##
|
|
42
|
+
## Development
|
|
34
43
|
|
|
35
|
-
|
|
44
|
+
Run `bundle install`, then `bundle exec rake spec` to run the tests.
|
|
36
45
|
|
|
37
|
-
##
|
|
46
|
+
## License
|
|
38
47
|
|
|
39
|
-
|
|
48
|
+
GPL-3.0. See LICENSE.txt.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
lib = File.expand_path("../lib", __FILE__)
|
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
3
|
require "roma/storage/groonga/version"
|
|
@@ -7,30 +6,25 @@ Gem::Specification.new do |spec|
|
|
|
7
6
|
spec.name = "roma-storage-groonga"
|
|
8
7
|
spec.version = Roma::Storage::Groonga::VERSION
|
|
9
8
|
spec.authors = ["Tatsuya Sato"]
|
|
10
|
-
spec.email = ["
|
|
9
|
+
spec.email = ["satoryu.1981@gmail.com"]
|
|
11
10
|
|
|
12
|
-
spec.summary = %q{Groonga
|
|
13
|
-
spec.description = %q{Groonga
|
|
14
|
-
spec.homepage = "https://roma-
|
|
11
|
+
spec.summary = %q{Groonga storage for ROMA.}
|
|
12
|
+
spec.description = %q{Groonga storage for ROMA. Set Roma::Storage::GroongaStorage to STORAGE_CLASS in config.rb of ROMA.}
|
|
13
|
+
spec.homepage = "https://github.com/roma/roma-storage-groonga"
|
|
14
|
+
spec.license = "GPL-3.0-only"
|
|
15
|
+
spec.required_ruby_version = ">= 3.4"
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if spec.respond_to?(:metadata)
|
|
19
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
20
|
-
else
|
|
21
|
-
raise "RubyGems 2.0 or newer is required to protect against " \
|
|
22
|
-
"public gem pushes."
|
|
23
|
-
end
|
|
17
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
24
19
|
|
|
25
20
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
26
|
-
f.match(%r{^(test|spec|features)
|
|
21
|
+
f.match(%r{^(test|spec|features|bin)/|^\.})
|
|
27
22
|
end
|
|
28
23
|
spec.require_paths = ["lib"]
|
|
29
24
|
|
|
30
|
-
spec.add_dependency 'rroonga', '
|
|
25
|
+
spec.add_dependency 'rroonga', '>= 15.0'
|
|
31
26
|
spec.add_dependency 'roma-storage', '~> 0.1.0'
|
|
32
27
|
|
|
33
|
-
spec.add_development_dependency "
|
|
34
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
|
28
|
+
spec.add_development_dependency "rake"
|
|
35
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
|
36
30
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: roma-storage-groonga
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tatsuya Sato
|
|
@@ -13,16 +13,16 @@ dependencies:
|
|
|
13
13
|
name: rroonga
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
15
15
|
requirements:
|
|
16
|
-
- - "
|
|
16
|
+
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version:
|
|
18
|
+
version: '15.0'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
|
-
- - "
|
|
23
|
+
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version:
|
|
25
|
+
version: '15.0'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: roma-storage
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -37,34 +37,20 @@ dependencies:
|
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: 0.1.0
|
|
40
|
-
- !ruby/object:Gem::Dependency
|
|
41
|
-
name: bundler
|
|
42
|
-
requirement: !ruby/object:Gem::Requirement
|
|
43
|
-
requirements:
|
|
44
|
-
- - "~>"
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '1.16'
|
|
47
|
-
type: :development
|
|
48
|
-
prerelease: false
|
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - "~>"
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: '1.16'
|
|
54
40
|
- !ruby/object:Gem::Dependency
|
|
55
41
|
name: rake
|
|
56
42
|
requirement: !ruby/object:Gem::Requirement
|
|
57
43
|
requirements:
|
|
58
|
-
- - "
|
|
44
|
+
- - ">="
|
|
59
45
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '
|
|
46
|
+
version: '0'
|
|
61
47
|
type: :development
|
|
62
48
|
prerelease: false
|
|
63
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
50
|
requirements:
|
|
65
|
-
- - "
|
|
51
|
+
- - ">="
|
|
66
52
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '
|
|
53
|
+
version: '0'
|
|
68
54
|
- !ruby/object:Gem::Dependency
|
|
69
55
|
name: rspec
|
|
70
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -79,30 +65,28 @@ dependencies:
|
|
|
79
65
|
- - "~>"
|
|
80
66
|
- !ruby/object:Gem::Version
|
|
81
67
|
version: '3.0'
|
|
82
|
-
description: Groonga
|
|
68
|
+
description: Groonga storage for ROMA. Set Roma::Storage::GroongaStorage to STORAGE_CLASS
|
|
69
|
+
in config.rb of ROMA.
|
|
83
70
|
email:
|
|
84
|
-
-
|
|
71
|
+
- satoryu.1981@gmail.com
|
|
85
72
|
executables: []
|
|
86
73
|
extensions: []
|
|
87
74
|
extra_rdoc_files: []
|
|
88
75
|
files:
|
|
89
|
-
- ".gitignore"
|
|
90
|
-
- ".rspec"
|
|
91
|
-
- ".travis.yml"
|
|
92
76
|
- CODE_OF_CONDUCT.md
|
|
93
77
|
- Gemfile
|
|
94
78
|
- LICENSE.txt
|
|
95
79
|
- README.md
|
|
96
80
|
- Rakefile
|
|
97
|
-
- bin/console
|
|
98
|
-
- bin/setup
|
|
99
81
|
- lib/roma/storage/groonga.rb
|
|
100
82
|
- lib/roma/storage/groonga/version.rb
|
|
101
83
|
- roma-storage-groonga.gemspec
|
|
102
|
-
homepage: https://roma-
|
|
103
|
-
licenses:
|
|
84
|
+
homepage: https://github.com/roma/roma-storage-groonga
|
|
85
|
+
licenses:
|
|
86
|
+
- GPL-3.0-only
|
|
104
87
|
metadata:
|
|
105
88
|
allowed_push_host: https://rubygems.org
|
|
89
|
+
source_code_uri: https://github.com/roma/roma-storage-groonga
|
|
106
90
|
rdoc_options: []
|
|
107
91
|
require_paths:
|
|
108
92
|
- lib
|
|
@@ -110,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
110
94
|
requirements:
|
|
111
95
|
- - ">="
|
|
112
96
|
- !ruby/object:Gem::Version
|
|
113
|
-
version: '
|
|
97
|
+
version: '3.4'
|
|
114
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
99
|
requirements:
|
|
116
100
|
- - ">="
|
|
@@ -119,5 +103,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
119
103
|
requirements: []
|
|
120
104
|
rubygems_version: 4.0.10
|
|
121
105
|
specification_version: 4
|
|
122
|
-
summary: Groonga
|
|
106
|
+
summary: Groonga storage for ROMA.
|
|
123
107
|
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/bin/console
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "roma/storage/groonga"
|
|
5
|
-
|
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
-
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require "pry"
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
|
-
require "irb"
|
|
14
|
-
IRB.start(__FILE__)
|