action_trace 0.1.0 → 0.2.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1ffc77c240d4ab390847ceb3bcaf692655b9e10cdfb46371c4cdc3188e49313
|
|
4
|
+
data.tar.gz: 72e721d26724869b7d2cbd4afef6d0ae5b54609615d779ef974e05ebf21d5d56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26dbcdfbe1bc91a5ebec2f55e1f3e6d8cc7a31305998a3092f6c29b2f96237c7e7707c88cdd8c87e7dc1560a453b91df3fb23b4493d8e9078ff18fdba8d9b65b
|
|
7
|
+
data.tar.gz: e2523e6faa5dc44f365db5e9ba75b99a7f772587b2815ae2592be3e621a2015ba6cd89a4cec64b16a319ebd34fb381fa4209e8448eb4b88c0def335bc27f86de
|
data/lib/action_trace/engine.rb
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'public_activity'
|
|
4
|
+
require 'ahoy_matey'
|
|
5
|
+
require 'paper_trail'
|
|
6
|
+
|
|
3
7
|
module ActionTrace
|
|
4
8
|
class Engine < ::Rails::Engine
|
|
5
9
|
isolate_namespace ActionTrace
|
|
@@ -29,4 +33,4 @@ module ActionTrace
|
|
|
29
33
|
end
|
|
30
34
|
end
|
|
31
35
|
end
|
|
32
|
-
end
|
|
36
|
+
end
|
data/lib/action_trace/version.rb
CHANGED
|
@@ -5,6 +5,18 @@ require 'rails/generators'
|
|
|
5
5
|
module ActionTrace
|
|
6
6
|
module Generators
|
|
7
7
|
class InstallGenerator < Rails::Generators::Base
|
|
8
|
+
include Rails::Generators::Migration
|
|
9
|
+
|
|
10
|
+
source_root File.expand_path('templates', __dir__)
|
|
11
|
+
|
|
12
|
+
def self.source_paths
|
|
13
|
+
[File.expand_path('templates', __dir__), File.expand_path(__dir__)]
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.next_migration_number(dirname)
|
|
17
|
+
next_migration_number = current_migration_number(dirname) + 1
|
|
18
|
+
ActiveRecord::Migration.next_migration_number(next_migration_number)
|
|
19
|
+
end
|
|
8
20
|
desc 'Install ActionTrace and all its dependencies'
|
|
9
21
|
|
|
10
22
|
class_option :skip_ahoy, type: :boolean, default: false,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: action_trace
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- gimbaro
|
|
@@ -247,6 +247,8 @@ files:
|
|
|
247
247
|
- app/jobs/action_trace/purge_activity_log_job.rb
|
|
248
248
|
- app/models/action_trace/activity_log.rb
|
|
249
249
|
- app/models/action_trace/application_record.rb
|
|
250
|
+
- app/models/ahoy/event.rb
|
|
251
|
+
- app/models/ahoy/visit.rb
|
|
250
252
|
- app/models/concerns/action_trace/data_trackable.rb
|
|
251
253
|
- app/presenters/action_trace/activity_log_presenter.rb
|
|
252
254
|
- app/views/action_trace/activity_logs/_activity_log.html.erb
|