whistlepig 0.11 → 0.11.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.
- data/README +2 -2
- data/ext/whistlepig/whistlepig.c +11 -7
- metadata +38 -24
data/README
CHANGED
@@ -8,7 +8,7 @@ full-text search without the frills, Whistlepig may be for you.
|
|
8
8
|
Whistlepig is written in ANSI C99. It currently provides a C API and Ruby
|
9
9
|
bindings.
|
10
10
|
|
11
|
-
Latest version: 0.11, released 2012-04-
|
11
|
+
Latest version: 0.11.1, released 2012-04-19.
|
12
12
|
Status: beta
|
13
13
|
News: http://all-thing.net/label/whistlepig/
|
14
14
|
Homepage: http://masanjin.net/whistlepig/
|
@@ -16,7 +16,7 @@ Latest version: 0.11, released 2012-04-10.
|
|
16
16
|
|
17
17
|
= Getting it
|
18
18
|
|
19
|
-
Tarball: http://masanjin.net/whistlepig/whistlepig-0.
|
19
|
+
Tarball: http://masanjin.net/whistlepig/whistlepig-0.11.1.tar.gz
|
20
20
|
Rubygem: gem install whistlepig
|
21
21
|
Git: git clone git://github.com/wmorgan/whistlepig.git
|
22
22
|
|
data/ext/whistlepig/whistlepig.c
CHANGED
@@ -337,8 +337,8 @@ static VALUE query_new(VALUE class, VALUE default_field, VALUE string) {
|
|
337
337
|
}
|
338
338
|
|
339
339
|
VALUE o_query = Data_Wrap_Struct(class, NULL, wp_query_free, query);
|
340
|
-
VALUE argv[
|
341
|
-
rb_obj_call_init(o_query,
|
340
|
+
VALUE argv[1] = { string };
|
341
|
+
rb_obj_call_init(o_query, 1, argv);
|
342
342
|
|
343
343
|
return o_query;
|
344
344
|
}
|
@@ -390,6 +390,10 @@ static VALUE query_map_terms(VALUE self) {
|
|
390
390
|
wp_query* result = wp_query_substitute(query, yielding_substituter);
|
391
391
|
|
392
392
|
VALUE o_query = Data_Wrap_Struct(c_query, NULL, wp_query_free, result);
|
393
|
+
|
394
|
+
VALUE argv[1] = { rb_iv_get(self, "@query") };
|
395
|
+
rb_obj_call_init(o_query, 1, argv);
|
396
|
+
|
393
397
|
return o_query;
|
394
398
|
}
|
395
399
|
|
@@ -414,8 +418,8 @@ static VALUE query_and(VALUE self, VALUE v_other) {
|
|
414
418
|
result = wp_query_add(result, wp_query_clone(other));
|
415
419
|
|
416
420
|
VALUE o_result = Data_Wrap_Struct(c_query, NULL, wp_query_free, result);
|
417
|
-
VALUE argv[
|
418
|
-
rb_obj_call_init(o_result,
|
421
|
+
VALUE argv[1] = { rb_iv_get(self, "@query") }; // i guess
|
422
|
+
rb_obj_call_init(o_result, 1, argv);
|
419
423
|
|
420
424
|
return o_result;
|
421
425
|
}
|
@@ -441,8 +445,8 @@ static VALUE query_or(VALUE self, VALUE v_other) {
|
|
441
445
|
result = wp_query_add(result, wp_query_clone(other));
|
442
446
|
|
443
447
|
VALUE o_result = Data_Wrap_Struct(c_query, NULL, wp_query_free, result);
|
444
|
-
VALUE argv[
|
445
|
-
rb_obj_call_init(o_result,
|
448
|
+
VALUE argv[1] = { rb_iv_get(self, "@query") }; // i guess
|
449
|
+
rb_obj_call_init(o_result, 1, argv);
|
446
450
|
|
447
451
|
return o_result;
|
448
452
|
}
|
@@ -600,7 +604,7 @@ void Init_whistlepig() {
|
|
600
604
|
|
601
605
|
c_query = rb_define_class_under(m_whistlepig, "Query", rb_cObject);
|
602
606
|
rb_define_singleton_method(c_query, "new", query_new, 2);
|
603
|
-
rb_define_method(c_query, "initialize", query_init,
|
607
|
+
rb_define_method(c_query, "initialize", query_init, 1);
|
604
608
|
rb_define_method(c_query, "and", query_and, 1);
|
605
609
|
rb_define_method(c_query, "or", query_or, 1);
|
606
610
|
rb_define_method(c_query, "to_s", query_to_s, 0);
|
metadata
CHANGED
@@ -1,29 +1,34 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: whistlepig
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 11
|
9
|
+
- 1
|
10
|
+
version: 0.11.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- William Morgan
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
17
|
+
|
18
|
+
date: 2012-04-19 00:00:00 -07:00
|
13
19
|
default_executable:
|
14
20
|
dependencies: []
|
15
|
-
|
16
|
-
|
17
|
-
performant and scalable to large corpora. If you want realtime full-text search
|
18
|
-
without the frills, Whistlepig may be for you.
|
21
|
+
|
22
|
+
description: Whistlepig is a minimalist realtime full-text search index. Its goal is to be as small and minimally-featured as possible, while still remaining useful, performant and scalable to large corpora. If you want realtime full-text search without the frills, Whistlepig may be for you.
|
19
23
|
email: wmorgan-whistlepig-gemspec@masanjin.net
|
20
24
|
executables: []
|
21
|
-
|
25
|
+
|
26
|
+
extensions:
|
22
27
|
- ext/whistlepig/extconf.rb
|
23
|
-
extra_rdoc_files:
|
28
|
+
extra_rdoc_files:
|
24
29
|
- README
|
25
30
|
- ext/whistlepig/whistlepig.c
|
26
|
-
files:
|
31
|
+
files:
|
27
32
|
- README
|
28
33
|
- COPYING
|
29
34
|
- ext/whistlepig/extconf.rb
|
@@ -69,32 +74,41 @@ files:
|
|
69
74
|
has_rdoc: true
|
70
75
|
homepage: http://masanjin.net/whistlepig
|
71
76
|
licenses: []
|
77
|
+
|
72
78
|
post_install_message:
|
73
|
-
rdoc_options:
|
79
|
+
rdoc_options:
|
74
80
|
- -c
|
75
81
|
- utf8
|
76
82
|
- --main
|
77
83
|
- README
|
78
84
|
- --title
|
79
85
|
- Whistlepig
|
80
|
-
require_paths:
|
86
|
+
require_paths:
|
81
87
|
- lib
|
82
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
89
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
hash: 3
|
94
|
+
segments:
|
95
|
+
- 0
|
96
|
+
version: "0"
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
98
|
none: false
|
90
|
-
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
hash: 3
|
103
|
+
segments:
|
104
|
+
- 0
|
105
|
+
version: "0"
|
94
106
|
requirements: []
|
107
|
+
|
95
108
|
rubyforge_project:
|
96
109
|
rubygems_version: 1.6.0
|
97
110
|
signing_key:
|
98
111
|
specification_version: 3
|
99
112
|
summary: a minimalist realtime full-text search index
|
100
113
|
test_files: []
|
114
|
+
|