Permalink
Browse files

Merge pull request #68 from arax/url-handling

Fixes #62, normalize endpoint URI
  • Loading branch information...
arax committed Mar 1, 2013
2 parents 263df78 + cf5c1aa commit e6db2a472c7095556962fb21a395354b3d270e35
Showing with 2 additions and 5 deletions.
  1. +1 −4 lib/occi/bin/occi_opts.rb
  2. +1 −1 lib/occi/version.rb
@@ -82,10 +82,7 @@ def self.parse(args, test_env = false)
"--endpoint URI",
String,
"OCCI server URI, defaults to '#{options.endpoint}'") do |endpoint|
- # Do some basic validation of the endpoint URI
- URI(endpoint)
-
- options.endpoint = endpoint
+ options.endpoint = URI(endpoint).to_s
end
opts.on("-n",
View
@@ -1,3 +1,3 @@
module Occi
- VERSION = "3.1.0.alpha.1" unless defined?(::Occi::VERSION)
+ VERSION = "3.1.0.beta.1" unless defined?(::Occi::VERSION)
end

0 comments on commit e6db2a4

Please sign in to comment.