lsolr 0.0.1 → 0.0.2

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 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6720d54fb177afa0758873f10fd7c21aadcea716
4
- data.tar.gz: 872adfaf99faa64e7e98a344525b7ab6a53742f9
3
+ metadata.gz: 3ff72ff796373dff95e027ae0121a55b69f15878
4
+ data.tar.gz: 99d1e7d1a606578a907fea5aa167067de39e661c
5
5
  SHA512:
6
- metadata.gz: 312018c284bc152e68c770ffd35ea2d952c5ff6505fc1f9bfc5d32297c604bd48a9dd35598eee05ee6e5aa3838c9cdc693c01aec2d00cebefa721a1da576d466
7
- data.tar.gz: a4056e9a1f33afd62a4bde0d242f404ab041cb9d67d7495c36a9a634365315eb79645208e5c87037ab05e4ebf48e47de75409ee4e471a26fd247717755d16c67
6
+ metadata.gz: 76bbae287e7d4b159a7e7c05491a26c29259474f9d469eb22e5f2e84a9d74fdaef7d3e7dc2c87942cc8d6cc770cc7f461c722090f98c155b46acac49096256ee
7
+ data.tar.gz: 3df9ee21192b7f2fad330a3a4e5e003d6866539e307a4a1689062e345a6d94e95f00c2203f08d7bf82915ada3d6fe428bbb294c957ca39f1e82034ee450dccef
data/lib/lsolr.rb CHANGED
@@ -124,7 +124,7 @@ class LSolr
124
124
  # @return [LSolr] self instance
125
125
  def phrase_match(values, distance: 0)
126
126
  value = values.map { |v| clean(v) }.join(REPLACEMENT_CHAR)
127
- proximity_match = distance.positive? ? "#{PROXIMITY}#{distance}" : ''
127
+ proximity_match = distance > 0 ? "#{PROXIMITY}#{distance}" : ''
128
128
  @value = %("#{value}"#{proximity_match})
129
129
  self
130
130
  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.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taishi Kasuga