Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rakefile gemspec #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 9 additions & 43 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,56 +1,22 @@
require 'rubygems'
require 'rake'
require 'spec/rake/spectask'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "scribd_fu"
gem.summary = %Q{A Rails gem that streamlines interactions with the Scribd service}
gem.description = %Q{A Rails gem that streamlines interactions with the Scribd service}
gem.email = "[email protected]"
gem.homepage = "http://github.com/mdarby/scribd_fu"
gem.authors = ["Matt Darby"]
gem.add_dependency('rscribd')
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
#!/usr/bin/env rake
require "bundler/gem_tasks"
require "rspec/core/rake_task"

desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/*_spec.rb']
end
RSpec::Core::RakeTask.new :spec


desc "Run all specs with RCov"
Spec::Rake::SpecTask.new('coverage') do |t|
t.spec_files = FileList['spec/*_spec.rb']
RSpec::Core::RakeTask.new(:coverage) do |t|
t.rcov = true
end

task :test => :check_dependencies

begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features)
task :default => :spec

task :features => :check_dependencies
rescue LoadError
task :features do
abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
end
end

task :default => :test

require 'rake/rdoctask'
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "scribd_fu #{version}"
rdoc.title = "scribd_fu #{ScribdFu::VERSION}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

3 changes: 3 additions & 0 deletions lib/scribd_fu/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module ScribdFu
VERSION = "2.1.0"
end
69 changes: 17 additions & 52 deletions scribd_fu.gemspec
Original file line number Diff line number Diff line change
@@ -1,58 +1,23 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/scribd_fu/version', __FILE__)

Gem::Specification.new do |s|
s.name = %q{scribd_fu}
s.version = "2.0.11"
Gem::Specification.new do |gem|
gem.authors = ["Matt Darby"]
gem.email = ["[email protected]"]
gem.description = %q{A Rails gem that streamlines interactions with the Scribd service}
gem.summary = %q{A Rails gem that streamlines interactions with the Scribd service}
gem.homepage = "http://github.com/mdarby/scribd_fu"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Matt Darby"]
s.date = %q{2011-03-29}
s.description = %q{A Rails gem that streamlines interactions with the Scribd service}
s.email = %q{[email protected]}
s.extra_rdoc_files = [
"LICENSE",
"README.textile"
]
s.files = [
".document",
"LICENSE",
"README.textile",
"Rakefile",
"VERSION",
"generators/scribd_fu/scribd_fu_generator.rb",
"generators/scribd_fu/templates/scribd_fu.yml",
"init.rb",
"lib/scribd_fu.rb",
"lib/scribd_fu/attachment_fu.rb",
"lib/scribd_fu/paperclip.rb",
"scribd_fu.gemspec",
"spec/database.yml",
"spec/scribd_fu.yml",
"spec/scribd_fu_spec.rb",
"spec/spec_helper.rb"
]
s.homepage = %q{http://github.com/mdarby/scribd_fu}
s.require_paths = ["lib"]
s.rubygems_version = %q{1.6.1}
s.summary = %q{A Rails gem that streamlines interactions with the Scribd service}
s.test_files = [
"spec/scribd_fu_spec.rb",
"spec/spec_helper.rb"
]
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
gem.files = `git ls-files`.split("\n")
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
gem.name = "scribd_fu"
gem.require_paths = ["lib"]
gem.version = ScribdFu::VERSION

if s.respond_to? :specification_version then
s.specification_version = 3
gem.add_runtime_dependency "rscribd"

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<rscribd>, [">= 0"])
else
s.add_dependency(%q<rscribd>, [">= 0"])
end
else
s.add_dependency(%q<rscribd>, [">= 0"])
end
gem.add_development_dependency "rspec"
gem.add_development_dependency "rails"
gem.add_development_dependency "sqlite3"
end