word_scoop 2.0.0 → 2.0.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.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/README.rdoc +1 -165
  3. data/ext/word_scoop.c +3 -3
  4. metadata +32 -13
data/History.txt CHANGED
@@ -20,3 +20,7 @@
20
20
  * 1 major enhancement:
21
21
  * The library name is changed from Kaerukeyword to WordScoop.
22
22
  * filter_html method : word enclosed with 'a' tag.
23
+
24
+ == 2.0.1 2011-01-23
25
+ * 1 minor enhancement:
26
+ * For Ruby1.9.2
data/README.rdoc CHANGED
@@ -32,168 +32,4 @@ sudo gem install word_scoop
32
32
 
33
33
  == LICENSE:
34
34
 
35
- GNU LESSER GENERAL PUBLIC LICENSE
36
- Version 3, 29 June 2007
37
-
38
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
39
- Everyone is permitted to copy and distribute verbatim copies
40
- of this license document, but changing it is not allowed.
41
-
42
-
43
- This version of the GNU Lesser General Public License incorporates
44
- the terms and conditions of version 3 of the GNU General Public
45
- License, supplemented by the additional permissions listed below.
46
-
47
- 0. Additional Definitions.
48
-
49
- As used herein, "this License" refers to version 3 of the GNU Lesser
50
- General Public License, and the "GNU GPL" refers to version 3 of the GNU
51
- General Public License.
52
-
53
- "The Library" refers to a covered work governed by this License,
54
- other than an Application or a Combined Work as defined below.
55
-
56
- An "Application" is any work that makes use of an interface provided
57
- by the Library, but which is not otherwise based on the Library.
58
- Defining a subclass of a class defined by the Library is deemed a mode
59
- of using an interface provided by the Library.
60
-
61
- A "Combined Work" is a work produced by combining or linking an
62
- Application with the Library. The particular version of the Library
63
- with which the Combined Work was made is also called the "Linked
64
- Version".
65
-
66
- The "Minimal Corresponding Source" for a Combined Work means the
67
- Corresponding Source for the Combined Work, excluding any source code
68
- for portions of the Combined Work that, considered in isolation, are
69
- based on the Application, and not on the Linked Version.
70
-
71
- The "Corresponding Application Code" for a Combined Work means the
72
- object code and/or source code for the Application, including any data
73
- and utility programs needed for reproducing the Combined Work from the
74
- Application, but excluding the System Libraries of the Combined Work.
75
-
76
- 1. Exception to Section 3 of the GNU GPL.
77
-
78
- You may convey a covered work under sections 3 and 4 of this License
79
- without being bound by section 3 of the GNU GPL.
80
-
81
- 2. Conveying Modified Versions.
82
-
83
- If you modify a copy of the Library, and, in your modifications, a
84
- facility refers to a function or data to be supplied by an Application
85
- that uses the facility (other than as an argument passed when the
86
- facility is invoked), then you may convey a copy of the modified
87
- version:
88
-
89
- a) under this License, provided that you make a good faith effort to
90
- ensure that, in the event an Application does not supply the
91
- function or data, the facility still operates, and performs
92
- whatever part of its purpose remains meaningful, or
93
-
94
- b) under the GNU GPL, with none of the additional permissions of
95
- this License applicable to that copy.
96
-
97
- 3. Object Code Incorporating Material from Library Header Files.
98
-
99
- The object code form of an Application may incorporate material from
100
- a header file that is part of the Library. You may convey such object
101
- code under terms of your choice, provided that, if the incorporated
102
- material is not limited to numerical parameters, data structure
103
- layouts and accessors, or small macros, inline functions and templates
104
- (ten or fewer lines in length), you do both of the following:
105
-
106
- a) Give prominent notice with each copy of the object code that the
107
- Library is used in it and that the Library and its use are
108
- covered by this License.
109
-
110
- b) Accompany the object code with a copy of the GNU GPL and this license
111
- document.
112
-
113
- 4. Combined Works.
114
-
115
- You may convey a Combined Work under terms of your choice that,
116
- taken together, effectively do not restrict modification of the
117
- portions of the Library contained in the Combined Work and reverse
118
- engineering for debugging such modifications, if you also do each of
119
- the following:
120
-
121
- a) Give prominent notice with each copy of the Combined Work that
122
- the Library is used in it and that the Library and its use are
123
- covered by this License.
124
-
125
- b) Accompany the Combined Work with a copy of the GNU GPL and this license
126
- document.
127
-
128
- c) For a Combined Work that displays copyright notices during
129
- execution, include the copyright notice for the Library among
130
- these notices, as well as a reference directing the user to the
131
- copies of the GNU GPL and this license document.
132
-
133
- d) Do one of the following:
134
-
135
- 0) Convey the Minimal Corresponding Source under the terms of this
136
- License, and the Corresponding Application Code in a form
137
- suitable for, and under terms that permit, the user to
138
- recombine or relink the Application with a modified version of
139
- the Linked Version to produce a modified Combined Work, in the
140
- manner specified by section 6 of the GNU GPL for conveying
141
- Corresponding Source.
142
-
143
- 1) Use a suitable shared library mechanism for linking with the
144
- Library. A suitable mechanism is one that (a) uses at run time
145
- a copy of the Library already present on the user's computer
146
- system, and (b) will operate properly with a modified version
147
- of the Library that is interface-compatible with the Linked
148
- Version.
149
-
150
- e) Provide Installation Information, but only if you would otherwise
151
- be required to provide such information under section 6 of the
152
- GNU GPL, and only to the extent that such information is
153
- necessary to install and execute a modified version of the
154
- Combined Work produced by recombining or relinking the
155
- Application with a modified version of the Linked Version. (If
156
- you use option 4d0, the Installation Information must accompany
157
- the Minimal Corresponding Source and Corresponding Application
158
- Code. If you use option 4d1, you must provide the Installation
159
- Information in the manner specified by section 6 of the GNU GPL
160
- for conveying Corresponding Source.)
161
-
162
- 5. Combined Libraries.
163
-
164
- You may place library facilities that are a work based on the
165
- Library side by side in a single library together with other library
166
- facilities that are not Applications and are not covered by this
167
- License, and convey such a combined library under terms of your
168
- choice, if you do both of the following:
169
-
170
- a) Accompany the combined library with a copy of the same work based
171
- on the Library, uncombined with any other library facilities,
172
- conveyed under the terms of this License.
173
-
174
- b) Give prominent notice with the combined library that part of it
175
- is a work based on the Library, and explaining where to find the
176
- accompanying uncombined form of the same work.
177
-
178
- 6. Revised Versions of the GNU Lesser General Public License.
179
-
180
- The Free Software Foundation may publish revised and/or new versions
181
- of the GNU Lesser General Public License from time to time. Such new
182
- versions will be similar in spirit to the present version, but may
183
- differ in detail to address new problems or concerns.
184
-
185
- Each version is given a distinguishing version number. If the
186
- Library as you received it specifies that a certain numbered version
187
- of the GNU Lesser General Public License "or any later version"
188
- applies to it, you have the option of following the terms and
189
- conditions either of that published version or of any later version
190
- published by the Free Software Foundation. If the Library as you
191
- received it does not specify a version number of the GNU Lesser
192
- General Public License, you may choose any version of the GNU Lesser
193
- General Public License ever published by the Free Software Foundation.
194
-
195
- If the Library as you received it specifies that a proxy can decide
196
- whether future versions of the GNU Lesser General Public License shall
197
- apply, that proxy's public statement of acceptance of any version is
198
- permanent authorization for you to choose that version for the
199
- Library.
35
+ WordScoop is released under the MIT license.
data/ext/word_scoop.c CHANGED
@@ -121,7 +121,7 @@ static VALUE t_add(VALUE self, VALUE str)
121
121
  char *keyword;
