/
Rakefile
61 lines (49 loc) · 1.86 KB
/
Rakefile
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
begin
USING_BONES_VERSION = '3.7.0'
require 'bones'
rescue LoadError
load 'tasks/contribute.rake'
Rake.application.invoke_task( :help )
end
task :default => 'spec:run'
task 'gem:release' => 'spec:run'
$: << "lib"
require 'stickler/version'
Bones {
name 'stickler'
authors 'Jeremy Hinegardner'
email 'jeremy@hinegardner.org'
url 'http://www.copiousfreetime.org/projects/stickler'
version Stickler::VERSION
ruby_opts %w[-W0 -rubygems]
readme_file 'README.asciidoc'
ignore_file '.bnsignore'
history_file 'HISTORY.asciidoc'
spec.opts << "--color" << "--format documentation"
summary 'Stickler is a tool to organize and maintain an internal gem repository.'
description <<_
Stickler is a tool to organize and maintain an internal gem repository.
Primarily, you would want to use Stickler if:
1. You have proprietary gems that you want to have available via a gem server so
you may +gem install+ them.
2. You would like to have a local mirror of third party gems from either
http://rubygems.org or some other gem server.
3. You want both (1) and (2) in the same server.
_
# I'm explicitly controlling the version of bones.
depend_on 'sinatra' , '~> 1.2.1'
depend_on 'addressable', '~> 2.2.4'
depend_on 'excon' , '~> 0.5.8'
depend_on 'trollop' , '~> 1.16.2'
depend_on 'logging' , '~> 1.5.0'
depend_on 'rake' , '~> 0.9.2'
depend_on 'bones' , "~> #{USING_BONES_VERSION}", :development => true
depend_on 'rack-test' , '~> 0.5.7', :development => true
depend_on 'bones-extras', '~> 1.3.0', :development => true
depend_on 'builder' , '~> 3.0.0', :development => true
depend_on 'rspec' , '~> 2.6.0', :development => true
}
# Sorry Tim, I need to manage my own bones version
::Bones.config.gem._spec.dependencies.delete_if do |d|
d.name == 'bones' and d.requirement.to_s =~ /^>=/
end