chef 0.10.0.beta.1 → 0.10.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chef/knife.rb +4 -1
- data/lib/chef/solr_query/lucene.treetop +13 -8
- data/lib/chef/version.rb +1 -1
- metadata +2 -2
data/lib/chef/knife.rb
CHANGED
@@ -27,7 +27,7 @@ grammar Lucene
|
|
27
27
|
end
|
28
28
|
|
29
29
|
rule term
|
30
|
-
keyword valid_letter+ <Term> / !keyword valid_letter
|
30
|
+
keyword valid_letter+ <Term> / !keyword !"?" valid_letter <Term>
|
31
31
|
end
|
32
32
|
|
33
33
|
rule field
|
@@ -45,7 +45,7 @@ grammar Lucene
|
|
45
45
|
end
|
46
46
|
|
47
47
|
rule range_value
|
48
|
-
valid_letter+ <RangeValue>
|
48
|
+
valid_letter+ <RangeValue> / "*" <RangeValue>
|
49
49
|
end
|
50
50
|
|
51
51
|
rule group
|
@@ -102,8 +102,6 @@ grammar Lucene
|
|
102
102
|
|
103
103
|
rule prohibited_op
|
104
104
|
!valid_letter prohibited_operator (field/field_range/term/string) <UnaryOp>
|
105
|
-
/
|
106
|
-
prohibited_operator (field/field_range/term/string) <UnaryOp>
|
107
105
|
end
|
108
106
|
|
109
107
|
rule prohibited_operator
|
@@ -115,7 +113,7 @@ grammar Lucene
|
|
115
113
|
end
|
116
114
|
|
117
115
|
rule fuzzy_op
|
118
|
-
(term/string) '~' fuzzy_param? <FuzzyOp>
|
116
|
+
(term/string) '~' fuzzy_param? (space / !valid_letter) <FuzzyOp>
|
119
117
|
end
|
120
118
|
|
121
119
|
rule fuzzy_param
|
@@ -123,7 +121,6 @@ grammar Lucene
|
|
123
121
|
end
|
124
122
|
|
125
123
|
rule string
|
126
|
-
#'"' (!'"' . / '\"')* '"' <Phrase>
|
127
124
|
'"' term (space term)* '"' <Phrase>
|
128
125
|
end
|
129
126
|
|
@@ -132,11 +129,19 @@ grammar Lucene
|
|
132
129
|
end
|
133
130
|
|
134
131
|
rule valid_letter
|
135
|
-
[a-zA-Z0-9
|
132
|
+
start_letter+ ([a-zA-Z0-9*?_.-] / '\\' special_char)*
|
133
|
+
end
|
134
|
+
|
135
|
+
rule start_letter
|
136
|
+
[a-zA-Z0-9._*] / '\\' special_char
|
137
|
+
end
|
138
|
+
|
139
|
+
rule end_letter
|
140
|
+
[a-zA-Z0-9*?_.] / '\\' special_char
|
136
141
|
end
|
137
142
|
|
138
143
|
rule special_char
|
139
|
-
[
|
144
|
+
[-+&|!(){}\[\]^"~*?:\\]
|
140
145
|
end
|
141
146
|
|
142
147
|
rule space
|
data/lib/chef/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 7
|
5
|
-
version: 0.10.0.beta.
|
5
|
+
version: 0.10.0.beta.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Adam Jacob
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-30 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|