informant-rails 2.2.0 → 2.3.0

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: 69200fabf6b1767d2cb6a26d3a9c46e7c3c8fdb1d3d08a3ad9b63a919a0bc8c8
4
- data.tar.gz: dbd81e0ed5e7c86ea0afa48a7bd0587d55b2f647ec896a09534e6571a25eee70
3
+ metadata.gz: 854e3ae4ab00261622e7c1a2f6fbd95e9ecc89057d1e3027fd6d8ae9187f7591
4
+ data.tar.gz: 5ac12d8002cc25e135c7f6f0d29e2553dade24b21b6fd1cab6511517cb0d8641
5
5
  SHA512:
6
- metadata.gz: c9220c0cfc3ddb9d4a5845851b31b50d2d6d6b53963ae9cb2b657c15fd179cb67a506c0e9a4b8ac77fb209e5c7945ecac06e930df40af7aeb714a0a018226bf9
7
- data.tar.gz: 2746d2d97cae5c6fc47b67fe223e9bf097d08f72de1c1ac06cfa3bd14bcb0773be649b3d63b2eb061619d8a19ade22c1348c32be7c3f0626cbebb0320eab75b9
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
- if !ENV['APPRAISAL_INITIALIZED']
5
- require 'appraisal/task'
6
- Appraisal::Task.new
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
- task default: :spec
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
- begin
5
- if Config.enabled?
6
- InformantCommon::Client.transmit(
7
- InformantCommon::Event::AgentInfo.new(
8
- agent_identifier: "informant-rails-#{InformantRails::VERSION}",
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
- InformantRails::Config.filter_parameters = Rails.configuration.filter_parameters
10
+ )
11
+ InformantRails::Config.filter_parameters = Rails.configuration.filter_parameters
13
12
 
14
- config.middleware.use InformantRails::Middleware
13
+ config.middleware.use InformantRails::Middleware
15
14
 
16
- ActiveSupport.on_load(:action_controller) do
17
- include InformantRails::RequestTracking
18
- end
15
+ ActiveSupport.on_load(:action_controller) do
16
+ include InformantRails::RequestTracking
17
+ end
19
18
 
20
- ActiveSupport.on_load(:active_record) do
21
- include InformantRails::ValidationTracking
22
- end
19
+ ActiveSupport.on_load(:active_record) do
20
+ include InformantRails::ValidationTracking
21
+ end
23
22
 
24
- ActiveSupport.on_load(:mongoid) do
25
- include InformantRails::ValidationTracking
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
@@ -1,3 +1,3 @@
1
1
  module InformantRails
2
- VERSION = '2.2.0'.freeze
2
+ VERSION = '2.3.0'.freeze
3
3
  end
@@ -1,7 +1,7 @@
1
1
  namespace :informant do
2
2
  desc 'Verify connectivity from your app to Informant'
3
3
  task diagnostic: :environment do
4
- Rails.logger = Logger.new(STDOUT)
4
+ Rails.logger = Logger.new($stdout)
5
5
  InformantRails::Diagnostic.run
6
6
  end
7
7
  end
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.2.0
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: 2020-05-31 00:00:00.000000000 Z
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.1.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.1.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
- post_install_message:
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: '0'
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.0.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.