notable 0.5.2 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b31d4143d14d64607e2def24347627f2fd28d9b5b3870fb676d675c6c2960ba
4
- data.tar.gz: 7a00b522829922dbf5fe67790a3f34876bf4f72872e371aa85eb1c0f54d183c9
3
+ metadata.gz: 91975df22291af40ac05c843a010f31596265d0d079b425bdd3c67e6a39cfc33
4
+ data.tar.gz: 6545cf681ab0754e5ca2c53dca09f604dc4a8ea83fa54a2fe0e0ae7386814d08
5
5
  SHA512:
6
- metadata.gz: a81365335fd37a237c60e3da09ce271d5758c32a28a033d4424d65dc7e540d8dae170f692900b495f5a8de0a82372abe10c6faf642dbfe387017708f30aa6914
7
- data.tar.gz: cbcd5b896609b8d54c25c1aa6c05e61672c0f49b46e3c9152acb9d3c40e923900d4e04244b71b22155cf661a6b277baf594948ff679ec14eea8e983bda468ef9
6
+ metadata.gz: be3f75a95fba1891c522b206f6810565930b963393fec88326ff4b9dde63ec338be9fd45a8ff2b697781f2b1d4270a9619476b5266fe2f60bc6232d8c19bd8ee
7
+ data.tar.gz: eb6f5b4dc56aa25df22a5fa628fb689f2fe78244826ad542deb85694ff4927438abfd475d6fd3ba4187ce3fc00d5e7aa4b8d81d7d4446d5e6e35c15abc150224
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.6.0 (2025-04-03)
2
+
3
+ - Dropped support for Ruby < 3.2 and Rails < 7.1
4
+
1
5
  ## 0.5.2 (2023-12-26)
2
6
 
3
7
  - Fixed deprecation warning with Rack 3
@@ -56,4 +60,16 @@
56
60
 
57
61
  ## 0.1.0 (2016-02-20)
58
62
 
59
- - Launched
63
+ - Switched to `Module#prepend`
64
+
65
+ ## 0.0.3 (2015-03-15)
66
+
67
+ - Added `track_error` method
68
+
69
+ ## 0.0.2 (2014-12-22)
70
+
71
+ - Fixed method name
72
+
73
+ ## 0.0.1 (2014-12-22)
74
+
75
+ - First release
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2023 Andrew Kane
1
+ Copyright (c) 2014-2025 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -19,7 +19,7 @@ You can track custom notes as well.
19
19
 
20
20
  :tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource)
21
21
 
22
- [![Build Status](https://github.com/ankane/notable/workflows/build/badge.svg?branch=master)](https://github.com/ankane/notable/actions)
22
+ [![Build Status](https://github.com/ankane/notable/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/notable/actions)
23
23
 
24
24
  ## Installation
25
25
 
@@ -3,10 +3,6 @@ module Notable
3
3
  self.table_name = "notable_requests"
4
4
 
5
5
  belongs_to :user, polymorphic: true, optional: true
6
- if ActiveRecord::VERSION::STRING.to_f >= 7.1
7
- serialize :params, coder: JSON
8
- else
9
- serialize :params, JSON
10
- end
6
+ serialize :params, coder: JSON
11
7
  end
12
8
  end
@@ -1,3 +1,3 @@
1
1
  module Notable
2
- VERSION = "0.5.2"
2
+ VERSION = "0.6.0"
3
3
  end
data/lib/notable.rb CHANGED
@@ -41,12 +41,12 @@ module Notable
41
41
  end
42
42
 
43
43
  # requests
44
- self.track_request_method = -> (data, _) { Notable::Request.create!(data) }
45
- self.user_method = -> (env) { env["warden"].user if env["warden"] }
44
+ self.track_request_method = ->(data, _) { Notable::Request.create!(data) }
45
+ self.user_method = ->(env) { env["warden"].user if env["warden"] }
46
46
  self.slow_request_threshold = 5
47
47
 
48
48
  # jobs
49
- self.track_job_method = -> (data) { Notable::Job.create!(data) }
49
+ self.track_job_method = ->(data) { Notable::Job.create!(data) }
50
50
  self.slow_job_threshold = 60
51
51
 
52
52
  def self.track(note_type, note = nil)
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-12-26 00:00:00.000000000 Z
10
+ date: 2025-04-03 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '6.1'
18
+ version: '7.1'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '6.1'
25
+ version: '7.1'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: safely_block
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -38,7 +37,6 @@ dependencies:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
39
  version: '0.4'
41
- description:
42
40
  email: andrew@ankane.org
43
41
  executables: []
44
42
  extensions: []
@@ -67,7 +65,6 @@ homepage: https://github.com/ankane/notable
67
65
  licenses:
68
66
  - MIT
69
67
  metadata: {}
70
- post_install_message:
71
68
  rdoc_options: []
72
69
  require_paths:
73
70
  - lib
@@ -75,15 +72,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
72
  requirements:
76
73
  - - ">="
77
74
  - !ruby/object:Gem::Version
78
- version: '3'
75
+ version: '3.2'
79
76
  required_rubygems_version: !ruby/object:Gem::Requirement
80
77
  requirements:
81
78
  - - ">="
82
79
  - !ruby/object:Gem::Version
83
80
  version: '0'
84
81
  requirements: []
85
- rubygems_version: 3.5.3
86
- signing_key:
82
+ rubygems_version: 3.6.2
87
83
  specification_version: 4
88
84
  summary: Track notable requests and background jobs
89
85
  test_files: []