Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (33 sloc) 1.535 kb
eefaa9c Jon Yurek The gemspec is a separate file which can handle itself.
jyurek authored
1 $LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
bf33af3 Nick Ragaz put version in its own file
nragaz authored
2 require 'paperclip/version'
7480516 Jon Yurek Version 2.2.0
jyurek authored
3
b9d9fc4 Jon Yurek 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 Jon Yurek The gemspec is a separate file which can handle itself.
jyurek authored
5 Dir[glob]
6 end.flatten
208883d Jon Yurek 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 Jon Yurek The gemspec is a separate file which can handle itself.
jyurek authored
8 Dir[glob]
9 end.flatten
30ebb74 Jon Yurek Changes for gem building on github.
jyurek authored
10
3be55fc Joshua Clayton Clean up whitespace
joshuaclayton authored
11 spec = Gem::Specification.new do |s|
eefaa9c Jon Yurek 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 Gabe Berke-Williams Fix gem homepage
gabebw authored
16 s.homepage = "https://github.com/thoughtbot/paperclip"
eefaa9c Jon Yurek 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 Jon Yurek ~> 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 Jon Yurek Extracted the CommandLine class into the Cocaine gem.
jyurek authored
29 s.add_dependency 'cocaine', '>=0.0.2'
eefaa9c Jon Yurek The gemspec is a separate file which can handle itself.
jyurek authored
30 s.add_development_dependency 'shoulda'
ffe6609 Jon Yurek Added Gemfiles and start using Appraisal
jyurek authored
31 s.add_development_dependency 'appraisal'
eefaa9c Jon Yurek The gemspec is a separate file which can handle itself.
jyurek authored
32 s.add_development_dependency 'mocha'
33 s.add_development_dependency 'aws-s3'
34 s.add_development_dependency 'sqlite3-ruby'
30ebb74 Jon Yurek Changes for gem building on github.
jyurek authored
35 end
Something went wrong with that request. Please try again.