Permalink
Browse files

Isolate version from the rest of the lib so it can be read without

other dependencies.
  • Loading branch information...
1 parent 540488d commit 652ae6ba2c038ae3c146b699574ad5e10735d49a Ben Marini committed Feb 4, 2011
Showing with 7 additions and 3 deletions.
  1. +1 −1 Rakefile
  2. +0 −1 lib/rack/gridfs.rb
  3. +5 −0 lib/rack/gridfs/version.rb
  4. +1 −1 rack-gridfs.gemspec
View
@@ -25,7 +25,7 @@ task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
- require File.expand_path("../lib/rack/gridfs", __FILE__)
+ require File.expand_path("../lib/rack/gridfs/version", __FILE__)
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "Rack::GridFS #{Rack::GridFS::VERSION}"
View
@@ -5,7 +5,6 @@ module Rack
class GridFSConnectionError < StandardError ; end
class GridFS
- VERSION = "0.2.0"
def initialize(app, options = {})
options = {
@@ -0,0 +1,5 @@
+module Rack
+ class GridFS
+ VERSION = "0.2.0"
+ end
+end
View
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
-require File.expand_path("../lib/rack/gridfs", __FILE__)
+require File.expand_path("../lib/rack/gridfs/version", __FILE__)
Gem::Specification.new do |s|
s.name = "rack-gridfs"

0 comments on commit 652ae6b

Please sign in to comment.