arelastic 0.1.0 → 0.1.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.
@@ -5,6 +5,7 @@ require 'arelastic/filters/exists'
5
5
  require 'arelastic/filters/geo_distance'
6
6
  require 'arelastic/filters/ids'
7
7
  require 'arelastic/filters/limit'
8
+ require 'arelastic/filters/match_all'
8
9
  require 'arelastic/filters/missing'
9
10
  require 'arelastic/filters/not'
10
11
  require 'arelastic/filters/or'
@@ -0,0 +1,9 @@
1
+ module Arelastic
2
+ module Filters
3
+ class MatchAll
4
+ def as_elastic
5
+ {"match_all" => {}}
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ require 'helper'
2
+
3
+ class Arelastic::Filters::MatchAllTest < MiniTest::Spec
4
+ def test_as_elastic
5
+ match_all = Arelastic::Queries::MatchAll.new
6
+ expected = {"match_all" => {}}
7
+
8
+ assert_equal expected, match_all.as_elastic
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arelastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-12 00:00:00.000000000 Z
12
+ date: 2012-09-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Build Elastic Search queries with objects
15
15
  email: developer@matthewhiggins.com
@@ -39,6 +39,7 @@ files:
39
39
  - lib/arelastic/filters/geo_distance.rb
40
40
  - lib/arelastic/filters/ids.rb
41
41
  - lib/arelastic/filters/limit.rb
42
+ - lib/arelastic/filters/match_all.rb
42
43
  - lib/arelastic/filters/missing.rb
43
44
  - lib/arelastic/filters/not.rb
44
45
  - lib/arelastic/filters/or.rb
@@ -84,6 +85,7 @@ files:
84
85
  - test/arelastic/filters/filter_test.rb
85
86
  - test/arelastic/filters/geo_distance_test.rb
86
87
  - test/arelastic/filters/ids_test.rb
88
+ - test/arelastic/filters/match_all_test.rb
87
89
  - test/arelastic/filters/missing_test.rb
88
90
  - test/arelastic/filters/not_test.rb
89
91
  - test/arelastic/nodes/node_test.rb