notable 0.4.1 → 0.5.1

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: 714094d0059bb07c9e66ab382626795bc81b1e8cdd695f7354198531bab9caa9
4
- data.tar.gz: bc36e2654ebd17188b2fb913d3f745ebf40487a57f1e0e82b3ca6a041d4d9975
3
+ metadata.gz: b354f7fdb60d03d6441cbdffb6c2f3e55fc188e044f1d40501e7c4815eabcede
4
+ data.tar.gz: aff95f576ea2e934ef77b13a938472caba1a85ad249a60b01fb7d87ce8f9a300
5
5
  SHA512:
6
- metadata.gz: 1590cf5d58fcb9d9bf8021081392b089390218ae3fc525a44f4404dad41302c12c54117aeee658386855321458e17360f12b5ef98bb263e401ee106a95820341
7
- data.tar.gz: d128c411ed50df17b835d6dcddad2d9dcf3bc0c7094756586709316f604ba0a63cbb5ca00d79f192285895d854f9f8a3c2d4ec3adcf14699cc016b097fa44923
6
+ metadata.gz: bd23b6c24095afb0ca2c3aab01fae31c16ceda3f95356a5341057a39d3fd00a60082a800fe1148a964bc6921a1cd70218326660413de1867df742656521cb53f
7
+ data.tar.gz: c957860c28031e238044d168f3c6089bc04e6e3b4ed339a50369823f3a715e6980f988b55b3ea45ef1c1b03cef5e71d25ebc4e19617b0390b6778490ec0928b6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.5.1 (2023-09-05)
2
+
3
+ - Fixed deprecation warning with Rails 7.1
4
+
5
+ ## 0.5.0 (2023-07-02)
6
+
7
+ - Dropped support for Ruby < 3 and Rails < 6.1
8
+
1
9
  ## 0.4.1 (2022-09-26)
2
10
 
3
11
  - Switched to monotonic time
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2022 Andrew Kane
1
+ Copyright (c) 2014-2023 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
@@ -3,6 +3,10 @@ module Notable
3
3
  self.table_name = "notable_requests"
4
4
 
5
5
  belongs_to :user, polymorphic: true, optional: true
6
- serialize :params, JSON
6
+ if ActiveRecord::VERSION::STRING.to_f >= 7.1
7
+ serialize :params, coder: JSON
8
+ else
9
+ serialize :params, JSON
10
+ end
7
11
  end
8
12
  end
@@ -1,6 +1,6 @@
1
1
  module Notable
2
2
  module DebugExceptions
3
- def render_exception(env, exception)
3
+ def render_exception(env, exception, *)
4
4
  env["action_dispatch.exception"] = exception
5
5
  super
6
6
  end
@@ -1,3 +1,3 @@
1
1
  module Notable
2
- VERSION = "0.4.1"
2
+ VERSION = "0.5.1"
3
3
  end
data/lib/notable.rb CHANGED
@@ -3,13 +3,13 @@ require "active_support"
3
3
  require "safely/core"
4
4
 
5
5
  # modules
6
- require "notable/debug_exceptions"
7
- require "notable/middleware"
8
- require "notable/throttle"
9
- require "notable/unpermitted_parameters"
10
- require "notable/version"
6
+ require_relative "notable/debug_exceptions"
7
+ require_relative "notable/middleware"
8
+ require_relative "notable/throttle"
9
+ require_relative "notable/unpermitted_parameters"
10
+ require_relative "notable/version"
11
11
 
12
- require "notable/engine" if defined?(Rails)
12
+ require_relative "notable/engine" if defined?(Rails)
13
13
 
14
14
  module Notable
15
15
  class << self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-27 00:00:00.000000000 Z
11
+ date: 2023-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '6.1'
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: '5.2'
26
+ version: '6.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: safely_block
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.1
33
+ version: '0.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.1
40
+ version: '0.4'
41
41
  description:
42
42
  email: andrew@ankane.org
43
43
  executables: []
@@ -75,14 +75,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
- version: '2.6'
78
+ version: '3'
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.3.7
85
+ rubygems_version: 3.4.10
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Track notable requests and background jobs