acts_as_trackable 0.3.0 → 0.3.2

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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abcff87c3d8646138656b6e6c3cd3a2b77bbaa06220471cab325ce565fc7af96
4
- data.tar.gz: 0fb60a5c6686eb0d3be23957a482184bd9fd801099ce790593c2f40e543a1e72
3
+ metadata.gz: 9bf62ab194333aac206d3d296179f535defe2e0ad8a5d75fb2817dd94279c10f
4
+ data.tar.gz: 1ebd6c6bd61e2c4551e7935518e31946fd71e2aeb8337786b2c5a4ab048894d9
5
5
  SHA512:
6
- metadata.gz: 14717aee75f590338e196dd0982f60e44458ff5822280271c546f0040f79a56d7b5251e0ae8b4e5c89992e35e58b2f83c8c0008d64b64755ac8df28f6b42811f
7
- data.tar.gz: befc693a18e30fd2ac1b7e82512d539cd193a99d9c8236706ae87790c1915456e9b7c66c09eaf59d5d820a28e6f9293f833affa5440a124930b1b7205e0c7074
6
+ metadata.gz: 0b201c131b7b52ade1533b66325434ec6b81a8d32b4bb7f07e30fec6d189f6be1d4cc0da55ca2efe4ccfe68a1f886d40716511edb3c6160e8cf0ba60f43d12a8
7
+ data.tar.gz: 7ac4a7a006ae2d194bbfd0a0ee1a8e8232757e917e6e386cc1b39960e26cc52696c0d927520d58a7ac1139bea34fd4d88f09a0e6159434f9a66cb7bf2118c08b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acts_as_trackable (0.3.0)
4
+ acts_as_trackable (0.3.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -66,9 +66,9 @@ GEM
66
66
  crass (~> 1.0.2)
67
67
  nokogiri (>= 1.12.0)
68
68
  minitest (5.25.5)
69
- nokogiri (1.18.5-arm64-darwin)
69
+ nokogiri (1.18.8-arm64-darwin)
70
70
  racc (~> 1.4)
71
- nokogiri (1.18.5-x86_64-darwin)
71
+ nokogiri (1.18.8-x86_64-darwin)
72
72
  racc (~> 1.4)
73
73
  pp (0.6.2)
74
74
  prettyprint
data/README.md CHANGED
@@ -45,6 +45,18 @@ After that run the following commands:
45
45
  ```ruby
46
46
  acts_as_modifier
47
47
  ```
48
+ - For STI models, set the following attribute to true to save the child class's object type as the parent class's (base_class) object type:
49
+ ```ruby
50
+ class Post < ActiveRecord::Base
51
+ self.inheritance_column = :class_name
52
+
53
+ acts_as_trackable
54
+ end
55
+
56
+ class Comment < Post
57
+ acts_as_trackable fallback_to_base_class: true
58
+ end
59
+ ```
48
60
  - After that, you need to pass the user to the modifier attribute from your controller(or basically anywhere) to your update/create statements as follows(If you don't pass the modifier, track me will simply ignore creating/updating the object activity):
49
61
  ```ruby
50
62
  YourTrackableModel.update(modifier: @current_user)
data/changelog.md CHANGED
@@ -1,4 +1,10 @@
1
1
  # acts_as_trackable Changelog
2
+ ## Version: 0.3.2
3
+ ### Patch
4
+ - Upgraded dependencies to patch CVE-2025-32414 and CVE-2025-32415
5
+ ## Version: 0.3.1
6
+ ### Patch
7
+ - Updated README
2
8
  ## Version: 0.3.0
3
9
  ### Patch
4
10
  - Added support to treat STI models as one model
@@ -1,3 +1,3 @@
1
1
  module ActsAsTrackable
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_trackable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmad Keewan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2025-03-23 00:00:00.000000000 Z
12
+ date: 2025-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: generator_spec