restful_acl 3.1.2 → 3.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.1.3
@@ -1,27 +1,3 @@
1
- # require 'restful_acl'
2
- #
3
- # module RestfulAcl
4
- # if defined? Rails::Railtie
5
- # require 'rails'
6
- # class Railtie < Rails::Railtie
7
- # initializer 'restful_acl.insert_into_active_record' do
8
- # ActiveSupport.on_load :active_record do
9
- # RestfulAcl::Railtie.insert
10
- # end
11
- # end
12
- # end
13
- # end
14
- #
15
- # class Railtie
16
- # def self.insert
17
- # ActiveRecord::Base.send(:include, RestfulAcl::Model)
18
- # ActionController::Base.send(:include, RestfulAcl::Controller)
19
- # ActionView::Base.send(:include, RestfulAcl::Helper)
20
- # end
21
- # end
22
- # end
23
-
24
-
25
1
  require 'restful_acl'
26
2
  require 'rails'
27
3
 
@@ -21,7 +21,6 @@ class UrlParser
21
21
  ]
22
22
 
23
23
  URL = /href="([\w\/-?$_.+!*'(),]+)"/
24
- AJAXURL = /url:'([\w\/-?$_.+!*'(),]+)'/
25
24
  NewURL = /\/new$/
26
25
  EditURL = /\/edit$/
27
26
  ObjectURL = /\/(\d+)[\w-]*$/
@@ -80,10 +79,10 @@ class UrlParser
80
79
 
81
80
  # Find the requested URL out of the text block received
82
81
  def requested_url
83
- link = case @text
84
- when AJAXURL then AJAXURL.match(@text)[1]
85
- when URL then URL.match(@text)[1]
86
- else raise RestfulAcl::UnrecognizedURLError, "'#{@text}' doesn't seem to contain a valid URL?"
82
+ if link = URL.match(@text)
83
+ link[1]
84
+ else
85
+ raise RestfulAcl::UnrecognizedURLError, "'#{@text}' doesn't seem to contain a valid URL?"
87
86
  end
88
87
  end
89
88
 
data/restful_acl.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{restful_acl}
8
- s.version = "3.1.2"
8
+ s.version = "3.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Darby"]
12
- s.date = %q{2010-08-31}
12
+ s.date = %q{2010-09-01}
13
13
  s.description = %q{A Ruby on Rails plugin that provides fine grained access control to RESTful resources.}
14
14
  s.email = %q{matt@matt-darby.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_acl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
- - 2
10
- version: 3.1.2
9
+ - 3
10
+ version: 3.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Darby
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-31 00:00:00 -04:00
18
+ date: 2010-09-01 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency