informant-rails 2.2.0 → 2.5.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 +4 -4
- data/Rakefile +9 -6
- data/lib/informant-rails/config.rb +9 -9
- data/lib/informant-rails/diagnostic.rb +3 -2
- data/lib/informant-rails/railtie.rb +18 -20
- data/lib/informant-rails/version.rb +1 -1
- data/lib/tasks/diagnostic.rake +1 -1
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70381549211b7ab14a2cbbafded3a2614811de7b0590ecabddb3e3e134afa0c5
|
4
|
+
data.tar.gz: e7c2012e517f9ec968b6a92d6ce116a046a23b26740475226f530af32f406097
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 231a4426ea6995118a5b7e3571234648f4ad3dc900c40cb351b78d1ec5df2a5da9f0df6c1aefca884d388ccab6be394b786061aa1dc4b1687b9b02e689336adf
|
7
|
+
data.tar.gz: 4112bc02f3e35e653e63a5937a90732b679b21e1535e5a8e87f49a38dbd0085aa63ab6b5d42d0410f65e4a9bdd5e4d1ddb68fff97621c5b2f5e932290c6097a8
|
data/Rakefile
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
require 'bundler/setup'
|
2
2
|
require 'bundler/gem_tasks'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
task default: :appraisal
|
8
|
-
else
|
4
|
+
default_task = :spec
|
5
|
+
|
6
|
+
if ENV['APPRAISAL_INITIALIZED']
|
9
7
|
require 'rspec/core/rake_task'
|
10
8
|
RSpec::Core::RakeTask.new
|
11
|
-
|
9
|
+
else
|
10
|
+
require 'appraisal/task'
|
11
|
+
Appraisal::Task.new
|
12
|
+
default_task = :appraisal
|
12
13
|
end
|
14
|
+
|
15
|
+
task default: default_task
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module InformantRails
|
2
2
|
module Config
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
class << self
|
4
|
+
delegate :api_token, :api_token=,
|
5
|
+
:collector_host,
|
6
|
+
:enabled?,
|
7
|
+
:exclude_models, :exclude_models=,
|
8
|
+
:filter_parameters, :filter_parameters=,
|
9
|
+
:value_tracking?, :value_tracking=,
|
10
|
+
to: InformantCommon::Config
|
11
|
+
end
|
12
12
|
end
|
13
13
|
end
|
@@ -27,7 +27,8 @@ module InformantRails
|
|
27
27
|
|
28
28
|
def missing_api_token_message
|
29
29
|
%<
|
30
|
-
Your API token could not be found in the configuration.
|
30
|
+
Your API token could not be found in the configuration.
|
31
|
+
You can retrieve it from your Informantapp.com dashboard.
|
31
32
|
|
32
33
|
Then add it to your server's environment as `INFORMANT_API_KEY`
|
33
34
|
|
@@ -47,7 +48,7 @@ module InformantRails
|
|
47
48
|
end
|
48
49
|
|
49
50
|
def assistance_message
|
50
|
-
"If you need assistance or have any questions, send an email to support@informantapp.com
|
51
|
+
"If you need assistance or have any questions, send an email to support@informantapp.com and we'll help you out!"
|
51
52
|
end
|
52
53
|
|
53
54
|
def test_form_submission
|
@@ -1,33 +1,31 @@
|
|
1
1
|
module InformantRails
|
2
2
|
class Railtie < ::Rails::Railtie
|
3
3
|
initializer 'informant' do |config|
|
4
|
-
|
5
|
-
|
6
|
-
InformantCommon::
|
7
|
-
|
8
|
-
|
9
|
-
framework_version: "rails-#{Rails.version}"
|
10
|
-
)
|
4
|
+
if Config.enabled?
|
5
|
+
InformantCommon::Client.transmit(
|
6
|
+
InformantCommon::Event::AgentInfo.new(
|
7
|
+
agent_identifier: "informant-rails-#{InformantRails::VERSION}",
|
8
|
+
framework_version: "rails-#{Rails.version}"
|
11
9
|
)
|
12
|
-
|
10
|
+
)
|
11
|
+
InformantRails::Config.filter_parameters = Rails.configuration.filter_parameters
|
13
12
|
|
14
|
-
|
13
|
+
config.middleware.use InformantRails::Middleware
|
15
14
|
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
ActiveSupport.on_load(:action_controller) do
|
16
|
+
include InformantRails::RequestTracking
|
17
|
+
end
|
19
18
|
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
ActiveSupport.on_load(:active_record) do
|
20
|
+
include InformantRails::ValidationTracking
|
21
|
+
end
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
end
|
23
|
+
ActiveSupport.on_load(:mongoid) do
|
24
|
+
include InformantRails::ValidationTracking
|
27
25
|
end
|
28
|
-
rescue StandardError => e
|
29
|
-
puts "Unable to bootstrap informant: #{e.message}"
|
30
26
|
end
|
27
|
+
rescue StandardError => e
|
28
|
+
puts "Unable to bootstrap informant: #{e.message}"
|
31
29
|
end
|
32
30
|
end
|
33
31
|
end
|
data/lib/tasks/diagnostic.rake
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: informant-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Informant, LLC
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: informant-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 5.2.0
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
36
|
+
version: 8.0.0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 5.2.0
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 8.0.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: appraisal
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,8 +81,9 @@ files:
|
|
81
81
|
homepage: https://www.informantapp.com
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
|
-
metadata:
|
85
|
-
|
84
|
+
metadata:
|
85
|
+
rubygems_mfa_required: 'true'
|
86
|
+
post_install_message:
|
86
87
|
rdoc_options: []
|
87
88
|
require_paths:
|
88
89
|
- lib
|
@@ -90,15 +91,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
91
|
requirements:
|
91
92
|
- - ">="
|
92
93
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
94
|
+
version: 2.7.0
|
94
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
96
|
requirements:
|
96
97
|
- - ">="
|
97
98
|
- !ruby/object:Gem::Version
|
98
99
|
version: '0'
|
99
100
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
101
|
-
signing_key:
|
101
|
+
rubygems_version: 3.2.32
|
102
|
+
signing_key:
|
102
103
|
specification_version: 4
|
103
104
|
summary: The Informant tracks server-side validation errors and gives you metrics
|
104
105
|
you never dreamed of.
|