simple_rest 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,6 +41,7 @@ Example:
41
41
  == CHANGE LOG
42
42
 
43
43
  * 0.0.2 add json request magic parameter support
44
+ * 0.0.3 propogate opts to render method if html
44
45
 
45
46
  == MORE
46
47
 
data/Rakefile CHANGED
@@ -24,12 +24,12 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
24
24
  end
25
25
 
26
26
  PKG_FILES = FileList[ '[a-zA-Z]*', 'lib/**/*', 'test/**/*' ]
27
-
27
+ require 'lib/simple_rest.rb'
28
28
  spec = Gem::Specification.new do |s|
29
29
  s.name = "simple_rest"
30
- s.version = "0.0.2"
30
+ s.version = SimpleRest::VERSION
31
31
  s.author = "niquola,smecsia"
32
- s.email = "niquola@gmail.com,smecsia@gmail"
32
+ s.email = "niquola@gmail.com,smecsia@gmail.com"
33
33
  #s.homepage = ""
34
34
  s.platform = Gem::Platform::RUBY
35
35
  s.summary = "ActionControllers helpers for restful rails"
@@ -1,7 +1,7 @@
1
1
  $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
  module SimpleRest
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.3'
5
5
  autoload :ActionControllerMethods, 'simple_rest/action_controller_methods'
6
6
  class << self
7
7
  def enable
@@ -27,7 +27,7 @@ module SimpleRest
27
27
  serial_opts= opts[:serialize_opts] || {}
28
28
  respond_to do |format|
29
29
  format.js { render :json => data.to_json(serial_opts),:status=>status}
30
- format.html { render}
30
+ format.html { render opts}
31
31
  format.yaml { render :partial=> 'shared/inspect',:content_type =>'text/html',:locals => { :data => data } ,:status=>status }
32
32
  format.xml { render :xml => data.to_xml(serial_opts),:status=>status}
33
33
  format.pdf { render (opts[:pdf_opts] || {}).merge(:layout=>false) }
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ hash: 25
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 3
10
+ version: 0.0.3
5
11
  platform: ruby
6
12
  authors:
7
13
  - niquola,smecsia
@@ -9,21 +15,27 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-03-04 00:00:00 +03:00
18
+ date: 2010-08-16 00:00:00 +04:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: rails
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 9
30
+ segments:
31
+ - 2
32
+ - 3
33
+ - 5
23
34
  version: 2.3.5
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  description:
26
- email: niquola@gmail.com,smecsia@gmail
38
+ email: niquola@gmail.com,smecsia@gmail.com
27
39
  executables: []
28
40
 
29
41
  extensions: []
@@ -47,21 +59,27 @@ rdoc_options: []
47
59
  require_paths:
48
60
  - lib
49
61
  required_ruby_version: !ruby/object:Gem::Requirement
62
+ none: false
50
63
  requirements:
51
64
  - - ">="
52
65
  - !ruby/object:Gem::Version
66
+ hash: 3
67
+ segments:
68
+ - 0
53
69
  version: "0"
54
- version:
55
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
+ none: false
56
72
  requirements:
57
73
  - - ">="
58
74
  - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
59
78
  version: "0"
60
- version:
61
79
  requirements: []
62
80
 
63
81
  rubyforge_project:
64
- rubygems_version: 1.3.5
82
+ rubygems_version: 1.3.7
65
83
  signing_key:
66
84
  specification_version: 3
67
85
  summary: ActionControllers helpers for restful rails