esi-utils-bvv 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +10 -0
- data/lib/esi-utils-bvv/esiclient.rb +10 -0
- data/lib/esi-utils-bvv/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc1f30f3f18a1ef4779432254a5998fb1ed12245
|
4
|
+
data.tar.gz: bd5547eca41c9fe1887b451b5195111f545d30a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff29e488af4e39f7af14ecac58f2baf139e5a0dd1d92155334ece7a446dce195ea7a6ad45b21cdea2a4cf047bf284d33b3a2d26e6b2012b1429d79547ff27c85
|
7
|
+
data.tar.gz: 68c74ce9494e5eea2676b9123d67d6e8899976603e401400ae21d892dc20fcbbc8134b31db47472a03e8c1c81c22a205e2cc0ff2690ac34d281eb45d1e8aa989
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,3 +2,13 @@
|
|
2
2
|
|
3
3
|
This project is the Ruby gem `esi-utils-bvv`, containing
|
4
4
|
ESI utility classes for use with the `esi-client-bvv` gem.
|
5
|
+
|
6
|
+
## Release Process
|
7
|
+
|
8
|
+
Here is a reminder for how to release this gem:
|
9
|
+
|
10
|
+
* Change the version string in `lib/esi-utils-bvv/version.rb`.
|
11
|
+
* `bundle exec rake build`
|
12
|
+
* Commit the version file, the `Gemfile.lock` and anything else that
|
13
|
+
is outstanding.
|
14
|
+
* `bundle exec rake release`
|
@@ -23,13 +23,23 @@ module ESIUtils
|
|
23
23
|
@config.logger
|
24
24
|
end
|
25
25
|
|
26
|
+
#
|
27
|
+
# Log deprecation warnings, as they indicate that we need to upgrade
|
28
|
+
# to a new version of the route.
|
29
|
+
#
|
26
30
|
def log_warning_header(path, headers)
|
27
31
|
return unless (warning = headers['Warning'])
|
32
|
+
|
33
|
+
# Don't warn just because a new route is available.
|
34
|
+
return if warning.start_with? '199'
|
35
|
+
|
28
36
|
# Genericise the path, removing parameters
|
29
37
|
g_path = path.gsub(%r{/\d+/}, '/id/')
|
38
|
+
|
30
39
|
# Only notify about a given (genericised) path once
|
31
40
|
return if @seen_warnings.include?(g_path)
|
32
41
|
@seen_warnings.add(g_path)
|
42
|
+
|
33
43
|
logger.warn "'#{warning}' on path '#{g_path}'"
|
34
44
|
end
|
35
45
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esi-utils-bvv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bora Vyvorant
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|