-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chrislo
committed
Dec 18, 2009
1 parent
28fd4f4
commit 78d9c05
Showing
4 changed files
with
78 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,74 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
|
||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
gem.name = "jira" | ||
gem.summary = %Q{A command line interface to the JIRA issue tracking system} | ||
gem.description = %Q{A command line interface to the JIRA issue tracking system} | ||
gem.email = "[email protected]" | ||
gem.homepage = "http://github.com/chrislo/jira" | ||
gem.authors = ["chrislo"] | ||
gem.add_development_dependency "rspec", ">= 1.2.9" | ||
gem.add_development_dependency "fakeweb", ">= 1.2.7" | ||
gem.add_dependency "rest-client", ">= 1.0.3" | ||
gem.add_dependency "xml-simple", ">= 1.0.12" | ||
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings | ||
end | ||
rescue LoadError | ||
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" | ||
end | ||
require "rubygems" | ||
require "rake/gempackagetask" | ||
require "rake/rdoctask" | ||
|
||
Jeweler::GemcutterTasks.new | ||
task :default => :spec | ||
|
||
require 'spec/rake/spectask' | ||
Spec::Rake::SpecTask.new(:spec) do |spec| | ||
spec.libs << 'lib' << 'spec' | ||
spec.spec_files = FileList['spec/**/*_spec.rb'] | ||
require "spec" | ||
require "spec/rake/spectask" | ||
Spec::Rake::SpecTask.new do |t| | ||
t.spec_opts = %w(--format specdoc --colour) | ||
t.libs = ["spec"] | ||
end | ||
|
||
Spec::Rake::SpecTask.new(:rcov) do |spec| | ||
spec.libs << 'lib' << 'spec' | ||
spec.pattern = 'spec/**/*_spec.rb' | ||
spec.rcov = true | ||
end | ||
# 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 = "jira" | ||
s.version = "0.1.0" | ||
s.summary = "A command line interface to the JIRA issue tracking system" | ||
s.author = "Chris Lowis" | ||
s.email = "[email protected]" | ||
s.homepage = "http://github.com/chrislo/jira" | ||
|
||
task :spec => :check_dependencies | ||
s.has_rdoc = true | ||
s.extra_rdoc_files = %w(README.rdoc) | ||
s.rdoc_options = %w(--main README.rdoc) | ||
|
||
task :default => :spec | ||
# Add any extra files to include in the gem | ||
s.files = %w(jira.gemspec LICENSE README.rdoc) + Dir.glob("{bin,spec,lib}/**/*") | ||
s.executables = FileList["bin/**"].map { |f| File.basename(f) } | ||
s.require_paths = ["lib"] | ||
|
||
# If you want to depend on other gems, add them here, along with any | ||
# relevant versions | ||
s.add_dependency("rest-client", ">=1.0.3") | ||
s.add_dependency("xml-simple", ">=1.0.12") | ||
|
||
s.add_development_dependency("rspec") | ||
s.add_development_dependency("fakeweb", ">=1.2.7") | ||
|
||
# If you want to publish automatically to rubyforge, you'll may need | ||
# to tweak this, and the publishing task below too. | ||
s.rubyforge_project = "jira" | ||
end | ||
|
||
require 'rake/rdoctask' | ||
Rake::RDocTask.new do |rdoc| | ||
version = File.exist?('VERSION') ? File.read('VERSION') : "" | ||
# This task actually builds the gem. We also regenerate a static | ||
# .gemspec file, which is useful if something (i.e. GitHub) will | ||
# be automatically building a gem for this project. If you're not | ||
# using GitHub, edit as appropriate. | ||
Rake::GemPackageTask.new(spec) do |pkg| | ||
pkg.gem_spec = spec | ||
|
||
# Generate the gemspec file for github. | ||
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec" | ||
File.open(file, "w") {|f| f << spec.to_ruby } | ||
end | ||
|
||
# Generate documentation | ||
Rake::RDocTask.new do |rd| | ||
rd.main = "README.rdoc" | ||
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb") | ||
rd.rdoc_dir = "rdoc" | ||
end | ||
|
||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = "jira #{version}" | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
desc 'Clear out RDoc and generated packages' | ||
task :clean => [:clobber_rdoc, :clobber_package] do | ||
rm "#{spec.name}.gemspec" | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,43 @@ | ||
# Generated by jeweler | ||
# DO NOT EDIT THIS FILE DIRECTLY | ||
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{jira} | ||
s.version = "0.1.0" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["chrislo"] | ||
s.date = %q{2009-12-04} | ||
s.authors = ["Chris Lowis"] | ||
s.date = %q{2009-12-18} | ||
s.default_executable = %q{jira} | ||
s.description = %q{A command line interface to the JIRA issue tracking system} | ||
s.email = %q{[email protected]} | ||
s.executables = ["jira"] | ||
s.extra_rdoc_files = [ | ||
"LICENSE", | ||
"README.rdoc" | ||
] | ||
s.files = [ | ||
".document", | ||
".gitignore", | ||
"LICENSE", | ||
"README.rdoc", | ||
"Rakefile", | ||
"VERSION", | ||
"bin/jira", | ||
"jira.gemspec", | ||
"lib/jira.rb", | ||
"lib/jira/cli.rb", | ||
"lib/jira/issue.rb", | ||
"spec/fixtures/issues.xml", | ||
"spec/jira/issue_spec.rb", | ||
"spec/spec.opts", | ||
"spec/spec_helper.rb" | ||
] | ||
s.extra_rdoc_files = ["README.rdoc"] | ||
s.files = ["jira.gemspec", "LICENSE", "README.rdoc", "bin/jira", "spec/fixtures", "spec/fixtures/issues.xml", "spec/jira", "spec/jira/hash_spec.rb", "spec/jira/issue_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "lib/jira", "lib/jira/cli.rb", "lib/jira/ext", "lib/jira/ext/hash.rb", "lib/jira/issue.rb", "lib/jira.rb"] | ||
s.homepage = %q{http://github.com/chrislo/jira} | ||
s.rdoc_options = ["--charset=UTF-8"] | ||
s.rdoc_options = ["--main", "README.rdoc"] | ||
s.require_paths = ["lib"] | ||
s.rubyforge_project = %q{jira} | ||
s.rubygems_version = %q{1.3.5} | ||
s.summary = %q{A command line interface to the JIRA issue tracking system} | ||
s.test_files = [ | ||
"spec/jira/issue_spec.rb", | ||
"spec/spec_helper.rb" | ||
] | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 3 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
s.add_development_dependency(%q<rspec>, [">= 1.2.9"]) | ||
s.add_development_dependency(%q<fakeweb>, [">= 1.2.7"]) | ||
s.add_runtime_dependency(%q<rest-client>, [">= 1.0.3"]) | ||
s.add_runtime_dependency(%q<xml-simple>, [">= 1.0.12"]) | ||
s.add_development_dependency(%q<rspec>, [">= 0"]) | ||
s.add_development_dependency(%q<fakeweb>, [">= 1.2.7"]) | ||
else | ||
s.add_dependency(%q<rspec>, [">= 1.2.9"]) | ||
s.add_dependency(%q<fakeweb>, [">= 1.2.7"]) | ||
s.add_dependency(%q<rest-client>, [">= 1.0.3"]) | ||
s.add_dependency(%q<xml-simple>, [">= 1.0.12"]) | ||
s.add_dependency(%q<rspec>, [">= 0"]) | ||
s.add_dependency(%q<fakeweb>, [">= 1.2.7"]) | ||
end | ||
else | ||
s.add_dependency(%q<rspec>, [">= 1.2.9"]) | ||
s.add_dependency(%q<fakeweb>, [">= 1.2.7"]) | ||
s.add_dependency(%q<rest-client>, [">= 1.0.3"]) | ||
s.add_dependency(%q<xml-simple>, [">= 1.0.12"]) | ||
s.add_dependency(%q<rspec>, [">= 0"]) | ||
s.add_dependency(%q<fakeweb>, [">= 1.2.7"]) | ||
end | ||
end | ||
|