Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (47 sloc) 1.277 kB
43601a3 @snusnu [all] Use jeweler for rake stuff
snusnu authored
1 # Assume a typical dev checkout to fetch the current merb-core version
2 require File.expand_path('../../merb/merb-core/lib/merb-core/version', __FILE__)
ca4c6d5 @michaelklishin Tweaked rake tasks after release. Updated Contributors file.
michaelklishin authored
3
e8a2fad @pk Structure change to allow installation via Jeweler.
pk authored
4 require 'fileutils'
69828bf @hassox Adds the merb-auth meta gem
hassox authored
5
e8a2fad @pk Structure change to allow installation via Jeweler.
pk authored
6 merb_auth_gems = [
7 'merb-auth-core',
8 'merb-auth-more',
9 'merb-auth-slice-password',
10 'merb-auth'
11 ]
43601a3 @snusnu [all] Use jeweler for rake stuff
snusnu authored
12
13 def gem_command(command)
9ad062e @snusnu Added version dependency for jeweler
snusnu authored
14 sh "#{RUBY} -S gem #{command}"
24a23a5 @fabien Fixed so-called mysteriously disappearing merb-auth/lib/merb-auth.rb
fabien authored
15 end
16
43601a3 @snusnu [all] Use jeweler for rake stuff
snusnu authored
17 def rake_command(command)
18 sh "#{RUBY} -S rake #{command}"
d8b4fd9 @wycats Modify the rakefiles to be DRY
wycats authored
19 end
20
43601a3 @snusnu [all] Use jeweler for rake stuff
snusnu authored
21 desc "Install all merb stack gems"
22 task :install => [] do
23 merb_auth_gems.each do |gem_name|
24 Dir.chdir(gem_name) { rake_command "install" }
25 end
69828bf @hassox Adds the merb-auth meta gem
hassox authored
26 end
27
43601a3 @snusnu [all] Use jeweler for rake stuff
snusnu authored
28 desc "Uninstall all merb stack gems"
69828bf @hassox Adds the merb-auth meta gem
hassox authored
29 task :uninstall do
43601a3 @snusnu [all] Use jeweler for rake stuff
snusnu authored
30 merb_auth_gems.each do |gem_name|
31 gem_command "uninstall #{gem_name} --version=#{Merb::VERSION}"
32 end
69828bf @hassox Adds the merb-auth meta gem
hassox authored
33 end
34
43601a3 @snusnu [all] Use jeweler for rake stuff
snusnu authored
35 desc "Build all merb stack gems"
36 task :build do
37 merb_auth_gems.each do |gem_name|
38 Dir.chdir(gem_name) { rake_command "build" }
39 end
40 end
41
42 desc "Generate gemspecs for all merb stack gems"
69828bf @hassox Adds the merb-auth meta gem
hassox authored
43 task :gemspec do
43601a3 @snusnu [all] Use jeweler for rake stuff
snusnu authored
44 merb_auth_gems[0..-2].each do |gem_name|
45 Dir.chdir(gem_name) { rake_command "gemspec" }
69828bf @hassox Adds the merb-auth meta gem
hassox authored
46 end
0515bff @hassox Moves the password slice so that it plays nice with rake
hassox authored
47 end
b12c7b2 @adelcambre updated the root rake file to not be just merb more
adelcambre authored
48
43601a3 @snusnu [all] Use jeweler for rake stuff
snusnu authored
49 desc "Run specs for all merb stack gems"
b12c7b2 @adelcambre updated the root rake file to not be just merb more
adelcambre authored
50 task :spec do
43601a3 @snusnu [all] Use jeweler for rake stuff
snusnu authored
51 # Omit the merb-auth metagem, no specs there
52 merb_auth_gems[0..-2].each do |gem_name|
53 Dir.chdir(gem_name) { rake_command "spec" }
b12c7b2 @adelcambre updated the root rake file to not be just merb more
adelcambre authored
54 end
38f11d0 @michaelklishin Use Merb::VERSION in Rakefiles. Extract versions in dependencies.rb i…
michaelklishin authored
55 end
43601a3 @snusnu [all] Use jeweler for rake stuff
snusnu authored
56
57 task :default => 'spec'
Something went wrong with that request. Please try again.