Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (34 sloc) 1.567 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
208883d @jyurek Duh, don't include .rbc files in the gem.
jyurek authored
7 exclude_files = ["**/*.rbc", "test/s3.yml", "test/debug.log", "test/paperclip.db", "test/doc", "test/doc/*", "test/pkg", "test/pkg/*", "test/tmp", "test/tmp/*"].map do |glob|
eefaa9c @jyurek The gemspec is a separate file which can handle itself.
jyurek authored
8 Dir[glob]
9 end.flatten
30ebb74 @jyurek Changes for gem building on github.
jyurek authored
10
3be55fc @joshuaclayton Clean up whitespace
joshuaclayton authored
11 spec = Gem::Specification.new do |s|
eefaa9c @jyurek The gemspec is a separate file which can handle itself.
jyurek authored
12 s.name = "paperclip"
13 s.version = Paperclip::VERSION
14 s.author = "Jon Yurek"
15 s.email = "jyurek@thoughtbot.com"
3695eaf @gabebw Fix gem homepage
gabebw authored
16 s.homepage = "https://github.com/thoughtbot/paperclip"
eefaa9c @jyurek The gemspec is a separate file which can handle itself.
jyurek authored
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.extra_rdoc_files = Dir["README*"]
25 s.rdoc_options << '--line-numbers' << '--inline-source'
26 s.requirements << "ImageMagick"
828eceb @jyurek ~> is not the preferred nomenclature, Dude. >=, please.
jyurek authored
27 s.add_dependency 'activerecord', '>=2.3.0'
28 s.add_dependency 'activesupport', '>=2.3.2'
f0d15d9 @jyurek Extracted the CommandLine class into the Cocaine gem.
jyurek authored
29 s.add_dependency 'cocaine', '>=0.0.2'
92bc0e8 @sikachu Add `mime-types` gem into the gemspec as a de
sikachu authored
30 s.add_dependency 'mime-types'
eefaa9c @jyurek The gemspec is a separate file which can handle itself.
jyurek authored
31 s.add_development_dependency 'shoulda'
ffe6609 @jyurek Added Gemfiles and start using Appraisal
jyurek authored
32 s.add_development_dependency 'appraisal'
eefaa9c @jyurek The gemspec is a separate file which can handle itself.
jyurek authored
33 s.add_development_dependency 'mocha'
34 s.add_development_dependency 'aws-s3'
35 s.add_development_dependency 'sqlite3-ruby'
30ebb74 @jyurek Changes for gem building on github.
jyurek authored
36 end
Something went wrong with that request. Please try again.