1
|
# encoding: utf-8
|
2
|
require 'rubygems'
|
3
|
require 'term/ansicolor'
|
4
|
require 'rake'
|
5
|
$:.unshift(File.dirname(__FILE__) + '/lib')
|
6
|
require 'cucumber/formatter/ansicolor'
|
7
|
require 'cucumber/platform'
|
8
|
|
9
|
begin
|
10
|
require 'jeweler'
|
11
|
Jeweler::Tasks.new do |gem|
|
12
|
gem.name = "cucumber"
|
13
|
gem.summary = %Q{Behaviour Driven Development with elegance and joy}
|
14
|
gem.description = %Q{Behaviour Driven Development with elegance and joy}
|
15
|
gem.email = "cukes@googlegroups.com"
|
16
|
gem.homepage = "http://cukes.info"
|
17
|
gem.authors = ["Aslak Hellesøy"]
|
18
|
|
19
|
gem.add_dependency 'gherkin', '~> 2.1.4'
|
20
|
gem.add_dependency 'term-ansicolor', '~> 1.0.4'
|
21
|
gem.add_dependency 'builder', '~> 2.1.2'
|
22
|
gem.add_dependency 'diff-lcs', '~> 1.1.2'
|
23
|
gem.add_dependency 'json_pure', '~> 1.4.3'
|
24
|
|
25
|
gem.add_development_dependency 'nokogiri', '~> 1.4.2'
|
26
|
gem.add_development_dependency 'prawn', '= 0.8.4'
|
27
|
gem.add_development_dependency 'prawn-layout', '= 0.8.4'
|
28
|
gem.add_development_dependency 'rspec', '~> 2.0.0.beta.15'
|
29
|
gem.add_development_dependency 'syntax', '~> 1.0.0'
|
30
|
gem.add_development_dependency 'spork', '~> 0.8.4' unless Cucumber::JRUBY || Cucumber::WINDOWS
|
31
|
|
32
|
extend Cucumber::Formatter::ANSIColor
|
33
|
gem.post_install_message = <<-POST_INSTALL_MESSAGE
|
34
|
|
35
|
#{cukes(15)}
|
36
|
|
37
|
#{cukes(1)} U P G R A D I N G #{cukes(1)}
|
38
|
|
39
|
Thank you for installing cucumber-#{Cucumber::VERSION}.
|
40
|
Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
|
41
|
for important information about this release. Happy cuking!
|
42
|
|
43
|
#{cukes(15)}
|
44
|
|
45
|
POST_INSTALL_MESSAGE
|
46
|
end
|
47
|
|
48
|
Jeweler::GemcutterTasks.new
|
49
|
rescue LoadError
|
50
|
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
51
|
end
|
52
|
|
53
|
Dir['gem_tasks/**/*.rake'].each { |rake| load rake }
|
54
|
|
55
|
task :default => [:check_dependencies, :spec, :cucumber]
|
56
|
|
57
|
require 'rake/clean'
|
58
|
CLEAN.include %w(**/*.{log,pyc})
|