pp_sql 1.0.0 → 1.1.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -9
  3. data/lib/pp_sql/version.rb +1 -1
  4. metadata +17 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a49d6ae724e77c43994b020855277ac0b8f092dc33655a860ac6a03eaf0c80d
4
- data.tar.gz: ccc533f5a973a3d280eb9d767d034b637adf2ea8c1bafc4299709382b70e9146
3
+ metadata.gz: d3857bf4ee1bc273f4149f85b7d460b8dde9fc4e48b5754077171729f64a70fa
4
+ data.tar.gz: 1473bdfc1a0bd0b381dffb6714047f74c0bc39b32256d7c2abc5ac36710d2319
5
5
  SHA512:
6
- metadata.gz: 017fa759809e722c95298ffcadf962763dc5412f89da88505e84b3478b06b14e426339b7789dace42766ac3d6f14d047cb5bc656482ffdb6dd382dfb1eb13bed
7
- data.tar.gz: 66f58caeabe0b1a5a49f6320485e29f8030fa40d2d404a9a4b8feb409eaea7aaea737bba83be53fe32db498aa38ddc7403416e4b6532264023047eb05bdd7d15
6
+ metadata.gz: b5ea458f000dfd8a62a99ec3a3e2822ea6195f95ceb536688751c41bfa88dc1f9ab548f044e8d3c253d3d9d23b3e70ffa338d5fcd0ac5278401dd585e8e920c5
7
+ data.tar.gz: f1a913c68c4065cb179ea74bec52a4c2cf1413a08045fe1f46958458cc5607abb295780a51cdaa3413e4033645ea733f6d6f55c0d34616b9b7f557fbaa6d3ea7
data/README.md CHANGED
@@ -1,26 +1,32 @@
1
1
  # PpSql
2
- [![Build Status](https://travis-ci.org/kvokka/pp_sql.svg?branch=master)](https://travis-ci.org/kvokka/pp_sql)
3
- [![Codacy Badge](https://api.codacy.com/project/badge/Grade/7c866da60b1b4dd78eacc379cc0e7f3b)](https://www.codacy.com/app/kvokka/pp_sql?utm_source=github.com&utm_medium=referral&utm_content=kvokka/pp_sql&utm_campaign=Badge_Grade)
4
- [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
2
+
3
+ [![Version ][rubygems_badge]][rubygems]
4
+ [![Build Status ][travisci_badge]][travisci]
5
+ [![Codacy Badge ][codacy_badge]][codacy]
6
+ [![Reviewed by Hound ][hound_badge]][hound]
5
7
 
6
8
  Replace standard `ActiveRecord#to_sql` method with
7
- [`anbt-sql-formatter`](https://github.com/sonota88/anbt-sql-formatter)
9
+ [`anbt-sql-formatter`][anbt-sql-formatter-link]
8
10
  gem for pretty SQL code output in console. Rails log will be formatted also.
9
11
  Example output:
10
12
 
11
- ![log](https://raw.githubusercontent.com/kvokka/pp_sql/master/screenshots/log.png)
13
+ ![log][log-img]
12
14
 
13
15
  Or in console
14
16
 
15
- ![console](https://raw.githubusercontent.com/kvokka/pp_sql/master/screenshots/console.png)
17
+ ![console][console-img]
16
18
 
17
19
  ## Require
18
20
 
19
- Ruby 2.2+
21
+ Ruby 2.4+
20
22
 
21
23
  ## Rails
22
24
 
23
- Rails 4.0+ (optional), will be injected automatically
25
+ Rails 4.2+ (optional), will be injected automatically
26
+
27
+ ## Legacy
28
+
29
+ You can use version `~> 0.2` of this gem with Ruby 2.2, 2.3 and/or Rails 4.0, 4.1
24
30
 
25
31
  ## Usage
26
32
 
@@ -79,6 +85,27 @@ I found usefull this trick:
79
85
  end
80
86
  ```
81
87
 
88
+ ### Supported by
89
+
90
+ [![jetbrains][jetbrains-img-link]][jetbrains-link]
91
+
82
92
  ## License
83
93
  The gem is available as open source under the terms of the
84
- [MIT License](http://opensource.org/licenses/MIT).
94
+ [MIT License][mit-licence-link].
95
+
96
+ [rubygems_badge]: http://img.shields.io/gem/v/pp_sql.svg
97
+ [rubygems]: https://rubygems.org/gems/pp_sql
98
+ [travisci_badge]: https://travis-ci.org/kvokka/pp_sql.svg?branch=master
99
+ [travisci]: https://travis-ci.org/kvokka/pp_sql
100
+ [codacy_badge]: https://api.codacy.com/project/badge/Grade/7c866da60b1b4dd78eacc379cc0e7f3b
101
+ [codacy]: https://www.codacy.com/app/kvokka/pp_sql?utm_source=github.com&utm_medium=referral&utm_content=kvokka/pp_sql&utm_campaign=Badge_Grade
102
+ [hound_badge]: https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg
103
+ [hound]: https://houndci.com
104
+
105
+ [anbt-sql-formatter-link]: https://github.com/sonota88/anbt-sql-formatter
106
+ [mit-licence-link]: http://opensource.org/licenses/MIT
107
+ [jetbrains-link]: https://www.jetbrains.com/?from=pp_sql
108
+ [jetbrains-img-link]: https://raw.githubusercontent.com/kvokka/pp_sql/master/img/jetbrains-variant-3.svg?sanitize=true
109
+
110
+ [log-img]: https://raw.githubusercontent.com/kvokka/pp_sql/master/img/log.png
111
+ [console-img]: https://raw.githubusercontent.com/kvokka/pp_sql/master/img/console.png
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PpSql
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pp_sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kvokka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-22 00:00:00.000000000 Z
11
+ date: 2019-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '4.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '4.2'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: sqlite3
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -125,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
139
  - !ruby/object:Gem::Version
126
140
  version: '0'
127
141
  requirements: []
128
- rubygems_version: 3.0.3
142
+ rubygems_version: 3.0.4
129
143
  signing_key:
130
144
  specification_version: 4
131
145
  summary: Beautify SQL output of ActiveRecord#to_sql