Skip to content

Commit

Permalink
Only store the VERSION in one place
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrous26 committed May 13, 2011
1 parent 9a40db3 commit 9b67f78
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion couchrest.gemspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# -*- encoding: utf-8 -*-
require File.join(File.dirname(__FILE__),'lib','couchrest','version')

Gem::Specification.new do |s|
s.name = %q{couchrest}
s.version = "1.1.0.pre2"
s.version = CouchRest::VERSION

s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = ["J. Chris Anderson", "Matt Aimonetti", "Marcos Tapajos", "Will Leinweber", "Sam Lown"]
Expand Down
3 changes: 1 addition & 2 deletions lib/couchrest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
require 'couchrest/monkeypatches'
require 'couchrest/rest_api'
require 'couchrest/support/inheritable_attributes'
require 'couchrest/version'

# = CouchDB, close to the metal
module CouchRest
VERSION = '1.0.1'

autoload :Server, 'couchrest/server'
autoload :Database, 'couchrest/database'
autoload :Response, 'couchrest/response'
Expand Down
3 changes: 3 additions & 0 deletions lib/couchrest/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module CouchRest
VERSION = '1.1.0.pre2'
end

0 comments on commit 9b67f78

Please sign in to comment.