hammock 0.5.7 → 0.5.8

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.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.5.8 2010-02-21
2
+ Screwed up the 0.5.7 gem, bumping to 0.5.8.
3
+
1
4
  == 0.5.7 2010-02-21
2
5
  Flatten resource lists instead of splatting, to avoid implicit #to_a on Ambition contexts.
3
6
  Don't eval JS responses in the XHR callback, since it already happens automatically.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.7
1
+ 0.5.8
data/hammock.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hammock}
8
- s.version = "0.5.7"
8
+ s.version = "0.5.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Hoskings"]
@@ -28,12 +28,7 @@ module Hammock
28
28
  yield self
29
29
  self
30
30
  end
31
-
32
- def tapp
33
- log self.inspect
34
- self
35
- end
36
-
31
+
37
32
  # The reverse of <tt>Enumerable#include?</tt> - returns +true+ if +self+ is
38
33
  # equal to one of the elements of +args+.
39
34
  def in? first, *rest
data/lib/hammock/scope.rb CHANGED
@@ -45,11 +45,11 @@ module Hammock
45
45
  route = route_for verb, *entities
46
46
  if route.verb.in?(:save, :create) && record.new_record?
47
47
  returning record.createable_by?(current_user) ? :ok : :unauthed do |result|
48
- # dlog "#{requester_name} can#{"'t" unless result == :ok} create a #{record.class} with #{record.attributes.inspect}. #{describe_call_point 4}"
48
+ dlog "#{requester_name} can#{"'t" unless result == :ok} create a #{record.class} with #{record.attributes.inspect}. #{describe_call_point 4}"
49
49
  end
50
50
  else
51
51
  returning record_in_scope?(route, record) ? :ok : :not_found do |result|
52
- # dlog "#{requester_name} can#{"'t" unless result == :ok} #{verb} #{record.class}<#{record.id}>. #{describe_call_point 4}"
52
+ dlog "#{requester_name} can#{"'t" unless result == :ok} #{verb} #{record.class}<#{record.id}>. #{describe_call_point 4}"
53
53
  end
54
54
  end
55
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Hoskings