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 CHANGED
@@ -1,7 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
- gem "hash-utils", ">= 0.18.0"
4
+ gem "hash-utils", ">= 2.0.1"
5
5
  gem "abstract", ">= 1.0.0"
6
6
 
7
7
  # Add dependencies to develop your gem here.
@@ -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.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.0)
18
+ hash-utils (>= 2.0.1)
19
19
  jeweler2 (>= 2.0.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.3
1
+ 0.9.5
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fluent-query"
8
- s.version = "0.9.3"
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-05-30"
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.18.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.18.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.18.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.17.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.3
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-05-30 00:00:00.000000000 Z
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.18.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.18.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: 3034922038781819026
126
+ hash: 1494238852295050777
127
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements: