solrb 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/solr/query/request/filter.rb +3 -3
- data/lib/solr/version.rb +1 -1
- data/solrb.gemspec +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 030e3ff37721981b2d316720a7c821bab62a3631d875fffbffd7b7a7a1ca2eee
|
4
|
+
data.tar.gz: fc46f7d4dd1e8d349e0c4c82ef1fbeb2839e4d8f7d6b58d509a0c274548f7e8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94a8e126c5d60ac4b60fb371c57675a6b5ea12484de73efe9b218bd00b409712b9ae5675f412ab8adca22f3b129cebebd2ac698abc122a6097afb2c264ce9570
|
7
|
+
data.tar.gz: 10b6e6ae6785940efa6e96b5807bb10314a7d5ea6db24201b1640d47f92671bc4336fb5365f6262d456a8601a6cfacd1f63aaf6e6c8591ef31b42f867f4f2037
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
[![CircleCI](https://circleci.com/gh/machinio/solrb/tree/master.svg?style=svg)](https://circleci.com/gh/machinio/solrb/tree/master)
|
2
2
|
[![Maintainability](https://api.codeclimate.com/v1/badges/81e84c1c42f10f9da801/maintainability)](https://codeclimate.com/github/machinio/solrb/maintainability)
|
3
3
|
|
4
|
-
# Solrb
|
4
|
+
# Solrb
|
5
5
|
|
6
6
|
Object-Oriented approach to Solr in Ruby.
|
7
7
|
|
@@ -42,11 +42,11 @@ module Solr
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def to_interval_solr_value(range)
|
45
|
-
solr_min = to_primitive_solr_value(range.
|
46
|
-
solr_max = if date_infinity?(range.
|
45
|
+
solr_min = to_primitive_solr_value(range.first)
|
46
|
+
solr_max = if date_infinity?(range.last) || range.last.to_f.infinite?
|
47
47
|
'*'
|
48
48
|
else
|
49
|
-
to_primitive_solr_value(range.
|
49
|
+
to_primitive_solr_value(range.last)
|
50
50
|
end
|
51
51
|
"[#{solr_min} TO #{solr_max}]"
|
52
52
|
end
|
data/lib/solr/version.rb
CHANGED
data/solrb.gemspec
CHANGED
@@ -12,12 +12,20 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = 'https://github.com/machinio/solrb'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
15
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
16
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
17
|
+
# if spec.respond_to?(:metadata)
|
18
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
19
|
+
# else
|
20
|
+
# raise 'RubyGems 2.0 or newer is required to protect against ' \
|
21
|
+
# 'public gem pushes.'
|
22
|
+
# end
|
23
|
+
|
15
24
|
# Specify which files should be added to the gem when it is released.
|
16
25
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
17
26
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
18
27
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
28
|
end
|
20
|
-
|
21
29
|
spec.bindir = 'exe'
|
22
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
31
|
spec.require_paths = ['lib']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adriano Luz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-09-
|
12
|
+
date: 2018-09-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|