Skip to content

Commit

Permalink
put version in its own file
Browse files Browse the repository at this point in the history
(cherry picked from commit e053805f55b872e6926dfbfa14f38d1296e8b922)
  • Loading branch information
nragaz authored and Jon Yurek committed Jun 8, 2010
1 parent 20e9559 commit bf33af3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/paperclip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

require 'erb'
require 'tempfile'
require 'paperclip/version'
require 'paperclip/upfile'
require 'paperclip/iostream'
require 'paperclip/geometry'
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions lib/paperclip/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Paperclip

VERSION = "2.3.2.beta2" unless defined? Paperclip::VERSION

end
2 changes: 1 addition & 1 deletion paperclip.gemspec
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit bf33af3

Please sign in to comment.