merb_laszlo 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/Rakefile +25 -33
  2. metadata +3 -3
data/Rakefile CHANGED
@@ -19,9 +19,9 @@ GEM_EMAIL = "ykatz@engineyard.com"
19
19
 
20
20
  GEM_NAME = "merb_laszlo"
21
21
  PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
22
- GEM_VERSION = "0.9.7" + PKG_BUILD
22
+ GEM_VERSION = "0.9.8" + PKG_BUILD
23
23
 
24
- RELEASE_NAME = "REL #{GEM_VERSION}"
24
+ RELEASE_NAME = "REL #{GEM_VERSION}"
25
25
 
26
26
  require "extlib/tasks/release"
27
27
 
@@ -37,7 +37,7 @@ spec = Gem::Specification.new do |s|
37
37
  s.author = GEM_AUTHOR
38
38
  s.email = GEM_EMAIL
39
39
  s.homepage = PROJECT_URL
40
- s.add_dependency('merb-core', '>= 0.9.7')
40
+ s.add_dependency('merb-core', '>= 0.9.8')
41
41
  s.require_path = 'lib'
42
42
  s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib,specs}/**/*")
43
43
  end
@@ -46,42 +46,34 @@ Rake::GemPackageTask.new(spec) do |pkg|
46
46
  pkg.gem_spec = spec
47
47
  end
48
48
 
49
- desc "create a gemspec file"
50
- task :make_spec do
51
- File.open("#{NAME}.gemspec", "w") do |file|
52
- file.puts spec.to_ruby
53
- end
49
+ desc "Install the gem"
50
+ task :install do
51
+ Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
54
52
  end
55
53
 
56
- ##############################################################################
57
- # Installation
58
- ##############################################################################
59
-
60
- task :install => [:package] do
61
- sh install_command(GEM_NAME, GEM_VERSION)
54
+ desc "Uninstall the gem"
55
+ task :uninstall do
56
+ Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION)
62
57
  end
63
58
 
64
- namespace :jruby do
65
- "Run :package and install the resulting .gem with jruby"
66
- task :install => :package do
67
- sh jinstall_command(GEM_NAME, GEM_VERSION)
59
+ desc "Create a gemspec file"
60
+ task :gemspec do
61
+ File.open("#{GEM_NAME}.gemspec", "w") do |file|
62
+ file.puts spec.to_ruby
68
63
  end
69
64
  end
70
65
 
71
- ##############################################################################
72
- # Specs
73
- ##############################################################################
74
- desc "Run all specs"
75
- Spec::Rake::SpecTask.new("specs") do |t|
76
- t.spec_opts = ["--format", "specdoc", "--colour"]
77
- t.spec_files = Dir["spec/**/*_spec.rb"].sort
66
+ desc "Run all examples (or a specific spec with TASK=xxxx)"
67
+ Spec::Rake::SpecTask.new('spec') do |t|
68
+ t.spec_opts = ["-cfs"]
69
+ t.spec_files = begin
70
+ if ENV["TASK"]
71
+ ENV["TASK"].split(',').map { |task| "spec/**/#{task}_spec.rb" }
72
+ else
73
+ FileList['spec/**/*_spec.rb']
74
+ end
75
+ end
78
76
  end
79
77
 
80
- desc "Run all specs and generate an rcov report"
81
- Spec::Rake::SpecTask.new('rcov') do |t|
82
- t.spec_files = FileList['spec/**/*_spec.rb']
83
- t.spec_opts = ["--format", "specdoc", "--colour"]
84
- t.rcov = true
85
- t.rcov_dir = 'coverage'
86
- t.rcov_opts = ['--exclude', 'gems', '--exclude', 'spec']
87
- end
78
+ desc 'Default: run spec examples'
79
+ task :default => 'spec'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb_laszlo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-14 00:00:00 +03:00
12
+ date: 2008-10-07 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.9.7
23
+ version: 0.9.8
24
24
  version:
25
25
  description: Merb plugin that provides support for Laszlo.
26
26
  email: ykatz@engineyard.com