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 +1 -1
- data/courier.gemspec +1 -1
- data/lib/courier/service/facebook.rb +1 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/courier.gemspec
CHANGED
@@ -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
|
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Danil Pismenny
|