sqlint 0.2.1 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ee6aa32d91abf5ecdce2211fab97d20b56a3c6a770075ea6cf0ee4b86bdd0cc
4
- data.tar.gz: bf54f99bbd82e7fa7b69652821003a1ce5f3d3ef13bc93f1de9b49c1c30ff1fe
3
+ metadata.gz: 24f145b5245dc1d77ef0f1c1caa7dc39465316d30cfa7da4b7a0806ec28ad6f5
4
+ data.tar.gz: e8d6a6c3a2f854cbb647d504940f02209c9c36dbdb895a13423c02f2ea67e9c4
5
5
  SHA512:
6
- metadata.gz: 9ffefbff8072ad647204487b1f81d6486857755699c3559fdff8dd47f6a2b38d53a73ded767de0bb029c1aab4ede6008e49976c13a9675a7db3eaa6f326bdefd
7
- data.tar.gz: 5b22d98212352de7816c313449776911a936e61d46e22d0b5aa2a7cb8cf25e6af4833483df8ab4ab18c70a48199d79b56d204d5e743da69d4870a57d8c6d646e
6
+ metadata.gz: dceaba878f571500c19db62421cf4a2a446b329ae606aecbe33eb729517cceb30e99e065e20f7b529794643cd8e3afb17e14f04e2ae14d03af7870ee8e154783
7
+ data.tar.gz: cb6fc48edec2c94c0ce563fee919d8e04c9821e52c1a113717bfdabb344dfd6f138405730c226eecc6c76ed930e0b79f704f1681530f090fa35aef3f14df90da
@@ -7,7 +7,7 @@ jobs:
7
7
  matrix:
8
8
  os: [ubuntu-latest]
9
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']
10
+ ruby: ['2.7', '3.0', '3.1', '3.2']
11
11
  runs-on: ${{ matrix.os }}
12
12
  steps:
13
13
  - uses: actions/checkout@v2
data/Gemfile.lock CHANGED
@@ -2,31 +2,34 @@ GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
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)
9
- rspec (3.10.0)
10
- rspec-core (~> 3.10.0)
11
- rspec-expectations (~> 3.10.0)
12
- rspec-mocks (~> 3.10.0)
13
- rspec-core (3.10.2)
14
- rspec-support (~> 3.10.0)
15
- rspec-expectations (3.10.2)
5
+ google-protobuf (3.25.0)
6
+ pg_query (4.2.3)
7
+ google-protobuf (>= 3.22.3)
8
+ rake (13.1.0)
9
+ rspec (3.12.0)
10
+ rspec-core (~> 3.12.0)
11
+ rspec-expectations (~> 3.12.0)
12
+ rspec-mocks (~> 3.12.0)
13
+ rspec-core (3.12.2)
14
+ rspec-support (~> 3.12.0)
15
+ rspec-expectations (3.12.3)
16
16
  diff-lcs (>= 1.2.0, < 2.0)
17
- rspec-support (~> 3.10.0)
18
- rspec-mocks (3.10.3)
17
+ rspec-support (~> 3.12.0)
18
+ rspec-mocks (3.12.6)
19
19
  diff-lcs (>= 1.2.0, < 2.0)
20
- rspec-support (~> 3.10.0)
21
- rspec-support (3.10.3)
20
+ rspec-support (~> 3.12.0)
21
+ rspec-support (3.12.1)
22
22
 
23
23
  PLATFORMS
24
24
  ruby
25
25
 
26
26
  DEPENDENCIES
27
- pg_query (>= 1.0, < 3)
27
+ pg_query (>= 1.0)
28
28
  rake
29
29
  rspec
30
30
 
31
+ RUBY VERSION
32
+ ruby 2.7.6p219
33
+
31
34
  BUNDLED WITH
