public
Description: a tool to organize and maintain an internal gem distribution server
Homepage:
Clone URL: git://github.com/copiousfreetime/stickler.git
Tue Apr 21 09:18:42 -0700 2009
commit  05a7f124216a59a2768e7ba9ee65b0c28a31717f
tree    c03c098d666bd3869c43fce00bbcaf004af72564
parent  da2a9829ebed25b66011da9ec14fd3381d8af05d
stickler / gemspec.rb
100644 63 lines (46 sloc) 1.777 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
require 'rubygems'
require 'stickler/version'
require 'tasks/config'
 
Stickler::GEM_SPEC = Gem::Specification.new do |spec|
  proj = Configuration.for('project')
  spec.name = proj.name
  spec.version = Stickler::VERSION
  
  spec.author = proj.author
  spec.email = proj.email
  spec.homepage = proj.homepage
  spec.summary = proj.summary
  spec.description = proj.description
  spec.platform = Gem::Platform::RUBY
 
  spec.post_install_message = <<-msg
============================================================
Thank you for installing Stickler!
 
* Create a new stickler repository:
stickler setup /path/to/repo
 
* Look at the help:
stickler help
 
============================================================
msg
 
 
  spec.required_rubygems_version = [ "~> 1.3.0" ]
 
  spec.add_runtime_dependency( 'highline', "~> 1.4" )
  spec.add_runtime_dependency( 'logging', "~> 0.9" )
  spec.add_runtime_dependency( 'main', "~> 2.8" )
 
  spec.add_development_dependency( 'rake', "~> 0.8" )
  spec.add_development_dependency( 'rspec', "~> 1.1" )
  spec.add_development_dependency( 'configuration', "~> 0.0" )
  
  pkg = Configuration.for('packaging')
  spec.files = pkg.files.all
  spec.executables = pkg.files.bin.collect { |b| File.basename(b) }
 
  if rdoc = Configuration.for_if_exist?('rdoc') then
    spec.has_rdoc = true
    spec.extra_rdoc_files = pkg.files.rdoc
    spec.rdoc_options = rdoc.options + [ "--main" , rdoc.main_page ]
  else
    spec.has_rdoc = false
  end
 
  if test = Configuration.for_if_exist?('testing') then
    spec.test_files = test.files
  end
 
 
  if rf = Configuration.for_if_exist?('rubyforge') then
    spec.rubyforge_project = rf.project
  end
end