queuel 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjMyOTIyZmM5Y2MxZmNjMDdhM2IzMDhiZWNjYWQ2ODMzYzg4ZjliNg==
4
+ MTYyYjg5NTFlNjA2ZjNkYjFlMWExNmM1MWE5OTAzYzRjZjFlZDU0ZQ==
5
5
  data.tar.gz: !binary |-
6
- ZjI2NDZjOTNiYWNhMWQ3NmJkZTY4YjdkMDEzOGE0YTM5MWIxMjU3Yw==
6
+ MGNhN2Q4YzQ2ZGUzZjg4MGFjMDdhYTVlZDlkZjYwYzgwNjE1ZDI0MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NDRkNjQzZjkwNWJmYWZmYWEzNjRkNjJiMzdiYjEwMzI4MGYyMmVkNmQ2YzI4
10
- ODA4ZjJhNjY3MzJkYjY2Yzg0MGJjNGQ5NzUwOTI5ZTE5ZDY5ZWM0NTNmZDgx
11
- MGQ0ZjQzYjk3NDk5NzJiZDJhNzg5YmEyODgxOGM3ZTI4OWE5OGU=
9
+ MTFiMzQ3NjYzZDU3OGQxMTI0MzU5MWY2YTM5ODRmNzQ1MDE0ZDM0N2U0Njk1
10
+ MWNjY2Q2Mjg0NmIyYTc2MWVjOTkxNzJlZjZlYWMyMGRmOGYyNjMxZmExN2U3
11
+ NzAyYTNlZWY3NjFkYjVkOGU4Yzc3OWE1YmJiYjhmMmI5OGRlNjk=
12
12
  data.tar.gz: !binary |-
13
- YWJmYzBiODZkMTcwMzY2MTM2OGEyNWRkNWI2MGJhY2YyNjZkMTYxMGMwNjk5
14
- NzZiYWYzYTM0YTI1N2Y2ZGZkOThmMTUwZjJlYWE1YTc3YmJmOGMwMmMyZmZi
15
- MzQ4NWJjNGIyNjljMWE2NGQ1NjhiNjllZTMyOTdjYmE4MTExODg=
13
+ ODM1OTBlYzhkMjNmMjE2MGZlYzE5MmU1ZWQxNDRjM2FlMmY1MzJkYTUwYmEz
14
+ ZTVlMWE4MTdmYzdhZGYyMzI2Y2EzNzcwZjcyNjU0NzEyOGI4NGNlMjIyMzNl
15
+ YWIyYmVjMGY3NDRiYjdkZmY4NDEwNmU2YTJiNDllMmQyMDllOWU=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- queuel (0.3.0)
4
+ queuel (0.3.1)
5
5
  mono_logger
6
6
  multi_json
7
7
  thread
@@ -20,7 +20,7 @@ module Queuel
20
20
  def raw_body_with_sns_check
21
21
  begin
22
22
  message_object.as_sns_message.body
23
- rescue ::JSON::ParserError
23
+ rescue ::JSON::ParserError, TypeError
24
24
  message_object.body
25
25
  end
26
26
  end
@@ -9,11 +9,16 @@ module Queuel
9
9
  queue_connection.send_message build_push_message(message, options)
10
10
  end
11
11
 
12
+ def approximate_number_of_messages
13
+ queue_connection.approximate_number_of_messages
14
+ end
15
+
12
16
  private
13
17
  def pop_bare_message(options = {})
14
18
  queue_connection.receive_message options
15
19
  end
16
20
 
21
+
17
22
  def queue_connection
18
23
  @queue_connection ||= client.queues.named(name)
19
24
  end
@@ -1,3 +1,3 @@
1
1
  module Queuel
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Phenow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-10 00:00:00.000000000 Z
11
+ date: 2014-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler