Skip to content

Commit

Permalink
Isolate version from the rest of the lib so it can be read without
Browse files Browse the repository at this point in the history
other dependencies.
  • Loading branch information
Ben Marini committed Feb 4, 2011
1 parent 540488d commit 652ae6b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -25,7 +25,7 @@ task :default => :test


require 'rake/rdoctask' require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc| 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.rdoc_dir = 'rdoc'
rdoc.title = "Rack::GridFS #{Rack::GridFS::VERSION}" rdoc.title = "Rack::GridFS #{Rack::GridFS::VERSION}"
Expand Down
1 change: 0 additions & 1 deletion lib/rack/gridfs.rb
Expand Up @@ -5,7 +5,6 @@ module Rack
class GridFSConnectionError < StandardError ; end class GridFSConnectionError < StandardError ; end


class GridFS class GridFS
VERSION = "0.2.0"


def initialize(app, options = {}) def initialize(app, options = {})
options = { options = {
Expand Down
5 changes: 5 additions & 0 deletions lib/rack/gridfs/version.rb
@@ -0,0 +1,5 @@
module Rack
class GridFS
VERSION = "0.2.0"
end
end
2 changes: 1 addition & 1 deletion rack-gridfs.gemspec
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*- # -*- 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| Gem::Specification.new do |s|
s.name = "rack-gridfs" s.name = "rack-gridfs"
Expand Down

0 comments on commit 652ae6b

Please sign in to comment.