Permalink
Browse files

moved Version constant into own file

so it's always consistent
  • Loading branch information...
1 parent daef4d9 commit dc73f11876df09019a78161ff15fd6d316b81f37 @jnicklas jnicklas committed Aug 7, 2010
Showing with 9 additions and 3 deletions.
  1. +5 −1 carrierwave.gemspec
  2. +1 −2 lib/carrierwave.rb
  3. +3 −0 lib/carrierwave/version.rb
View
@@ -1,8 +1,12 @@
# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
+
+require 'carrierwave/version'
Gem::Specification.new do |s|
s.name = "carrierwave"
- s.version = "0.5.0.beta2"
+ s.version = CarrierWave::VERSION
s.authors = ["Jonas Nicklas"]
s.date = Date.today
View
@@ -7,8 +7,6 @@
module CarrierWave
- VERSION = "0.4.5"
-
class << self
attr_accessor :root
@@ -32,6 +30,7 @@ class DownloadError < UploadError; end
autoload :RMagick, 'carrierwave/processing/rmagick'
autoload :ImageScience, 'carrierwave/processing/image_science'
autoload :MiniMagick, 'carrierwave/processing/mini_magick'
+ autoload :VERSION, 'carrierwave/version'
module Storage
autoload :Abstract, 'carrierwave/storage/abstract'
@@ -0,0 +1,3 @@
+module CarrierWave
+ VERSION = "0.5.0.beta2"
+end

0 comments on commit dc73f11

Please sign in to comment.