32
- 2.2.24
35
+ 2.4.2
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://github.com/purcell/sqlint/workflows/CI/badge.svg)](https://github.com/purcell/sqlint/actions)
1
+ [![Build Status](https://github.com/purcell/sqlint/actions/workflows/ci.yml/badge.svg)](https://github.com/purcell/sqlint/actions/workflows/ci.yml)
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>
data/flake.lock ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "nodes": {
3
+ "flake-utils": {
4
+ "locked": {
5
+ "lastModified": 1667395993,
6
+ "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
7
+ "owner": "numtide",
8
+ "repo": "flake-utils",
9
+ "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
10
+ "type": "github"
11
+ },
12
+ "original": {
13
+ "owner": "numtide",
14
+ "repo": "flake-utils",
15
+ "type": "github"
16
+ }
17
+ },
18
+ "nixpkgs": {
19
+ "locked": {
20
+ "lastModified": 1672756850,
21
+ "narHash": "sha256-Smbq3+fitwA13qsTMeaaurv09/KVbZfW7m7lINwzDGA=",
22
+ "owner": "NixOS",
23
+ "repo": "nixpkgs",
24
+ "rev": "298add347c2bbce14020fcb54051f517c391196b",
25
+ "type": "github"
26
+ },
27
+ "original": {
28
+ "id": "nixpkgs",
29
+ "ref": "nixpkgs-unstable",
30
+ "type": "indirect"
31
+ }
32
+ },
33
+ "root": {
34
+ "inputs": {
35
+ "flake-utils": "flake-utils",
36
+ "nixpkgs": "nixpkgs"
37
+ }
38
+ }
39
+ },
40
+ "root": "root",
41
+ "version": 7
42
+ }
data/flake.nix ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ description = "sqlint tool";
3
+
4
+ inputs = {
5
+ nixpkgs.url = "nixpkgs/nixpkgs-unstable";
6
+ flake-utils.url = "github:numtide/flake-utils";
7
+ };
8
+
9
+ outputs = { self, nixpkgs, flake-utils }@inputs:
10
+ flake-utils.lib.eachDefaultSystem (system:
11
+ let
12
+ pkgs = import nixpkgs { inherit system; };
13
+ env = pkgs.bundlerEnv {
14
+ name = "sqlint";
15
+ gemdir = ./.;
16
+ groups = ["default" "development" "test"];
17
+
18
+ meta = with pkgs.lib;
19
+ {
20
+ description = "sqlint";
21
+ platforms = platforms.unix;
22
+ };
23
+ };
24
+ in
25
+ {
26
+ devShell = pkgs.mkShell {
27
+ buildInputs = [ pkgs.ruby env pkgs.bundix ];
28
+ };
29
+ }
30
+ );
31
+ }
data/gemset.nix ADDED
@@ -0,0 +1,97 @@
1
+ {
2
+ diff-lcs = {
3
+ groups = ["default" "development"];
4
+ platforms = [];
5
+ source = {
6
+ remotes = ["https://rubygems.org"];
7
+ sha256 = "0rwvjahnp7cpmracd8x732rjgnilqv2sx7d1gfrysslc3h039fa9";
8
+ type = "gem";
9
+ };
10
+ version = "1.5.0";
11
+ };
12
+ google-protobuf = {
13
+ groups = ["default"];
14
+ platforms = [];
15
+ source = {
16
+ remotes = ["https://rubygems.org"];
17
+ sha256 = "18d1w5j7vjaza3v1ig9j7zyis04kxqdkb1272vbgncxn03ck45mm";
18
+ type = "gem";
19
+ };
20
+ version = "3.25.0";
21
+ };
22
+ pg_query = {
23
+ dependencies = ["google-protobuf"];
24
+ groups = ["default"];
25
+ platforms = [];
26
+ source = {
27
+ remotes = ["https://rubygems.org"];
28
+ sha256 = "15ynrzqsmmbmxib8ri8n9k6z3l6rwd91j7y1mghm33nfgdf9bj8w";
29
+ type = "gem";
30
+ };
31
+ version = "4.2.3";
32
+ };
33
+ rake = {
34
+ groups = ["development"];
35
+ platforms = [];
36
+ source = {
37
+ remotes = ["https://rubygems.org"];
38
+ sha256 = "1ilr853hawi09626axx0mps4rkkmxcs54mapz9jnqvpnlwd3wsmy";
39
+ type = "gem";
40
+ };
41
+ version = "13.1.0";
42
+ };
43
+ rspec = {
44
+ dependencies = ["rspec-core" "rspec-expectations" "rspec-mocks"];
45
+ groups = ["development"];
46
+ platforms = [];
47
+ source = {
48
+ remotes = ["https://rubygems.org"];
49
+ sha256 = "171rc90vcgjl8p1bdrqa92ymrj8a87qf6w20x05xq29mljcigi6c";
50
+ type = "gem";
51
+ };
52
+ version = "3.12.0";
53
+ };
54
+ rspec-core = {
55
+ dependencies = ["rspec-support"];
56
+ groups = ["default" "development"];
57
+ platforms = [];
58
+ source = {
59
+ remotes = ["https://rubygems.org"];
60
+ sha256 = "0l95bnjxdabrn79hwdhn2q1n7mn26pj7y1w5660v5qi81x458nqm";
61
+ type = "gem";
62
+ };
63
+ version = "3.12.2";
64
+ };
65
+ rspec-expectations = {
66
+ dependencies = ["diff-lcs" "rspec-support"];
67
+ groups = ["default" "development"];
68
+ platforms = [];
69
+ source = {
70
+ remotes = ["https://rubygems.org"];
71
+ sha256 = "05j44jfqlv7j2rpxb5vqzf9hfv7w8ba46wwgxwcwd8p0wzi1hg89";
72
+ type = "gem";
73
+ };
74
+ version = "3.12.3";
75
+ };
76
+ rspec-mocks = {
77
+ dependencies = ["diff-lcs" "rspec-support"];
78
+ groups = ["default" "development"];
79
+ platforms = [];
80
+ source = {
81
+ remotes = ["https://rubygems.org"];
82
+ sha256 = "1gq7gviwpck7fhp4y5ibljljvxgjklza18j62qf6zkm2icaa8lfy";
83
+ type = "gem";
84
+ };
85
+ version = "3.12.6";
86
+ };
87
+ rspec-support = {
88
+ groups = ["default" "development"];
89
+ platforms = [];
90
+ source = {
91
+ remotes = ["https://rubygems.org"];
92
+ sha256 = "1ky86j3ksi26ng9ybd7j0qsdf1lpr8mzrmn98yy9gzv801fvhsgr";
93
+ type = "gem";
94
+ };
95
+ version = "3.12.1";
96
+ };
97
+ }
@@ -1,3 +1,3 @@
1
1
  module SQLint
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
data/sqlint.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.name = 'sqlint'
9
9
  s.version = SQLint::VERSION
