informant-rails 2.2.0 → 2.5.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: 70381549211b7ab14a2cbbafded3a2614811de7b0590ecabddb3e3e134afa0c5
4
+ data.tar.gz: e7c2012e517f9ec968b6a92d6ce116a046a23b26740475226f530af32f406097
5
5
  SHA512:
6
- metadata.gz: c9220c0cfc3ddb9d4a5845851b31b50d2d6d6b53963ae9cb2b657c15fd179cb67a506c0e9a4b8ac77fb209e5c7945ecac06e930df40af7aeb714a0a018226bf9
7
- data.tar.gz: 2746d2d97cae5c6fc47b67fe223e9bf097d08f72de1c1ac06cfa3bd14bcb0773be649b3d63b2eb061619d8a19ade22c1348c32be7c3f0626cbebb0320eab75b9
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
- 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,13 +1,13 @@
1
1
  module InformantRails
2
2
  module Config
3
- extend self
4
-
5
- delegate :api_token, :api_token=,
6
- :collector_host,
7
- :enabled?,
8
- :exclude_models, :exclude_models=,
9
- :filter_parameters, :filter_parameters=,
10
- :value_tracking?, :value_tracking=,
11
- to: InformantCommon::Config
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. You can retrieve it from your Informantapp.com dashboard.
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 or tweet @informantapp and we'll help you out!"
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
- 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.5.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.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: 2020-05-31 00:00:00.000000000 Z
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.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
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 5.2.0
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: 7.0.0
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: 7.0.0
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
- 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.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.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.