public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
Search Repo:
precedence op fix for constraints
dyoder (author)
Tue Jul 22 20:27:25 -0700 2008
commit  8b347b72928276bce6a0ee84c972fedbcc0ad7dc
tree    54fda62183d2ef375e5f8cc18e38018814b8f0c2
parent  a8c522c7170cc0b1c33e4d69c0cfb5c4b1047ea9
...
4
5
6
7
8
9
10
11
12
13
14
...
4
5
6
 
 
 
 
 
7
8
9
0
@@ -4,11 +4,6 @@ module Waves
0
     
0
     class Action
0
       
0
- # no path was provided. Should also always use :path rather than relying on target (this is
0
- # actually code in patter), and add code for :scheme, :domain, etc. constraints (Constraints).
0
- #
0
- # Can some of the resource determination related code be factored out of there or simplified?
0
-
0
       def initialize( options )
0
         @name = name = options[:name] ; @pattern = pattern = Pattern.new( options )
0
         @constraints = Constraints.new( options ) ; @descriptors = Descriptors.new( options )
...
16
17
18
19
 
20
21
22
...
16
17
18
 
19
20
21
22
0
@@ -16,7 +16,7 @@ module Waves
0
         METHODS.all? do | method |
0
           wanted = instance_variable_get( "@#{method}")
0
           got = request.send( method ) if wanted
0
- wanted.is_a? Proc ? wanted.call( got ) : wanted === got
0
+ wanted.is_a?( Proc ) ? wanted.call( got ) : wanted === got
0
         end
0
       end
0
             
...
1
2
3
4
 
5
6
7
...
1
2
3
 
4
5
6
7
0
@@ -1,7 +1,7 @@
0
 # See the README for an overview.
0
 module Waves
0
   
0
- class Applications << Array
0
+ class Applications < Array
0
     def []( name )
0
       self.find { |app| app.name == name.to_s }
0
     end

Comments

    No one has commented yet.