courier 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{courier}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Danil Pismenny"]
@@ -16,8 +16,6 @@ class Courier::Service::Facebook < Courier::Service::Base
16
16
  # http://developers.facebook.com/docs/reference/api/post/
17
17
  #
18
18
  def deliver_message(message)
19
- return true unless message.owner.facebook_id
20
-
21
19
  args = message.options[:facebook_properties] || message.options.slice(FACEBOOK_PROPERTY_ATTRS)
22
20
 
23
21
  args[:message] ||= message.options[:text] || Courier.template(message.template).
@@ -26,7 +24,7 @@ class Courier::Service::Facebook < Courier::Service::Base
26
24
  token = args[:token]
27
25
  token ||= message.owner.facebook_token if message.owner.respond_to?(:facebook_token)
28
26
 
29
- return nil unless token
27
+ return true unless token
30
28
 
31
29
  to = args[:to] || (message.owner.respond_to?(:facebook_id) ? message.owner.facebook_id : nil) || 'me'
32
30
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: courier
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Danil Pismenny