fluent-query 0.9.3 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/fluent-query.gemspec +5 -5
- data/lib/fluent-query/compiler.rb +6 -1
- metadata +5 -5
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -3,7 +3,7 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
abstract (1.0.0)
|
5
5
|
git (1.2.5)
|
6
|
-
hash-utils (2.0.
|
6
|
+
hash-utils (2.0.1)
|
7
7
|
ruby-version
|
8
8
|
jeweler2 (2.0.9)
|
9
9
|
git (>= 1.2.5)
|
@@ -15,5 +15,5 @@ PLATFORMS
|
|
15
15
|
DEPENDENCIES
|
16
16
|
abstract (>= 1.0.0)
|
17
17
|
bundler (>= 1.0.13)
|
18
|
-
hash-utils (>= 0.
|
18
|
+
hash-utils (>= 2.0.1)
|
19
19
|
jeweler2 (>= 2.0.0)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.5
|
data/fluent-query.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "fluent-query"
|
8
|
-
s.version = "0.9.
|
8
|
+
s.version = "0.9.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Martin Koz\u{e1}k"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-08-26"
|
13
13
|
s.email = "martinkozak@martinkozak.net"
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE.txt",
|
@@ -52,18 +52,18 @@ Gem::Specification.new do |s|
|
|
52
52
|
s.specification_version = 3
|
53
53
|
|
54
54
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
55
|
-
s.add_runtime_dependency(%q<hash-utils>, [">= 0.
|
55
|
+
s.add_runtime_dependency(%q<hash-utils>, [">= 2.0.1"])
|
56
56
|
s.add_runtime_dependency(%q<abstract>, [">= 1.0.0"])
|
57
57
|
s.add_development_dependency(%q<bundler>, [">= 1.0.13"])
|
58
58
|
s.add_development_dependency(%q<jeweler2>, [">= 2.0.0"])
|
59
59
|
else
|
60
|
-
s.add_dependency(%q<hash-utils>, [">= 0.
|
60
|
+
s.add_dependency(%q<hash-utils>, [">= 2.0.1"])
|
61
61
|
s.add_dependency(%q<abstract>, [">= 1.0.0"])
|
62
62
|
s.add_dependency(%q<bundler>, [">= 1.0.13"])
|
63
63
|
s.add_dependency(%q<jeweler2>, [">= 2.0.0"])
|
64
64
|
end
|
65
65
|
else
|
66
|
-
s.add_dependency(%q<hash-utils>, [">= 0.
|
66
|
+
s.add_dependency(%q<hash-utils>, [">= 2.0.1"])
|
67
67
|
s.add_dependency(%q<abstract>, [">= 1.0.0"])
|
68
68
|
s.add_dependency(%q<bundler>, [">= 1.0.13"])
|
69
69
|
s.add_dependency(%q<jeweler2>, [">= 2.0.0"])
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require "fluent-query/compilers/result"
|
3
|
+
require "fluent-query/exception"
|
3
4
|
require "fluent-query/query"
|
4
|
-
require "hash-utils/array" # >= 0.
|
5
|
+
require "hash-utils/array" # >= 2.0.1
|
5
6
|
require "date"
|
6
7
|
|
7
8
|
module FluentQuery
|
@@ -81,6 +82,10 @@ module FluentQuery
|
|
81
82
|
output = v
|
82
83
|
elsif v.hash?
|
83
84
|
output = v.values
|
85
|
+
elsif v.enumerable?
|
86
|
+
output = v
|
87
|
+
else
|
88
|
+
raise ::FluentQuery::Exception::new('Invalid object provided to the list placeholder. Enumerable expected.')
|
84
89
|
end
|
85
90
|
|
86
91
|
"(" << @_processor.process_array(output) << ")"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hash-utils
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 2.0.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 2.0.1
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: abstract
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
segments:
|
125
125
|
- 0
|
126
|
-
hash:
|
126
|
+
hash: 1494238852295050777
|
127
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
128
|
none: false
|
129
129
|
requirements:
|