forked from camping/camping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.rb
58 lines (49 loc) · 1.83 KB
/
constants.rb
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
require 'rake'
NAME = "camping"
BRANCH = "2.1"
GIT = ENV['GIT'] || "git"
REV = `#{GIT} rev-list HEAD`.strip.split.length
VERS = ENV['VERSION'] || (REV.zero? ? BRANCH : [BRANCH, REV] * '.')
RDOC_OPTS = ["--line-numbers", "--quiet", "--main", "README"]
def camping_spec
@spec ||= Gem::Specification.new do |s|
s.name = NAME
s.version = VERS
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = FileList["README", "CHANGELOG", "COPYING", "book/*"].to_a
s.rdoc_options += RDOC_OPTS + ['--exclude', '^(examples|extras)\/', '--exclude', 'lib/camping.rb']
s.summary = "minature rails for stay-at-home moms"
s.author = "why the lucky stiff"
s.email = '[email protected]'
s.homepage = 'http://camping.rubyforge.org/'
s.rubyforge_project = 'camping'
s.executables = ['camping']
s.add_dependency('rack', '>=1.0')
s.add_development_dependency('rake', '=0.8.7')
s.add_development_dependency('rack-test')
s.required_ruby_version = '>= 1.8.2'
s.files = %w(COPYING README Rakefile) +
Dir.glob("{bin,doc,test,lib,extras,book}/**/*") +
Dir.glob("ext/**/*.{h,c,rb}") +
Dir.glob("examples/**/*.rb") +
Dir.glob("tools/*.rb")
s.require_path = "lib"
s.bindir = "bin"
end
end
def camping_omni
@omni ||= Gem::Specification.new do |s|
s.name = "camping-omnibus"
s.version = VERS
s.platform = Gem::Platform::RUBY
s.summary = "the camping meta-package for updating ActiveRecord, Mongrel and SQLite3 bindings"
%w[author email homepage rubyforge_project].each { |x| s.__send__("#{x}=", camping_spec.__send__(x)) }
s.add_dependency('camping', "=#{VERS}")
s.add_dependency('activerecord')
s.add_dependency('sqlite3', '>=1.1.0.1')
s.add_dependency('mongrel')
s.add_dependency('RedCloth')
s.add_dependency('markaby')
end
end