Permalink
Browse files

put version in its own file

(cherry picked from commit e053805f55b872e6926dfbfa14f38d1296e8b922)
  • Loading branch information...
nragaz authored and Jon Yurek committed Jun 8, 2010
1 parent 20e9559 commit bf33af34fa33c220aedef2fe7b28d061adef6b03
Showing with 7 additions and 3 deletions.
  1. +1 −2 lib/paperclip.rb
  2. +5 −0 lib/paperclip/version.rb
  3. +1 −1 paperclip.gemspec
View
@@ -27,6 +27,7 @@
require 'erb'
require 'tempfile'
+require 'paperclip/version'
require 'paperclip/upfile'
require 'paperclip/iostream'
require 'paperclip/geometry'
@@ -48,8 +49,6 @@
# documentation for Paperclip::ClassMethods for more useful information.
module Paperclip
- VERSION = "2.3.2.beta2"
-
class << self
# Provides configurability to Paperclip. There are a number of options available, such as:
# * whiny: Will raise an error if Paperclip cannot process thumbnails of
View
@@ -0,0 +1,5 @@
+module Paperclip
+
+ VERSION = "2.3.2.beta2" unless defined? Paperclip::VERSION
+
+end
View
@@ -1,5 +1,5 @@
$LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
-require 'paperclip'
+require 'paperclip/version'
include_files = ["README*", "LICENSE", "Rakefile", "init.rb", "{lib,tasks,test,rails,generators,shoulda_macros}/**/*"].map do |glob|
Dir[glob]

0 comments on commit bf33af3

Please sign in to comment.