flexirest 1.10.5 → 1.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/flexirest/logger.rb +4 -4
- data/lib/flexirest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb22808a993f64bfac3dd7e8927b0f9a0847800666962b0182a1e9161cf776fe
|
4
|
+
data.tar.gz: ad93e71fdfbb91fc68fc3b7939b7b023399672560e14e976eadb7e1db38bf995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d82ab1f62bdd4b55a08d0c49584fc251842773ca5a8d986dd980116498a021ff6287092ea83eee429ad1f04dab719cd8b40116b21e432c4ca32d0ffd056549e
|
7
|
+
data.tar.gz: 925fbd8da65f0dda69db4629d7fec401944d2846669b272045342a2384671bb45b55aa98905c17328631862b6953ac7ad5675c76980b7896c2a5916c968c365c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.10.6
|
4
|
+
|
5
|
+
Bugfix:
|
6
|
+
|
7
|
+
- Flexirest was erroring if Rails.logger was defined but was nil (thanks to Alex Oxte for the PR)
|
8
|
+
|
9
|
+
## 1.10.5
|
10
|
+
|
11
|
+
Enhancement:
|
12
|
+
|
13
|
+
- Allow skipping of caching for single endpoints
|
14
|
+
|
3
15
|
## 1.10.4
|
4
16
|
|
5
17
|
Enhancement:
|
data/lib/flexirest/logger.rb
CHANGED
@@ -17,7 +17,7 @@ module Flexirest
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.debug(message)
|
20
|
-
if defined?(Rails) && Rails.
|
20
|
+
if defined?(Rails) && Rails.logger.present?
|
21
21
|
Rails.logger.debug(message)
|
22
22
|
elsif @logfile
|
23
23
|
if @logfile.is_a?(String)
|
@@ -33,7 +33,7 @@ module Flexirest
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.info(message)
|
36
|
-
if defined?(Rails) && Rails.
|
36
|
+
if defined?(Rails) && Rails.logger.present?
|
37
37
|
Rails.logger.info(message)
|
38
38
|
elsif @logfile
|
39
39
|
if @logfile.is_a?(String)
|
@@ -49,7 +49,7 @@ module Flexirest
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def self.warn(message)
|
52
|
-
if defined?(Rails) && Rails.
|
52
|
+
if defined?(Rails) && Rails.logger.present?
|
53
53
|
Rails.logger.warn(message)
|
54
54
|
elsif @logfile
|
55
55
|
if @logfile.is_a?(String)
|
@@ -65,7 +65,7 @@ module Flexirest
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def self.error(message)
|
68
|
-
if defined?(Rails) && Rails.
|
68
|
+
if defined?(Rails) && Rails.logger.present?
|
69
69
|
Rails.logger.error(message)
|
70
70
|
elsif @logfile
|
71
71
|
if @logfile.is_a?(String)
|
data/lib/flexirest/version.rb
CHANGED
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.10.
|
4
|
+
version: 1.10.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|