122
122
  int i, len;
123
123
 
124
- keyword = STR2CSTR(str);
124
+ keyword = StringValuePtr(str);
125
125
 
126
126
  len = strlen(keyword);
127
127
  while(keyword[len - 1] == CR || keyword[len - 1] == LF ||
@@ -156,7 +156,7 @@ static VALUE t_search(VALUE self, VALUE str)
156
156
  VALUE array;
157
157
 
158
158
  array = rb_ary_new();
159
- text = STR2CSTR(str);
159
+ text = StringValuePtr(str);
160
160
 
161
161
  Data_Get_Struct(self, struct _node, root);
162
162
 
@@ -207,7 +207,7 @@ static VALUE t_filter_hrml(VALUE self, VALUE str)
207
207
  VALUE change_str, url_base, word;
208
208
 
209
209
  change_str = rb_str_new2(EMPTY_STRING);
210
- text = STR2CSTR(str);
210
+ text = StringValuePtr(str);
211
211
 
212
212
  Data_Get_Struct(self, struct _node, root);
213
213
  url_base = rb_iv_get(self, LINK_URL_VARIABLE);
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: word_scoop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 0
8
+ - 1
9
+ version: 2.0.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - Tsukasa OISHI
@@ -9,29 +14,39 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-11-21 00:00:00 +09:00
17
+ date: 2011-01-23 00:00:00 +09:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: newgem
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 2
31
+ - 3
23
32
  version: 1.2.3
24
- version:
33
+ type: :development
34
+ version_requirements: *id001
25
35
  - !ruby/object:Gem::Dependency
26
36
  name: hoe
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
30
40
  requirements:
31
41
  - - ">="
32
42
  - !ruby/object:Gem::Version
43
+ segments:
44
+ - 1
45
+ - 8
46
+ - 0
33
47
  version: 1.8.0
34
- version:
48
+ type: :development
49
+ version_requirements: *id002
35
50
  description: WordScoop is a library that searching keyword in text.
36
51
  email:
37
52
  - tsukasa.oishi@gmail.com
@@ -64,21 +79,25 @@ require_paths:
64
79
  - lib
65
80
  - ext
66
81
  required_ruby_version: !ruby/object:Gem::Requirement
82
+ none: false
67
83
  requirements:
68
84
  - - ">="
69
85
  - !ruby/object:Gem::Version
86
+ segments:
87
+ - 0
70
88
  version: "0"
71
- version:
72
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
+ none: false
73
91
  requirements:
74
92
  - - ">="
75
93
  - !ruby/object:Gem::Version
94
+ segments:
95
+ - 0
76
96
  version: "0"
77
- version:
78
97
  requirements: []
79
98
 
80
99
  rubyforge_project: word_scoop
81
- rubygems_version: 1.3.5
100
+ rubygems_version: 1.3.7
82
101
  signing_key:
83
102
  specification_version: 2
84
103
  summary: WordScoop is a library that searching keyword in text.