Skip to content

Commit

Permalink
Add version.rb to make sure CouchRest::VERSION stays in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrous26 committed Mar 13, 2011
1 parent eab77ca commit e943b41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion couchrest.gemspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# -*- encoding: utf-8 -*-
$LOAD_PATH.unshift File.join( File.dirname(__FILE__), 'lib' )
require 'couchrest/version'

Gem::Specification.new do |s|
s.name = %q{couchrest}
s.version = "1.0.2"
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 @@ -20,14 +20,13 @@
$:.include?(File.dirname(__FILE__)) ||
$:.include?(File.expand_path(File.dirname(__FILE__)))

require 'couchrest/version'
require 'couchrest/monkeypatches'
require 'couchrest/rest_api'
require 'couchrest/support/inheritable_attributes'

# = 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
4 changes: 4 additions & 0 deletions lib/couchrest/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module CouchRest
VERSION = '1.0.2'
end

0 comments on commit e943b41

Please sign in to comment.