waz-storage 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -135,7 +135,7 @@ module WAZ
135
135
  def lock(num_of_messages = 1, visibility_timeout = nil)
136
136
  options = {}
137
137
  options[:num_of_messages] = num_of_messages
138
- options[:visiblity_timeout] = visibility_timeout unless visibility_timeout.nil?
138
+ options[:visibility_timeout] = visibility_timeout unless visibility_timeout.nil?
139
139
  messages = self.class.service_instance.get_messages(self.name, options).map do |raw_message|
140
140
  WAZ::Queues::Message.new(raw_message.merge(:queue_name => self.name))
141
141
  end
@@ -65,7 +65,7 @@ module WAZ
65
65
  # :visibility_timeout option specifies the timeout of the message locking in seconds (max two hours)
66
66
  def get_messages(queue_name, options = {})
67
67
  raise WAZ::Queues::OptionOutOfRange, {:name => :num_of_messages, :min => 1, :max => 32} if (options.keys.include?(:num_of_messages) && (options[:num_of_messages].to_i < 1 || options[:num_of_messages].to_i > 32))
68
- raise WAZ::Queues::OptionOutOfRange, {:name => :visibility_timeout, :min => 1, :max => 7200} if (options.keys.include?(:visibility_timeout) && (options[:visibility_timeout].to_i < 1 || options[:visibility_timeout].to_i > 7200))
68
+ raise WAZ::Queues::OptionOutOfRange, {:name => :visibility_timeout, :min => 1, :max => 604800} if (options.keys.include?(:visibility_timeout) && (options[:visibility_timeout].to_i < 1 || options[:visibility_timeout].to_i > 604800))
69
69
  content = execute(:get, "#{queue_name}/messages", options, {:x_ms_version => "2011-08-18"})
70
70
  doc = REXML::Document.new(content)
71
71
  messages = []
data/waz-storage.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
12
  gem.name = "waz-storage"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = "1.3.0"
14
+ gem.version = "1.3.1"
15
15
 
16
16
  gem.test_files = Dir['tests/**/*']
17
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waz-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: