meta/data.rb in qed-2.4.0 vs meta/data.rb in qed-2.5.0
- old
+ new
@@ -1,29 +1,27 @@
-Object.__send__(:remove_const, :VERSION) if Object.const_defined?(:VERSION) # becuase Ruby 1.8~ gets in the way
-
module QED
- def self.__DIR__
- File.dirname(__FILE__)
- end
+ DIRECTORY = File.dirname(__FILE__)
- def self.gemfile
- @gemfile ||= (
+ def self.package
+ @package ||= (
require 'yaml'
- YAML.load(File.new(__DIR__ + '/gemfile'))
+ YAML.load(File.new(DIRECTORY + '/package'))
)
end
def self.profile
@profile ||= (
require 'yaml'
- YAML.load(File.new(__DIR__ + '/profile'))
+ YAML.load(File.new(DIRECTORY + '/profile'))
)
end
def self.const_missing(name)
key = name.to_s.downcase
- gemfile[key] || profile[key] || super(name)
+ package[key] || profile[key] || super(name)
end
end
+# becuase Ruby 1.8~ gets in the way
+Object.__send__(:remove_const, :VERSION) if Object.const_defined?(:VERSION)