Browse Source

Use foodcritic and scmversion.

Douglas Thrift 10 years ago
parent
commit
ef04587282
4 changed files with 6 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 2 0
      Gemfile
  3. 2 0
      Thorfile
  4. 1 1
      metadata.rb

+ 1 - 0
.gitignore

@@ -13,5 +13,6 @@ Gemfile.lock
 bin/*
 .bundle/*
 
+VERSION
 .kitchen/
 .kitchen.local.yml

+ 2 - 0
Gemfile

@@ -1,5 +1,7 @@
 source 'https://rubygems.org'
 
 gem 'berkshelf'
+gem 'thor-foodcritic'
+gem 'thor-scmversion'
 gem 'test-kitchen', :group => :integration
 gem 'kitchen-vagrant', :group => :integration

+ 2 - 0
Thorfile

@@ -2,6 +2,8 @@
 
 require 'bundler'
 require 'bundler/setup'
+require 'thor/foodcritic'
+require 'thor/scmversion'
 require 'berkshelf/thor'
 
 begin

+ 1 - 1
metadata.rb

@@ -4,7 +4,7 @@ maintainer_email 'douglas@douglasthrift.net'
 license          'Apache 2.0'
 description      'Installs/Configures pkgng'
 long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version          '0.1.0'
+version          IO.read(File.join(File.dirname(__FILE__), 'VERSION')) rescue '0.1.0'
 
 supports 'freebsd', '>= 8.4'