hammock 0.2.11.2 → 0.2.11.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.11.3 2009-03-25
2
+ Updated deprecated session_id references to request.session_options[:id].
3
+
4
+
1
5
  == 0.2.11.2 2009-03-24
2
6
  Loosened Rails dependency from ~> 2.2.2 to 2.2.
3
7
 
data/Rakefile CHANGED
@@ -6,13 +6,13 @@ require File.dirname(__FILE__) + '/lib/hammock'
6
6
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
7
7
  $hoe = Hoe.new('hammock', Hammock::VERSION) do |p|
8
8
  p.developer('Ben Hoskings', 'ben@hoskings.net')
9
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
10
- p.rubyforge_name = p.name
11
- p.extra_deps = [
12
- ['rails','~> 2.2'],
13
- ['benhoskings-ambitious-activerecord','~> 0.1.3.5'],
9
+ p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
10
+ p.rubyforge_name = p.name
11
+ p.extra_deps = [
12
+ ['rails', '~> 2.2'],
13
+ ['benhoskings-ambitious-activerecord', '~> 0.1.3.5'],
14
14
  ]
15
- p.extra_dev_deps = [
15
+ p.extra_dev_deps = [
16
16
  ['newgem', ">= #{::Newgem::VERSION}"]
17
17
  ]
18
18
 
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.2.11.2"
5
+ s.version = "0.2.11.3"
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-03-24}
9
+ s.date = %q{2009-03-25}
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. 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
11
  s.email = ["ben@hoskings.net"]
12
12
  s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.rdoc", "misc/scaffold.txt"]
@@ -17,7 +17,7 @@ module Hammock
17
17
  log_concise [
18
18
  request.remote_ip.colorize('green'),
19
19
  (@current_site.subdomain unless @current_site.nil?),
20
- (session.nil? ? 'nil' : ('...' + session.session_id[-8, 8])),
20
+ (request.session_options[:id].nil? ? 'nil' : ('...' + request.session_options[:id][-8, 8])),
21
21
  (current_user.nil? ? "unauthed" : "Account<#{current_user.id}> #{current_user.name}").colorize('green'),
22
22
  headers['Status'],
23
23
  log_hit_request_info,
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.2'
11
+ VERSION = '0.2.11.3'
12
12
 
13
13
  def self.included base # :nodoc:
14
14
  Hammock.constants.map {|constant_name|
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.2.11.2
4
+ version: 0.2.11.3
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-03-24 00:00:00 +10:00
12
+ date: 2009-03-25 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency