activegroonga 2.1.4 → 4.0.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.
@@ -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", ">= 3.2.10")
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")
@@ -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
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009-2010 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,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 'fileutils'
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 'fileutils'
16
+ require "fileutils"
17
17
 
18
18
  module ActiveGroonga
19
19
  class Database
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2010-2011 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 'fileutils'
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-2011 Kouhei Sutou <kou@clear-code.com>
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 => :rails_env do
19
+ task :load_config do
20
20
  require "active_groonga"
21
21
  configurations = Rails.application.config.groonga_configurations
22
22
  ActiveGroonga::Base.configurations = configurations
@@ -15,9 +15,9 @@
15
15
 
16
16
  module ActiveGroonga
17
17
  module VERSION
18
- MAJOR = 2
19
- MINOR = 1
20
- TINY = 4
18
+ MAJOR = 4
19
+ MINOR = 0
20
+ TINY = 0
21
21
 
22
22
  STRING = [MAJOR, MINOR, TINY].join(".")
23
23
  end
@@ -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 'fileutils'
17
- require 'pathname'
16
+ require "fileutils"
17
+ require "pathname"
18
18
 
19
- require 'active_groonga'
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 = "/dev/shm"
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 + '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)
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: 2.1.4
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-03-18 00:00:00.000000000 Z
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: 3.2.10
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: 3.2.10
45
+ version: 4.0.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: test-unit
48
48
  requirement: !ruby/object:Gem::Requirement