informant-rails 2.2.0 → 2.3.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/railtie.rb +18 -20
- data/lib/informant-rails/version.rb +1 -1
- data/lib/tasks/diagnostic.rake +1 -1
- metadata +11 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 854e3ae4ab00261622e7c1a2f6fbd95e9ecc89057d1e3027fd6d8ae9187f7591
|
|
4
|
+
data.tar.gz: 5ac12d8002cc25e135c7f6f0d29e2553dade24b21b6fd1cab6511517cb0d8641
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 811722c69c8a0855460077e19d07a3bfe2a42738115e127e98b556255d83aa69c099d75d51b904e5224aa06a3a441dde71372f49bd14143d20057717c7c35015
|
|
7
|
+
data.tar.gz: 923c1ee5338b25d9c97bfd84f368c6ce3efe5719c57973b324a73f2ba631c949a5795a37cf5b60f3a62c0606918c4f835d45298b9cb37bce4c100b287709f0f8
|
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,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.3.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: 2021-12-09 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
|
|
@@ -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.6.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.
|