[DRE-commits] [nanoc] 02/08: remove identifier.rb from debian/, now available in the source
Cédric Boutillier
boutil at moszumanska.debian.org
Tue Apr 15 21:20:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository nanoc.
commit 1809580ad42e407e0117eccc6940cf5bbc7c2f9f
Author: Cédric Boutillier <boutil at debian.org>
Date: Tue Apr 15 10:54:19 2014 +0200
remove identifier.rb from debian/, now available in the source
---
debian/copyright | 5 -----
debian/identifier.rb | 34 ----------------------------------
debian/rules | 8 ++++----
3 files changed, 4 insertions(+), 43 deletions(-)
diff --git a/debian/copyright b/debian/copyright
index 054d54f..bf38a12 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -11,11 +11,6 @@ Files: debian/*
Copyright: 2013 Cédric Boutillier <boutil at debian.org>
License: Expat
-Files: debian/identifier.rb
-Copyright: 2007-2013 Denis Defreyne <denis.defreyne at stoneship.org>
-License: Expat
-Comment: this file from the original source is missing from the tarball
-
License: Expat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/debian/identifier.rb b/debian/identifier.rb
deleted file mode 100644
index 8991f9f..0000000
--- a/debian/identifier.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-class NanocIdentifierHandler < ::YARD::Handlers::Ruby::AttributeHandler
-
- # e.g. identifier :foo, :bar
-
- handles method_call(:identifier), method_call(:identifiers)
- namespace_only
-
- def process
- identifiers = statement.parameters(false).map { |param| param.jump(:ident)[0] }
- namespace['nanoc_identifiers'] = identifiers
- end
-
-end
-
-class NanocRegisterFilterHandler < ::YARD::Handlers::Ruby::AttributeHandler
-
- # e.g. Nanoc::Filter.register '::Nanoc::Filters::AsciiDoc', :asciidoc
-
- handles method_call(:register)
- namespace_only
-
- def process
- target = statement.jump(:const_path_ref)
- return if target != s(:const_path_ref, s(:var_ref, s(:const, "Nanoc")), s(:const, "Filter"))
-
- class_name = statement.jump(:string_literal).jump(:tstring_content)[0]
- identifier = statement.jump(:symbol_literal).jump(:ident)[0]
-
- obj = YARD::Registry.at(class_name.sub(/^::/, ''))
- obj['nanoc_identifiers'] ||= []
- obj['nanoc_identifiers'] << identifier
- end
-
-end
diff --git a/debian/rules b/debian/rules
index aeec2c6..88448c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,9 +16,9 @@
override_dh_auto_install:
dh_auto_install
- mkdir doc/yardoc_handlers
- ln -s ../../debian/identifier.rb doc/yardoc_handlers/identifier.rb
- rake doc
+ #mkdir doc/yardoc_handlers
+ #ln -s ../../debian/identifier.rb doc/yardoc_handlers/identifier.rb
+ rake -f tasks/doc.rake doc
override_dh_installman:
mkdir man/
@@ -28,6 +28,6 @@ override_dh_installman:
override_dh_clean:
dh_clean
rm -rf man/
- rm -rf doc/yardoc_handlers/
+ #rm -rf doc/yardoc_handlers/
rm -rf doc/yardoc
rm -rf .yardoc
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/nanoc.git
More information about the Pkg-ruby-extras-commits
mailing list