activegroonga 4.0.0 → 4.2.0
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 +7 -0
- data/README.textile +11 -11
- data/Rakefile +2 -1
- data/activegroonga.gemspec +0 -1
- data/doc/text/news.textile +31 -0
- data/lib/active_groonga/base.rb +4 -3
- data/lib/active_groonga/persistence.rb +5 -3
- data/lib/active_groonga/railties/groonga.rake +24 -0
- data/lib/active_groonga/result_set.rb +1 -1
- data/lib/active_groonga/version.rb +2 -2
- data/lib/rails/generators/active_groonga/migration/templates/migration.rb +4 -4
- data/test/active-groonga-test-utils.rb +3 -10
- data/test/run-test.rb +3 -2
- data/test/test-base.rb +9 -2
- data/test/test-result-set.rb +36 -0
- data/test/test-schema.rb +2 -2
- metadata +70 -89
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3219e30cd7f1459d4a6ae0c0cf5763be5997049f
|
4
|
+
data.tar.gz: 70d7b188ab8e741e9cb1483b96d1270f29c05648
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6a348297bdd0b71a97c8f45a6aeba7d5c2b7cd8a3fc9aca8c30da07fb52580ac574d9f6656c2fe6cfc324bfd83f0f8cf046c75205d7968bd3386ff96617917bf
|
7
|
+
data.tar.gz: 1eb7d8d90775dc92ea54ca44e13775f8814944df1506fd97e0a64063a435157140aa4b36bebdefdc9f1f57b305c7c980029e799ff4b7f95565d42caf906d7102
|
data/README.textile
CHANGED
@@ -6,17 +6,17 @@ ActiveGroonga
|
|
6
6
|
|
7
7
|
h2. Description
|
8
8
|
|
9
|
-
A library to use
|
9
|
+
A library to use Groonga with ActiveRecord like API.
|
10
10
|
|
11
|
-
|
12
|
-
features. ActiveGroonga +
|
11
|
+
Groonga provides both of full text search and column store
|
12
|
+
features. ActiveGroonga + Groonga can be used as an
|
13
13
|
alternative of ActiveRecord + RDB.
|
14
14
|
|
15
|
-
ActiveGroonga is based on
|
16
|
-
about
|
15
|
+
ActiveGroonga is based on Rroonga. See the following URLs
|
16
|
+
about Rroonga and Groonga.
|
17
17
|
|
18
|
-
* "
|
19
|
-
* "
|
18
|
+
* "Rroonga":http://ranguba.org/
|
19
|
+
* "Groonga":http://groonga.org/
|
20
20
|
|
21
21
|
h2. Authors
|
22
22
|
|
@@ -31,7 +31,7 @@ contributed patches.)
|
|
31
31
|
|
32
32
|
h2. Dependencies
|
33
33
|
|
34
|
-
*
|
34
|
+
* Rroonga
|
35
35
|
|
36
36
|
h2. Install
|
37
37
|
|
@@ -42,12 +42,12 @@ h2. Install
|
|
42
42
|
|
43
43
|
h2. Documents
|
44
44
|
|
45
|
-
* "Reference manual in English":http://
|
46
|
-
* "Reference manual in Japanese":http://
|
45
|
+
* "Reference manual in English":http://ranguba.org/activegroonga/en/
|
46
|
+
* "Reference manual in Japanese":http://ranguba.org/activegroonga/ja/
|
47
47
|
|
48
48
|
h2. Mailing list
|
49
49
|
|
50
|
-
* English: "groonga-
|
50
|
+
* English: "groonga-talk":http://lists.sourceforge.net/mailman/listinfo/groonga-talk
|
51
51
|
* Japanese: "groonga-dev":http://lists.sourceforge.jp/mailman/listinfo/groonga-dev
|
52
52
|
|
53
53
|
h2. Thanks
|
data/Rakefile
CHANGED
@@ -44,8 +44,9 @@ Packnga::DocumentTask.new(spec) do |task|
|
|
44
44
|
task.translate_languages = ["ja"]
|
45
45
|
end
|
46
46
|
|
47
|
+
ranguba_org_dir = Dir.glob("{..,../../www}/ranguba.org").first
|
47
48
|
Packnga::ReleaseTask.new(spec) do |task|
|
48
|
-
task.index_html_dir =
|
49
|
+
task.index_html_dir = ranguba_org_dir
|
49
50
|
end
|
50
51
|
|
51
52
|
task :test do
|
data/activegroonga.gemspec
CHANGED
@@ -27,7 +27,6 @@ end
|
|
27
27
|
Gem::Specification.new do |spec|
|
28
28
|
spec.name = "activegroonga"
|
29
29
|
spec.version = ActiveGroonga::VERSION::STRING.dup
|
30
|
-
spec.rubyforge_project = "groonga"
|
31
30
|
spec.homepage = "http://ranguba.org/#about-active-groonga"
|
32
31
|
spec.authors = ["Kouhei Sutou"]
|
33
32
|
spec.email = ["kou@clear-code.com"]
|
data/doc/text/news.textile
CHANGED
@@ -1,5 +1,36 @@
|
|
1
1
|
h1. NEWS
|
2
2
|
|
3
|
+
h2(#4-2-0). 4.2.0: 2014-12-23
|
4
|
+
|
5
|
+
h3. Improvements
|
6
|
+
|
7
|
+
* Supported Rails 4.2.0.
|
8
|
+
* [GitHub#11] Supported yielding block on {ActiveGroonga::Base.new}.
|
9
|
+
[Patch by Eito Katagiri]
|
10
|
+
* [GitHub#13][development] Reduced needless @make@ on testing.
|
11
|
+
[Patch by Eito Katagiri]
|
12
|
+
* [GitHub#17] Added @groonga:migrate:status@ task that is similar to
|
13
|
+
@db:migrate:status@ task.
|
14
|
+
[Patch by Eito Katagiri]
|
15
|
+
|
16
|
+
h3. Fixes
|
17
|
+
|
18
|
+
* [GitHub#14] Fixed URL in document.
|
19
|
+
[Patch by Eito Katagiri]
|
20
|
+
* [GitHub#15] Fixed a bug that @Groonga::NoSuchColumn@ is raised when
|
21
|
+
iterating {ActiveGroonga::ResultSet} that is created with
|
22
|
+
{ActiveGroonga::Base#select} of @Groonga::Hash@ table.
|
23
|
+
[Patch by Eito Katagiri]
|
24
|
+
* [GitHub#16] Fixed indentation in generated migration file.
|
25
|
+
[Patch by Eito Katagiri]
|
26
|
+
* Fixed a bug that @updated_at@ isn't updated on creating a record.
|
27
|
+
[Reported by niku]
|
28
|
+
|
29
|
+
h3. Thanks
|
30
|
+
|
31
|
+
* Eito Katagiri
|
32
|
+
* niku
|
33
|
+
|
3
34
|
h2(#4-0-0). 4.0.0: 2013-08-29
|
4
35
|
|
5
36
|
h3. Improvements
|
data/lib/active_groonga/base.rb
CHANGED
@@ -95,8 +95,7 @@ module ActiveGroonga
|
|
95
95
|
create(nested_attributes, &block)
|
96
96
|
end
|
97
97
|
else
|
98
|
-
object = new(attributes)
|
99
|
-
yield(object) if block_given?
|
98
|
+
object = new(attributes, &block)
|
100
99
|
object.save
|
101
100
|
object
|
102
101
|
end
|
@@ -136,7 +135,8 @@ module ActiveGroonga
|
|
136
135
|
records = table.select do |record|
|
137
136
|
yield(record)
|
138
137
|
end
|
139
|
-
create_result_set(records,
|
138
|
+
create_result_set(records,
|
139
|
+
options.merge(:expression => records.expression))
|
140
140
|
end
|
141
141
|
|
142
142
|
def all(options={})
|
@@ -272,6 +272,7 @@ module ActiveGroonga
|
|
272
272
|
reload_attributes
|
273
273
|
self.attributes = (record_or_attributes || {})
|
274
274
|
end
|
275
|
+
yield(self) if block_given?
|
275
276
|
end
|
276
277
|
|
277
278
|
def have_column?(name)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2009-
|
1
|
+
# Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -104,7 +104,9 @@ module ActiveGroonga
|
|
104
104
|
else
|
105
105
|
record = table.add(attributes)
|
106
106
|
end
|
107
|
-
|
107
|
+
current_time = Time.now
|
108
|
+
record["created_at"] = current_time if record.have_column?("created_at")
|
109
|
+
record["updated_at"] = current_time if record.have_column?("updated_at")
|
108
110
|
reload_attributes(record)
|
109
111
|
@id = record.id
|
110
112
|
@key = record.key if record.support_key?
|
@@ -142,7 +144,7 @@ module ActiveGroonga
|
|
142
144
|
else
|
143
145
|
attributes["id"] = record.id
|
144
146
|
end
|
145
|
-
attributes["score"] = record.score if record.
|
147
|
+
attributes["score"] = record.score if record.support_score?
|
146
148
|
record.columns.each do |column|
|
147
149
|
next if column.is_a?(Groonga::IndexColumn)
|
148
150
|
value = record[column.local_name]
|
@@ -86,6 +86,30 @@ namespace :groonga do
|
|
86
86
|
migrator.migrate(version)
|
87
87
|
Rake::Task["groonga:schema:dump"].invoke
|
88
88
|
end
|
89
|
+
|
90
|
+
desc "Display status of migration"
|
91
|
+
task :status => [:environment, "groonga:load_config"] do
|
92
|
+
schema_table = ActiveGroonga::Migrator.new(:up, migrations_path.call).management_table
|
93
|
+
db_list = schema_table.migrated_versions
|
94
|
+
db_list.map! { |version| "%.3d" % version }
|
95
|
+
file_list = []
|
96
|
+
Dir.foreach(migrations_path.call).each do |path|
|
97
|
+
if /([0-9]+)_([_a-z0-9]+)\.rb/ =~ path
|
98
|
+
status = db_list.delete($1) ? "up" : "down"
|
99
|
+
file_list << [status, $1, $2.humanize]
|
100
|
+
end
|
101
|
+
end
|
102
|
+
db_list.map! do |version|
|
103
|
+
["up", version, "********** NO FILE **********"]
|
104
|
+
end
|
105
|
+
puts "\n"
|
106
|
+
puts "#{'Status'.center(8)} #{'Migration ID'.ljust(14)} Migration Name"
|
107
|
+
puts "-" * 50
|
108
|
+
(db_list + file_list).sort_by {|migration| migration[1]}.each do |migration|
|
109
|
+
puts "#{migration[0].center(8)} #{migration[1].ljust(14)} #{migration[2]}"
|
110
|
+
end
|
111
|
+
puts
|
112
|
+
end
|
89
113
|
end
|
90
114
|
|
91
115
|
namespace :schema do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2009-
|
1
|
+
# Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -16,7 +16,7 @@
|
|
16
16
|
module ActiveGroonga
|
17
17
|
module VERSION
|
18
18
|
MAJOR = 4
|
19
|
-
MINOR =
|
19
|
+
MINOR = 2
|
20
20
|
TINY = 0
|
21
21
|
|
22
22
|
STRING = [MAJOR, MINOR, TINY].join(".")
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class <%= migration_class_name %> < ActiveGroonga::Migration
|
2
2
|
def up
|
3
3
|
<%- if migration_action -%>
|
4
|
-
|
4
|
+
change_table(:<%= table_name %>) do |table|
|
5
5
|
<% columns.each do |column| -%>
|
6
6
|
<%- if migration_action == "add" -%>
|
7
7
|
table.<%= column.create_code %>
|
@@ -9,13 +9,13 @@ class <%= migration_class_name %> < ActiveGroonga::Migration
|
|
9
9
|
table.<%= column.remove_code %>
|
10
10
|
<%- end -%>
|
11
11
|
<%- end -%>
|
12
|
-
|
12
|
+
end
|
13
13
|
<%- end -%>
|
14
14
|
end
|
15
15
|
|
16
16
|
def down
|
17
17
|
<%- if migration_action -%>
|
18
|
-
|
18
|
+
change_table(:<%= table_name %>) do |table|
|
19
19
|
<% columns.reverse.each do |column| -%>
|
20
20
|
<%- if migration_action == "add" -%>
|
21
21
|
table.<%= column.remove_code %>
|
@@ -23,7 +23,7 @@ class <%= migration_class_name %> < ActiveGroonga::Migration
|
|
23
23
|
table.<%= column.create_code %>
|
24
24
|
<%- end -%>
|
25
25
|
<%- end -%>
|
26
|
-
|
26
|
+
end
|
27
27
|
<%- end -%>
|
28
28
|
end
|
29
29
|
end
|
@@ -89,8 +89,7 @@ module ActiveGroongaTestUtils
|
|
89
89
|
def setup_users_table
|
90
90
|
@users_path = @tables_dir + "users"
|
91
91
|
@users = Groonga::Array.create(:name => "users",
|
92
|
-
:path => @users_path.to_s
|
93
|
-
:sub_records => true)
|
92
|
+
:path => @users_path.to_s)
|
94
93
|
|
95
94
|
columns_dir = @tables_dir + "users.columns"
|
96
95
|
columns_dir.mkpath
|
@@ -103,8 +102,7 @@ module ActiveGroongaTestUtils
|
|
103
102
|
def setup_bookmarks_table
|
104
103
|
@bookmarks_path = @tables_dir + "bookmarks"
|
105
104
|
@bookmarks = Groonga::Array.create(:name => "bookmarks",
|
106
|
-
:path => @bookmarks_path.to_s
|
107
|
-
:sub_records => true)
|
105
|
+
:path => @bookmarks_path.to_s)
|
108
106
|
|
109
107
|
columns_dir = @tables_dir + "bookmarks.columns"
|
110
108
|
columns_dir.mkpath
|
@@ -155,8 +153,6 @@ module ActiveGroongaTestUtils
|
|
155
153
|
path = @bookmarks_comment_index_column_path.to_s
|
156
154
|
@bookmarks_comment_index_column =
|
157
155
|
@terms.define_index_column("bookmarks_comment", @bookmarks,
|
158
|
-
:with_section => true,
|
159
|
-
:with_weight => true,
|
160
156
|
:with_position => true,
|
161
157
|
:path => path)
|
162
158
|
@bookmarks_comment_index_column.source = @comment_column
|
@@ -165,8 +161,6 @@ module ActiveGroongaTestUtils
|
|
165
161
|
path = @bookmarks_content_index_column_path.to_s
|
166
162
|
@bookmarks_content_index_column =
|
167
163
|
@terms.define_index_column("bookmarks_content", @bookmarks,
|
168
|
-
:with_section => true,
|
169
|
-
:with_weight => true,
|
170
164
|
:with_position => true,
|
171
165
|
:path => path)
|
172
166
|
@bookmarks_content_index_column.source = @content_column
|
@@ -175,8 +169,7 @@ module ActiveGroongaTestUtils
|
|
175
169
|
def setup_tasks_table
|
176
170
|
@tasks_path = @tables_dir + "tasks"
|
177
171
|
@tasks = Groonga::Array.create(:name => "tasks",
|
178
|
-
:path => @tasks_path.to_s
|
179
|
-
:sub_records => true)
|
172
|
+
:path => @tasks_path.to_s)
|
180
173
|
|
181
174
|
columns_dir = @tables_dir + "tasks.columns"
|
182
175
|
columns_dir.mkpath
|
data/test/run-test.rb
CHANGED
@@ -27,11 +27,12 @@ require "test/unit/notify"
|
|
27
27
|
|
28
28
|
base_dir = Pathname(__FILE__).dirname.parent.expand_path
|
29
29
|
|
30
|
-
rroonga_dir = base_dir.parent + "rroonga"
|
31
30
|
lib_dir = base_dir + "lib"
|
32
31
|
test_dir = base_dir + "test"
|
33
32
|
|
34
|
-
|
33
|
+
rroonga_dir = base_dir.parent + "rroonga"
|
34
|
+
rroonga_makefile = rroonga_dir + "Makefile"
|
35
|
+
if rroonga_makefile.exist?
|
35
36
|
make = nil
|
36
37
|
if system("which gmake > /dev/null")
|
37
38
|
make = "gmake"
|
data/test/test-base.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2009-
|
1
|
+
# Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -47,6 +47,13 @@ class TestBase < Test::Unit::TestCase
|
|
47
47
|
assert_equal("send mails", send_mail.name)
|
48
48
|
end
|
49
49
|
|
50
|
+
def test_new_with_block
|
51
|
+
yahoo_japan = Site.new do |s|
|
52
|
+
s.key = "http://www.yahoo.co.jp/"
|
53
|
+
end
|
54
|
+
assert_equal("http://www.yahoo.co.jp/", yahoo_japan.key)
|
55
|
+
end
|
56
|
+
|
50
57
|
def test_update
|
51
58
|
groonga_id = @bookmark_records[:groonga].id
|
52
59
|
groonga = Bookmark.find(groonga_id)
|
@@ -193,7 +200,7 @@ class TestBase < Test::Unit::TestCase
|
|
193
200
|
google = Bookmark.create("uri" => "http://google.com/",
|
194
201
|
"comment" => "a search engine")
|
195
202
|
assert_not_equal(Time.at(0), google.created_at)
|
196
|
-
|
203
|
+
assert_not_equal(Time.at(0), google.updated_at)
|
197
204
|
end
|
198
205
|
|
199
206
|
def test_reload
|
data/test/test-result-set.rb
CHANGED
@@ -141,6 +141,42 @@ class TestResultSet < Test::Unit::TestCase
|
|
141
141
|
end
|
142
142
|
end
|
143
143
|
|
144
|
+
class TestEach < self
|
145
|
+
class TestNoScore < self
|
146
|
+
def test_have_key_table
|
147
|
+
groonga = Site.create(:key => "http://groonga.org/",
|
148
|
+
:title => "groonga")
|
149
|
+
Page.create(:key => "http://groonga.org/doc/",
|
150
|
+
:site => groonga)
|
151
|
+
sites = Page.all.collect do |page|
|
152
|
+
site = page.site
|
153
|
+
[site, site.score]
|
154
|
+
end
|
155
|
+
assert_equal([[groonga, nil]],
|
156
|
+
sites)
|
157
|
+
end
|
158
|
+
|
159
|
+
def test_no_key_table
|
160
|
+
expected_users = @bookmark_records.collect do |key, bookmark|
|
161
|
+
user = bookmark.user
|
162
|
+
score = nil
|
163
|
+
score = user.score if user.support_score?
|
164
|
+
[user.name, score]
|
165
|
+
end
|
166
|
+
actual_users = Bookmark.all.collect do |bookmark|
|
167
|
+
user = bookmark.user
|
168
|
+
[user.name, user.score]
|
169
|
+
end
|
170
|
+
|
171
|
+
sort_key = lambda do |(name, _)|
|
172
|
+
name
|
173
|
+
end
|
174
|
+
assert_equal(expected_users.sort_by(&sort_key),
|
175
|
+
actual_users.sort_by(&sort_key))
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
144
180
|
class TestEmpty < self
|
145
181
|
def test_have_records
|
146
182
|
all_bookmarks = Bookmark.all
|
data/test/test-schema.rb
CHANGED
@@ -136,8 +136,8 @@ ActiveGroonga::Schema.define(:version => 0) do |schema|
|
|
136
136
|
end
|
137
137
|
|
138
138
|
change_table("terms") do |table|
|
139
|
-
table.index("bookmarks", "comment", :name => "bookmarks_comment")
|
140
|
-
table.index("bookmarks", "content", :name => "bookmarks_content")
|
139
|
+
table.index("bookmarks", "comment", :name => "bookmarks_comment", :with_position => true)
|
140
|
+
table.index("bookmarks", "content", :name => "bookmarks_content", :with_position => true)
|
141
141
|
end
|
142
142
|
end
|
143
143
|
end
|
metadata
CHANGED
@@ -1,242 +1,223 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activegroonga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
5
|
-
prerelease:
|
4
|
+
version: 4.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kouhei Sutou
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-12-23 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rroonga
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 2.1.2
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 2.1.2
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: activemodel
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 4.0.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 4.0.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: test-unit
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: test-unit-notify
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rake
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - ">="
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: bundler
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - ">="
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - ">="
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: packnga
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- -
|
101
|
+
- - ">="
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: 0.9.7
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
|
-
- -
|
108
|
+
- - ">="
|
124
109
|
- !ruby/object:Gem::Version
|
125
110
|
version: 0.9.7
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
112
|
name: RedCloth
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
|
-
- -
|
115
|
+
- - ">="
|
132
116
|
- !ruby/object:Gem::Version
|
133
117
|
version: '0'
|
134
118
|
type: :development
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
|
-
- -
|
122
|
+
- - ">="
|
140
123
|
- !ruby/object:Gem::Version
|
141
124
|
version: '0'
|
142
|
-
description:
|
143
|
-
|
144
|
-
features. ActiveGroonga +
|
145
|
-
|
146
|
-
alternative of ActiveRecord + RDB.'
|
125
|
+
description: |-
|
126
|
+
Groonga provides both of full text search and column store
|
127
|
+
features. ActiveGroonga + Groonga can be used as an
|
128
|
+
alternative of ActiveRecord + RDB.
|
147
129
|
email:
|
148
130
|
- kou@clear-code.com
|
149
131
|
executables: []
|
150
132
|
extensions: []
|
151
133
|
extra_rdoc_files: []
|
152
134
|
files:
|
135
|
+
- ".yardopts"
|
153
136
|
- README.textile
|
154
137
|
- Rakefile
|
155
|
-
- .yardopts
|
156
138
|
- activegroonga.gemspec
|
139
|
+
- doc/text/lgpl.txt
|
140
|
+
- doc/text/news.textile
|
141
|
+
- doc/text/tutorial.textile
|
157
142
|
- lib/active_groonga.rb
|
158
|
-
- lib/
|
159
|
-
- lib/
|
160
|
-
- lib/rails/generators/active_groonga/migration/templates/migration.rb
|
161
|
-
- lib/rails/generators/active_groonga/migration/column.rb
|
162
|
-
- lib/rails/generators/active_groonga/model/model_generator.rb
|
163
|
-
- lib/rails/generators/active_groonga/model/templates/model.rb
|
164
|
-
- lib/rails/generators/active_groonga/model/templates/migration.rb
|
165
|
-
- lib/rails/generators/active_groonga/model/templates/module.rb
|
166
|
-
- lib/active_groonga/railties/configurable.rb
|
167
|
-
- lib/active_groonga/version.rb
|
168
|
-
- lib/active_groonga/test_case.rb
|
169
|
-
- lib/active_groonga/validations.rb
|
170
|
-
- lib/active_groonga/test_help.rb
|
171
|
-
- lib/active_groonga/vector.rb
|
143
|
+
- lib/active_groonga/base.rb
|
144
|
+
- lib/active_groonga/callbacks.rb
|
172
145
|
- lib/active_groonga/database.rb
|
173
|
-
- lib/active_groonga/persistence.rb
|
174
146
|
- lib/active_groonga/error.rb
|
175
|
-
- lib/active_groonga/schema.rb
|
176
|
-
- lib/active_groonga/migrator.rb
|
177
147
|
- lib/active_groonga/fixtures.rb
|
178
|
-
- lib/active_groonga/
|
148
|
+
- lib/active_groonga/locale/en.yml
|
179
149
|
- lib/active_groonga/migration.rb
|
180
|
-
- lib/active_groonga/
|
181
|
-
- lib/active_groonga/
|
150
|
+
- lib/active_groonga/migrator.rb
|
151
|
+
- lib/active_groonga/persistence.rb
|
182
152
|
- lib/active_groonga/railtie.rb
|
153
|
+
- lib/active_groonga/railties/configurable.rb
|
183
154
|
- lib/active_groonga/railties/groonga.rake
|
184
|
-
- lib/active_groonga/
|
185
|
-
-
|
186
|
-
-
|
187
|
-
-
|
155
|
+
- lib/active_groonga/result_set.rb
|
156
|
+
- lib/active_groonga/schema.rb
|
157
|
+
- lib/active_groonga/test_case.rb
|
158
|
+
- lib/active_groonga/test_help.rb
|
159
|
+
- lib/active_groonga/validations.rb
|
160
|
+
- lib/active_groonga/vector.rb
|
161
|
+
- lib/active_groonga/version.rb
|
162
|
+
- lib/rails/generators/active_groonga.rb
|
163
|
+
- lib/rails/generators/active_groonga/migration/column.rb
|
164
|
+
- lib/rails/generators/active_groonga/migration/migration_generator.rb
|
165
|
+
- lib/rails/generators/active_groonga/migration/templates/migration.rb
|
166
|
+
- lib/rails/generators/active_groonga/model/model_generator.rb
|
167
|
+
- lib/rails/generators/active_groonga/model/templates/migration.rb
|
168
|
+
- lib/rails/generators/active_groonga/model/templates/model.rb
|
169
|
+
- lib/rails/generators/active_groonga/model/templates/module.rb
|
188
170
|
- test/active-groonga-test-utils.rb
|
171
|
+
- test/fixtures/bookmark.rb
|
172
|
+
- test/fixtures/page.rb
|
173
|
+
- test/fixtures/site.rb
|
174
|
+
- test/fixtures/task.rb
|
175
|
+
- test/fixtures/user.rb
|
176
|
+
- test/run-test.rb
|
189
177
|
- test/test-associations.rb
|
190
|
-
- test/test-
|
178
|
+
- test/test-base.rb
|
191
179
|
- test/test-callbacks.rb
|
192
180
|
- test/test-persistence.rb
|
193
|
-
- test/test-
|
194
|
-
- test/run-test.rb
|
181
|
+
- test/test-result-set.rb
|
195
182
|
- test/test-schema.rb
|
196
|
-
- test/
|
197
|
-
- test/fixtures/page.rb
|
198
|
-
- test/fixtures/user.rb
|
199
|
-
- test/fixtures/bookmark.rb
|
200
|
-
- test/fixtures/task.rb
|
201
|
-
- test/test-base.rb
|
183
|
+
- test/test-validations.rb
|
202
184
|
homepage: http://ranguba.org/#about-active-groonga
|
203
185
|
licenses:
|
204
186
|
- LGPLv2
|
187
|
+
metadata: {}
|
205
188
|
post_install_message:
|
206
189
|
rdoc_options: []
|
207
190
|
require_paths:
|
208
191
|
- lib
|
209
192
|
required_ruby_version: !ruby/object:Gem::Requirement
|
210
|
-
none: false
|
211
193
|
requirements:
|
212
|
-
- -
|
194
|
+
- - ">="
|
213
195
|
- !ruby/object:Gem::Version
|
214
196
|
version: '0'
|
215
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
|
-
none: false
|
217
198
|
requirements:
|
218
|
-
- -
|
199
|
+
- - ">="
|
219
200
|
- !ruby/object:Gem::Version
|
220
201
|
version: '0'
|
221
202
|
requirements: []
|
222
|
-
rubyforge_project:
|
223
|
-
rubygems_version:
|
203
|
+
rubyforge_project:
|
204
|
+
rubygems_version: 2.2.2
|
224
205
|
signing_key:
|
225
|
-
specification_version:
|
226
|
-
summary: A library to use
|
206
|
+
specification_version: 4
|
207
|
+
summary: A library to use Groonga with ActiveRecord like API.
|
227
208
|
test_files:
|
209
|
+
- test/test-persistence.rb
|
210
|
+
- test/test-callbacks.rb
|
228
211
|
- test/active-groonga-test-utils.rb
|
229
|
-
- test/test-
|
212
|
+
- test/test-base.rb
|
230
213
|
- test/test-result-set.rb
|
231
|
-
- test/test-callbacks.rb
|
232
|
-
- test/test-persistence.rb
|
233
|
-
- test/test-validations.rb
|
234
214
|
- test/run-test.rb
|
215
|
+
- test/test-validations.rb
|
216
|
+
- test/test-associations.rb
|
235
217
|
- test/test-schema.rb
|
236
218
|
- test/fixtures/site.rb
|
237
|
-
- test/fixtures/page.rb
|
238
219
|
- test/fixtures/user.rb
|
239
|
-
- test/fixtures/
|
220
|
+
- test/fixtures/page.rb
|
240
221
|
- test/fixtures/task.rb
|
241
|
-
- test/
|
222
|
+
- test/fixtures/bookmark.rb
|
242
223
|
has_rdoc:
|