Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(88)

Side by Side Diff: Rakefile

Issue 89083: Start the appengine-tools gem (Closed) SVN Base: http://appengine-jruby.googlecode.com/svn/trunk/appengine-tools/
Patch Set: Clean up xml formatting. Created 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 require 'rubygems'
2 require 'rake/gempackagetask'
3 require 'rubygems/specification'
4 require 'date'
5 require 'spec/rake/spectask'
6
7 GEM = "appengine-tools"
8 GEM_VERSION = "0.0.1"
9 AUTHOR = "Ryan Brown"
10 EMAIL = "ribrdb@gmail.com"
11 HOMEPAGE = "http://code.google.com/p/appengine-jruby"
12 SUMMARY = "Tools for developing and deploying apps to Google App Engine"
13
14 spec = Gem::Specification.new do |s|
15 s.name = GEM
16 s.version = GEM_VERSION
17 s.platform = Gem::Platform::RUBY
18 s.has_rdoc = true
19 s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
20 s.summary = SUMMARY
21 s.description = s.summary
22 s.author = AUTHOR
23 s.email = EMAIL
24 s.homepage = HOMEPAGE
25
26 s.require_path = 'lib'
27 s.files = %w(LICENSE README.rdoc Rakefile) + Dir.glob("{lib,spec}/**/*")
28 end
29
30 task :default => :spec
31
32 desc "Run specs"
33 Spec::Rake::SpecTask.new do |t|
34 t.spec_files = FileList['spec/**/*_spec.rb']
35 t.spec_opts = %w(-fs --color)
36 end
37
38
39 Rake::GemPackageTask.new(spec) do |pkg|
40 pkg.gem_spec = spec
41 end
42
43 desc "install the gem locally"
44 task :install => [:package] do
45 sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
46 end
47
48 desc "create a gemspec file"
49 task :make_spec do
50 File.open("#{GEM}.gemspec", "w") do |file|
51 file.puts spec.to_ruby
52 end
53 end
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497