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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9aef4bcdca60abb3b59d17f32199073965fc2aa8
4
- data.tar.gz: 4848ccd3aa324bd0d4869301fa128401bef73e04
3
+ metadata.gz: 66fb4278a980fcd7f7e5b847dd3a63307dff72c7
4
+ data.tar.gz: cd95b8e03f2fc3b22736b80cac798241e03cff1f
5
5
  SHA512:
6
- metadata.gz: 38c8a56b15f1a30c6fe2b1504f5a035498e8e19927ef4b8a85358094b5e0ec0166cc7231c1b19255ce470bc827deb12f1557bea973db0169cd0296bb74c00cf7
7
- data.tar.gz: f8b934bddd07357feb230de012b4e7f7c80ed0b1e8b19ebf27bd9a301e8fc1e9e7792ee784656ab30221cb5eb0f35f6b11cf58c4c40e5aee5a46f01ef865a5ff
6
+ metadata.gz: 16e8023d31c859e25b4c216e6d464138df5f3c1030c6cbd8e4147814a0f3f2a36ea3269d4eee827443db1a43f0dde8fea725e5e665ef56575a159e20fe836028
7
+ data.tar.gz: b0b2f2636666281c710148ac9523cc7b8531f350f243167e73fcdd8e5cd15e77aeeb20dcb5739549d9efc52bbfe12dea18b612c537c482523d086e27a3e6ceae
@@ -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 { |a| a.match?(conn) if a.respond_to?(:match?) }.tap do |adapter|
56
- raise "Unable to detect adapter for #{conn.inspect}" unless adapter
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
@@ -106,7 +106,7 @@ module Eql
106
106
  # Execute template query
107
107
  #
108
108
  # @param [String, Symbol] tmpl template's name
109
- # @param [Object, nil] params o
109
+ # @param [Object, nil] params query params
110
110
  #
111
111
  # @return [Object] returns execution results
112
112
  #
data/lib/eql/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Eql
2
2
  # @return [String] returns gem version
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
  end
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.3
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-02 00:00:00.000000000 Z
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.5.1
121
+ rubygems_version: 2.6.8
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Eql Query Language