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.
@@ -1,6 +1,6 @@
1
1
  module Hanna
2
2
 
3
- VERSION = '0.1.10'
3
+ VERSION = '0.1.11'
4
4
 
5
5
  # The version of RDoc that Hanna should use
6
6
  RDOC_VERSION = '2.3.0'
@@ -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
- require 'rubygems/requirement'
4
- require 'hanna/version'
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.10
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-17 00:00:00 -07:00
12
+ date: 2009-09-21 00:00:00 -07:00
13
13
  default_executable: hanna
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency