[DRE-commits] [SCM] yard.git branch, master, updated. debian/0.8.1-1-11-g6ab01aa
Cédric Boutillier
cedric.boutillier at gmail.com
Thu Jun 28 05:27:38 UTC 2012
The following commit has been merged in the master branch:
commit a5d471b17c84acf3204f85a9a8a6218c1224288c
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date: Thu Jun 28 00:00:18 2012 +0200
add debian/patches/use_yard_gemspec_for_doc_manager_spec.patch
diff --git a/debian/patches/series b/debian/patches/series
index bd3d0ea..b07cee6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
require-in-executables.patch
set-templates-path.patch
remove_rubygems_and_path_manipulation_from_spec.patch
+use_yard_gemspec_for_doc_manager_spec.patch
diff --git a/debian/patches/use_yard_gemspec_for_doc_manager_spec.patch b/debian/patches/use_yard_gemspec_for_doc_manager_spec.patch
new file mode 100644
index 0000000..8b21937
--- /dev/null
+++ b/debian/patches/use_yard_gemspec_for_doc_manager_spec.patch
@@ -0,0 +1,43 @@
+Description: Temporarily install upstream yard.gemspec to run specs for doc_manager
+ The gemspec file is not shipped in the gem, but is used for the tests.
+ The yard.gemspec may need to be updated when new versions are packaged
+Origin: vendor
+Last-Update: 2012-06-27
+
+--- a/spec/rubygems/doc_manager_spec.rb
++++ b/spec/rubygems/doc_manager_spec.rb
+@@ -11,7 +11,7 @@
+
+ YARD::CLI::Yardoc.stub(:run)
+
+- @spec_file = File.join(YARD::ROOT, '../yard.gemspec')
++ @spec_file = File.join(File.dirname(__FILE__), '../../yard.gemspec')
+ @spec = Gem::SourceIndex.load_specification(@spec_file)
+ @spec.has_yardoc = false # no yardoc docs for now
+ @yardopts = File.join(@spec.full_gem_path, '.yardopts')
+--- /dev/null
++++ b/yard.gemspec
+@@ -0,0 +1,22 @@
++require File.expand_path(File.dirname(__FILE__) + '/lib/yard')
++Gem::Specification.new do |s|
++ s.name = "yard"
++ s.summary = "Documentation tool for consistent and usable documentation in Ruby."
++ s.description = <<-eof
++ YARD is a documentation generation tool for the Ruby programming language.
++ It enables the user to generate consistent, usable documentation that can be
++ exported to a number of formats very easily, and also supports extending for
++ custom Ruby constructs such as custom class level definitions.
++ eof
++ s.version = YARD::VERSION
++ s.date = Time.now.strftime('%Y-%m-%d')
++ s.author = "Loren Segal"
++ s.email = "lsegal at soen.ca"
++ s.homepage = "http://yardoc.org"
++ s.platform = Gem::Platform::RUBY
++ s.files = Dir.glob("{docs,bin,lib,spec,templates,benchmarks}/**/*") + ['ChangeLog', 'LICENSE', 'LEGAL', 'README.md', 'Rakefile', '.yardopts']
++ s.require_paths = ['lib']
++ s.executables = ['yard', 'yardoc', 'yri']
++ s.has_rdoc = 'yard'
++ s.rubyforge_project = 'yard'
++end
+\ No newline at end of file
--
yard.git
More information about the Pkg-ruby-extras-commits
mailing list