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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e95e0a1e4251b2b846f281c9310a821dee10fb4e848ee37d7901e60a83c1b1cf
4
- data.tar.gz: 1fae9652ed4cded8228936b02b9af4566830e86459a9ab28bee78a069e6d716b
3
+ metadata.gz: 8b625647df59c448da0557925a6d2747da769da46f0d026e295e849a64a1060c
4
+ data.tar.gz: 20dd5fb6440a76eac935087c906986fdad5a649591ea44800e46688edfd48025
5
5
  SHA512:
6
- metadata.gz: '092c5632f0cab3dd62f72b467204df1832d39f77bcbc48f4e6328db7f8dd073edbc84f470d0f0f75f1cec942f3bd560f1b2ef7ac067700dfff142ec623ee5489'
7
- data.tar.gz: 32793c1cdb6087a5e37e6c500a122fc24da5fd304a5105daaa61ae2b004d49d89fc1a290ebd09610be3fbb2246e7eed40a2b3595252f7c669a7ac2a4c0d5d2f2
6
+ metadata.gz: fe793fd59ec7c427c70b3e32cc9e1e693b461c95fe2b6921467f9db10b8c199cf0a3b0533d3964f5062250fded39f2f91cf7b10a7387f7b1421ce809a684666b
7
+ data.tar.gz: a0ebc05ef6ab502491f2fc2bb052a02957f51db4308d076bc3a8f1fb73a97ed00fe205c50644abef62a0451d801c606ab501cd8091babe3549a97cc2cec04902
data/README.md CHANGED
@@ -1,39 +1,48 @@
1
- # Roma::Storage::Groonga
1
+ # roma-storage-groonga
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/roma/storage/groonga`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- Add this line to your application's Gemfile:
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 execute:
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
- TODO: Write usage instructions here
26
+ In the config.rb of ROMA, require the storage and set it to `STORAGE_CLASS`:
26
27
 
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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
- ## Contributing
42
+ ## Development
34
43
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/satoryu/roma-storage-groonga. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
44
+ Run `bundle install`, then `bundle exec rake spec` to run the tests.
36
45
 
37
- ## Code of Conduct
46
+ ## License
38
47
 
39
- Everyone interacting in the Roma::Storage::Groonga project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/satoryu/roma-storage-groonga/blob/master/CODE_OF_CONDUCT.md).
48
+ GPL-3.0. See LICENSE.txt.
@@ -1,7 +1,7 @@
1
1
  module Roma
2
2
  module Storage
3
3
  module Groonga
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -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 = ["tatsuya.b.sato@rakuten.com"]
9
+ spec.email = ["satoryu.1981@gmail.com"]
11
10
 
12
- spec.summary = %q{Groonga Storage for Roma Server.}
13
- spec.description = %q{Groonga Storage for Roma Server.}
14
- spec.homepage = "https://roma-kvs.org"
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
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
- # to allow pushing to a single host or delete this section to allow pushing to any host.
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', '~> 6.0.7'
25
+ spec.add_dependency 'rroonga', '>= 15.0'
31
26
  spec.add_dependency 'roma-storage', '~> 0.1.0'
32
27
 
33
- spec.add_development_dependency "bundler", "~> 1.16"
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.0
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: 6.0.7
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: 6.0.7
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: '10.0'
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: '10.0'
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 Storage for Roma Server.
68
+ description: Groonga storage for ROMA. Set Roma::Storage::GroongaStorage to STORAGE_CLASS
69
+ in config.rb of ROMA.
83
70
  email:
84
- - tatsuya.b.sato@rakuten.com
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-kvs.org
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: '0'
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 Storage for Roma Server.
106
+ summary: Groonga storage for ROMA.
123
107
  test_files: []
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.5.1
5
- before_install: gem install bundler -v 1.16.1
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__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here