Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 67 lines (56 sloc) 1.789 kb
80ef4f1 Bump up the version.
Carl Lerche authored
1 $:.unshift File.join(File.dirname(__FILE__), 'lib')
3e84122 Initial pass -- imported gem_resolver and started taking a look at re…
Yehuda Katz + Carl Lerche authored
2 require 'rubygems' unless ENV['NO_RUBYGEMS']
3 require 'rubygems/specification'
80ef4f1 Bump up the version.
Carl Lerche authored
4 require 'bundler'
3e84122 Initial pass -- imported gem_resolver and started taking a look at re…
Yehuda Katz + Carl Lerche authored
5 require 'date'
6
7 spec = Gem::Specification.new do |s|
a585023 Update the gem manifest
Carl Lerche authored
8 s.name = "bundler"
80ef4f1 Bump up the version.
Carl Lerche authored
9 s.version = Bundler::VERSION
10 s.authors = ["Yehuda Katz", "Carl Lerche"]
11 s.email = ["wycats@gmail.com", "clerche@engineyard.com"]
a585023 Update the gem manifest
Carl Lerche authored
12 s.homepage = "http://github.com/wycats/bundler"
13 s.description = s.summary = "An easy way to vendor gem dependencies"
34a72e7 Combine GemResolver and Bundler into one library.
Yehuda Katz + Carl Lerche authored
14
3e84122 Initial pass -- imported gem_resolver and started taking a look at re…
Yehuda Katz + Carl Lerche authored
15 s.platform = Gem::Platform::RUBY
16 s.has_rdoc = true
842d98f Update the gem specification builder to point to the new README
Yehuda Katz + Carl Lerche authored
17 s.extra_rdoc_files = ["README.markdown", "LICENSE"]
34a72e7 Combine GemResolver and Bundler into one library.
Yehuda Katz + Carl Lerche authored
18
3cd1af0 @wycats Updates Rakefile to depend on rubygems >= 1.3.5
wycats authored
19 s.required_rubygems_version = ">= 1.3.5"
20
3e84122 Initial pass -- imported gem_resolver and started taking a look at re…
Yehuda Katz + Carl Lerche authored
21 s.require_path = 'lib'
842d98f Update the gem specification builder to point to the new README
Yehuda Katz + Carl Lerche authored
22 s.files = %w(LICENSE README.markdown Rakefile) + Dir.glob("lib/**/*")
3e84122 Initial pass -- imported gem_resolver and started taking a look at re…
Yehuda Katz + Carl Lerche authored
23 end
24
25 task :default => :spec
26
b748d0c @jeremy Isolate tasks by gracefully checking for their dependencies
jeremy authored
27 begin
28 require 'spec/rake/spectask'
29 rescue LoadError
30 task(:spec) { $stderr.puts '`gem install rspec` to run specs' }
31 else
32 desc "Run specs"
33 Spec::Rake::SpecTask.new do |t|
34 t.spec_files = FileList['spec/**/*_spec.rb'] - FileList['spec/fixtures/**/*_spec.rb']
35 t.spec_opts = %w(-fs --color)
d6b5701 @jeremy Show warnings
jeremy authored
36 t.warning = true
b748d0c @jeremy Isolate tasks by gracefully checking for their dependencies
jeremy authored
37 end
3e84122 Initial pass -- imported gem_resolver and started taking a look at re…
Yehuda Katz + Carl Lerche authored
38 end
39
b748d0c @jeremy Isolate tasks by gracefully checking for their dependencies
jeremy authored
40 begin
41 require 'rake/gempackagetask'
42 rescue LoadError
43 task(:gem) { $stderr.puts '`gem install rake` to package gems' }
44 else
45 Rake::GemPackageTask.new(spec) do |pkg|
46 pkg.gem_spec = spec
47 end
3e84122 Initial pass -- imported gem_resolver and started taking a look at re…
Yehuda Katz + Carl Lerche authored
48 end
49
708d0c2 Remove spec fixtures
Carl Lerche authored
50 desc "mount a ramdisk at ./tmp for faster specs"
51 task :ramdisk do
52 sh 'diskutil erasevolume HFS+ "tmpbundler" `hdiutil attach -nomount ram://116543`'
53 File.symlink "/Volumes/tmpbundler", File.expand_path('../tmp', __FILE__)
54 end
55
3e84122 Initial pass -- imported gem_resolver and started taking a look at re…
Yehuda Katz + Carl Lerche authored
56 desc "install the gem locally"
57 task :install => [:package] do
795680d @sr Fix rake install; do not force use of sudo
sr authored
58 sh %{gem install pkg/#{spec.name}-#{spec.version}}
3e84122 Initial pass -- imported gem_resolver and started taking a look at re…
Yehuda Katz + Carl Lerche authored
59 end
60
61 desc "create a gemspec file"
62 task :make_spec do
a585023 Update the gem manifest
Carl Lerche authored
63 File.open("#{spec.name}.gemspec", "w") do |file|
3e84122 Initial pass -- imported gem_resolver and started taking a look at re…
Yehuda Katz + Carl Lerche authored
64 file.puts spec.to_ruby
65 end
b748d0c @jeremy Isolate tasks by gracefully checking for their dependencies
jeremy authored
66 end
Something went wrong with that request. Please try again.