benhoskings-hammock 0.3.10.3 → 0.3.10.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/hammock.gemspec +2 -2
- data/lib/hammock.rb +1 -1
- data/lib/hammock/restful_actions.rb +1 -1
- metadata +4 -3
data/History.txt
CHANGED
data/hammock.gemspec
CHANGED
@@ -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.4"
|
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-
|
9
|
+
s.date = %q{2009-07-29}
|
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
|
|
data/lib/hammock.rb
CHANGED
@@ -131,7 +131,7 @@ module Hammock
|
|
131
131
|
if findable_on_create?
|
132
132
|
if record = mdl.ambition_context.within(current_nest_scope).find(:first, :conditions => params_for(mdl.symbolize))
|
133
133
|
log "Suitable #{record.class}<#{record.id}> already exists."
|
134
|
-
assign_entity record
|
134
|
+
assign_entity mdl.resource.find record.id
|
135
135
|
else
|
136
136
|
log "Couldn't find a suitable #{mdl}, proceeding with creation."
|
137
137
|
end
|
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.4
|
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-
|
12
|
+
date: 2009-07-29 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -106,6 +106,7 @@ files:
|
|
106
106
|
- test/hammock_test.rb
|
107
107
|
has_rdoc: false
|
108
108
|
homepage: http://github.com/benhoskings/hammock
|
109
|
+
licenses:
|
109
110
|
post_install_message:
|
110
111
|
rdoc_options:
|
111
112
|
- --main
|
@@ -127,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
128
|
requirements: []
|
128
129
|
|
129
130
|
rubyforge_project: hammock
|
130
|
-
rubygems_version: 1.
|
131
|
+
rubygems_version: 1.3.5
|
131
132
|
signing_key:
|
132
133
|
specification_version: 3
|
133
134
|
summary: Hammock is a Rails plugin that eliminates redundant code in a very RESTful manner
|