redcar-dev 0.12.13dev-java → 0.12.14dev-java
Sign up to get free protection for your applications and to get access to all the features.
data/lib/redcar.rb
CHANGED
@@ -31,9 +31,7 @@ class ProjectSearch
|
|
31
31
|
regexp_text = Regexp.escape(@query_string)
|
32
32
|
# Replace Lucene wildcards with non-greedy Ruby regex equivalents
|
33
33
|
# TODO: determine best (expected?) way of handling phrases
|
34
|
-
p [regexp_text]
|
35
34
|
regexp_text = regexp_text.gsub(/\\\s+or\\\s+/i,"|").gsub('\\*','.*?').gsub('\\?','.').gsub(/\\\s+/,".*?")
|
36
|
-
p regexp_text
|
37
35
|
# Match to the next word boundary if the last char is '*'
|
38
36
|
regexp_text += "\\b" if regexp_text =~ /\.\*\?$/
|
39
37
|
match_case? ? /#{regexp_text}/ : /#{regexp_text}/i
|
@@ -104,7 +102,6 @@ class ProjectSearch
|
|
104
102
|
@doc_ids ||= begin
|
105
103
|
index = ProjectSearch.indexes[project.path].lucene_index
|
106
104
|
doc_ids = nil
|
107
|
-
p [:formatted_query, formatted_query]
|
108
105
|
doc_ids = index.find(formatted_query).map {|doc| doc.id}
|
109
106
|
doc_ids.reject {|doc_id| Redcar::Project::FileList.hide_file_path?(doc_id) }
|
110
107
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: redcar-dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 7
|
5
|
-
version: 0.12.
|
5
|
+
version: 0.12.14dev
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Daniel Lucraft
|
@@ -14,7 +14,7 @@ date: 2011-08-19 00:00:00 +01:00
|
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
|
-
name:
|
17
|
+
name: ffi
|
18
18
|
prerelease: false
|
19
19
|
requirement: &id001 !ruby/object:Gem::Requirement
|
20
20
|
none: false
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
type: :runtime
|
26
26
|
version_requirements: *id001
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: git
|
29
29
|
prerelease: false
|
30
30
|
requirement: &id002 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
@@ -102,7 +102,7 @@ dependencies:
|
|
102
102
|
type: :runtime
|
103
103
|
version_requirements: *id008
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
|
-
name:
|
105
|
+
name: net-ftp-list
|
106
106
|
prerelease: false
|
107
107
|
requirement: &id009 !ruby/object:Gem::Requirement
|
108
108
|
none: false
|
@@ -113,7 +113,7 @@ dependencies:
|
|
113
113
|
type: :runtime
|
114
114
|
version_requirements: *id009
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
|
-
name:
|
116
|
+
name: jruby-openssl
|
117
117
|
prerelease: false
|
118
118
|
requirement: &id010 !ruby/object:Gem::Requirement
|
119
119
|
none: false
|
@@ -124,7 +124,7 @@ dependencies:
|
|
124
124
|
type: :runtime
|
125
125
|
version_requirements: *id010
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
127
|
+
name: ruby-blockcache
|
128
128
|
prerelease: false
|
129
129
|
requirement: &id011 !ruby/object:Gem::Requirement
|
130
130
|
none: false
|
@@ -135,7 +135,7 @@ dependencies:
|
|
135
135
|
type: :runtime
|
136
136
|
version_requirements: *id011
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
|
-
name:
|
138
|
+
name: bouncy-castle-java
|
139
139
|
prerelease: false
|
140
140
|
requirement: &id012 !ruby/object:Gem::Requirement
|
141
141
|
none: false
|
@@ -146,7 +146,7 @@ dependencies:
|
|
146
146
|
type: :runtime
|
147
147
|
version_requirements: *id012
|
148
148
|
- !ruby/object:Gem::Dependency
|
149
|
-
name:
|
149
|
+
name: swt
|
150
150
|
prerelease: false
|
151
151
|
requirement: &id013 !ruby/object:Gem::Requirement
|
152
152
|
none: false
|
@@ -157,7 +157,7 @@ dependencies:
|
|
157
157
|
type: :runtime
|
158
158
|
version_requirements: *id013
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
|
-
name:
|
160
|
+
name: plugin_manager
|
161
161
|
prerelease: false
|
162
162
|
requirement: &id014 !ruby/object:Gem::Requirement
|
163
163
|
none: false
|
@@ -168,7 +168,7 @@ dependencies:
|
|
168
168
|
type: :runtime
|
169
169
|
version_requirements: *id014
|
170
170
|
- !ruby/object:Gem::Dependency
|
171
|
-
name:
|
171
|
+
name: redcar-icons
|
172
172
|
prerelease: false
|
173
173
|
requirement: &id015 !ruby/object:Gem::Requirement
|
174
174
|
none: false
|
@@ -179,7 +179,7 @@ dependencies:
|
|
179
179
|
type: :runtime
|
180
180
|
version_requirements: *id015
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name: redcar-
|
182
|
+
name: redcar-svnkit
|
183
183
|
prerelease: false
|
184
184
|
requirement: &id016 !ruby/object:Gem::Requirement
|
185
185
|
none: false
|
@@ -190,7 +190,7 @@ dependencies:
|
|
190
190
|
type: :runtime
|
191
191
|
version_requirements: *id016
|
192
192
|
- !ruby/object:Gem::Dependency
|
193
|
-
name:
|
193
|
+
name: redcar-bundles
|
194
194
|
prerelease: false
|
195
195
|
requirement: &id017 !ruby/object:Gem::Requirement
|
196
196
|
none: false
|
@@ -198,10 +198,10 @@ dependencies:
|
|
198
198
|
- - ">="
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: "0"
|
201
|
-
type: :
|
201
|
+
type: :runtime
|
202
202
|
version_requirements: *id017
|
203
203
|
- !ruby/object:Gem::Dependency
|
204
|
-
name:
|
204
|
+
name: redcar-javamateview
|
205
205
|
prerelease: false
|
206
206
|
requirement: &id018 !ruby/object:Gem::Requirement
|
207
207
|
none: false
|
@@ -209,10 +209,10 @@ dependencies:
|
|
209
209
|
- - ">="
|
210
210
|
- !ruby/object:Gem::Version
|
211
211
|
version: "0"
|
212
|
-
type: :
|
212
|
+
type: :runtime
|
213
213
|
version_requirements: *id018
|
214
214
|
- !ruby/object:Gem::Dependency
|
215
|
-
name:
|
215
|
+
name: cucumber
|
216
216
|
prerelease: false
|
217
217
|
requirement: &id019 !ruby/object:Gem::Requirement
|
218
218
|
none: false
|
@@ -222,6 +222,28 @@ dependencies:
|
|
222
222
|
version: "0"
|
223
223
|
type: :development
|
224
224
|
version_requirements: *id019
|
225
|
+
- !ruby/object:Gem::Dependency
|
226
|
+
name: rspec
|
227
|
+
prerelease: false
|
228
|
+
requirement: &id020 !ruby/object:Gem::Requirement
|
229
|
+
none: false
|
230
|
+
requirements:
|
231
|
+
- - ">="
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: "0"
|
234
|
+
type: :development
|
235
|
+
version_requirements: *id020
|
236
|
+
- !ruby/object:Gem::Dependency
|
237
|
+
name: watchr
|
238
|
+
prerelease: false
|
239
|
+
requirement: &id021 !ruby/object:Gem::Requirement
|
240
|
+
none: false
|
241
|
+
requirements:
|
242
|
+
- - ">="
|
243
|
+
- !ruby/object:Gem::Version
|
244
|
+
version: "0"
|
245
|
+
type: :development
|
246
|
+
version_requirements: *id021
|
225
247
|
description: ""
|
226
248
|
email:
|
227
249
|
- dan@fluentradical.com
|