eql 0.0.3 → 0.0.4
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 +4 -4
- data/lib/eql/adapter_factory.rb +4 -2
- data/lib/eql/builder.rb +1 -1
- data/lib/eql/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66fb4278a980fcd7f7e5b847dd3a63307dff72c7
|
4
|
+
data.tar.gz: cd95b8e03f2fc3b22736b80cac798241e03cff1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16e8023d31c859e25b4c216e6d464138df5f3c1030c6cbd8e4147814a0f3f2a36ea3269d4eee827443db1a43f0dde8fea725e5e665ef56575a159e20fe836028
|
7
|
+
data.tar.gz: b0b2f2636666281c710148ac9523cc7b8531f350f243167e73fcdd8e5cd15e77aeeb20dcb5739549d9efc52bbfe12dea18b612c537c482523d086e27a3e6ceae
|
data/lib/eql/adapter_factory.rb
CHANGED
@@ -52,9 +52,11 @@ module Eql
|
|
52
52
|
#
|
53
53
|
def factory(conn)
|
54
54
|
return Eql.config.default_adapter unless conn
|
55
|
-
adapters.values.find
|
56
|
-
|
55
|
+
adapter = adapters.values.find do |a|
|
56
|
+
a.match?(conn) if a.is_a?(Class) && a.respond_to?(:match?)
|
57
57
|
end
|
58
|
+
raise "Unable to detect adapter for #{conn.inspect}" unless adapter
|
59
|
+
adapter
|
58
60
|
end
|
59
61
|
end
|
60
62
|
end
|
data/lib/eql/builder.rb
CHANGED
data/lib/eql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Yashchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.6.8
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Eql Query Language
|