Skip to content

Commit b031296

Browse files
committed
Updated version attributes, 2.1.4 now
1 parent 5d0d657 commit b031296

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

README.textile renamed to README.rdoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
h1. DataMapper Paperclip
1+
=DataMapper Paperclip
22

33
DM-Paperclip is a port of Thoughtbot's Paperclip plugin to work with DataMapper 0.9. This plugin is fully compatible with
44
the original ActiveRecord-oriented Paperclip. You could take an existing ActiveRecord database and use it with DataMapper.
@@ -14,7 +14,7 @@ It processes the thumbnails through the command-line applications instead of usi
1414

1515
See the documentation for the +has_attached_file+ method for options.
1616

17-
h2. Code
17+
==Code
1818

1919
The code DM-Paperclip is available at Github:
2020

@@ -27,7 +27,7 @@ packaged as a gem through Rubyforge:
2727

2828
sudo gem install dm-paperclip
2929

30-
h2. Usage
30+
==Usage
3131

3232
In your model:
3333

@@ -41,20 +41,22 @@ In your model:
4141
:thumb => "100x100>" }
4242
end
4343

44-
Your database will need to add three columns, +avatar_file_name+ (varchar), +avatar_content_type+ (varchar), and
45-
+avatar_file_size+ (integer). You can either add these manually, auto-migrate, or use the following migration:
44+
Your database will need to add four columns, avatar_file_name (varchar), avatar_content_type (varchar), and
45+
avatar_file_size (integer), and avatar_updated_at (datetime). You can either add these manually, auto-
46+
migrate, or use the following migration:
4647

4748
migration( 1, :add_user_paperclip_fields ) do
4849
up do
4950
modify_table :users do
5051
add_column :avatar_file_name, "varchar(255)"
5152
add_column :avatar_content_type, "varchar(255)"
5253
add_column :avatar_file_size, "integer"
54+
add_column :avatar_updated_at, "datetime"
5355
end
5456
end
5557
down do
5658
modify_table :users do
57-
drop_columns :avatar_file_name, :avatar_content_type, :avatar_file_size
59+
drop_columns :avatar_file_name, :avatar_content_type, :avatar_file_size, :avatar_updated_at
5860
end
5961
end
6062
end

Rakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Rake::RDocTask.new(:doc) do |rdoc|
3030
rdoc.rdoc_dir = 'doc'
3131
rdoc.title = 'DM-Paperclip'
3232
rdoc.options << '--line-numbers' << '--inline-source'
33-
rdoc.rdoc_files.include('README.textile')
33+
rdoc.rdoc_files.include('README.rdoc')
3434
rdoc.rdoc_files.include('lib/**/*.rb')
3535
end
3636

@@ -55,11 +55,11 @@ spec = Gem::Specification.new do |s|
5555
s.name = "dm-paperclip"
5656
s.version = Paperclip::VERSION
5757
s.author = "Ken Robertson"
58-
58+
s.email = "[email protected]"
5959
s.homepage = "http://invalidlogic.com/dm-paperclip/"
6060
s.platform = Gem::Platform::RUBY
6161
s.summary = "File attachments as attributes for DataMapper, based on the original Paperclip by Jon Yurek at Thoughtbot"
62-
s.files = FileList["README.textile",
62+
s.files = FileList["README.rdoc",
6363
"LICENSE",
6464
"Rakefile",
6565
"init.rb",
@@ -68,7 +68,7 @@ spec = Gem::Specification.new do |s|
6868
s.test_files = FileList["test/**/test_*.rb"].to_a
6969
s.rubyforge_project = "dm-paperclip"
7070
s.has_rdoc = true
71-
s.extra_rdoc_files = ["README.textile"]
71+
s.extra_rdoc_files = ["README.rdoc"]
7272
s.rdoc_options << '--line-numbers' << '--inline-source'
7373
s.requirements << "ImageMagick"
7474
s.requirements << "data_mapper"

lib/dm-paperclip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
require File.join(File.dirname(__FILE__), 'dm-paperclip', 'validations') unless defined?(DataMapper::Validate).nil?
3838

3939
module Paperclip
40-
VERSION = "2.1.2.1"
40+
VERSION = "2.1.4"
4141
class << self
4242
# Provides configurability to Paperclip. There are a number of options available, such as:
4343
# * whiny_thumbnails: Will raise an error if Paperclip cannot process thumbnails of

0 commit comments

Comments
 (0)