Skip to content
Newer
Older
100644 36 lines (32 sloc) 1.42 KB
eefaa9c @jyurek The gemspec is a separate file which can handle itself.
jyurek authored
1 $LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
bf33af3 @nragaz put version in its own file
nragaz authored
2 require 'paperclip/version'
7480516 @jyurek Version 2.2.0
jyurek authored
3
b9d9fc4 @jyurek Automatic initialization for Rails 2 and Rails 3
jyurek authored
4 include_files = ["README*", "LICENSE", "Rakefile", "init.rb", "{lib,tasks,test,rails,generators,shoulda_macros}/**/*"].map do |glob|
eefaa9c @jyurek The gemspec is a separate file which can handle itself.
jyurek authored
5 Dir[glob]
6 end.flatten
7 exclude_files = ["test/s3.yml", "test/debug.log", "test/paperclip.db", "test/doc", "test/doc/*", "test/pkg", "test/pkg/*", "test/tmp", "test/tmp/*"].map do |glob|
8 Dir[glob]
9 end.flatten
30ebb74 @jyurek Changes for gem building on github.
jyurek authored
10
eefaa9c @jyurek The gemspec is a separate file which can handle itself.
jyurek authored
11 spec = Gem::Specification.new do |s|
12 s.name = "paperclip"
13 s.version = Paperclip::VERSION
14 s.author = "Jon Yurek"
15 s.email = "jyurek@thoughtbot.com"
16 s.homepage = "http://www.thoughtbot.com/projects/paperclip"
17 s.description = "Easy upload management for ActiveRecord"
18 s.platform = Gem::Platform::RUBY
19 s.summary = "File attachments as attributes for ActiveRecord"
20 s.files = include_files - exclude_files
21 s.require_path = "lib"
22 s.test_files = Dir["test/**/test_*.rb"]
23 s.rubyforge_project = "paperclip"
24 s.has_rdoc = true
25 s.extra_rdoc_files = Dir["README*"]
26 s.rdoc_options << '--line-numbers' << '--inline-source'
27 s.requirements << "ImageMagick"
f0b5ac3 @isaac add rails dependencies without an underscore
isaac authored
28 s.add_dependency 'activerecord'
29 s.add_dependency 'activesupport'
eefaa9c @jyurek The gemspec is a separate file which can handle itself.
jyurek authored
30 s.add_development_dependency 'shoulda'
31 s.add_development_dependency 'mocha'
32 s.add_development_dependency 'aws-s3'
33 s.add_development_dependency 'sqlite3-ruby'
30ebb74 @jyurek Changes for gem building on github.
jyurek authored
34 end
eefaa9c @jyurek The gemspec is a separate file which can handle itself.
jyurek authored
35
Something went wrong with that request. Please try again.