hotdog 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hotdog/commands.rb +19 -19
- data/lib/hotdog/commands/search.rb +4 -4
- data/lib/hotdog/commands/tags.rb +4 -4
- data/lib/hotdog/expression.rb +50 -50
- data/lib/hotdog/expression/semantics.rb +97 -93
- data/lib/hotdog/expression/syntax.rb +31 -31
- data/lib/hotdog/version.rb +1 -1
- data/spec/{parser → evaluator}/glob_expression_spec.rb +19 -14
- data/spec/{parser → evaluator}/regexp_expression_spec.rb +19 -14
- data/spec/{parser → evaluator}/string_expression_spec.rb +19 -14
- data/spec/optimizer/binary_expression_spec.rb +47 -0
- data/spec/optimizer/glob_expression_spec.rb +105 -0
- data/spec/optimizer/regexp_expression_spec.rb +55 -0
- data/spec/optimizer/string_expression_spec.rb +105 -0
- data/spec/optimizer/unary_expression_spec.rb +23 -0
- data/spec/parser/parser_spec.rb +82 -82
- metadata +18 -8
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hotdog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yamashita Yuu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -182,6 +182,9 @@ files:
|
|
182
182
|
- lib/hotdog/version.rb
|
183
183
|
- spec/core/application_spec.rb
|
184
184
|
- spec/core/commands_spec.rb
|
185
|
+
- spec/evaluator/glob_expression_spec.rb
|
186
|
+
- spec/evaluator/regexp_expression_spec.rb
|
187
|
+
- spec/evaluator/string_expression_spec.rb
|
185
188
|
- spec/formatter/csv_spec.rb
|
186
189
|
- spec/formatter/json_spec.rb
|
187
190
|
- spec/formatter/ltsv_spec.rb
|
@@ -189,6 +192,11 @@ files:
|
|
189
192
|
- spec/formatter/text_spec.rb
|
190
193
|
- spec/formatter/tsv_spec.rb
|
191
194
|
- spec/formatter/yaml_spec.rb
|
195
|
+
- spec/optimizer/binary_expression_spec.rb
|
196
|
+
- spec/optimizer/glob_expression_spec.rb
|
197
|
+
- spec/optimizer/regexp_expression_spec.rb
|
198
|
+
- spec/optimizer/string_expression_spec.rb
|
199
|
+
- spec/optimizer/unary_expression_spec.rb
|
192
200
|
- spec/optparse/down_spec.rb
|
193
201
|
- spec/optparse/hosts_spec.rb
|
194
202
|
- spec/optparse/pssh_spec.rb
|
@@ -196,10 +204,7 @@ files:
|
|
196
204
|
- spec/optparse/ssh_spec.rb
|
197
205
|
- spec/optparse/tags_spec.rb
|
198
206
|
- spec/optparse/up_spec.rb
|
199
|
-
- spec/parser/glob_expression_spec.rb
|
200
207
|
- spec/parser/parser_spec.rb
|
201
|
-
- spec/parser/regexp_expression_spec.rb
|
202
|
-
- spec/parser/string_expression_spec.rb
|
203
208
|
- spec/spec_helper.rb
|
204
209
|
homepage: https://github.com/yyuu/hotdog
|
205
210
|
licenses:
|
@@ -228,6 +233,9 @@ summary: Yet another command-line tool for Datadog
|
|
228
233
|
test_files:
|
229
234
|
- spec/core/application_spec.rb
|
230
235
|
- spec/core/commands_spec.rb
|
236
|
+
- spec/evaluator/glob_expression_spec.rb
|
237
|
+
- spec/evaluator/regexp_expression_spec.rb
|
238
|
+
- spec/evaluator/string_expression_spec.rb
|
231
239
|
- spec/formatter/csv_spec.rb
|
232
240
|
- spec/formatter/json_spec.rb
|
233
241
|
- spec/formatter/ltsv_spec.rb
|
@@ -235,6 +243,11 @@ test_files:
|
|
235
243
|
- spec/formatter/text_spec.rb
|
236
244
|
- spec/formatter/tsv_spec.rb
|
237
245
|
- spec/formatter/yaml_spec.rb
|
246
|
+
- spec/optimizer/binary_expression_spec.rb
|
247
|
+
- spec/optimizer/glob_expression_spec.rb
|
248
|
+
- spec/optimizer/regexp_expression_spec.rb
|
249
|
+
- spec/optimizer/string_expression_spec.rb
|
250
|
+
- spec/optimizer/unary_expression_spec.rb
|
238
251
|
- spec/optparse/down_spec.rb
|
239
252
|
- spec/optparse/hosts_spec.rb
|
240
253
|
- spec/optparse/pssh_spec.rb
|
@@ -242,8 +255,5 @@ test_files:
|
|
242
255
|
- spec/optparse/ssh_spec.rb
|
243
256
|
- spec/optparse/tags_spec.rb
|
244
257
|
- spec/optparse/up_spec.rb
|
245
|
-
- spec/parser/glob_expression_spec.rb
|
246
258
|
- spec/parser/parser_spec.rb
|
247
|
-
- spec/parser/regexp_expression_spec.rb
|
248
|
-
- spec/parser/string_expression_spec.rb
|
249
259
|
- spec/spec_helper.rb
|