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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6dcc424a0354283119606fb4ce6c8fbbe6481b2ce1bdecf61d937a36d52174b0
4
- data.tar.gz: b7f50112c25b580fe6bc27c5c4c682a2a590d3f76b2925f9b82ff0ec61165ef9
3
+ metadata.gz: da9d29d720f209c89b14ffe67440ac06e2f371caabe3bf7b81360e6294ff968c
4
+ data.tar.gz: 9982811eecd21d09062bb6f4cc43cd47e981ba7704083355bd53c491144bfd81
5
5
  SHA512:
6
- metadata.gz: 55f43bcf6d320bab05224741f9a8d71c4f03ab2e33aa8bf3bedd4b8afea328ea05844dae19f941330f8ff75261706d3b1d5f11f314cb14b519100bfc8b44cdd3
7
- data.tar.gz: b8212ef0cbe0e756ec0edee402f097b690d3eb820decd5b6e3894e81ac62a4a4ecd13fc51c5e5443bf6a2b5bfb53b81e3ef320f9f31a90cb312f4b64123ed2c9
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
- Avo.plugin_manager.register Avo::DiffField::Plugin
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
@@ -1,5 +1,5 @@
1
1
  module Avo
2
2
  module DiffField
3
- VERSION = "0.0.1" unless const_defined?(:VERSION)
3
+ VERSION = "0.0.2" unless const_defined?(:VERSION)
4
4
  end
5
5
  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.1
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-06-28 00:00:00.000000000 Z
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.4.10
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