lsolr 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lsolr.rb +1 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1803dd132f545657b9e07fca95b312cfea22abad
4
- data.tar.gz: f6dd91a04b98d8d9878af741987c535c11189549
3
+ metadata.gz: b2f767515aadc312c4eb075eade0bec49647961b
4
+ data.tar.gz: 5783b321efaf0866d3fe2561734adb41be08631e
5
5
  SHA512:
6
- metadata.gz: 8441813a97accd36e02b7b1e80d1a03dde9acab61d9378c5373828fd569f780ca4592d89b5b1a4297fa98bafeadccc5950fc6db4f6009be7796a3816f2ff14ce
7
- data.tar.gz: 9fdf5792b7ce9de32d44f36bff486b86bdfa6b2e30dd2b1d9247d73e4069042952821baff7c0783fd6fb192dd1c7e4904f977f17b8eea445187b7cc24a09e1a1
6
+ metadata.gz: 58056c0bd27ea5974d9d8ba219312e896ca7e18cd844c61b4e189bc9ccb09cf404781f0d337f88a3a2c484b1b5ae26111c0dd863e66e2ba2c327beca54aa0a97
7
+ data.tar.gz: 81a26a8ee3957c6cc2b45b1e153350407ce2079ef08dfbfe99acf3ce807fd21534478a32ab750e443eb645106b7ee63e0a7d2e9b7751ad10b66bf48d7180d2ba
@@ -91,13 +91,6 @@ class LSolr
91
91
  params.map { |f, v| build_query(f, v) }.reduce { |a, e| a.and(e) }
92
92
  end
93
93
 
94
- # Returns a empty term.
95
- #
96
- # @return [LSolr] a instance
97
- def empty
98
- new(:dummy)
99
- end
100
-
101
94
  private
102
95
 
103
96
  def build_query(field, value) # rubocop:disable Metrics/CyclomaticComplexity
@@ -113,7 +106,7 @@ class LSolr
113
106
  end
114
107
 
115
108
  def build_array_query(field, values)
116
- return LSolr.empty if values.empty?
109
+ return LSolr.new(field) if values.empty?
117
110
 
118
111
  values.map { |v| build_query(field, v) }.reduce { |a, e| a.or(e) }.wrap
119
112
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lsolr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taishi Kasuga