Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 74 lines (55 sloc) 2.111 kb
58fb772c »
2009-06-22 Initial commit to captured.
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "captured"
a13277e7 »
2009-06-25 Added pure ruby scp and a number of eval options.
8 gem.summary = "Quick screenshot sharing for OS X"
b081516e »
2009-11-02 Bumped version.
9 gem.description = "Because <shift>-<command>-4 is the single most useful shorcut in Macdom"
58fb772c »
2009-06-22 Initial commit to captured.
10 gem.email = "csexton@gmail.com"
11 gem.homepage = "http://github.com/csexton/captured"
12 gem.authors = ["Christopher Sexton"]
13ace2c6 »
2009-11-24 Adding imgur support
13 gem.add_dependency('imgur')
9ecb0358 »
2009-11-24 Making Imgur the default image host.
14 gem.add_dependency('net-scp')
58fb772c »
2009-06-22 Initial commit to captured.
15 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
9ecb0358 »
2009-11-24 Making Imgur the default image host.
16 gem.files = FileList["VERSION", "[A-Z]*.*", "{bin,etc,lib,features,resources,spec}/**/*"]
4cded85d »
2010-05-18 Updated install message
17 gem.post_install_message = <<MESSAGE
18
19 =========================================================================
20
21 Thanks for installing Captured! You can now run:
22
23 captured --install to setup launchd to run captured in the background
24
25 When you install an example config file to ~/.captured.yml, which has a
26 few examples of possible configuration types.
27
28 =========================================================================
29
30 MESSAGE
58fb772c »
2009-06-22 Initial commit to captured.
31 end
32
c73e4a2d »
2009-10-26 Gemcutter support.
33 Jeweler::GemcutterTasks.new
34
58fb772c »
2009-06-22 Initial commit to captured.
35 rescue LoadError
36 puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
37 end
38
a13277e7 »
2009-06-25 Added pure ruby scp and a number of eval options.
39
a76f1a47 »
2011-03-09 Fix GH-6 and bump to 0.4.2
40 require 'rspec/core/rake_task'
41 RSpec::Core::RakeTask.new(:spec) do |spec|
42 spec.rspec_opts = ['--colour', '--format specdoc', '--loadby mtime', '--reverse']
58fb772c »
2009-06-22 Initial commit to captured.
43 end
44
a76f1a47 »
2011-03-09 Fix GH-6 and bump to 0.4.2
45 #RSpec::Core::RakeTask.new(:rcov) do |spec|
46 # spec.libs << 'lib' << 'spec'
47 # spec.pattern = 'spec/**/*_spec.rb'
48 # spec.rcov = true
49 #end
58fb772c »
2009-06-22 Initial commit to captured.
50
3bb458a1 »
2009-11-02 Release task
51 desc "Release to rubyforge and gemcutter"
a76f1a47 »
2011-03-09 Fix GH-6 and bump to 0.4.2
52 task :doit => ['gemcutter:release'] do
3bb458a1 »
2009-11-02 Release task
53 puts "Released"
54 end
55
58fb772c »
2009-06-22 Initial commit to captured.
56
57 task :default => :spec
58
59 require 'rake/rdoctask'
60 Rake::RDocTask.new do |rdoc|
61 if File.exist?('VERSION.yml')
62 config = YAML.load(File.read('VERSION.yml'))
63 version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
64 else
65 version = ""
66 end
67
68 rdoc.rdoc_dir = 'rdoc'
69 rdoc.title = "captured #{version}"
70 rdoc.rdoc_files.include('README*')
71 rdoc.rdoc_files.include('lib/**/*.rb')
72 end
73
Something went wrong with that request. Please try again.