sqlint 0.1.6 → 0.2.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.
- checksums.yaml +5 -5
- data/.github/FUNDING.yml +1 -0
- data/.pre-commit-hooks.yaml +7 -0
- data/Gemfile.lock +17 -17
- data/Makefile +3 -3
- data/README.md +14 -5
- data/lib/sqlint/version.rb +1 -1
- data/sqlint.gemspec +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 466766344c4f563a211dd72310ba307f4fba13fe2eedb5e0a59faa7b02380b8e
|
|
4
|
+
data.tar.gz: 0e877ed34be3cc0d292c1cba971af2d7bc32b00294b35d17c4f5a065eba2fb1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a14bce0b4fa66a2632073b16ba7ab0fe8921ba379de5dab750e97b7f9e4868369e7b33643dff7e2ee725a1d31ca898f228f56a3b1192b41909bd918e3d0ca01b
|
|
7
|
+
data.tar.gz: 4511fc19e39ecfabe4d1b0bac735d9cf426bab9aba385359f36cd33a2679d19e959289739649632bbabe0e963e44d9974132191250caa11c7a90bedf05f2d16b
|
data/.github/FUNDING.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
patreon: sanityinc
|
data/Gemfile.lock
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
diff-lcs (1.
|
|
5
|
-
|
|
6
|
-
pg_query (0.
|
|
7
|
-
|
|
8
|
-
rspec (3.
|
|
9
|
-
rspec-core (~> 3.
|
|
10
|
-
rspec-expectations (~> 3.
|
|
11
|
-
rspec-mocks (~> 3.
|
|
12
|
-
rspec-core (3.
|
|
13
|
-
rspec-support (~> 3.
|
|
14
|
-
rspec-expectations (3.
|
|
4
|
+
diff-lcs (1.4.4)
|
|
5
|
+
google-protobuf (3.15.6)
|
|
6
|
+
pg_query (2.0.1)
|
|
7
|
+
google-protobuf (~> 3.15.5)
|
|
8
|
+
rspec (3.10.0)
|
|
9
|
+
rspec-core (~> 3.10.0)
|
|
10
|
+
rspec-expectations (~> 3.10.0)
|
|
11
|
+
rspec-mocks (~> 3.10.0)
|
|
12
|
+
rspec-core (3.10.1)
|
|
13
|
+
rspec-support (~> 3.10.0)
|
|
14
|
+
rspec-expectations (3.10.1)
|
|
15
15
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
16
|
-
rspec-support (~> 3.
|
|
17
|
-
rspec-mocks (3.2
|
|
16
|
+
rspec-support (~> 3.10.0)
|
|
17
|
+
rspec-mocks (3.10.2)
|
|
18
18
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
19
|
-
rspec-support (~> 3.
|
|
20
|
-
rspec-support (3.
|
|
19
|
+
rspec-support (~> 3.10.0)
|
|
20
|
+
rspec-support (3.10.2)
|
|
21
21
|
|
|
22
22
|
PLATFORMS
|
|
23
23
|
ruby
|
|
24
24
|
|
|
25
25
|
DEPENDENCIES
|
|
26
|
-
pg_query
|
|
26
|
+
pg_query (= 2.0.1)
|
|
27
27
|
rspec
|
|
28
28
|
|
|
29
29
|
BUNDLED WITH
|
|
30
|
-
1.
|
|
30
|
+
2.1.4
|
data/Makefile
CHANGED
|
@@ -3,9 +3,9 @@ test:
|
|
|
3
3
|
|
|
4
4
|
gem:
|
|
5
5
|
# Ensure perms are correct
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
chmod a+
|
|
6
|
+
chmod +x bin/sqlint
|
|
7
|
+
chmod -R a+r *
|
|
8
|
+
chmod -R a+X *
|
|
9
9
|
gem build sqlint.gemspec
|
|
10
10
|
|
|
11
11
|
.PHONY: gem test
|
data/README.md
CHANGED
|
@@ -35,17 +35,26 @@ sqlint filename.sql
|
|
|
35
35
|
Support for `sqlint` is provided for the following editors:
|
|
36
36
|
|
|
37
37
|
- Emacs, via [Flycheck](https://github.com/flycheck/flycheck)
|
|
38
|
-
- VIM, via [Syntastic](https://github.com/scrooloose/syntastic)
|
|
38
|
+
- VIM, via [Syntastic](https://github.com/scrooloose/syntastic), [Neomake](https://github.com/neomake/neomake) or [ALE](https://github.com/w0rp/ale)
|
|
39
39
|
- SublimeText, via [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter3/)
|
|
40
40
|
|
|
41
|
+
|
|
42
|
+
### Using with pre-commit
|
|
43
|
+
|
|
44
|
+
Add this to your `.pre-commit-hooks.yaml`:
|
|
45
|
+
|
|
46
|
+
```yaml
|
|
47
|
+
- repo: https://github.com/purcell/sqlint
|
|
48
|
+
rev: master
|
|
49
|
+
hooks:
|
|
50
|
+
- id: sqlint
|
|
51
|
+
```
|
|
52
|
+
|
|
41
53
|
### Authors
|
|
42
54
|
|
|
43
55
|
This software was written by
|
|
44
56
|
[Steve Purcell](https://github.com/purcell) and
|
|
45
|
-
[Kieran Trezona-le Comte](https://github.com/trezona-lecomte)
|
|
46
|
-
support of our awesome employer
|
|
47
|
-
[Powershop](http://www.powershop.co.nz/), who have other cool stuff
|
|
48
|
-
[here on Github](https://github.com/powershop).
|
|
57
|
+
[Kieran Trezona-le Comte](https://github.com/trezona-lecomte).
|
|
49
58
|
|
|
50
59
|
### License and copyright
|
|
51
60
|
|
data/lib/sqlint/version.rb
CHANGED
data/sqlint.gemspec
CHANGED
|
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
|
|
|
36
36
|
s.rubygems_version = '1.8.23'
|
|
37
37
|
s.summary = 'Simple SQL linter.'
|
|
38
38
|
|
|
39
|
-
s.add_runtime_dependency('pg_query', '~>
|
|
39
|
+
s.add_runtime_dependency('pg_query', '~> 2')
|
|
40
40
|
s.add_development_dependency('rake', '~> 10.1')
|
|
41
41
|
s.add_development_dependency('rspec', '~> 3.2')
|
|
42
42
|
s.add_development_dependency('bundler', '~> 1.3')
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sqlint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steve Purcell
|
|
8
8
|
- Kieran Trezona-le Comte
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 1980-01-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: pg_query
|
|
@@ -17,14 +17,14 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version:
|
|
20
|
+
version: '2'
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version:
|
|
27
|
+
version: '2'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: rake
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -67,8 +67,7 @@ dependencies:
|
|
|
67
67
|
- - "~>"
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
69
|
version: '1.3'
|
|
70
|
-
description:
|
|
71
|
-
Simple SQL linter.
|
|
70
|
+
description: " Simple SQL linter.\n"
|
|
72
71
|
email: steve@sanityinc.com
|
|
73
72
|
executables:
|
|
74
73
|
- sqlint
|
|
@@ -77,6 +76,8 @@ extra_rdoc_files:
|
|
|
77
76
|
- LICENSE.txt
|
|
78
77
|
- README.md
|
|
79
78
|
files:
|
|
79
|
+
- ".github/FUNDING.yml"
|
|
80
|
+
- ".pre-commit-hooks.yaml"
|
|
80
81
|
- Gemfile.lock
|
|
81
82
|
- LICENSE.txt
|
|
82
83
|
- Makefile
|
|
@@ -91,7 +92,7 @@ homepage: https://github.com/purcell/sqlint
|
|
|
91
92
|
licenses:
|
|
92
93
|
- MIT
|
|
93
94
|
metadata: {}
|
|
94
|
-
post_install_message:
|
|
95
|
+
post_install_message:
|
|
95
96
|
rdoc_options: []
|
|
96
97
|
require_paths:
|
|
97
98
|
- lib
|
|
@@ -106,9 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
106
107
|
- !ruby/object:Gem::Version
|
|
107
108
|
version: '0'
|
|
108
109
|
requirements: []
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
signing_key:
|
|
110
|
+
rubygems_version: 3.1.3
|
|
111
|
+
signing_key:
|
|
112
112
|
specification_version: 4
|
|
113
113
|
summary: Simple SQL linter.
|
|
114
114
|
test_files: []
|