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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2ff48b45aac994d7fb948e398ef70d0c8883e12
4
- data.tar.gz: a0970ebce5cf62c6d200ba3a4f13c48c7aa74368
3
+ metadata.gz: fc1f30f3f18a1ef4779432254a5998fb1ed12245
4
+ data.tar.gz: bd5547eca41c9fe1887b451b5195111f545d30a0
5
5
  SHA512:
6
- metadata.gz: 8647178697939f40b9269e572e022037997b407e0f5992ba325daf3f78311ebd66c22e002f9f28f646c87d528ca217db71336be542e7791611222b2847e9dc90
7
- data.tar.gz: f49cb3780197b0823ad28f6180ea6cd89a9147cbf19a3948c2a9db19fdac9aaa4999269163efebfaa13d02d6580a203e32049d16e0f0b79e37fb02bf6cdd114a
6
+ metadata.gz: ff29e488af4e39f7af14ecac58f2baf139e5a0dd1d92155334ece7a446dce195ea7a6ad45b21cdea2a4cf047bf284d33b3a2d26e6b2012b1429d79547ff27c85
7
+ data.tar.gz: 68c74ce9494e5eea2676b9123d67d6e8899976603e401400ae21d892dc20fcbbc8134b31db47472a03e8c1c81c22a205e2cc0ff2690ac34d281eb45d1e8aa989
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- esi-utils-bvv (0.1.3)
4
+ esi-utils-bvv (0.1.4)
5
5
  esi-client-bvv (~> 1.0.4)
6
6
  ffi (>= 1.9.24)
7
7
 
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ESIUtils
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
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.3
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-12 00:00:00.000000000 Z
11
+ date: 2018-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler