From 08d5300813fcd7be40e5602ddf25495cc10e0baa Mon Sep 17 00:00:00 2001 From: 7rans Date: Fri, 26 Nov 2010 14:16:12 -0500 Subject: [PATCH] admin: put metadata in root --- MANIFEST | 7 ++++--- meta/profile => PROFILE | 0 meta/package => VERSION | 0 lib/platypus.rb | 1 + lib/platypus/meta | 1 - lib/platypus/version.rb | 3 +++ meta/data.rb | 29 ----------------------------- 7 files changed, 8 insertions(+), 33 deletions(-) rename meta/profile => PROFILE (100%) rename meta/package => VERSION (100%) delete mode 120000 lib/platypus/meta create mode 100644 lib/platypus/version.rb delete mode 100644 meta/data.rb diff --git a/MANIFEST b/MANIFEST index bd6b925..c111292 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,14 +1,15 @@ -#!mast -x Syckfile .ruby bin lib meta test [A-Z]* +#!mast -x Syckfile .ruby bin lib test [A-Z]* .ruby lib/platypus/core_ext.rb lib/platypus/overload.rb lib/platypus/type.rb lib/platypus/typecast.rb +lib/platypus/version.rb lib/platypus.rb -meta/package -meta/profile test/test_overload.rb +PROFILE LICENSE README.rdoc HISTORY NOTES.rdoc +VERSION diff --git a/meta/profile b/PROFILE similarity index 100% rename from meta/profile rename to PROFILE diff --git a/meta/package b/VERSION similarity index 100% rename from meta/package rename to VERSION diff --git a/lib/platypus.rb b/lib/platypus.rb index 5c7a825..94bc7bd 100644 --- a/lib/platypus.rb +++ b/lib/platypus.rb @@ -1,3 +1,4 @@ +require 'platypus/version' require 'platypus/typecast' require 'platypus/overload' require 'platypus/type' diff --git a/lib/platypus/meta b/lib/platypus/meta deleted file mode 120000 index 912a1cc..0000000 --- a/lib/platypus/meta +++ /dev/null @@ -1 +0,0 @@ -../../meta \ No newline at end of file diff --git a/lib/platypus/version.rb b/lib/platypus/version.rb new file mode 100644 index 0000000..5329c0d --- /dev/null +++ b/lib/platypus/version.rb @@ -0,0 +1,3 @@ +module Platypus + VERSION = "1.0.0" +end diff --git a/meta/data.rb b/meta/data.rb deleted file mode 100644 index c4ffcbe..0000000 --- a/meta/data.rb +++ /dev/null @@ -1,29 +0,0 @@ -Object.__send__(:remove_const, :VERSION) if Object.const_defined?(:VERSION) # becuase Ruby 1.8~ gets in the way - -module Platypus - - def self.__DIR__ - File.dirname(__FILE__) - end - - def self.package - @package ||= ( - require 'yaml' - YAML.load(File.new(__DIR__ + '/package')) - ) - end - - def self.profile - @profile ||= ( - require 'yaml' - YAML.load(File.new(__DIR__ + '/profile')) - ) - end - - def self.const_missing(name) - key = name.to_s.downcase - package[key] || profile[key] || super(name) - end - -end -