Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moving to bundler for gem management

  • Loading branch information...
commit 6fd37839591044bfae957568ac10c82d1a72543d 1 parent 2c0f23a
@tvdeyen authored
Showing with 32 additions and 34 deletions.
  1. +1 −0  .gitignore
  2. +8 −0 Gemfile
  3. +23 −34 Rakefile
View
1  .gitignore
@@ -19,6 +19,7 @@ coverage
rdoc
pkg
*.gem
+Gemfile.lock
## PROJECT::SPECIFIC
test/rails_root/log/*
View
8 Gemfile
@@ -0,0 +1,8 @@
+source 'http://rubygems.org'
+
+gemspec
+
+group :test do
+ gem 'rails', '~> 3.2.1'
+ gem 'sqlite3'
+end
View
57 Rakefile
@@ -1,18 +1,20 @@
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-require 'rubygems'
+#!/usr/bin/env rake
-desc 'Default: run unit tests.'
-task :default => :test
+require 'rake/testtask'
-desc 'Test the fleximage plugin.'
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.pattern = 'test/unit/**/*_test.rb'
- t.verbose = true
+begin
+ require 'bundler/setup'
+rescue LoadError
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
+begin
+ require 'rdoc/task'
+rescue LoadError
+ require 'rdoc/rdoc'
+ require 'rake/rdoctask'
+ RDoc::Task = Rake::RDocTask
+end
desc 'Generate documentation for the fleximage plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
@@ -23,27 +25,14 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "tvdeyen-fleximage"
- gem.summary = <<EOF
-Rails plugin for uploading images as resources, with support for resizing, text
-stamping, and other special effects.
-EOF
- gem.description = <<EOF
-Fleximage is a Rails plugin that tries to make image uploading and rendering
-super easy.
-EOF
- gem.email = "tvdeyen@gmail.com"
- gem.homepage = "http://github.com/tvdeyen/fleximage"
- gem.authors = `git log --pretty=format:"%an"`.split("\n").uniq.sort
- gem.add_dependency "rmagick"
- gem.add_dependency "aws-s3"
- gem.add_development_dependency "rails", ">=3.0.0"
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available."
- puts "Install it with: gem install jeweler"
+desc 'Default: run unit tests.'
+task :default => :test
+
+desc 'Test the fleximage plugin.'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib'
+ t.pattern = 'test/unit/**/*_test.rb'
+ t.verbose = true
end
+
+Bundler::GemHelper.install_tasks
Please sign in to comment.
Something went wrong with that request. Please try again.