benhoskings-hammock 0.3.10 → 0.3.10.1

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.
@@ -1,3 +1,7 @@
1
+ == 0.3.10.1 2009-07-20
2
+ Convert verb to_sym in RouteNode#default_verb_for and #safe_for?.
3
+
4
+
1
5
  == 0.3.10 2009-07-19
2
6
  Updated to newgem v1.5.1.
3
7
  Sort componenets before requiring, for consistent require order.
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hammock}
5
- s.version = "0.3.10"
5
+ s.version = "0.3.10.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ben Hoskings"]
9
- s.date = %q{2009-07-19}
9
+ s.date = %q{2009-07-20}
10
10
  s.description = %q{Hammock is a Rails plugin that eliminates redundant code in a very RESTful manner. It does this in lots in lots of different places, but in one manner: it encourages specification in place of implementation.
11
11
 
12
12
 
@@ -4,7 +4,7 @@ require 'ambition'
4
4
  require 'ambition/adapters/active_record'
5
5
 
6
6
  module Hammock
7
- VERSION = '0.3.10'
7
+ VERSION = '0.3.10.1'
8
8
  IncludeTarget = ActionController::Base
9
9
 
10
10
  def self.included base # :nodoc:
@@ -35,7 +35,7 @@ module Hammock
35
35
  end
36
36
 
37
37
  def default_verb_for verb
38
- safe_for?(verb) ? :read : :write
38
+ safe_for?(verb.to_sym) ? :read : :write
39
39
  end
40
40
 
41
41
  def root?
@@ -43,6 +43,7 @@ module Hammock
43
43
  end
44
44
 
45
45
  def safe_for? verb
46
+ verb = verb.to_sym
46
47
  (:get == all_routes[verb]) && !verb.in?(Hammock::Constants::ImpliedUnsafeActions)
47
48
  end
48
49
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benhoskings-hammock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Hoskings
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-19 00:00:00 -07:00
12
+ date: 2009-07-20 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency