mislav-hanna 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hanna/version.rb +1 -1
- data/lib/rubygems_plugin.rb +7 -3
- metadata +2 -2
data/lib/hanna/version.rb
CHANGED
data/lib/rubygems_plugin.rb
CHANGED
@@ -1,13 +1,17 @@
|
|
1
|
-
unless defined?(Hanna) or defined?(RDoc)
|
1
|
+
unless defined?(::Hanna) or defined?(::RDoc)
|
2
2
|
require 'rubygems/doc_manager'
|
3
|
-
|
4
|
-
|
3
|
+
|
4
|
+
# define the Hanna namespace to prevent actions of rubygems_plugin from older versions
|
5
|
+
module Hanna; end
|
5
6
|
|
6
7
|
class << Gem::DocManager
|
7
8
|
alias load_rdoc_without_version_constraint load_rdoc
|
8
9
|
|
9
10
|
# overwrite load_rdoc to load the exact version of RDoc that Hanna works with
|
10
11
|
def load_rdoc
|
12
|
+
require 'rubygems/requirement'
|
13
|
+
load File.expand_path(File.join(File.dirname(__FILE__), 'hanna', 'version.rb'))
|
14
|
+
|
11
15
|
Hanna::require_rdoc(false) # don't terminate if failed
|
12
16
|
|
13
17
|
# call the original method
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mislav-hanna
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Mislav Marohni\xC4\x87"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-21 00:00:00 -07:00
|
13
13
|
default_executable: hanna
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|