Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (47 sloc) 1.336 kB
b7914a9 @jackdempsey initial import
authored
1 require 'rubygems'
2 require 'rake/gempackagetask'
3 require 'rubygems/specification'
4 require 'date'
5 require 'spec/rake/spectask'
6
7 GEM = "sequel_taggable"
695bc05 @jdunphy Don't include specs and such in the packaged gem.
jdunphy authored
8 GEM_VERSION = "0.0.2"
b7914a9 @jackdempsey initial import
authored
9 AUTHOR = "Jack Dempsey"
10 EMAIL = "jack.dempsey@gmail.com"
11 HOMEPAGE = "http://jackndempsey.blogspot.com"
12 SUMMARY = "A gem that provides Sequel::Models with tagging capabilities"
13
14 spec = Gem::Specification.new do |s|
15 s.name = GEM
16 s.version = GEM_VERSION
17 s.platform = Gem::Platform::RUBY
e587e6b @jackdempsey no rdoc
authored
18 s.has_rdoc = false
b7914a9 @jackdempsey initial import
authored
19 s.extra_rdoc_files = ["README.markdown", "LICENSE", 'TODO']
20 s.summary = SUMMARY
21 s.description = s.summary
22 s.author = AUTHOR
23 s.email = EMAIL
24 s.homepage = HOMEPAGE
25
26 # Uncomment this to add a dependency
3b63265 @jackdempsey depend on sequel_polymorphic; fixup file list
authored
27 s.add_dependency "sequel_polymorphic"
b7914a9 @jackdempsey initial import
authored
28
29 s.require_path = 'lib'
30 s.autorequire = GEM
695bc05 @jdunphy Don't include specs and such in the packaged gem.
jdunphy authored
31 s.files = %w(LICENSE README.markdown TODO) + Dir.glob("lib/**/*")
b7914a9 @jackdempsey initial import
authored
32 end
33
34 task :default => :spec
35
36 desc "Run specs"
37 Spec::Rake::SpecTask.new do |t|
38 t.spec_files = FileList['spec/**/*_spec.rb']
39 t.spec_opts = %w(-fs --color)
40 end
41
42
43 Rake::GemPackageTask.new(spec) do |pkg|
44 pkg.gem_spec = spec
45 end
46
47 desc "install the gem locally"
48 task :install => [:package] do
49 sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
50 end
51
52 desc "create a gemspec file"
53 task :make_spec do
54 File.open("#{GEM}.gemspec", "w") do |file|
55 file.puts spec.to_ruby
56 end
e587e6b @jackdempsey no rdoc
authored
57 end
Something went wrong with that request. Please try again.