Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (51 sloc) 1.794 kb
ec1aa0a @delano Updated readme
authored
1 require "rubygems"
2 require "rake"
3 require "rake/clean"
4 require 'yaml'
5
a5df70e @mynyml Initial commit for 0.9
mynyml authored
6 begin
ec1aa0a @delano Updated readme
authored
7 require 'hanna/rdoctask'
8 rescue LoadError
9 require 'rake/rdoctask'
a5df70e @mynyml Initial commit for 0.9
mynyml authored
10 end
ec1aa0a @delano Updated readme
authored
11
12 config = YAML.load_file("VERSION.yml")
13 task :default => ["build"]
14 CLEAN.include [ 'pkg', 'doc' ]
15 name = "stella"
a5df70e @mynyml Initial commit for 0.9
mynyml authored
16
ec1aa0a @delano Updated readme
authored
17 begin
18 require "jeweler"
19 Jeweler::Tasks.new do |gem|
5ee0cbc @delano Minor readme changes
authored
20 gem.version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}"
ec1aa0a @delano Updated readme
authored
21 gem.name = "tryouts"
22 gem.rubyforge_project = gem.name
16056b3 @delano Don't waste your time
authored
23 gem.summary = "Don't waste your time writing tests"
ec1aa0a @delano Updated readme
authored
24 gem.description = gem.summary
25 gem.email = "delano@solutious.com"
26 gem.homepage = "http://github.com/delano/tryouts"
27 gem.authors = ["Delano Mandelbaum"]
ef2f365 @delano 2.1.1 (removed sysinfo, added as a dep)
authored
28 gem.add_dependency("sysinfo", ">= 0.7.3")
a5df70e @mynyml Initial commit for 0.9
mynyml authored
29 end
ec1aa0a @delano Updated readme
authored
30 Jeweler::GemcutterTasks.new
31 rescue LoadError
32 puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
a5df70e @mynyml Initial commit for 0.9
mynyml authored
33 end
34
35
ec1aa0a @delano Updated readme
authored
36 Rake::RDocTask.new do |rdoc|
40fa2d5 @delano ADDED: -v option for increased output.
authored
37 version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}}"
ec1aa0a @delano Updated readme
authored
38 rdoc.rdoc_dir = "doc"
39 rdoc.title = "stella #{version}"
40 rdoc.rdoc_files.include("README*")
41 rdoc.rdoc_files.include("LICENSE.txt")
42 rdoc.rdoc_files.include("bin/*.rb")
43 rdoc.rdoc_files.include("lib/**/*.rb")
a5df70e @mynyml Initial commit for 0.9
mynyml authored
44 end
45
46
ec1aa0a @delano Updated readme
authored
47 # Rubyforge Release / Publish Tasks ==================================
a5df70e @mynyml Initial commit for 0.9
mynyml authored
48
ec1aa0a @delano Updated readme
authored
49 #about 'Publish website to rubyforge'
50 task 'publish:rdoc' => 'doc/index.html' do
51 sh "scp -rp doc/* rubyforge.org:/var/www/gforge-projects/#{name}/"
52 end
a5df70e @mynyml Initial commit for 0.9
mynyml authored
53
ec1aa0a @delano Updated readme
authored
54 #about 'Public release to rubyforge'
55 task 'publish:gem' => [:package] do |t|
56 sh <<-end
57 rubyforge add_release -o Any -a CHANGES.txt -f -n README.md #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.gem &&
58 rubyforge add_file -o Any -a CHANGES.txt -f -n README.md #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.tgz
a5df70e @mynyml Initial commit for 0.9
mynyml authored
59 end
60 end
61
62
ec1aa0a @delano Updated readme
authored
63
Something went wrong with that request. Please try again.