Skip to content

Commit

Permalink
Merge pull request #36 from duracloud/hotfix-0.7.1
Browse files Browse the repository at this point in the history
Hotfix 0.7.1
  • Loading branch information
dchandekstark authored Jul 12, 2017
2 parents 96926ed + 8203ecc commit 2a21bc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions lib/duracloud/properties.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ module Duracloud
class Properties < Hashie::Mash

PREFIX = "x-dura-meta-".freeze
PREFIX_RE = /\A#{PREFIX}/i

# Is the property name valid?
# @param prop [String] the property name
# @return [Boolean]
def self.property?(prop)
!!( PREFIX_RE =~ prop.to_s )
prop.to_s.start_with?(PREFIX)
end

def initialize(source = nil, default = nil, &block)
Expand All @@ -27,11 +26,6 @@ def property?(prop)
self.class.property?(prop)
end

# @api private
def convert_key(key)
force_ascii(key)
end

# @api private
def convert_value(value, _ = nil)
case value
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.7.0"
VERSION = "0.7.1"
end

0 comments on commit 2a21bc6

Please sign in to comment.