route_matcher 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ module RouteMatcher
7
7
 
8
8
  def initialize(name, &block)
9
9
  @name, @block = name, block
10
- Rails.cache.write(cache_key, Time.now, :unless_exists => true)
10
+ Rails.cache.write(cache_key(@name), Time.now, :unless_exists => true)
11
11
  end
12
12
 
13
13
  def matches?(request)
@@ -25,12 +25,12 @@ module RouteMatcher
25
25
  end
26
26
 
27
27
  private
28
- def cache_key(name=nil)
29
- "route_matcher_urls_#{name || @name}"
28
+ def self.cache_key(name)
29
+ "route_matcher_url_matcher_#{name}"
30
30
  end
31
31
 
32
32
  def get_stamp
33
- Rails.cache.read(cache_key)
33
+ Rails.cache.read(cache_key(@name))
34
34
  end
35
35
 
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module RouteMatcher
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,8 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: route_matcher
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.1
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 2
9
+ version: 0.0.2
6
10
  platform: ruby
7
11
  authors:
8
12
  - Raymond Vellener
@@ -11,7 +15,8 @@ autorequire:
11
15
  bindir: bin
12
16
  cert_chain: []
13
17
 
14
- date: 2011-06-03 00:00:00 Z
18
+ date: 2011-06-04 00:00:00 +02:00
19
+ default_executable:
15
20
  dependencies: []
16
21
 
17
22
  description: " Constraint object to allow only certain url's "
@@ -32,6 +37,7 @@ files:
32
37
  - lib/route_matcher/url_matcher.rb
33
38
  - lib/route_matcher/version.rb
34
39
  - route_matcher.gemspec
40
+ has_rdoc: true
35
41
  homepage: http://brightin.nl
36
42
  licenses: []
37
43
 
@@ -45,17 +51,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
45
51
  requirements:
46
52
  - - ">="
47
53
  - !ruby/object:Gem::Version
54
+ segments:
55
+ - 0
48
56
  version: "0"
49
57
  required_rubygems_version: !ruby/object:Gem::Requirement
50
58
  none: false
51
59
  requirements:
52
60
  - - ">="
53
61
  - !ruby/object:Gem::Version
62
+ segments:
63
+ - 0
54
64
  version: "0"
55
65
  requirements: []
56
66
 
57
67
  rubyforge_project: route_matcher
58
- rubygems_version: 1.8.5
68
+ rubygems_version: 1.3.7
59
69
  signing_key:
60
70
  specification_version: 3
61
71
  summary: Constraint object to allow only certain url's