merb_sequel 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ GEM_EMAIL = "wayneeseguin@gmail.com, lancecarlson@gmail.com"
18
18
 
19
19
  GEM_NAME = "merb_sequel"
20
20
  PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
21
- GEM_VERSION = (Merb::MORE_VERSION rescue "0.9.7") + PKG_BUILD
21
+ GEM_VERSION = (Merb::MORE_VERSION rescue "0.9.8") + PKG_BUILD
22
22
 
23
23
  RELEASE_NAME = "REL #{GEM_VERSION}"
24
24
 
@@ -36,7 +36,7 @@ spec = Gem::Specification.new do |s|
36
36
  s.author = GEM_AUTHOR
37
37
  s.email = GEM_EMAIL
38
38
  s.homepage = PROJECT_URL
39
- s.add_dependency("merb-core", ">= 0.9.7")
39
+ s.add_dependency("merb-core", ">= 0.9.8")
40
40
  s.add_dependency("sequel", ">= 1.4.0")
41
41
  s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,sequel_generators}/**/*")
42
42
  end
@@ -45,35 +45,34 @@ Rake::GemPackageTask.new(spec) do |pkg|
45
45
  pkg.gem_spec = spec
46
46
  end
47
47
 
48
- ##############################################################################
49
- # Installation
50
- ##############################################################################
51
48
  desc "Install the gem"
52
- task :install => [:package] do
53
- sh install_command(GEM_NAME, GEM_VERSION)
49
+ task :install do
50
+ Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
54
51
  end
55
52
 
56
- namespace :jruby do
57
- desc "Run :package and install the resulting .gem with jruby"
58
- task :install => :package do
59
- sh jinstall_command(GEM_NAME, GEM_VERSION)
60
- end
53
+ desc "Uninstall the gem"
54
+ task :uninstall do
55
+ Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION)
61
56
  end
62
57
 
63
- ##############################################################################
64
- # Specs
65
- ##############################################################################
66
- desc "Run all specs"
67
- Spec::Rake::SpecTask.new("specs") do |t|
68
- t.spec_opts = ["--format", "specdoc", "--colour"]
69
- t.spec_files = Dir["spec/**/*_spec.rb"].sort
58
+ desc "Create a gemspec file"
59
+ task :gemspec do
60
+ File.open("#{GEM_NAME}.gemspec", "w") do |file|
61
+ file.puts spec.to_ruby
62
+ end
70
63
  end
71
64
 
72
- desc "Run all specs and generate an rcov report"
73
- Spec::Rake::SpecTask.new('rcov') do |t|
74
- t.spec_files = FileList['spec/**/*_spec.rb']
75
- t.spec_opts = ["--format", "specdoc", "--colour"]
76
- t.rcov = true
77
- t.rcov_dir = 'coverage'
78
- t.rcov_opts = ['--exclude', 'gems', '--exclude', 'spec']
65
+ desc "Run all examples (or a specific spec with TASK=xxxx)"
66
+ Spec::Rake::SpecTask.new('spec') do |t|
67
+ t.spec_opts = ["-cfs"]
68
+ t.spec_files = begin
69
+ if ENV["TASK"]
70
+ ENV["TASK"].split(',').map { |task| "spec/**/#{task}_spec.rb" }
71
+ else
72
+ FileList['spec/**/*_spec.rb']
73
+ end
74
+ end
79
75
  end
76
+
77
+ desc 'Default: run spec examples'
78
+ task :default => 'spec'
@@ -1,6 +1,6 @@
1
1
  Merb::Generators::ResourceControllerGenerator.template :controller_sequel, :orm => :sequel do |t|
2
- t.source = File.dirname(__FILE__), "templates/resource_controller/app/controllers/%file_name%.rb"
3
- t.destination = "app/controllers", base_path, "#{file_name}.rb"
2
+ t.source = File.dirname(__FILE__) / "templates/resource_controller/app/controllers/%file_name%.rb"
3
+ t.destination = "app/controllers" / base_path / "#{file_name}.rb"
4
4
  end
5
5
 
6
6
  [:index, :show, :edit, :new].each do |view|
data/specs/spec_helper.rb CHANGED
@@ -1,2 +1 @@
1
- $TESTING=true
2
1
  $:.push File.join(File.dirname(__FILE__), "..", "lib")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb_sequel
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
  - Wayne E. Seguin, Lance Carlson
@@ -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
  - !ruby/object:Gem::Dependency
26
26
  name: sequel