-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathRakefile
56 lines (44 loc) · 1.56 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
require "rubygems"
require "rspec"
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
require 'cucumber'
require 'cucumber/rake/task'
Cucumber::Rake::Task.new('features') do |t|
t.cucumber_opts = %w{--format pretty}
end
task :default => ["spec", "features"]
# This builds the actual gem. For details of what all these options
# mean, and other ones you can add, check the documentation here:
#
# http://rubygems.org/read/chapter/20
#
spec = Gem::Specification.new do |s|
# Change these as appropriate
s.name = "rype"
s.version = "0.0.4"
s.authors = ["Niko Felger"]
s.email = "niko.felger@gmail.com"
s.homepage = "http://github.com/nfelger/rype"
s.summary = %q{Unofficial Skype Api wrapper}
s.description = %q{Unofficial Skype Api wrapper}
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.has_rdoc = false
s.add_dependency("ruby-dbus", [">= 0.6"])
s.add_development_dependency("rspec")
s.add_development_dependency("cucumber")
s.add_development_dependency("rake")
end
require "rubygems/package_task"
Gem::PackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
desc "Build the gemspec file #{spec.name}.gemspec"
task :gemspec do
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
File.open(file, "w") {|f| f << spec.to_ruby }
end
task :package => :gemspec