Rakefile in genevalidatorapp-1.4.13 vs Rakefile in genevalidatorapp-1.5.0

- old
+ new

@@ -3,10 +3,14 @@ require 'rspec/core/rake_task' task default: [:build] desc 'Installs the ruby gem' task :build do - exec("gem build genevalidatorapp.gemspec && gem install ./genevalidatorapp-#{GeneValidatorApp::VERSION}.gem") + lib = File.expand_path('../lib', __FILE__) + $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) + require 'genevalidatorapp/version' + exec('gem build genevalidatorapp.gemspec &&'\ + " gem install ./genevalidatorapp-#{GeneValidatorApp::VERSION}.gem") end task test: :spec RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = FileList['spec/**/*_spec.rb']