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

Delta Between Two Patch Sets: Rakefile

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

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