niceql 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +4 -1
- data/lib/niceql.rb +5 -3
- data/lib/niceql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b31c9be70eddb5f04784ebbf6fab44e3bb1cc85
|
4
|
+
data.tar.gz: 96f8941c36a0cad00359bfedf8ec6d4cca4ec4f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b98310cb79e34175268cf09e966c27abdb76ecf8ab4e7ad5e66751f7198d397bdae7df8c667181f196ebb04f1046c288b5b8a83e2c5426ce43edb5a5a14e87f7
|
7
|
+
data.tar.gz: e1fc4c8d3277c1961b13e85c14181b7cca4e326909bcb289953156156bb2f3202a343c05937c23102f0aade9b96bb5381cd5b786b48f13054e01bd672f80c337
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/niceql.rb
CHANGED
@@ -141,7 +141,7 @@ module Niceql
|
|
141
141
|
def log( sql, *args, &block )
|
142
142
|
# \n need to be placed because AR log will start with action description + time info.
|
143
143
|
# rescue sql - just to be sure Prettifier didn't break production
|
144
|
-
formatted_sql = "\n" + Prettifier.prettify_sql(sql
|
144
|
+
formatted_sql = "\n" + Prettifier.prettify_sql(sql) rescue sql
|
145
145
|
super( formatted_sql, *args, &block )
|
146
146
|
end
|
147
147
|
end
|
@@ -176,8 +176,10 @@ module Niceql
|
|
176
176
|
|
177
177
|
if config.pg_adapter_with_nicesql
|
178
178
|
::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.include(PostgresAdapterNiceQL)
|
179
|
-
|
180
|
-
|
179
|
+
end
|
180
|
+
|
181
|
+
if config.prettify_active_record_log_output
|
182
|
+
::ActiveRecord::ConnectionAdapters::AbstractAdapter.prepend(AbstractAdapterLogPrettifier)
|
181
183
|
end
|
182
184
|
end
|
183
185
|
|
data/lib/niceql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: niceql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alekseyl
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|