sqlint 0.2.0 → 0.2.1

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: 466766344c4f563a211dd72310ba307f4fba13fe2eedb5e0a59faa7b02380b8e
4
- data.tar.gz: 0e877ed34be3cc0d292c1cba971af2d7bc32b00294b35d17c4f5a065eba2fb1c
3
+ metadata.gz: 9ee6aa32d91abf5ecdce2211fab97d20b56a3c6a770075ea6cf0ee4b86bdd0cc
4
+ data.tar.gz: bf54f99bbd82e7fa7b69652821003a1ce5f3d3ef13bc93f1de9b49c1c30ff1fe
5
5
  SHA512:
6
- metadata.gz: a14bce0b4fa66a2632073b16ba7ab0fe8921ba379de5dab750e97b7f9e4868369e7b33643dff7e2ee725a1d31ca898f228f56a3b1192b41909bd918e3d0ca01b
7
- data.tar.gz: 4511fc19e39ecfabe4d1b0bac735d9cf426bab9aba385359f36cd33a2679d19e959289739649632bbabe0e963e44d9974132191250caa11c7a90bedf05f2d16b
6
+ metadata.gz: 9ffefbff8072ad647204487b1f81d6486857755699c3559fdff8dd47f6a2b38d53a73ded767de0bb029c1aab4ede6008e49976c13a9675a7db3eaa6f326bdefd
7
+ data.tar.gz: 5b22d98212352de7816c313449776911a936e61d46e22d0b5aa2a7cb8cf25e6af4833483df8ab4ab18c70a48199d79b56d204d5e743da69d4870a57d8c6d646e
@@ -0,0 +1,18 @@
1
+ name: CI
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ os: [ubuntu-latest]
9
+ # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
10
+ ruby: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0']
11
+ runs-on: ${{ matrix.os }}
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: ${{ matrix.ruby }}
17
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
18
+ - run: bundle exec rake
data/Gemfile.lock CHANGED
@@ -1,30 +1,32 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- diff-lcs (1.4.4)
5
- google-protobuf (3.15.6)
6
- pg_query (2.0.1)
7
- google-protobuf (~> 3.15.5)
4
+ diff-lcs (1.5.0)
5
+ google-protobuf (3.19.4)
6
+ pg_query (2.1.3)
7
+ google-protobuf (>= 3.19.2)
8
+ rake (13.0.6)
8
9
  rspec (3.10.0)
9
10
  rspec-core (~> 3.10.0)
10
11
  rspec-expectations (~> 3.10.0)
11
12
  rspec-mocks (~> 3.10.0)
12
- rspec-core (3.10.1)
13
+ rspec-core (3.10.2)
13
14
  rspec-support (~> 3.10.0)
14
- rspec-expectations (3.10.1)
15
+ rspec-expectations (3.10.2)
15
16
  diff-lcs (>= 1.2.0, < 2.0)
16
17
  rspec-support (~> 3.10.0)
17
- rspec-mocks (3.10.2)
18
+ rspec-mocks (3.10.3)
18
19
  diff-lcs (>= 1.2.0, < 2.0)
19
20
  rspec-support (~> 3.10.0)
20
- rspec-support (3.10.2)
21
+ rspec-support (3.10.3)
21
22
 
22
23
  PLATFORMS
23
24
  ruby
24
25
 
25
26
  DEPENDENCIES
26
- pg_query (= 2.0.1)
27
+ pg_query (>= 1.0, < 3)
28
+ rake
27
29
  rspec
28
30
 
29
31
  BUNDLED WITH
30
- 2.1.4
32
+ 2.2.24
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/purcell/sqlint.svg?branch=master)](https://travis-ci.org/purcell/sqlint)
1
+ [![Build Status](https://github.com/purcell/sqlint/workflows/CI/badge.svg)](https://github.com/purcell/sqlint/actions)
2
2
  [ ![](https://img.shields.io/gem/v/sqlint.svg)](https://rubygems.org/gems/sqlint)
3
3
  [ ![](https://img.shields.io/gem/dt/sqlint.svg)](https://rubygems.org/gems/sqlint)
4
4
  <a href="https://www.patreon.com/sanityinc"><img alt="Support me" src="https://img.shields.io/badge/Support%20Me-%F0%9F%92%97-ff69b4.svg"></a>
@@ -11,8 +11,8 @@ SQLint is a simple command-line linter which reads your SQL files and
11
11
  reports any syntax errors or warnings it finds.
12
12
 
13
13
  At this stage, SQLint checks SQL against the ANSI syntax, and uses the
14
- PostgreSQL SQL parser to achieve this. In time, we hope to add support
15
- for non-standard SQL variants (e.g. MySQL). Contributions are welcome.
14
+ PostgreSQL SQL parser to achieve this. SQLint does not have support
15
+ for non-standard SQL variants (e.g. MySQL), but contributions are welcome.
16
16
 
17
17
  ### Installation
18
18
 
@@ -30,6 +30,8 @@ To check the syntax of a file containing SQL, simply pass the filename to `sqlin
30
30
  sqlint filename.sql
31
31
  ```
32
32
 
33
+ In the absence of a filename, `sqlint` reads from standard input.
34
+
33
35
  ### Editor plugins
34
36
 
35
37
  Support for `sqlint` is provided for the following editors:
@@ -58,4 +60,16 @@ This software was written by
58
60
 
59
61
  ### License and copyright
60
62
 
61
- Copyright Powershop NZ Ltd. MIT license.
63
+ Copyright 2015-2018 Powershop NZ Ltd.
64
+ Copyright 2018-2021 Steve Purcell.
65
+ MIT license.
66
+
67
+ <hr>
68
+
69
+ [💝 Support this project and my other Open Source work via Patreon](https://www.patreon.com/sanityinc)
70
+
71
+ [💼 LinkedIn profile](https://uk.linkedin.com/in/stevepurcell)
72
+
73
+ [✍ sanityinc.com](http://www.sanityinc.com/)
74
+
75
+ [🐦 @sanityinc](https://twitter.com/sanityinc)
@@ -1,3 +1,3 @@
1
1
  module SQLint
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/sqlint.gemspec CHANGED
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
37
37
  s.summary = 'Simple SQL linter.'
38
38
 
39
39
  s.add_runtime_dependency('pg_query', '~> 2')
40
- s.add_development_dependency('rake', '~> 10.1')
40
+ s.add_development_dependency('rake', '>= 12.3.3')
41
41
  s.add_development_dependency('rspec', '~> 3.2')
42
- s.add_development_dependency('bundler', '~> 1.3')
42
+ s.add_development_dependency('bundler', '>= 2.2.33')
43
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Purcell
@@ -29,16 +29,16 @@ dependencies:
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '10.1'
34
+ version: 12.3.3
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '10.1'
41
+ version: 12.3.3
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -57,16 +57,16 @@ dependencies:
57
57
  name: bundler
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: '1.3'
62
+ version: 2.2.33
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '1.3'
69
+ version: 2.2.33
70
70
  description: " Simple SQL linter.\n"
71
71
  email: steve@sanityinc.com
72
72
  executables:
@@ -77,6 +77,7 @@ extra_rdoc_files:
77
77
  - README.md
78
78
  files:
79
79
  - ".github/FUNDING.yml"
80
+ - ".github/workflows/ci.yml"
80
81
  - ".pre-commit-hooks.yaml"
81
82
  - Gemfile.lock
82
83
  - LICENSE.txt
@@ -107,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
108
  - !ruby/object:Gem::Version
108
109
  version: '0'
109
110
  requirements: []
110
- rubygems_version: 3.1.3
111
+ rubygems_version: 3.2.26
111
112
  signing_key:
112
113
  specification_version: 4
113
114
  summary: Simple SQL linter.