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 +25 -26
- data/lib/generators/resource_controller.rb +2 -2
- data/specs/spec_helper.rb +0 -1
- metadata +3 -3
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.
|
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.
|
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
|
53
|
-
|
49
|
+
task :install do
|
50
|
+
Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
|
54
51
|
end
|
55
52
|
|
56
|
-
|
57
|
-
|
58
|
-
|
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
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
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
|
73
|
-
Spec::Rake::SpecTask.new('
|
74
|
-
t.
|
75
|
-
t.
|
76
|
-
|
77
|
-
|
78
|
-
|
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__)
|
3
|
-
t.destination = "app/controllers"
|
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
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.
|
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-
|
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.
|
23
|
+
version: 0.9.8
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sequel
|