daedal-sl 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe DaedalSL do
4
+
5
+ context 'class method #build' do
6
+ it 'works' do
7
+ data = {foo: :bar}
8
+ result = DaedalSL.build(data) do
9
+ query { match field: :foo, query: data[:foo] }
10
+ filter { {hi: :bye} }
11
+ paginate page: 3, per_page: 7
12
+ end
13
+ expect(result).to eq({query: {match: {foo: {query: :bar}}}, filter: {hi: :bye}, from: 14, size: 7})
14
+ end
15
+ end
16
+
17
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daedal-sl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Schuch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-20 00:00:00.000000000 Z
11
+ date: 2014-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daedal
@@ -38,6 +38,33 @@ files:
38
38
  - LICENSE
39
39
  - README.md
40
40
  - daedal-sl.gemspec
41
+ - lib/daedal-sl.rb
42
+ - lib/daedal-sl/and_filter.rb
43
+ - lib/daedal-sl/block_query.rb
44
+ - lib/daedal-sl/bool_filter.rb
45
+ - lib/daedal-sl/bool_query.rb
46
+ - lib/daedal-sl/builder.rb
47
+ - lib/daedal-sl/dis_max_query.rb
48
+ - lib/daedal-sl/nested_bool_filter.rb
49
+ - lib/daedal-sl/nested_bool_query.rb
50
+ - lib/daedal-sl/nested_dis_max_query.rb
51
+ - lib/daedal-sl/or_filter.rb
52
+ - lib/daedal-sl/query_helpers.rb
53
+ - lib/daedal-sl/version.rb
54
+ - spec/acceptance/daedal-sl_spec.rb
55
+ - spec/spec_helper.rb
56
+ - spec/unit/daedal-sl/and_filter_spec.rb
57
+ - spec/unit/daedal-sl/block_query_spec.rb
58
+ - spec/unit/daedal-sl/bool_filter_spec.rb
59
+ - spec/unit/daedal-sl/bool_query_spec.rb
60
+ - spec/unit/daedal-sl/builder_spec.rb
61
+ - spec/unit/daedal-sl/dis_max_query_spec.rb
62
+ - spec/unit/daedal-sl/nested_bool_filter_spec.rb
63
+ - spec/unit/daedal-sl/nested_bool_query_spec.rb
64
+ - spec/unit/daedal-sl/nested_dis_max_query_spec.rb
65
+ - spec/unit/daedal-sl/or_filter_spec.rb
66
+ - spec/unit/daedal-sl/query_helpers_spec.rb
67
+ - spec/unit/daedal-sl_spec.rb
41
68
  homepage: https://github.com/RallyPointNetworks/daedal-sl
42
69
  licenses:
43
70
  - MIT