flexible_feeds 0.3.0 → 0.3.1

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Yzc0YmRkYzEwZTVjMjk2ZTMyN2EwMjcyNTBkZGZiYzM3M2UzNzZlOQ==
4
+ OGY0ZTE0YzM0MTNmOWE5ZDg5YjYzMzk4NzY3MzIxZjNlMjRhZTcyMw==
5
5
  data.tar.gz: !binary |-
6
- OWZiZDM2ZjdiMmE1NTFmZGRhYmExMjIzOGVjMTIzMmY4ODBiZmQ2MA==
6
+ OGIwMjYyNWQ1YjFjM2UyM2NkOGRjMjY5MjA1NTY5OWE5YmZkNWM2Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjZjYTQwN2Y2ZGM5MjNmMTY0M2E3MDFkNzA0NTRhM2VmNWVlYTMyNWRlZjFm
10
- ZTc1MzVhOTk4YTA4OGE2OTVmNDk2NGM0M2QzMGU0YzdkYWVlMjU1YzliZDEy
11
- MGU5ZGZiNzM0NmUyZWJmY2M0NTNmODNjZmE2NzNiMmZkZjRiZmQ=
9
+ MzhiZjBkMjk5MTQ2YmY1ZDdhMWM1NjQ2ZDg5MzI4ZjA3NGZkOTE4YWI0MzU3
10
+ ODYzYmZkYjllZjdhYTJjYTk2ZTMyMTA3MTc1ZjgyNmMwMTYzOWVmMDdlNWU1
11
+ ODU4ZTRlMzI1OTM3NGUwOTc0YWZhYmIwMmMxYzhmMzJmMDliNmQ=
12
12
  data.tar.gz: !binary |-
13
- NTBmYmQ4OThiMWViNTA1MWM4NzdiOGM0ZjI5YzFlNTA5ZTQ1MGNiMzVlOTJi
14
- OTAzOWI3MjQ0NjRjMjljMGViZTAyODZlMDA0ODAxMGI5YTkyNDgwZjEwODcz
15
- Y2JlY2FiOTljYzdlNDU3NTdlZjZjNzhjZjQ5NTM0YjNmMWEwODg=
13
+ NWQxNmZlMjNjNjZjOTE1ZTA2NGRhMjNmNGU4ZjI2MjVkNDhmY2NmYzc4Yjhi
14
+ Y2NkMWU0MDdhMzMwYTExYmRiNzc2NjVhNGYwYjQ4YzhhNzFkM2ZmYTU1ZmRh
15
+ MmVmOGEyYjhmMGM0YTExZDMyNTc1MDlkMzZhYTEyOTdhYWNiMTk=
@@ -44,14 +44,20 @@ module FlexibleFeeds
44
44
  end
45
45
 
46
46
  def increment_parent_counter
47
- ancestors.each do |this_ancestor|
48
- this_ancestor.increment(:children_count)
47
+ FlexibleFeeds::Event.transaction do
48
+ ancestors.each do |this_ancestor|
49
+ this_ancestor.increment(:children_count)
50
+ this_ancestor.save!
51
+ end
49
52
  end
50
53
  end
51
54
 
52
55
  def decrement_parent_counter
53
- ancestors.each do |this_ancestor|
54
- this_ancestor.decrement(:children_count, children_count + 1)
56
+ FlexibleFeeds::Event.transaction do
57
+ ancestors.each do |this_ancestor|
58
+ this_ancestor.decrement(:children_count, children_count + 1)
59
+ this_ancestor.save!
60
+ end
55
61
  end
56
62
  end
57
63
 
@@ -1,3 +1,3 @@
1
1
  module FlexibleFeeds
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexible_feeds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - timothycommoner