ostatus 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ostatus/activity.rb +13 -0
- data/lib/ostatus/salmon.rb +1 -1
- data/lib/ostatus/version.rb +1 -1
- metadata +3 -3
data/lib/ostatus/activity.rb
CHANGED
@@ -45,6 +45,19 @@ module OStatus
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
+
def verb= value
|
49
|
+
if @entry.is_a? Hash
|
50
|
+
@entry[:object] = value
|
51
|
+
else
|
52
|
+
if [:favorite, :follow, :like, :"make-friend", :join,
|
53
|
+
:play, :save, :share, :tag, :update].include? value
|
54
|
+
value = "#{SCHEMA_ROOT}#{value}"
|
55
|
+
end
|
56
|
+
|
57
|
+
@entry.activity_verb = value
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
48
61
|
# Returns the object-type field or nil if it does not exist.
|
49
62
|
# :article, :audio, :bookmark, :comment, :file, :folder, :group,
|
50
63
|
# :list, :note, :person, :photo, :"photo-album", :place, :playlist,
|
data/lib/ostatus/salmon.rb
CHANGED
data/lib/ostatus/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 10
|
9
|
+
version: 0.0.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Hackers of the Severed Hand
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
17
|
+
date: 2011-06-09 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|