10
10
  s.platform = Gem::Platform::RUBY
11
- s.required_ruby_version = '>= 1.9.3'
11
+ s.required_ruby_version = '>= 2.7'
12
12
  s.authors = ['Steve Purcell', 'Kieran Trezona-le Comte']
13
13
  s.description = <<-EOF
14
14
  Simple SQL linter.
@@ -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', '~> 2')
39
+ s.add_runtime_dependency('pg_query', '>= 1')
40
40
  s.add_development_dependency('rake', '>= 12.3.3')
41
41
  s.add_development_dependency('rspec', '~> 3.2')
42
42
  s.add_development_dependency('bundler', '>= 2.2.33')
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.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Purcell
@@ -15,16 +15,16 @@ dependencies:
15
15
  name: pg_query
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '2'
20
+ version: '1'
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: '2'
27
+ version: '1'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -85,6 +85,9 @@ files:
85
85
  - README.md
86
86
  - TODO
87
87
  - bin/sqlint
88
+ - flake.lock
89
+ - flake.nix
90
+ - gemset.nix
88
91
  - lib/sqlint.rb
89
92
  - lib/sqlint/linter.rb
90
93
  - lib/sqlint/version.rb
@@ -101,14 +104,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
104
  requirements:
102
105
  - - ">="
103
106
  - !ruby/object:Gem::Version
104
- version: 1.9.3
107
+ version: '2.7'
105
108
  required_rubygems_version: !ruby/object:Gem::Requirement
106
109
  requirements:
107
110
  - - ">="
108
111
  - !ruby/object:Gem::Version
109
112
  version: '0'
110
113
  requirements: []
111
- rubygems_version: 3.2.26
114
+ rubygems_version: 3.3.20
112
115
  signing_key:
113
116
  specification_version: 4
114
117
  summary: Simple SQL linter.