sqlint 0.0.1 → 0.0.2
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/bin/sqlint +7 -0
- data/lib/sqlint.rb +1 -0
- data/lib/sqlint/version.rb +3 -0
- data/sqlint.gemspec +2 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94409b642d10a384f50c2e87df1a29005ce40e30
|
|
4
|
+
data.tar.gz: f5ac7dbca8350dc6f72ef406ddab3a7202edf57f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: efb5f196ac9a836d081678d976ef1e703357d9ceef19f75abc2264da7957a983da53637e0adf7c110fa1841a5d0ed7a7a7c340e936c4a46cc761e8b42ab15ad7
|
|
7
|
+
data.tar.gz: ed7ee4b6669e35f44183c3417acae5105c40f158b1a5fbbd7c44145196a256aa015f8b7394bd4e6aef8c3c01e789c7836e4413e9bdc87657bd57d31530879290
|
data/bin/sqlint
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
|
|
3
|
+
$LOAD_PATH.unshift(File.dirname(File.realpath(__FILE__)) + '/../lib')
|
|
3
4
|
require 'pg_query'
|
|
5
|
+
require 'sqlint'
|
|
6
|
+
|
|
7
|
+
if ARGV.include?("--version")
|
|
8
|
+
puts SQLint::VERSION
|
|
9
|
+
exit 0
|
|
10
|
+
end
|
|
4
11
|
|
|
5
12
|
ARGV.each do |filename|
|
|
6
13
|
contents = File.read(filename)
|
data/lib/sqlint.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'sqlint/version'
|
data/sqlint.gemspec
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
3
|
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
|
4
|
+
require 'sqlint'
|
|
4
5
|
require 'English'
|
|
5
6
|
|
|
6
7
|
Gem::Specification.new do |s|
|
|
7
8
|
s.name = 'sqlint'
|
|
8
|
-
s.version =
|
|
9
|
+
s.version = SQLint::VERSION
|
|
9
10
|
s.platform = Gem::Platform::RUBY
|
|
10
11
|
s.required_ruby_version = '>= 1.9.3'
|
|
11
12
|
s.authors = ['Steve Purcell', 'Kieran Trezona-le Comte']
|
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.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steve Purcell
|
|
@@ -81,6 +81,8 @@ files:
|
|
|
81
81
|
- LICENSE.txt
|
|
82
82
|
- README.md
|
|
83
83
|
- bin/sqlint
|
|
84
|
+
- lib/sqlint.rb
|
|
85
|
+
- lib/sqlint/version.rb
|
|
84
86
|
- sqlint.gemspec
|
|
85
87
|
homepage: https://github.com/purcell/sqlint
|
|
86
88
|
licenses:
|