niceql 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/err_now.png +0 -0
- data/err_was.png +0 -0
- data/lib/niceql/version.rb +1 -1
- data/lib/niceql.rb +1 -1
- data/to_niceql.png +0 -0
- 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: b0cb7604922e98c794a7e66646a944901fc72766
|
4
|
+
data.tar.gz: 9ad7596c09e9bc271d03f60bce089d860f7ed27c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
43
|
-
Model.scope.
|
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
|
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
|
data/lib/niceql/version.rb
CHANGED
data/lib/niceql.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2017-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|