ostatus 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,
@@ -21,7 +21,7 @@ module OStatus
21
21
  :content => Atom::Content::Html.new("Now following #{followed_author.name}")
22
22
  )
23
23
 
24
- entry.activity_verb = :follow
24
+ entry.activity.verb = :follow
25
25
  entry.activity_object = followed_author
26
26
 
27
27
  OStatus::Salmon.new(entry)
@@ -1,3 +1,3 @@
1
1
  module OStatus
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 9
9
- version: 0.0.9
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-05-31 00:00:00 -04:00
17
+ date: 2011-06-09 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency