Skip to content

Commit

Permalink
Updated gem tasks, removed unnecessary rbconfig stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
djberg96 committed Nov 7, 2014
1 parent c937c60 commit 675e477
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Rakefile
@@ -1,22 +1,25 @@
require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rbconfig'
include Config

CLEAN.include("**/*.gem", "**/*.rbc", "**/*.log")

namespace 'gem' do
desc 'Create the oracle-model-generator gem'
task :create => :clean do
spec = eval(IO.read('oracle-model-generator.gemspec'))
Gem::Builder.new(spec).build
if Gem::VERSION < "2.0"
Gem::Builder.new(spec).build
else
require 'rubygems/package'
Gem::Package.build(spec)
end
end

desc 'Install the oracle-model-generator gem'
task :install => [:create] do
file = Dir["oracle-model-generator*.gem"].last
sh "gem install #{file}"
sh "gem install -l #{file}"
end
end

Expand Down

0 comments on commit 675e477

Please sign in to comment.