Rakefile in global_session-3.0.5 vs Rakefile in global_session-3.1.0
- old
+ new
@@ -1,9 +1,10 @@
# -*-ruby-*-
require 'rubygems'
require 'rake'
require 'right_develop'
+require 'right_support'
require 'spec/rake/spectask'
require 'rubygems/package_task'
require 'rake/clean'
require 'cucumber/rake/task'
@@ -15,31 +16,32 @@
t.spec_opts = lambda do
IO.readlines(File.join(File.dirname(__FILE__), 'spec', 'spec.opts')).map {|l| l.chomp.split " "}.flatten
end
end
-desc "run functional tests"
+desc "Run functional tests"
Cucumber::Rake::Task.new do |t|
t.cucumber_opts = %w{--tags ~@slow --color --format pretty}
end
-require 'jeweler'
-Jeweler::Tasks.new do |gem|
- # gem is a Gem::Specification; see http://docs.rubygems.org/read/chapter/20 for more options
- gem.name = "global_session"
- gem.homepage = "https://github.com/rightscale/global_session"
- gem.license = "MIT"
- gem.summary = %Q{Secure single-domain session sharing plugin for Rack and Rails.}
- gem.description = %Q{This Rack middleware allows several web apps in an authentication domain to share session state, facilitating single sign-on in a distributed web app. It only provides session sharing and does not concern itself with authentication or replication of the user database.}
- gem.email = "support@rightscale.com"
- gem.authors = ['Tony Spataro']
- gem.files.exclude 'Gemfile*'
- gem.files.exclude 'features/**/*'
- gem.files.exclude 'fixtures/**/*'
- gem.files.exclude 'features/**/*'
- gem.files.exclude 'spec/**/*'
+if require_succeeds? 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ # gem is a Gem::Specification; see http://docs.rubygems.org/read/chapter/20 for more options
+ gem.name = "global_session"
+ gem.homepage = "https://github.com/rightscale/global_session"
+ gem.license = "MIT"
+ gem.summary = %Q{Secure single-domain session sharing plugin for Rack and Rails.}
+ gem.description = %Q{This Rack middleware allows several web apps in an authentication domain to share session state, facilitating single sign-on in a distributed web app. It only provides session sharing and does not concern itself with authentication or replication of the user database.}
+ gem.email = "support@rightscale.com"
+ gem.authors = ['Tony Spataro']
+ gem.files.exclude 'Gemfile*'
+ gem.files.exclude 'features/**/*'
+ gem.files.exclude 'fixtures/**/*'
+ gem.files.exclude 'features/**/*'
+ gem.files.exclude 'spec/**/*'
+ end
+ Jeweler::RubygemsDotOrgTasks.new
end
-Jeweler::RubygemsDotOrgTasks.new
CLEAN.include('pkg')
RightDevelop::CI::RakeTask.new