SQS 0.1.1 → 0.1.2

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 0.1.2
2
+ 2007-04-25
3
+ * No longer includes REXML in the default namespace, to avoid collisions. Thanks to Kyle Maxwell.
4
+
5
+
6
+
1
7
  0.1.1
2
8
  2007-02-19
3
9
  * Added Queue#peek_messages() and Queue#peek_message(). Thanks to Robert J. Berger for pointing out that receiving a message with VisibilityTimeout=0 is the functional equivalent of a peek.
data/lib/sqs.rb CHANGED
@@ -10,9 +10,6 @@ require 'openssl'
10
10
  require 'rexml/document'
11
11
  #include Digest
12
12
  include ERB::Util
13
- include OpenSSL
14
- include REXML
15
-
16
13
 
17
14
  class SQS
18
15
 
@@ -116,7 +113,7 @@ class SQS
116
113
  queues = Array.new()
117
114
 
118
115
  begin
119
- XPath.each( doc, '/ListQueuesResponse/QueueUrl' ) do |element|
116
+ REXML::XPath.each( doc, '/ListQueuesResponse/QueueUrl' ) do |element|
120
117
  queues << SQS::Queue.new( :url => element.text )
121
118
  end
122
119
  rescue RuntimeError => e
@@ -207,7 +204,7 @@ class SQS
207
204
  url_encoded_signature = url_encode( self.create_signature( params ) )
208
205
  response = Net::HTTP.get( URI.parse( url + url_encoded_signature ) )
209
206
  self.increment_counter
210
- doc = Document.new( response )
207
+ doc = REXML::Document.new( response )
211
208
  status = doc.status
212
209
 
213
210
  unless status == 'Success'
@@ -258,12 +255,12 @@ module REXML
258
255
 
259
256
  protected
260
257
  def node_text( xpath )
261
- code = XPath.first( self, xpath )
258
+ code = REXML::XPath.first( self, xpath )
262
259
  code.to_s.empty? ? '' : code.text
263
260
  end
264
261
 
265
262
  def nodes( xpath )
266
- XPath.match( self, xpath )
263
+ REXML::XPath.match( self, xpath )
267
264
  end
268
265
  end
269
266
 
@@ -280,12 +277,12 @@ module REXML
280
277
 
281
278
  protected
282
279
  def node_text( xpath )
283
- code = XPath.first( self, xpath )
280
+ code = REXML::XPath.first( self, xpath )
284
281
  code.to_s.empty? ? '' : code.text
285
282
  end
286
283
 
287
284
  def nodes( xpath )
288
- XPath.match( self, xpath )
285
+ REXML::XPath.match( self, xpath )
289
286
  end
290
287
  end
291
288
 
@@ -264,7 +264,7 @@ class SQS_QueueTest < Test::Unit::TestCase
264
264
  when SQStest.other_aws_account[:display_name]
265
265
  assert_equal SQS.permissions[:receive], grant.permission
266
266
  else
267
- assert false, "'#{grant.display_name}' is an unknown email address"
267
+ assert false, "'#{grant.display_name}' is an unknown display name"
268
268
  end
269
269
  end
270
270
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'test/unit'
4
4
  require "#{File.expand_path( File.dirname( __FILE__ ) )}/test_setup"
5
+ include REXML
5
6
 
6
7
  class DuckTypeParameter
7
8
  def initialize( st )
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: SQS
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
7
- date: 2007-02-19 00:00:00 -08:00
6
+ version: 0.1.2
7
+ date: 2007-04-26 00:00:00 -07:00
8
8
  summary: A Ruby interface to Amazon's Simple Queue Service
9
9
  require_paths:
10
10
  - lib