yamwow 0.0.11 → 0.0.12

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.
@@ -14,7 +14,7 @@ module YamWow
14
14
  def send
15
15
  @messages = []
16
16
  @references = []
17
- loop_finished = false
17
+ loop_finished = topic_id.nil?
18
18
 
19
19
  until loop_finished
20
20
  response_data = send_messages_request
@@ -44,8 +44,7 @@ module YamWow
44
44
  request = TopicWithNameRequest.new @client, @topic_name
45
45
  response = request.send
46
46
  topic = response.data
47
- raise "Topic '#{@topic_name}' was not found." unless topic
48
- topic.id
47
+ topic.id if topic
49
48
  end
50
49
 
51
50
  def oldest_message_id
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yamwow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-10 00:00:00.000000000 Z
12
+ date: 2013-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yam
16
- requirement: &70345739143900 !ruby/object:Gem::Requirement
16
+ requirement: &70147104916060 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70345739143900
24
+ version_requirements: *70147104916060
25
25
  description:
26
26
  email: matthew-github@matthewriley.name
27
27
  executables: []