simple-sql 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d43876c5b3fa11a6a4a3bc08bae85bc6b1c6763e
4
- data.tar.gz: 93d58890035c02fe21e0c6016e7efd9344070a36
3
+ metadata.gz: 6970e8a68e60cb864a751516eab22b48cf747d13
4
+ data.tar.gz: f953e02ac5408f7ca1beed4a5247b109c526acf0
5
5
  SHA512:
6
- metadata.gz: c7ce6284971ed8827b13aac443c0874e20191a60221b8dbb2745a86a276299a2964451a24623e9ed581dc1e64c88ff1e22dd40f5db18b2146d3dcfbf54f419ce
7
- data.tar.gz: d2f5fa8ba870f10a77a8928ec5c9b5be6b11fa55a0e0859040e35b8f276c5dc4341e86223576247ed55df7122ccf2ccb95e9dbad805e23bc1c6b9b07ff4b02b7
6
+ metadata.gz: 51cf095dc99c3e312273c8655bb2ef7ed6c7de8d50dd8241c870e688aeede9606eb4a96c1f52e0b27433be4b655314926dfeaadac73a0193ff505bcc4bfe0afe
7
+ data.tar.gz: 572250ea4fc3e22be6605932eba180988b188db195af51bd5eb330ddec72b078c4edab035ca1638745dcbc98f5ca7fa3fa0841682884c8d6f3f3f5131933e4aa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple-sql (0.2.9)
4
+ simple-sql (0.2.10)
5
5
  pg (~> 0.20)
6
6
  pg_array_parser (~> 0)
7
7
 
data/lib/simple/sql.rb CHANGED
@@ -25,13 +25,12 @@ module Simple
25
25
  end
26
26
 
27
27
  def default_logger
28
- if defined?(ActiveRecord)
29
- ActiveRecord::Base.logger
30
- else
31
- logger = Logger.new(STDERR)
32
- logger.level = Logger::INFO
33
- logger
34
- end
28
+ logger = ActiveRecord::Base.logger if defined?(ActiveRecord)
29
+ return logger if logger
30
+
31
+ logger = Logger.new(STDERR)
32
+ logger.level = Logger::INFO
33
+ logger
35
34
  end
36
35
 
37
36
  # execute one or more sql statements. This method does not allow to pass in
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module SQL
3
- VERSION = "0.2.9"
3
+ VERSION = "0.2.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-20 00:00:00.000000000 Z
12
+ date: 2018-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pg_array_parser