notable 0.5.0 → 0.5.2

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: 6901159f15d1920eaf07ff40c239d4b05d75bb469c55ddebc67874703e362efe
4
- data.tar.gz: 5092cf2e632b615faaae6a1027104597ab4a434102374f9fc7a0eff7c5246b46
3
+ metadata.gz: 8b31d4143d14d64607e2def24347627f2fd28d9b5b3870fb676d675c6c2960ba
4
+ data.tar.gz: 7a00b522829922dbf5fe67790a3f34876bf4f72872e371aa85eb1c0f54d183c9
5
5
  SHA512:
6
- metadata.gz: fc4b419c11fc0dae0cac44c8ba581cff4df203cb4be3b462876e46b315139b3f2e71737ef69e2c28c07ed05ce3840aab6602ada5739bb51a0e5b2d5dc5abfbd4
7
- data.tar.gz: c0ce85fa70b1930db449a3570f29c2e41adf13db86c5a2ade506978294de6daf82e4231ea7ce1fbe226b82cbcac63c87db4aaeb9748b114796b34610650913f5
6
+ metadata.gz: a81365335fd37a237c60e3da09ce271d5758c32a28a033d4424d65dc7e540d8dae170f692900b495f5a8de0a82372abe10c6faf642dbfe387017708f30aa6914
7
+ data.tar.gz: cbcd5b896609b8d54c25c1aa6c05e61672c0f49b46e3c9152acb9d3c40e923900d4e04244b71b22155cf661a6b277baf594948ff679ec14eea8e983bda468ef9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.5.2 (2023-12-26)
2
+
3
+ - Fixed deprecation warning with Rack 3
4
+
5
+ ## 0.5.1 (2023-09-05)
6
+
7
+ - Fixed deprecation warning with Rails 7.1
8
+
1
9
  ## 0.5.0 (2023-07-02)
2
10
 
3
11
  - Dropped support for Ruby < 3 and Rails < 6.1
@@ -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,7 +1,7 @@
1
1
  module Notable
2
2
  module DebugExceptions
3
- def render_exception(env, exception)
4
- env["action_dispatch.exception"] = exception
3
+ def render_exception(request, exception, *)
4
+ request.env["action_dispatch.exception"] = exception
5
5
  super
6
6
  end
7
7
  end
@@ -6,6 +6,7 @@ module Notable
6
6
  if Notable.requests_enabled?
7
7
  # insert in same place as request_store
8
8
  app.config.middleware.insert_after ActionDispatch::RequestId, Notable::Middleware
9
+ # TODO switch to register_interceptor in 0.6.0
9
10
  ActionDispatch::DebugExceptions.prepend Notable::DebugExceptions
10
11
  end
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module Notable
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.2"
3
3
  end
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.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-02 00:00:00.000000000 Z
11
+ date: 2023-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.4.10
85
+ rubygems_version: 3.5.3
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Track notable requests and background jobs