Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove VERSION.yml usage, release 1.8.1

  • Loading branch information...
commit c8ec03928eab469ddb77a744a082574f7a9dff73 1 parent 8b5b22b
@mperham authored
View
3  History.rdoc
@@ -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
2  Rakefile
@@ -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
5 VERSION.yml
@@ -1,5 +0,0 @@
----
-:build:
-:major: 1
-:minor: 8
-:patch: 0
View
10 lib/memcache.rb
@@ -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 = {
View
6 lib/memcache/version.rb
@@ -0,0 +1,6 @@
+class MemCache
+ ##
+ # The version of MemCache you are using.
+
+ VERSION = "1.8.1"
+end

2 comments on commit c8ec039

@josh

sweet, thanks Mike

@rtomayko

yay thanks!

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