Stream 0.1.18 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/stream/fires.rb +5 -7
  2. data/stream.gemspec +1 -1
  3. metadata +1 -1
data/lib/stream/fires.rb CHANGED
@@ -33,13 +33,11 @@ module Stream
33
33
 
34
34
  create_options[:activity_type] = activity_type.to_s
35
35
 
36
- transaction do
37
- activity = ActivityItem.create!(create_options)
38
- if activity_type.to_s.eql?'new_message'
39
- activity.subject.recipient.activity_items << activity
40
- else
41
- ([activity.actor] + activity.actor.contacts).each{|p| p.activity_items << activity }
42
- end
36
+ activity = ActivityItem.create!(create_options)
37
+ if activity_type.to_s.eql?'new_message'
38
+ activity.subject.recipient.activity_items << activity
39
+ else
40
+ ([activity.actor] + activity.actor.contacts).each{|p| p.activity_items << activity }
43
41
  end
44
42
 
45
43
  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.18"
5
+ s.version = "0.1.19"
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.18
4
+ version: 0.1.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: