elastics-scopes 1.1.11 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/VERSION +1 -1
- data/elastics-scopes.gemspec +6 -3
- data/lib/elastics/scope/vars_methods.rb +5 -0
- metadata +12 -17
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f5c9ea5cab3ab75dff53147b0046aa1e4b1203c8
|
4
|
+
data.tar.gz: 6437254860736de38fa16ac15ff82d92313f7c37
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b9cc0b42360f3bdbae9dbb6dbc41000117f3457ce4004438c284f240213e4a1cda42018ad93410b1e20e525e233d81866f3b93dd73f92a24af1e58213447d02f
|
7
|
+
data.tar.gz: 56147036aa4b1423558bd27a3fb5f1a61bfd38f728427e665deb33d909bc2ccbe52b79be661b91a890a32370a2e354a1f60c71843b6d899b32efad57ebdc90f3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
data/elastics-scopes.gemspec
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
require 'date'
|
2
|
-
version_path = %w[
|
3
|
-
version = File.read(
|
2
|
+
version_path = %w[VERSION ../VERSION].detect{|v| File.exist?(v)}
|
3
|
+
version = File.read(version_path).strip
|
4
|
+
extra_files = []
|
5
|
+
extra_files << 'VERSION' if File.exist?('VERSION')
|
6
|
+
extra_files << 'LICENSE' if File.exist?('LICENSE')
|
4
7
|
|
5
8
|
Gem::Specification.new do |s|
|
6
9
|
s.name = 'elastics-scopes'
|
@@ -9,7 +12,7 @@ Gem::Specification.new do |s|
|
|
9
12
|
s.homepage = 'http://elastics.github.io/elastics'
|
10
13
|
s.authors = ["Domizio Demichelis"]
|
11
14
|
s.email = 'dd.nexus@gmail.com'
|
12
|
-
s.files = `git ls-files -z`.split("\0") +
|
15
|
+
s.files = `git ls-files -z`.split("\0") + extra_files
|
13
16
|
s.version = version
|
14
17
|
s.date = Date.today.to_s
|
15
18
|
s.required_rubygems_version = ">= 1.3.6"
|
@@ -25,6 +25,11 @@ module Elastics
|
|
25
25
|
deep_merge :params => {:fields => array_value(value)}
|
26
26
|
end
|
27
27
|
|
28
|
+
def source(*value)
|
29
|
+
deep_merge :params => {:_source => array_value(value)}
|
30
|
+
end
|
31
|
+
alias_method :_source, :source
|
32
|
+
|
28
33
|
# limits the size of the retrieved hits
|
29
34
|
def size(value)
|
30
35
|
deep_merge :params => {:size => value}
|
metadata
CHANGED
@@ -1,32 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastics-scopes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Domizio Demichelis
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-11-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: elastics-client
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
19
|
+
version: 1.2.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.
|
26
|
+
version: 1.2.0
|
30
27
|
description: Provides an easy to use ruby API to search elasticsearch with ActiveRecord-like
|
31
28
|
chainable and mergeables scopes.
|
32
29
|
email: dd.nexus@gmail.com
|
@@ -34,7 +31,9 @@ executables: []
|
|
34
31
|
extensions: []
|
35
32
|
extra_rdoc_files: []
|
36
33
|
files:
|
34
|
+
- LICENSE
|
37
35
|
- README.md
|
36
|
+
- VERSION
|
38
37
|
- elastics-scopes.gemspec
|
39
38
|
- lib/elastics-scopes.rb
|
40
39
|
- lib/elastics/result/scope.rb
|
@@ -45,33 +44,29 @@ files:
|
|
45
44
|
- lib/elastics/scope/utils.rb
|
46
45
|
- lib/elastics/scope/vars_methods.rb
|
47
46
|
- lib/elastics/scopes.rb
|
48
|
-
- VERSION
|
49
|
-
- LICENSE
|
50
47
|
homepage: http://elastics.github.io/elastics
|
51
48
|
licenses:
|
52
49
|
- MIT
|
50
|
+
metadata: {}
|
53
51
|
post_install_message:
|
54
52
|
rdoc_options:
|
55
|
-
- --charset=UTF-8
|
53
|
+
- "--charset=UTF-8"
|
56
54
|
require_paths:
|
57
55
|
- lib
|
58
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
57
|
requirements:
|
61
|
-
- -
|
58
|
+
- - ">="
|
62
59
|
- !ruby/object:Gem::Version
|
63
60
|
version: '0'
|
64
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
62
|
requirements:
|
67
|
-
- -
|
63
|
+
- - ">="
|
68
64
|
- !ruby/object:Gem::Version
|
69
65
|
version: 1.3.6
|
70
66
|
requirements: []
|
71
67
|
rubyforge_project:
|
72
|
-
rubygems_version:
|
68
|
+
rubygems_version: 2.4.5.1
|
73
69
|
signing_key:
|
74
|
-
specification_version:
|
70
|
+
specification_version: 4
|
75
71
|
summary: ActiveRecord-like chainable scopes and finders for Elastics.
|
76
72
|
test_files: []
|
77
|
-
has_rdoc:
|