Stream 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/stream/fires.rb +2 -2
  2. data/stream.gemspec +1 -1
  3. metadata +1 -1
data/lib/stream/fires.rb CHANGED
@@ -18,7 +18,7 @@ module Stream
18
18
 
19
19
  method_name = :"fire_#{activity_type}_after_#{opts[:on]}"
20
20
  define_method(method_name) do
21
- create_options = [:recipient, :actor, :subject, :secondary_subject].inject({}) do |memo, sym|
21
+ create_options = [:actor, :subject, :secondary_subject].inject({}) do |memo, sym|
22
22
  if opts[sym]
23
23
  if opts[sym].respond_to?(:call)
24
24
  memo[sym] = opts[sym].call(self)
@@ -32,7 +32,7 @@ module Stream
32
32
  end
33
33
  create_options[:activity_type] = activity_type.to_s
34
34
 
35
- Activity.create!(create_options)
35
+ ActivityItem.create!(create_options)
36
36
  end
37
37
 
38
38
  send(:"after_#{opts[:on]}", method_name, :if => opts[:if])
data/stream.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{Stream}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Gretchen Gapol"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: