From 5ede9635870abcb2c8385e3d9489865ed536e869 Mon Sep 17 00:00:00 2001
From: Steve Purcell <steve@sanityinc.com>
Date: Sat, 25 Nov 2017 11:31:51 +1300
Subject: [PATCH] Ensure reliable permissions on gem files, and release 0.1.6

---
 .travis.yml           |  2 +-
 Makefile              | 11 +++++++++++
 lib/sqlint/version.rb |  2 +-
 3 files changed, 13 insertions(+), 2 deletions(-)
 create mode 100644 Makefile

diff --git a/.travis.yml b/.travis.yml
index e634cf6..1589496 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,4 +15,4 @@ before_install: gem update --remote bundler
 install:
   - bundle install --retry=3
 script:
-  - bundle exec rspec
+  - make test
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..77b570f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+test:
+	bundle exec rspec
+
+gem:
+	# Ensure perms are correct
+	find . -type d -not -path "./.git/*" -exec chmod a+rx '{}' ';'
+	find . -type f -not -path "./.git/*" -exec chmod a+r '{}' ';'
+	chmod a+x bin/sqlint
+	gem build sqlint.gemspec
+
+.PHONY: gem test
diff --git a/lib/sqlint/version.rb b/lib/sqlint/version.rb
index d1d3668..9f2b74f 100644
--- a/lib/sqlint/version.rb
+++ b/lib/sqlint/version.rb
@@ -1,3 +1,3 @@
 module SQLint
-  VERSION = "0.1.5"
+  VERSION = "0.1.6"
 end
-- 
GitLab