niceql 0.1.4 → 0.1.5

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: 2efa447fea2f15e044d0a45b3ded037e4c217fbd
4
- data.tar.gz: 5dab381173c89ee753d0acd16e7188fdf0e9f9d7
3
+ metadata.gz: b0cb7604922e98c794a7e66646a944901fc72766
4
+ data.tar.gz: 9ad7596c09e9bc271d03f60bce089d860f7ed27c
5
5
  SHA512:
6
- metadata.gz: 49542e72e28b3a823306092b2bdb86eca0de2ae88cb74422c694aa7c92fa010d67e35f7feacc03689dfb89e8176c6412028a3ada6620f5c3926f587fc123067d
7
- data.tar.gz: d124bc68f6699adc1ef8ce1f5efa8ae3372023e835a62753465849ba2e0b5bab5809601aca295e8f40aa79b7f050636c088c2c9c326a04ba10e1245e685e54eb
6
+ metadata.gz: 38911d649bfb64ce25599b97964d99739ed7b56999a01239a0c43bb78738f98cfe33d59e105e2ac5aef794d3c10ec7ac049b608f9bc0cd510606a435d46c514c
7
+ data.tar.gz: bf01b839683f82e1a4ad2eca29b8f27b4958b8b07c7aeab04b019444a2f88b28b8fcae197e1616aa3ba89a1340f55e663ade7a7f2abf5356433d63d45239f348
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Niceql
2
2
 
3
- This is small, nice, simple and dependentless solution for SQL prettifiyng for Ruby.
4
- It can be used in irb console without any dependencies ( run ./console from bin and look for examples ).
3
+ This is a small, nice, simple and dependentless solution for SQL prettifiyng for Ruby.
4
+ It can be used in an irb console without any dependencies ( run ./console from bin and look for examples ).
5
5
 
6
6
  Any reasonable suggestions on formatting/coloring are welcome
7
7
 
@@ -39,10 +39,10 @@ Or install it yourself as:
39
39
  ### With ActiveRecord
40
40
 
41
41
  ```ruby
42
- # puts prettified to_sql ( you need to call puts otherwise to_niceql looks ugly )
43
- Model.scope.puts_niceql
42
+ # puts colorized ( or not if you are willing so ) to_niceql ( you need to call puts otherwise to_niceql looks ugly )
43
+ Model.scope.niceql
44
44
 
45
- # only formatting without colorization can run as SQL query in connection.execute
45
+ # only formatting without colorization can run as a SQL query in connection.execute
46
46
  Model.scope.to_niceql
47
47
 
48
48
  # prettify PG errors
@@ -88,7 +88,7 @@ ERR
88
88
  Right now gem detects only uppercased form of verbs with very simple indentation and parsing options.
89
89
 
90
90
  ## Customizing colors
91
- If your console support more colors or different schemes, or you prefer different colorization, then you can override ColorizeString methods. Current color are selected with dark and white console themes in mind, so niceql colorization works good for dark, and good enough for white.
91
+ If your console support more colors or different schemes, or if you prefer different colorization, then you can override ColorizeString methods. Current colors are selected with dark and white console themes in mind, so a niceql colorization works good for dark, and good enough for white.
92
92
 
93
93
  ## Contributing
94
94
 
data/err_now.png CHANGED
Binary file
data/err_was.png CHANGED
Binary file
@@ -1,3 +1,3 @@
1
1
  module Niceql
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/niceql.rb CHANGED
@@ -29,7 +29,7 @@ module Niceql
29
29
  Prettifier.prettify_sql(to_sql, false)
30
30
  end
31
31
 
32
- def puts_niceql( colorize = true )
32
+ def niceql( colorize = true )
33
33
  puts Prettifier.prettify_sql( to_sql, colorize )
34
34
  end
35
35
  end
data/to_niceql.png CHANGED
Binary file
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
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-08 00:00:00.000000000 Z
11
+ date: 2017-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler