Skip to content

Commit

Permalink
Merge pull request #45 from duracloud/hotfix-0.9.1
Browse files Browse the repository at this point in the history
Hotfix 0.9.1
  • Loading branch information
dchandekstark authored Oct 26, 2017
2 parents 45cd62a + 8b5b420 commit 0d0826c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions duracloud.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = ">= 2.2"

spec.add_dependency "addressable", "~> 2.5"
spec.add_dependency "hashie", "~> 3.4"
spec.add_dependency "httpclient", "~> 2.7"
spec.add_dependency "activemodel", ">= 4.2", "< 6"
Expand Down
4 changes: 3 additions & 1 deletion lib/duracloud/request.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'addressable/uri'

module Duracloud
class Request
attr_reader :client, :url, :http_method, :body, :headers, :query
Expand All @@ -12,7 +14,7 @@ class Request
def initialize(client, http_method, url, **options)
@client = client
@http_method = http_method
@url = url
@url = Addressable::URI.parse(url).normalize.to_s
set_options(options.dup)
end

Expand Down
3 changes: 1 addition & 2 deletions lib/duracloud/rest_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ def durastore(*args, &block)
end

def durastore_content(http_method, space_id, content_id, **options, &block)
escaped_content_id = content_id.gsub(/%/, "%25").gsub(/ /, "%20")
url = [ space_id, escaped_content_id ].join("/")
url = [ space_id, content_id.gsub(/%/, "%25") ].join("/")
durastore(http_method, url, **options, &block)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/duracloud/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Duracloud
VERSION = "0.9.0"
VERSION = "0.9.1"
end

0 comments on commit 0d0826c

Please sign in to comment.