niceql 0.5.0 → 0.6.0

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
  SHA256:
3
- metadata.gz: 61e17e9e56ddebb633c9ff0051e0fc400842f030a9d89236d484107dbf55389d
4
- data.tar.gz: a80a5c8720b2da17f44e37e56a4543360e1424fad18c67d869ca466bbe19c0e0
3
+ metadata.gz: '0339306d10ce7dc5085193472b48e3570c0746078e9facdc8c21c75983ca075d'
4
+ data.tar.gz: 79b513131cbc2ccc1afb4275e749e10078dcba15ed6fc05647b8877f3d149a3d
5
5
  SHA512:
6
- metadata.gz: 83302f8bff5ec7942338b93ec77739948606a34a85480e38ee19b16785391081d99865b6f31dd86ede787aef17061d0918bb8c77cb3eb84aa2bca3030bce30a2
7
- data.tar.gz: 3ab3a19673a3e6d47d1d344c38bb42717526ca84e39a999c7933a15cfbaf07a361c6b7789089f3bc4c0dcb224d2d596050141ee460c5c6d3a532ea240505450a
6
+ metadata.gz: 7383d5b1b5c737fb8da4c877d5d96ca119081b53dc07377af216eda7a07276f480e98e70f6a30d887cee5d0f6df3b1e2762b907de0cc960870a10bd58fe5ad9c
7
+ data.tar.gz: 29ad243cab8a66210070cf43b3072e4977b6fc1ed56fae41cfe9bba27de4b185fb80a76516ae498c0ef5c844f165ad15caac4001b243d6c3185bf3c873cfdd33
data/.rubocop.yml ADDED
@@ -0,0 +1,2 @@
1
+ inherit_gem:
2
+ rubocop-shopify: rubocop.yml
data/CHANGELOG.md CHANGED
@@ -1,7 +1,18 @@
1
+ # 0.6.0
2
+ * Huge core-logic refactoring and simplification
3
+ * dollar signed literals/strings added
4
+ * strings literals issue https://github.com/alekseyl/niceql/issues/16 fixed
5
+ * strings literals colorized properly
6
+ * comments are bold and greyed now.
7
+ * code now is rubocoped with shopify rules
8
+
9
+ # 0.5.1
10
+ * No features just some code refactoring
11
+
1
12
  # 0.5.0
2
13
  * BREAKING CHANGE! ActiveRecord compatibility extracted to the rails_sql_prettifier gem!
3
14
  If you need niceql funcitonality with rails / active_record plz include rails_sql_prettifier has a
4
- a versioning aligned to the active_record versions and has same DSL for AR niceql provide prior.
15
+ a versioning aligned to the active_record versions and has same DSL for ActiveRecord the niceql was providing prior.
5
16
 
6
17
  # 0.4.1
7
18
  * description update
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
6
 
5
7
  # Specify your gem's dependencies in niceql.gemspec
6
8
  gemspec
data/README.md CHANGED
@@ -1,13 +1,14 @@
1
1
  # Niceql
2
2
 
3
- ATTENTION: Since ver 0.5.0 the ActiveRecord integration will be provided via standalone gem: [rails_sql_prettifier](https://github.com/alekseyl/rails_sql_prettifier)!
3
+ **ATTENTION: After ver 0.5.0 the ActiveRecord integration is provided via standalone gem: [rails_sql_prettifier](https://github.com/alekseyl/rails_sql_prettifier)!**
4
4
 
5
5
  This is a small, nice, simple and zero dependency solution for SQL prettifying for Ruby.
6
6
  It can be used in an irb console without any dependencies ( run bin/console and look for examples ).
7
7
 
8
8
  Any reasonable suggestions are welcome.
9
9
 
10
- **Please pay attention: untill issue https://github.com/alekseyl/niceql/issues/16 is resolved any UPDATE or INSERT request might corrupt your data, don't use on production!**
10
+ **Please pay attention: even though issue https://github.com/alekseyl/niceql/issues/16 is resolved
11
+ still potentially UPDATE or INSERT request might corrupt your data, please don't patch pg_adapter on production!**
11
12
 
12
13
 
13
14
  ## Before/After
@@ -49,7 +50,7 @@ Niceql.configure do |c|
49
50
  # before execution. Formatted SQL will lead to much better SQL-query debugging and much more clearer error messages
50
51
  # if you are using Postgresql as a data source.
51
52
  #
52
- # You can adjust pg_adapter in production but do it at your own risk!
53
+ # Adjusting pg_adapter in production is strongly discouraged!
53
54
  #
54
55
  # If you need to debug SQL queries in production use exec_niceql
55
56
  # default: false
@@ -86,7 +87,7 @@ end
86
87
 
87
88
  ## Usage
88
89
 
89
- ### With ActiveRecord
90
+ ### With ActiveRecord ( you need rails_sql_prettifier for that! )
90
91
 
91
92
  ```ruby
92
93
  # puts colorized and formatted corresponding SQL query
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
4
  require "rake/testtask"
3
5
 
@@ -7,4 +9,4 @@ Rake::TestTask.new(:test) do |t|
7
9
  t.test_files = FileList["test/**/*_test.rb"]
8
10
  end
9
11
 
10
- task :default => :test
12
+ task default: :test
data/bin/console CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require "bundler/setup"
4
5
  require "niceql"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Niceql
2
4
  module Generators
3
5
  class InstallGenerator < Rails::Generators::Base
@@ -5,10 +7,10 @@ module Niceql
5
7
  desc "Creates Niceql initializer for your application"
6
8
 
7
9
  def copy_initializer
8
- template "niceql_initializer.rb", "config/initializers/niceql.rb"
10
+ template("niceql_initializer.rb", "config/initializers/niceql.rb")
9
11
 
10
12
  puts "Install complete!"
11
13
  end
12
14
  end
13
15
  end
14
- end
16
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Niceql.configure do |c|
2
4
  # You can adjust pg_adapter in prooduction at your own risk!
3
5
  # If you need it in production use exec_niceql
@@ -8,4 +10,4 @@ Niceql.configure do |c|
8
10
  # c.indentation_base = 2
9
11
  # c.open_bracket_is_newliner = false
10
12
  # c.prettify_active_record_log_output = false
11
- end
13
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Niceql
2
- VERSION = '0.5.0'
4
+ VERSION = "0.6.0"
3
5
  end