rroonga 3.1.2 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44cd8bad828ac3e88850ece173cadfa91bf63cbe
4
- data.tar.gz: 2879bf2d247b4d6b316007244a3f17df66b4525c
3
+ metadata.gz: 8fdfe9138a4546d1c3d4f7475d92f57d664f23a8
4
+ data.tar.gz: 39eab083625dc558c5287aa34eb202b2f7e418b7
5
5
  SHA512:
6
- metadata.gz: c034fa1b10202553bb36e4f869921555f09c84fc633ff8ec1c14c9fc3c2631caf659a265dba4c6ec56bb6e63d8f3117aaf70ff1a327a517433b8b5136cb2c9b5
7
- data.tar.gz: 74c9dc1f95d9fdba1f24aa477fade11fdf8c2d79e9e7d12da350c4bbb8482ce431dc1a2f5a371f96ef0b4622cd878ec8c0d9e2ce3067241772ab50dedcd0cf0c
6
+ metadata.gz: d345881451aecc7c1fefdfeb15f62f7df6a01de07c478b372496828aec5dc74789369fac4b4185c514ac44d8fa43914974cfc966fb57736ea19169e31706c388
7
+ data.tar.gz: 30216dcfe16899e6647cb084dcdff4b5742c8ae67859bb79c4bd4221e3af123388e68680a1a222a0658e1cb36b79a8b712ae4d62cced0fdb1748db0fb55501c4
@@ -0,0 +1,145 @@
1
+ h1. Install
2
+
3
+ This document describes how to install Rroonga.
4
+
5
+ You can install Rrroonga by RubyGems. It is the standard way for Ruby
6
+ libraries.
7
+
8
+ Rroonga is depends on Groonga. So you need to install both Groonga and
9
+ Rroonga. You can't install Groonga by RubyGems because it isn't Ruby
10
+ library. But don't worry. Rroonga provides the following options for
11
+ easy to install:
12
+
13
+ * Rroonga downloads, builds and installs Groonga automatically. You
14
+ don't need to do them explicitly.
15
+ * Rroonga uses Groonga installed by your packaging system.
16
+
17
+ The following sections describe the above in detail.
18
+
19
+ h2. Install with auto Groonga build
20
+
21
+ Rroonga searches Groonga on install. If Rroonga can't find
22
+ Groonga, Rroonga downloads, builds and installs Groonga
23
+ automatically.
24
+
25
+ Type the following command to install Rroonga and Groonga. You don't
26
+ need to install Groonga explicitly:
27
+
28
+ <pre>
29
+ !!!command_line
30
+ % gem install rroonga
31
+ </pre>
32
+
33
+ h2. Install with Groonga package
34
+
35
+ You can use Groonga package on you packaging system instead of
36
+ building Groonga by yourself. There are the following advantages for
37
+ this option:
38
+
39
+ * It reduces installation time.
40
+ * It doesn't fail on building Groonga.
41
+
42
+ h3. Windows
43
+
44
+ Rroonga gem for Windows includes both pre-compiled Rroonga and Groonga
45
+ in the gem. So what you need to do is you just install rroonga gem.
46
+
47
+ Type the following command on Ruby console:
48
+
49
+ <pre>
50
+ !!!command_line
51
+ % gem.bat install rroonga
52
+ </pre>
53
+
54
+ This document assumes that you're using "RubyInstaller for
55
+ Windows":http://rubyinstaller.org/ .
56
+
57
+ h3. OS X
58
+
59
+ There are Groonga packages for OS X environment.
60
+
61
+ h4. MacPorts
62
+
63
+ If you're using "MacPorts":http://www.macports.org/ , type the
64
+ following commands on your terminal:
65
+
66
+ <pre>
67
+ !!!command_line
68
+ % sudo port install groonga
69
+ % sudo gem install rroonga
70
+ </pre>
71
+
72
+ h4. Homebrew
73
+
74
+ If you're using "Homebrew":http://brew.sh/ , type the
75
+ following commands on your terminal:
76
+
77
+ <pre>
78
+ !!!command_line
79
+ % brew install groonga
80
+ % gem install rroonga
81
+ </pre>
82
+
83
+ h3. Debian GNU/Linux
84
+
85
+ You can install the Groonga package by apt. See "Groonga
86
+ documentation":http://groonga.org/docs/install/debian.html how to set
87
+ apt-line up.
88
+
89
+ Type the following commands on your terminal after you finish to set
90
+ apt-line up.
91
+
92
+ <pre>
93
+ !!!command_line
94
+ % sudo apt-get install -y libgroonga-dev
95
+ % sudo gem install rroonga
96
+ </pre>
97
+
98
+ h3. Ubuntu
99
+
100
+ You can install the Groonga package by apt. See "Groonga
101
+ documentation":http://groonga.org/docs/install/ubuntu.html how to set
102
+ apt-line up.
103
+
104
+ Type the following commands on your terminal after you finish to set
105
+ apt-line up.
106
+
107
+ <pre>
108
+ !!!command_line
109
+ % sudo apt-get install -y libgroonga-dev
110
+ % sudo gem install rroonga
111
+ </pre>
112
+
113
+ h3. CentOS
114
+
115
+ You can install the Groonga package by yum. See "Groonga
116
+ documentation":http://groonga.org/docs/install/centos.html how to set
117
+ yum repository up.
118
+
119
+ But you need to install Ruby 1.9.3 or later by yourself. Both CentOS 5
120
+ and 6 ship Ruby 1.8. Rroonga doesn't support Ruby 1.8.
121
+
122
+ Type the following commands on your terminal after you finish to set
123
+ yum repository up and installing Ruby 1.9.3 or later.
124
+
125
+ <pre>
126
+ !!!command_line
127
+ % sudo yum install groonga-devel -y
128
+ % gem install rroonga
129
+ </pre>
130
+
131
+ h3. Fedora
132
+
133
+ You can install the Groonga package by yum. The Groonga package is
134
+ included in the official Fedora repository.
135
+
136
+ <pre>
137
+ !!!command_line
138
+ % sudo yum install groonga-devel -y
139
+ % sudo gem install rroonga
140
+ </pre>
141
+
142
+ h2. Links
143
+
144
+ * "2. Install - Groonga documentation":http://groonga.org/docs/install.html
145
+
@@ -1,5 +1,17 @@
1
1
  h1. NEWS
2
2
 
3
+ h2(#4-0-0). 4.0.0: 2014-02-09
4
+
5
+ h3. Improvements
6
+
7
+ * Supported Groonga 4.0.0. Groonga 3.1.2 or older are not supported.
8
+ * Added install document. [Patch by ongaeshi]
9
+
10
+ h3. Thanks
11
+
12
+ * ongaeshi
13
+
14
+
3
15
  h2(#3-1-2). 3.1.2: 2014-01-29
4
16
 
5
17
  h3. Improvements
@@ -1,6 +1,6 @@
1
1
  /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
2
  /*
3
- Copyright (C) 2009-2012 Kouhei Sutou <kou@clear-code.com>
3
+ Copyright (C) 2009-2014 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
@@ -624,7 +624,7 @@ rb_grn_expression_snippet (int argc, VALUE *argv, VALUE self)
624
624
  {
625
625
  grn_ctx *context = NULL;
626
626
  grn_obj *expression;
627
- grn_snip *snippet;
627
+ grn_obj *snippet;
628
628
  VALUE options;
629
629
  VALUE rb_normalize, rb_skip_leading_spaces;
630
630
  VALUE rb_width, rb_max_results, rb_tags;
@@ -714,7 +714,7 @@ rb_grn_expression_snippet (int argc, VALUE *argv, VALUE self)
714
714
  related_object = rb_ary_new3(2, self, rb_ary_new4(argc, argv));
715
715
  rb_grn_context_check(context, related_object);
716
716
 
717
- return GRNOBJECT2RVAL(Qnil, context, (grn_obj *)snippet, GRN_TRUE);
717
+ return GRNOBJECT2RVAL(Qnil, context, snippet, GRN_TRUE);
718
718
  }
719
719
 
720
720
  void
@@ -1,6 +1,6 @@
1
1
  /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
2
  /*
3
- Copyright (C) 2009-2012 Kouhei Sutou <kou@clear-code.com>
3
+ Copyright (C) 2009-2014 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
@@ -83,7 +83,7 @@ static VALUE
83
83
  rb_grn_snippet_initialize (int argc, VALUE *argv, VALUE self)
84
84
  {
85
85
  grn_ctx *context = NULL;
86
- grn_snip *snippet = NULL;
86
+ grn_obj *snippet = NULL;
87
87
  VALUE options;
88
88
  VALUE rb_context, rb_normalize, rb_skip_leading_spaces;
89
89
  VALUE rb_width, rb_max_results, rb_default_open_tag, rb_default_close_tag;
@@ -148,7 +148,7 @@ rb_grn_snippet_initialize (int argc, VALUE *argv, VALUE self)
148
148
  mapping);
149
149
  rb_grn_context_check(context, rb_ary_new4(argc, argv));
150
150
 
151
- rb_grn_object_assign(Qnil, self, rb_context, context, (grn_obj *)snippet);
151
+ rb_grn_object_assign(Qnil, self, rb_context, context, snippet);
152
152
  rb_grn_context_register_floating_object(DATA_PTR(self));
153
153
 
154
154
  rb_iv_set(self, "@context", rb_context);
@@ -203,7 +203,7 @@ rb_grn_snippet_add_keyword (int argc, VALUE *argv, VALUE self)
203
203
  close_tag_length = RSTRING_LEN(rb_close_tag);
204
204
  }
205
205
 
206
- rc = grn_snip_add_cond(context, (grn_snip *)snippet,
206
+ rc = grn_snip_add_cond(context, snippet,
207
207
  keyword, keyword_length,
208
208
  open_tag, open_tag_length,
209
209
  close_tag, close_tag_length);
@@ -245,7 +245,7 @@ rb_grn_snippet_execute (VALUE self, VALUE rb_string)
245
245
  string = StringValuePtr(rb_string);
246
246
  string_length = RSTRING_LEN(rb_string);
247
247
 
248
- rc = grn_snip_exec(context, (grn_snip *)snippet, string, string_length,
248
+ rc = grn_snip_exec(context, snippet, string, string_length,
249
249
  &n_results, &max_tagged_length);
250
250
  rb_grn_context_check(context, self);
251
251
  rb_grn_rc_check(rc, self);
@@ -256,7 +256,7 @@ rb_grn_snippet_execute (VALUE self, VALUE rb_string)
256
256
  VALUE rb_result;
257
257
  unsigned result_length;
258
258
 
259
- rc = grn_snip_get_result(context, (grn_snip *)snippet,
259
+ rc = grn_snip_get_result(context, snippet,
260
260
  i, result, &result_length);
261
261
  rb_grn_rc_check(rc, self);
262
262
  rb_result = rb_grn_context_rb_string_new(context, result, result_length);
data/ext/groonga/rb-grn.h CHANGED
@@ -1,6 +1,6 @@
1
1
  /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
2
  /*
3
- Copyright (C) 2009-2013 Kouhei Sutou <kou@clear-code.com>
3
+ Copyright (C) 2009-2014 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
@@ -82,9 +82,9 @@ RB_GRN_BEGIN_DECLS
82
82
  # define debug(...)
83
83
  #endif
84
84
 
85
- #define RB_GRN_MAJOR_VERSION 3
86
- #define RB_GRN_MINOR_VERSION 1
87
- #define RB_GRN_MICRO_VERSION 2
85
+ #define RB_GRN_MAJOR_VERSION 4
86
+ #define RB_GRN_MINOR_VERSION 0
87
+ #define RB_GRN_MICRO_VERSION 0
88
88
 
89
89
  #define RB_GRN_QUERY_DEFAULT_MAX_EXPRESSIONS 32
90
90
 
@@ -43,7 +43,7 @@ module Groonga
43
43
  attr_writer :show_tables
44
44
 
45
45
  # @return [Boolean] (true) Shows information about columns if true,
46
- # doesn't show it otherwise. If {#show_tables} is false, information
46
+ # doesn't show it otherwise. If {#show_tables?} is false, information
47
47
  # about columns isn't always shown.
48
48
  attr_writer :show_columns
49
49
  def initialize
data/rroonga-build.rb CHANGED
@@ -17,17 +17,17 @@
17
17
 
18
18
  module RroongaBuild
19
19
  module RequiredGroongaVersion
20
- MAJOR = 3
21
- MINOR = 1
22
- MICRO = 2
20
+ MAJOR = 4
21
+ MINOR = 0
22
+ MICRO = 0
23
23
  VERSION = [MAJOR, MINOR, MICRO]
24
- RELEASED_DATE = Time.utc(2014, 1, 29)
24
+ RELEASED_DATE = Time.utc(2014, 2, 9)
25
25
  end
26
26
 
27
27
  module LatestGroongaVersion
28
- MAJOR = 3
29
- MINOR = 1
30
- MICRO = 2
28
+ MAJOR = 4
29
+ MINOR = 0
30
+ MICRO = 0
31
31
  VERSION = [MAJOR, MINOR, MICRO]
32
32
  end
33
33
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rroonga
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-01-29 00:00:00.000000000 Z
15
+ date: 2014-02-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: pkg-config
@@ -207,6 +207,7 @@ files:
207
207
  - AUTHORS
208
208
  - Rakefile
209
209
  - Gemfile
210
+ - doc/text/install.textile
210
211
  - doc/text/tutorial.textile
211
212
  - doc/text/news.textile
212
213
  - rroonga.gemspec