avo-diff_field 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/avo/diff_field/railtie.rb +6 -1
- data/lib/avo/diff_field/version.rb +1 -1
- metadata +6 -7
- data/lib/avo/diff_field/plugin.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da9d29d720f209c89b14ffe67440ac06e2f371caabe3bf7b81360e6294ff968c
|
4
|
+
data.tar.gz: 9982811eecd21d09062bb6f4cc43cd47e981ba7704083355bd53c491144bfd81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9620dd267bf03fc42851da1b0e0bf80605aa70b840790e787e6e572d5dbe1d60a33cd399ee0780a8c853d70048cdd16abf3479f8484166308073139486027c4d
|
7
|
+
data.tar.gz: 040c9fc118304a65d4e3f90b498e28c82acedcc2e73b32ebbcac5987eaa8a2ced61e7cd69e0a664145e59ca448d23d4f24279cb464a508b2badcc384bb086907
|
data/README.md
CHANGED
@@ -10,3 +10,5 @@ Docs available at [https://docs.avohq.io/3.0/fields/diff.html](https://docs.avoh
|
|
10
10
|
field :audited_changes, as: :diff
|
11
11
|
```
|
12
12
|
|
13
|
+
<a href="https://avohq.io" rel="dofollow" title="Avo - Ruby on Rails Admin Panel Framework">Avo - Ruby on Rails Admin Panel Framework</a>
|
14
|
+
|
@@ -1,8 +1,13 @@
|
|
1
|
+
require_relative "fields/diff_field"
|
2
|
+
require "diffy"
|
3
|
+
|
1
4
|
module Avo
|
2
5
|
module DiffField
|
3
6
|
class Railtie < Rails::Railtie
|
4
7
|
initializer "avo-diff_field.init" do
|
5
|
-
|
8
|
+
ActiveSupport.on_load(:avo_boot) do
|
9
|
+
Avo.plugin_manager.register_field :diff, Avo::DiffField::Fields::DiffField
|
10
|
+
end
|
6
11
|
end
|
7
12
|
end
|
8
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avo-diff_field
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Marin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diffy
|
@@ -38,14 +38,13 @@ files:
|
|
38
38
|
- lib/avo/diff_field/fields/diff_field/index_component.rb
|
39
39
|
- lib/avo/diff_field/fields/diff_field/show_component.html.erb
|
40
40
|
- lib/avo/diff_field/fields/diff_field/show_component.rb
|
41
|
-
- lib/avo/diff_field/plugin.rb
|
42
41
|
- lib/avo/diff_field/railtie.rb
|
43
42
|
- lib/avo/diff_field/version.rb
|
44
43
|
homepage: https://avohq.io
|
45
44
|
licenses:
|
46
45
|
- MIT
|
47
46
|
metadata: {}
|
48
|
-
post_install_message:
|
47
|
+
post_install_message:
|
49
48
|
rdoc_options: []
|
50
49
|
require_paths:
|
51
50
|
- lib
|
@@ -60,8 +59,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
59
|
- !ruby/object:Gem::Version
|
61
60
|
version: '0'
|
62
61
|
requirements: []
|
63
|
-
rubygems_version: 3.
|
64
|
-
signing_key:
|
62
|
+
rubygems_version: 3.5.5
|
63
|
+
signing_key:
|
65
64
|
specification_version: 4
|
66
65
|
summary: Diff field for Avo.
|
67
66
|
test_files: []
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require_relative "fields/diff_field"
|
2
|
-
require "diffy"
|
3
|
-
|
4
|
-
module Avo
|
5
|
-
module DiffField
|
6
|
-
class Plugin < Avo::Plugin
|
7
|
-
class << self
|
8
|
-
def boot
|
9
|
-
Avo.plugin_manager.register_field :diff, Avo::DiffField::Fields::DiffField
|
10
|
-
end
|
11
|
-
|
12
|
-
def init
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|