benhoskings-hammock 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/Manifest.txt +1 -0
- data/hammock.gemspec +41 -0
- data/lib/hammock.rb +1 -1
- data/lib/hammock/ajaxinate.rb +3 -1
- metadata +7 -6
data/History.txt
ADDED
data/Manifest.txt
CHANGED
data/hammock.gemspec
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{hammock}
|
5
|
+
s.version = "0.2.5"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Ben Hoskings"]
|
9
|
+
s.date = %q{2009-02-27}
|
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. Hammock enforces RESTful resource access by abstracting actions away from the controller in favour of a clean, model-like callback system. Hammock tackles the hard and soft sides of security at once with a scoping security system on your models. Specify who can verb what resources under what conditions once, and everything else - the actual security, link generation, index filtering - just happens. Hammock inspects your routes and resources to generate a routing tree for each resource. Parent resources in a nested route are handled transparently at every point - record retrieval, creation, and linking. It makes more sense when you see how it works though, so check out the screencast!}
|
11
|
+
s.email = ["ben@hoskings.net"]
|
12
|
+
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.rdoc", "misc/scaffold.txt"]
|
13
|
+
s.files = ["History.txt", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "hammock.gemspec", "lib/hammock.rb", "lib/hammock/ajaxinate.rb", "lib/hammock/callbacks.rb", "lib/hammock/canned_scopes.rb", "lib/hammock/constants.rb", "lib/hammock/controller_attributes.rb", "lib/hammock/export_scope.rb", "lib/hammock/hamlink_to.rb", "lib/hammock/javascript_buffer.rb", "lib/hammock/logging.rb", "lib/hammock/model_attributes.rb", "lib/hammock/model_logging.rb", "lib/hammock/monkey_patches/action_pack.rb", "lib/hammock/monkey_patches/active_record.rb", "lib/hammock/monkey_patches/array.rb", "lib/hammock/monkey_patches/hash.rb", "lib/hammock/monkey_patches/logger.rb", "lib/hammock/monkey_patches/module.rb", "lib/hammock/monkey_patches/numeric.rb", "lib/hammock/monkey_patches/object.rb", "lib/hammock/monkey_patches/route_set.rb", "lib/hammock/monkey_patches/string.rb", "lib/hammock/overrides.rb", "lib/hammock/resource_mapping_hooks.rb", "lib/hammock/resource_retrieval.rb", "lib/hammock/restful_actions.rb", "lib/hammock/restful_rendering.rb", "lib/hammock/restful_support.rb", "lib/hammock/route_drawing_hooks.rb", "lib/hammock/route_for.rb", "lib/hammock/scope.rb", "lib/hammock/suggest.rb", "lib/hammock/utils.rb", "misc/scaffold.txt", "misc/template.rb", "tasks/hammock_tasks.rake", "test/hammock_test.rb", "test/rails_root/test/test_helper.rb"]
|
14
|
+
s.has_rdoc = true
|
15
|
+
s.homepage = %q{http://github.com/benhoskings/hammock}
|
16
|
+
s.rdoc_options = ["--main", "README.rdoc"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubyforge_project = %q{hammock}
|
19
|
+
s.rubygems_version = %q{1.3.1}
|
20
|
+
s.summary = %q{Hammock is a Rails plugin that eliminates redundant code in a very RESTful manner}
|
21
|
+
s.test_files = ["test/rails_root/test/test_helper.rb"]
|
22
|
+
|
23
|
+
if s.respond_to? :specification_version then
|
24
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
25
|
+
s.specification_version = 2
|
26
|
+
|
27
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
28
|
+
s.add_runtime_dependency(%q<benhoskings-ambitious-activerecord>, [">= 0.1.3.4"])
|
29
|
+
s.add_development_dependency(%q<newgem>, [">= 1.2.3"])
|
30
|
+
s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
|
31
|
+
else
|
32
|
+
s.add_dependency(%q<benhoskings-ambitious-activerecord>, [">= 0.1.3.4"])
|
33
|
+
s.add_dependency(%q<newgem>, [">= 1.2.3"])
|
34
|
+
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
35
|
+
end
|
36
|
+
else
|
37
|
+
s.add_dependency(%q<benhoskings-ambitious-activerecord>, [">= 0.1.3.4"])
|
38
|
+
s.add_dependency(%q<newgem>, [">= 1.2.3"])
|
39
|
+
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
40
|
+
end
|
41
|
+
end
|
data/lib/hammock.rb
CHANGED
@@ -8,7 +8,7 @@ Dir.glob("#{File.dirname __FILE__}/hammock/**/*.rb").each {|dep|
|
|
8
8
|
} if defined?(RAILS_ROOT) # Loading Hammock components under 'rake package' fails.
|
9
9
|
|
10
10
|
module Hammock
|
11
|
-
VERSION = '0.2.
|
11
|
+
VERSION = '0.2.5'
|
12
12
|
|
13
13
|
def self.included base # :nodoc:
|
14
14
|
Hammock.constants.map {|constant_name|
|
data/lib/hammock/ajaxinate.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.5
|
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-02-
|
12
|
+
date: 2009-02-27 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -50,14 +50,17 @@ executables: []
|
|
50
50
|
extensions: []
|
51
51
|
|
52
52
|
extra_rdoc_files:
|
53
|
+
- History.txt
|
53
54
|
- Manifest.txt
|
54
55
|
- README.rdoc
|
55
56
|
- misc/scaffold.txt
|
56
57
|
files:
|
58
|
+
- History.txt
|
57
59
|
- LICENSE
|
58
60
|
- Manifest.txt
|
59
61
|
- README.rdoc
|
60
62
|
- Rakefile
|
63
|
+
- hammock.gemspec
|
61
64
|
- lib/hammock.rb
|
62
65
|
- lib/hammock/ajaxinate.rb
|
63
66
|
- lib/hammock/callbacks.rb
|
@@ -95,8 +98,7 @@ files:
|
|
95
98
|
- misc/template.rb
|
96
99
|
- tasks/hammock_tasks.rake
|
97
100
|
- test/hammock_test.rb
|
98
|
-
- test/
|
99
|
-
- test/test_helper.rb
|
101
|
+
- test/rails_root/test/test_helper.rb
|
100
102
|
has_rdoc: true
|
101
103
|
homepage: http://github.com/benhoskings/hammock
|
102
104
|
post_install_message:
|
@@ -125,5 +127,4 @@ signing_key:
|
|
125
127
|
specification_version: 2
|
126
128
|
summary: Hammock is a Rails plugin that eliminates redundant code in a very RESTful manner
|
127
129
|
test_files:
|
128
|
-
- test/
|
129
|
-
- test/test_helper.rb
|
130
|
+
- test/rails_root/test/test_helper.rb
|