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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b632f2cc8742bf3b8e04b21106cc8fff8aace862
4
- data.tar.gz: 63b3fe6e09656a43f26500726f429b469e1e801c
3
+ metadata.gz: 94409b642d10a384f50c2e87df1a29005ce40e30
4
+ data.tar.gz: f5ac7dbca8350dc6f72ef406ddab3a7202edf57f
5
5
  SHA512:
6
- metadata.gz: dc6d05c43fe9c3654f9bb39c46ce48451052e0e11f8fb0622f7c50ff87ba6534cc91bbec092f93f5f1b88da63c7fee0a35f8e1bc78ca46c5438e97ebbfe8ae12
7
- data.tar.gz: 220724349057aa7c6b39b47dcd56729fe2b58c26b7ac5d2cef17a559b982caa33d717338b1ffe791587f7db00e1d61d08ddd47f5c98fd8b61514ac51ba9a40cd
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)
@@ -0,0 +1 @@
1
+ require 'sqlint/version'
@@ -0,0 +1,3 @@
1
+ module SQLint
2
+ VERSION = "0.0.2"
3
+ end
@@ -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 = "0.0.1"
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.1
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: