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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab752505547eb622f82e1b54431ad1e7c0a87958
4
- data.tar.gz: 80a0ec84ebaccb4f7487990ffab3445249e30ecc
3
+ metadata.gz: 5b31c9be70eddb5f04784ebbf6fab44e3bb1cc85
4
+ data.tar.gz: 96f8941c36a0cad00359bfedf8ec6d4cca4ec4f9
5
5
  SHA512:
6
- metadata.gz: f0aaf330cb1442079b7e4add9571607b5b7407839ecf86376519339c274caf0fff4dde5dfe15ba58f43b1f0b6a98e290202c52a336136964178a58a4ccf539b5
7
- data.tar.gz: 8b42f8113b508080131f0c9dfba623461b13b122573fd242b0fdffa6fc3d1a7f93eadbf9b618a90074e809557170e8bbf15f20e96efa692d057bdc38434096b4
6
+ metadata.gz: b98310cb79e34175268cf09e966c27abdb76ecf8ab4e7ad5e66751f7198d397bdae7df8c667181f196ebb04f1046c288b5b8a83e2c5426ce43edb5a5a14e87f7
7
+ data.tar.gz: e1fc4c8d3277c1961b13e85c14181b7cca4e326909bcb289953156156bb2f3202a343c05937c23102f0aade9b96bb5381cd5b786b48f13054e01bd672f80c337
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.4.1
5
- before_install: gem install bundler -v 1.15.4
4
+ - 2.4.4
5
+ - 2.5.1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
+ # 0.1.18
2
+ * add color to logger output
3
+
1
4
  # 0.1.17
2
5
  * add test
3
- * fix issue 1 fore real
6
+ * fix issue 1 for real
4
7
 
5
8
  # 0.1.16
6
9
  * Add prettify_active_record_log_output to rails config generator
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, false) rescue 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
- elsif config.prettify_active_record_log_output
180
- ::ActiveRecord::ConnectionAdapters::AbstractAdapter.prepend( AbstractAdapterLogPrettifier )
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
 
@@ -1,3 +1,3 @@
1
1
  module Niceql
2
- VERSION = "0.1.17"
2
+ VERSION = "0.1.18"
3
3
  end
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.17
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-29 00:00:00.000000000 Z
11
+ date: 2018-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler