flexirest 1.11.3 → 1.12.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: abc3590ed1c31e53df7d8be038fad0a01f66d4d50dd3effbb17f0ed41256e6fa
4
- data.tar.gz: 6049f2be6ecb5c921b4c0d10c1e4e3533dc50adaf98d153bae690e1d01413ecb
3
+ metadata.gz: 530331988751770dc906ba6b17ffafa88cc5213f8c99a67fb8e6335af2152082
4
+ data.tar.gz: a55ce84b1ac4e3b1e17df27abefd3e2d9c7250a22e4368c5806a318a29ac72cd
5
5
  SHA512:
6
- metadata.gz: 469d6426f9de8945cc94af7c26e06a88e6b7b570e3c0b72487dd4d940518d54eba224ed522efe8abc12f822d80350b89658ac0cc4d7b7fcdc64c581075f44644
7
- data.tar.gz: d6d241da12c0049113e692693a4d98b7cbaa45f7ad06f5733a21eb7c516507e6ae9d513620feca19372f8039a2a9c3019bfb98005b8670a1920a860a363a181d
6
+ metadata.gz: ef1ac1a698388648711b665eccbb43f0f52d751a75abe156221081f84198cdd3c426d6643db563f9bd57af9813c3ede8049114f1859603572105bec20357bfff
7
+ data.tar.gz: 7f0ef624a7a958b33fcecd69f0d397e480ab98ffef1cbe3029cf87d2c290d02cb8be4b9f4c97903b6b495564dcb94607b64991ac530ec68851b13e7c474158b6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.12.0
4
+
5
+ Bugfix:
6
+
7
+ - Add compatibility with Ruby on Rails 7.1 (requires a method on the logger)
8
+
3
9
  ## 1.11.3
4
10
 
5
11
  Bugfix:
@@ -16,6 +16,14 @@ module Flexirest
16
16
  @messages = []
17
17
  end
18
18
 
19
+ def self.level
20
+ if defined?(Rails) && Rails.logger.present?
21
+ Rails.logger.level
22
+ else
23
+ 0
24
+ end
25
+ end
26
+
19
27
  def self.debug(message)
20
28
  if defined?(Rails) && Rails.logger.present?
21
29
  Rails.logger.debug(message)
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.11.3"
2
+ VERSION = "1.12.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexirest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.3
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-14 00:00:00.000000000 Z
11
+ date: 2023-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler