trackstamps-reborn 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fadfa370c842bc476bfa043e9fbf39403f63670a04688cfec1dbf71fa6e08aa6
4
- data.tar.gz: 75b0cdeb8330a0532c44abc9666c2636786481934d4aba58d99784d004e99269
3
+ metadata.gz: 5d4a0992b729ef34a241b1db94c19f531768b87742137ed0d11559009f866d31
4
+ data.tar.gz: a4a67c82bce9c0700d3bf33acaa85f57883a32dc78f0598decd7791ea41d6fec
5
5
  SHA512:
6
- metadata.gz: 18b286fe9b6431c629ba07bd8c324ad4d8e25405968d6ee411e984a05abff1580f0e7786b1f9bc98d700f00a8e3809691c760921081ad85550640f62f28350c8
7
- data.tar.gz: c360f942e6dafa16d5b592ddafccfe02646b24b1a0363cd0b1e320ba0d47e99872840b97508d6de6ab71d25aaca945d2d1de3d169500449dd5e0ac4d89f8127f
6
+ metadata.gz: 7ce723ac73cf730e8a24a535a0ea7a6b7546e5586959500896aee8d05fdbe6d077f15e3fd0e026e4786a562fee713920fe8e13d63df7c8611da17c65ade52afc
7
+ data.tar.gz: 7152a2a596e88ee180821f278cbb7407e9db282374bdb8bc2690087223c9139afc3eef6be333b237c6ed531eecff7a3846b0eb693dac9e8ed0462541c900550e
data/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  Track which user created or updated record in Rails.
8
8
 
9
+ Inspired and part of code used from original [Trackstamps](https://github.com/mshahzadtariq/trackstamps) gem
10
+
9
11
  ---
10
12
 
11
13
  - [Quick start](#quick-start)
@@ -32,6 +34,20 @@ class ApplicationController < ActionController::Base
32
34
  end
33
35
  ```
34
36
 
37
+ ### Override implementation for current user
38
+
39
+ ```ruby
40
+ module TrackstampsOverride
41
+
42
+ extend ActiveSupport::Concern
43
+ include Trackstamps::Reborn
44
+
45
+ def trackstamps_current_user
46
+ User.last
47
+ end
48
+ end
49
+ ```
50
+
35
51
  ### Generate migrations
36
52
  ```
37
53
  rails generate trackstamps:reborn:migration table_name
@@ -1,5 +1,5 @@
1
1
  module Trackstamps
2
2
  module Reborn
3
- VERSION = "0.0.3".freeze
3
+ VERSION = "0.0.4".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trackstamps-reborn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dušan
@@ -14,16 +14,22 @@ dependencies:
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '8'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '5.2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '8'
27
33
  description:
28
34
  email:
29
35
  - dusan.uveric@mitigate.dev