Permalink
Browse files

Remove VERSION.yml usage, release 1.8.1

  • Loading branch information...
1 parent 8b5b22b commit c8ec03928eab469ddb77a744a082574f7a9dff73 @mperham committed Mar 20, 2010
Showing with 11 additions and 15 deletions.
  1. +2 −1 History.rdoc
  2. +2 −0 Rakefile
  3. +0 −5 VERSION.yml
  4. +1 −9 lib/memcache.rb
  5. +6 −0 lib/memcache/version.rb
View
@@ -1,6 +1,7 @@
-= HEAD
+= 1.8.1 (2010-03-20)
* Only require SystemTimer if the Ruby VM looks like MRI.
+ * Remove VERSION.yml usage as we should avoid using files outside of lib at runtime. (josh)
= 1.8.0 (2010-03-05)
View
@@ -3,10 +3,12 @@ require 'rubygems'
require 'rake/rdoctask'
require 'rake/testtask'
+require File.dirname(__FILE__) + "/lib/memcache/version.rb"
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "memcache-client"
+ s.version = MemCache::VERSION
s.summary = s.description = "A Ruby library for accessing memcached."
s.email = "mperham@gmail.com"
s.homepage = "http://github.com/mperham/memcache-client"
View
@@ -1,5 +0,0 @@
----
-:build:
-:major: 1
-:minor: 8
-:patch: 0
View
@@ -4,9 +4,9 @@
require 'socket'
require 'thread'
require 'zlib'
-require 'yaml'
require 'digest/sha1'
require 'net/protocol'
+require 'memcache/version'
begin
# Try to use the SystemTimer gem instead of Ruby's timeout library
@@ -35,14 +35,6 @@
class MemCache
##
- # The version of MemCache you are using.
-
- VERSION = begin
- config = YAML.load(File.read(File.dirname(__FILE__) + '/../VERSION.yml'))
- "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
- end
-
- ##
# Default options for the cache object.
DEFAULT_OPTIONS = {
@@ -0,0 +1,6 @@
+class MemCache
+ ##
+ # The version of MemCache you are using.
+
+ VERSION = "1.8.1"
+end

2 comments on commit c8ec039

@josh
josh commented on c8ec039 Mar 20, 2010

sweet, thanks Mike

@rtomayko

yay thanks!

Please sign in to comment.