Skip to content
Browse files

Adjust to YARD 0.8.0 requirements

  • Loading branch information...
1 parent cde2011 commit 6c15825c56de6f0b58707f00a62eb85e0fb3a37c Nikolai Weibull committed May 1, 2012
View
4 README
@@ -1,5 +1,5 @@
- Value-YARD
+ YARD-Value
- Value-YARD provides YARD handlers for Value¹ objects.
+ YARD-Value provides YARD handlers for Value¹ objects.
¹ Check out the Value library at http://disu.se/software/value
View
6 Rakefile
@@ -2,12 +2,12 @@
require 'inventory/rake-1.0'
-load File.expand_path('../lib/value/yard/version.rb', __FILE__)
+load File.expand_path('../lib/yard-value/version.rb', __FILE__)
-Inventory::Rake::Tasks.define Value::YARD::Version, :gem => proc{ |_, s|
+Inventory::Rake::Tasks.define YARDValue::Version, :gem => proc{ |_, s|
s.author = 'Nikolai Weibull'
s.email = 'now@bitwi.se'
- s.homepage = 'https://github.com/now/value-yard'
+ s.homepage = 'https://github.com/now/yard-value'
}
Inventory::Rake::Tasks.unless_installing_dependencies do
View
10 lib/value/yard-1.0.rb → lib/yard-value-1.0.rb
@@ -1,12 +1,8 @@
# -*- coding: utf-8 -*-
-# Value namespace.
-module Value
-end
-
# Namespace for YARD extensions for Value.
-module Value::YARD
- load File.expand_path('../yard/version.rb', __FILE__)
+module YARDValue
+ load File.expand_path('../yard-value/version.rb', __FILE__)
Version.load
end
@@ -59,5 +55,3 @@ def join(items)
return '%s, and %s' % [items[0..-2].join(', '), items[-1]]
end
end
-
-YARD::Handlers::Ruby::MacroHandler::IGNORE_METHODS['Value'] = true
View
14 lib/value/yard/version.rb → lib/yard-value/version.rb
@@ -2,23 +2,15 @@
require 'inventory-1.0'
-module Value end
-
-module Value::YARD
- Version = Inventory.new(1, 1, 0){
+module YARDValue
+ Version = Inventory.new(1, 2, 0){
def dependencies
super + Inventory::Dependencies.new{
development 'inventory-rake', 1, 3, 0
development 'lookout', 3, 0, 0
development 'lookout-rake', 3, 0, 0
- optional 'yard', 0, 7, 0
+ runtime 'yard', 0, 8, 0, :feature => 'yard'
}
end
-
- def requires
- %w'
- yard
- '
- end
}
end
View
0 test/unit/value/yard-1.0.rb → test/unit/yard-value-1.0.rb
File renamed without changes.
View
0 test/unit/value/yard/version.rb → test/unit/yard-value/version.rb
File renamed without changes.

0 comments on commit 6c15825

Please sign in to comment.
Something went wrong with that request. Please try again.