Commits

Michael Granger  committed f0f47fd

Whitespace cleanup

  • Participants
  • Parent commits 2b5ec37

Comments (0)

Files changed (7)

File lib/strelka/app/restresources.rb

 # [ ] Means of tailoring responses for requests for which the response
 #     isn't clearly specified in the RFC (DELETE /resource)
 # [ ] Sequel plugin for adding links to serialized representations
-# 
+#
 # == Caveats / Known Problems
 #
 # * Dataset methods declared using the 'subset' declaration don't allow the
 
 				route  = "%s/%s" % [ route_prefix, methname ]
 				params = []
-					
+
 				# Add a route placeholder for each parameter of the dataset method
 				meth.parameters.each do |type, param|
 					self.log.debug "    adding parameter placeholder to the route for %s parameter %p" %
 	#######
 
 	### Add parameter validations for the given +columns+ of the specified resource object +rsrcobj+
-	### to the specified +req+uest. 
+	### to the specified +req+uest.
 	def add_resource_params( req, rsrcobj, *columns )
 		columns = rsrcobj.allowed_columns || rsrcobj.columns if columns.empty?
 

File lib/strelka/httprequest/auth.rb

 require 'strelka/httprequest' unless defined?( Strelka::HTTPRequest )
 
 
-# The mixin that adds methods to Strelka::HTTPRequest for 
+# The mixin that adds methods to Strelka::HTTPRequest for
 # authentication/authorization.
 module Strelka::HTTPRequest::Auth
 	include Strelka::Constants

File lib/strelka/httpresponse.rb

 
 	### Add a charset to the content-type header in +headers+ if possible.
 	def add_content_type_charset( headers )
-		return unless headers.content_type && 
+		return unless headers.content_type &&
 			headers.content_type.start_with?( 'text' )
 
 		charset = self.find_header_charset

File lib/strelka/paramvalidator.rb

 	end
 
 
-	### Return an Array of error messages, one for each field present in the parameters in the last 
+	### Return an Array of error messages, one for each field present in the parameters in the last
 	### validation that didn't have a constraint associated with it.
 	def unknown_param_errors
 		self.log.debug "Fetching unknown param errors for %p." % [ self.unknown ]

File lib/strelka/router.rb

 	# {RFC 2616}[http://tools.ietf.org/html/rfc2616#section-9] as a Symbol (e.g.,
 	# +:GET+, +:DELETE+). The +path_array+ will be the route path split up by
 	# path separator. The +routing_info+ is a Hash that contains the action
-   	# that will be run when the route matches, routing options, and any other
+	# that will be run when the route matches, routing options, and any other
 	# routing information associated with the route.
 	pure_virtual :add_route
 

File spec/strelka/app/auth_spec.rb

 			@app.no_auth_for( '' ) {|req| req.verb == :GET }
 			@app.require_perms_for %r{.*}, :it_assets_webapp
 			@app.require_perms_for( %r{.*}, :@sysadmin ) {|req, m| req.verb != :GET }
-			
+
 			app = @app.new
 
 			req = @request_factory.get( '/api/v1' )

File spec/strelka/app/restresources_spec.rb

 					body.first.should be_a( Hash )
 					body.first['port'].should > 1024
 				end
-								
+
 				it "has a GET route for methods declared in a named dataset module" do
 					req = @request_factory.get( '/api/v1/servers/by_name/Step',
 						 :accept => 'application/json' )