activegroonga 2.1.4 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/activegroonga.gemspec +2 -2
- data/doc/text/news.textile +11 -0
- data/lib/active_groonga/base.rb +2 -4
- data/lib/active_groonga/database.rb +2 -2
- data/lib/active_groonga/railties/configurable.rb +2 -2
- data/lib/active_groonga/railties/groonga.rake +2 -2
- data/lib/active_groonga/version.rb +3 -3
- data/test/active-groonga-test-utils.rb +10 -10
- metadata +4 -4
data/activegroonga.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- mode: ruby; coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
|
3
|
+
# Copyright (C) 2012-2013 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -46,7 +46,7 @@ Gem::Specification.new do |spec|
|
|
46
46
|
spec.test_files += Dir.glob("test/**/*.rb")
|
47
47
|
|
48
48
|
spec.add_runtime_dependency("rroonga", ">= 2.1.2")
|
49
|
-
spec.add_runtime_dependency("activemodel", ">=
|
49
|
+
spec.add_runtime_dependency("activemodel", ">= 4.0.0")
|
50
50
|
spec.add_development_dependency("test-unit")
|
51
51
|
spec.add_development_dependency("test-unit-notify")
|
52
52
|
spec.add_development_dependency("rake")
|
data/doc/text/news.textile
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
h1. NEWS
|
2
2
|
|
3
|
+
h2(#4-0-0). 4.0.0: 2013-08-29
|
4
|
+
|
5
|
+
h3. Improvements
|
6
|
+
|
7
|
+
* [GitHub#9] Supported Rails 4.0.0. Rails < 4 support is dropped.
|
8
|
+
[Reported by Eito Katagiri]
|
9
|
+
|
10
|
+
h3. Thanks
|
11
|
+
|
12
|
+
* Eito Katagiri
|
13
|
+
|
3
14
|
h2(#2-1-4). 2.1.4: 2013-03-18
|
4
15
|
|
5
16
|
h3. Fixes
|
data/lib/active_groonga/base.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2009-
|
1
|
+
# Copyright (C) 2009-2013 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
|
@@ -13,9 +13,7 @@
|
|
13
13
|
# License along with this library; if not, write to the Free Software
|
14
14
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
15
15
|
|
16
|
-
require
|
17
|
-
|
18
|
-
require 'active_support/all'
|
16
|
+
require "active_support/all"
|
19
17
|
|
20
18
|
module ActiveGroonga
|
21
19
|
class Base
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2010 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2010-2013 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
|
@@ -13,7 +13,7 @@
|
|
13
13
|
# License along with this library; if not, write to the Free Software
|
14
14
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
15
15
|
|
16
|
-
require
|
16
|
+
require "fileutils"
|
17
17
|
|
18
18
|
module ActiveGroonga
|
19
19
|
class Database
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2010-
|
1
|
+
# Copyright (C) 2010-2013 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
|
@@ -13,7 +13,7 @@
|
|
13
13
|
# License along with this library; if not, write to the Free Software
|
14
14
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
15
15
|
|
16
|
-
require
|
16
|
+
require "fileutils"
|
17
17
|
|
18
18
|
module ActiveGroonga
|
19
19
|
module Railties
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2010-
|
3
|
+
# Copyright (C) 2010-2013 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
17
17
|
|
18
18
|
namespace :groonga do
|
19
|
-
task :load_config
|
19
|
+
task :load_config do
|
20
20
|
require "active_groonga"
|
21
21
|
configurations = Rails.application.config.groonga_configurations
|
22
22
|
ActiveGroonga::Base.configurations = configurations
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2009-2013 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
|
@@ -13,10 +13,10 @@
|
|
13
13
|
# License along with this library; if not, write to the Free Software
|
14
14
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
15
15
|
|
16
|
-
require
|
17
|
-
require
|
16
|
+
require "fileutils"
|
17
|
+
require "pathname"
|
18
18
|
|
19
|
-
require
|
19
|
+
require "active_groonga"
|
20
20
|
|
21
21
|
module ActiveGroongaTestUtils
|
22
22
|
class << self
|
@@ -51,7 +51,7 @@ module ActiveGroongaTestUtils
|
|
51
51
|
|
52
52
|
def setup_tmp_directory
|
53
53
|
@base_tmp_dir = Pathname(File.dirname(__FILE__)) + "tmp"
|
54
|
-
memory_file_system = "/
|
54
|
+
memory_file_system = "/run/shm"
|
55
55
|
if File.exist?(memory_file_system)
|
56
56
|
FileUtils.mkdir_p(@base_tmp_dir.parent.to_s)
|
57
57
|
FileUtils.rm_f(@base_tmp_dir.to_s)
|
@@ -255,11 +255,11 @@ module ActiveGroongaTestUtils
|
|
255
255
|
remove_const(:Site) if const_defined?(:Site)
|
256
256
|
remove_const(:Page) if const_defined?(:Page)
|
257
257
|
end
|
258
|
-
load((base_dir +
|
259
|
-
load((base_dir +
|
260
|
-
load((base_dir +
|
261
|
-
load((base_dir +
|
262
|
-
load((base_dir +
|
258
|
+
load((base_dir + "user.rb").to_s)
|
259
|
+
load((base_dir + "bookmark.rb").to_s)
|
260
|
+
load((base_dir + "task.rb").to_s)
|
261
|
+
load((base_dir + "site.rb").to_s)
|
262
|
+
load((base_dir + "page.rb").to_s)
|
263
263
|
end
|
264
264
|
|
265
265
|
def teardown_sand_box
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activegroonga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rroonga
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 4.0.0
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 4.0.0
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: test-unit
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|