merb_sequel 0.9.4 → 0.9.5

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.4") + PKG_BUILD
21
+ GEM_VERSION = (Merb::MORE_VERSION rescue "0.9.5") + 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.4")
39
+ s.add_dependency("merb-core", ">= 0.9.5")
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
@@ -2,23 +2,27 @@
2
2
  class <%= class_name %> < Application
3
3
  # provides :xml, :yaml, :js
4
4
 
5
+ # GET /<%= resource_path %>
5
6
  def index
6
7
  @<%= plural_model %> = <%= model_class_name %>.all
7
8
  display @<%= plural_model %>
8
9
  end
9
10
 
11
+ # GET /<%= resource_path %>/:id
10
12
  def show
11
13
  @<%= singular_model %> = <%= model_class_name %>[params[:id]]
12
14
  raise NotFound unless @<%= singular_model %>
13
15
  display @<%= singular_model %>
14
16
  end
15
17
 
18
+ # GET /<%= resource_path %>/new
16
19
  def new
17
20
  only_provides :html
18
21
  @<%= singular_model %> = <%= model_class_name %>.new(params[:<%= singular_model %>])
19
22
  render
20
23
  end
21
24
 
25
+ # POST /<%= resource_path %>
22
26
  def create
23
27
  @<%= singular_model %> = <%= model_class_name %>.new(params[:<%= singular_model %>])
24
28
  if @<%= singular_model %>.save
@@ -28,6 +32,7 @@ class <%= class_name %> < Application
28
32
  end
29
33
  end
30
34
 
35
+ # GET /<%= resource_path %>/:id/edit
31
36
  def edit
32
37
  only_provides :html
33
38
  @<%= singular_model %> = <%= model_class_name %>[params[:id]]
@@ -35,6 +40,7 @@ class <%= class_name %> < Application
35
40
  render
36
41
  end
37
42
 
43
+ # PUT /<%= resource_path %>/:id
38
44
  def update
39
45
  @<%= singular_model %> = <%= model_class_name %>[params[:id]]
40
46
  raise NotFound unless @<%= singular_model %>
@@ -45,6 +51,7 @@ class <%= class_name %> < Application
45
51
  end
46
52
  end
47
53
 
54
+ # DELETE /<%= resource_path %>/:id
48
55
  def destroy
49
56
  @<%= singular_model %> = <%= model_class_name %>[params[:id]]
50
57
  raise NotFound unless @<%= singular_model %>
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
4
+ version: 0.9.5
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-08-13 00:00:00 +03:00
12
+ date: 2008-08-21 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.4
23
+ version: 0.9.5
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sequel