solrb 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e90b9041817aa81077a2d05c9be0105682dedac1bb681d7cdd0802e2dd82e829
4
- data.tar.gz: ac2d9553669c73c72e57bbba5636cd325c31141c859463dbf88908e0e0f070c6
3
+ metadata.gz: 030e3ff37721981b2d316720a7c821bab62a3631d875fffbffd7b7a7a1ca2eee
4
+ data.tar.gz: fc46f7d4dd1e8d349e0c4c82ef1fbeb2839e4d8f7d6b58d509a0c274548f7e8c
5
5
  SHA512:
6
- metadata.gz: 154b62204ff427c13b7eedf8cf0dbe18d18d73093402f6a74a0f292e4f226929bce30a874d7586e50beff08b1b74c792f2702f9f277351e825a80d9367c1af18
7
- data.tar.gz: 1bfd971cb1973195288dec35d37911fceb98fc4ef4a76123a9e09261b97d7e8c9ead7ec851074ce3df9698421423298ea00aed3d38bee0b3eb78e6ae575b34e9
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 [WIP]
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.min)
46
- solr_max = if date_infinity?(range.max) || range.max.to_f.infinite?
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.max)
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
@@ -1,3 +1,3 @@
1
1
  module Solr
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
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.0
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-04 00:00:00.000000000 Z
12
+ date: 2018-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable