Permalink
Browse files

Fix GH-6 and bump to 0.4.2

Updated jewler and rspec in the gemfile, removed rubyforge stuff.

Include fileutils in the bin file for older versions of ruby.
  • Loading branch information...
1 parent f21e8ac commit a76f1a47f68b8fe940bfcf2caa1ddbcfed3fe917 @csexton committed Mar 9, 2011
Showing with 11 additions and 43 deletions.
  1. +9 −42 Rakefile
  2. +1 −1 VERSION
  3. +1 −0 bin/captured
View
@@ -10,7 +10,6 @@ begin
gem.email = "csexton@gmail.com"
gem.homepage = "http://github.com/csexton/captured"
gem.authors = ["Christopher Sexton"]
- gem.rubyforge_project = 'captured'
gem.add_dependency('imgur')
gem.add_dependency('net-scp')
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
@@ -32,57 +31,25 @@ MESSAGE
end
Jeweler::GemcutterTasks.new
- Jeweler::RubyforgeTasks.new do |rubyforge|
- rubyforge.doc_task = "rdoc"
- end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
-# These are new tasks
-begin
- require 'rake/contrib/sshpublisher'
- namespace :rubyforge do
-
- desc "Release gem and RDoc documentation to RubyForge"
- task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
-
- namespace :release do
- desc "Publish RDoc to RubyForge."
- task :docs => [:rdoc] do
- config = YAML.load(
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
- )
-
- host = "#{config['username']}@rubyforge.org"
- remote_dir = " /var/www/gforge-projects/captured/"
- local_dir = 'rdoc'
-
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
- end
- end
- end
-rescue LoadError
- puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
-end
-
-require 'spec/rake/spectask'
-Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.spec_files = FileList['spec/**/*_spec.rb']
- spec.spec_opts = ['--colour', '--format specdoc', '--loadby mtime', '--reverse']
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.rspec_opts = ['--colour', '--format specdoc', '--loadby mtime', '--reverse']
end
-Spec::Rake::SpecTask.new(:rcov) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.pattern = 'spec/**/*_spec.rb'
- spec.rcov = true
-end
+#RSpec::Core::RakeTask.new(:rcov) do |spec|
+# spec.libs << 'lib' << 'spec'
+# spec.pattern = 'spec/**/*_spec.rb'
+# spec.rcov = true
+#end
desc "Release to rubyforge and gemcutter"
- task :doit => ['gemcutter:release', 'rubyforge:release:gem'] do
+ task :doit => ['gemcutter:release'] do
puts "Released"
end
View
@@ -1 +1 @@
-0.4.1
+0.4.2
View
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
require 'rubygems'
require 'optparse'
+require 'fileutils'
require "#{File.dirname(__FILE__)}/../lib/captured"
options = {:config_file => "#{ENV['HOME']}/.captured.yml",

0 comments on commit a76f1a4

Please sign in to comment.