ncore 3.6.1 → 3.6.2

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: 7768ca94332000d27a96d5eef72643b122d592461be7c46bcd46f0d3ac4cfa37
4
- data.tar.gz: f247238c94a6a94011df71583b7f85f2a04e30b52edf6bbf3c908b06fc5be9ba
3
+ metadata.gz: 72b21510020d16c3b3867166bd04a2a7f36a10e81e53f3fffafe6ff65dfd58c3
4
+ data.tar.gz: 0abc02e39d688fd674fd6eabfc6f57de375b92ee6e037642ec80ab3dbc43345d
5
5
  SHA512:
6
- metadata.gz: 896e527a4b7d5dc140dc9b21c51bbb1755488f505fd4815bed349a739d9de170ebb0773786f156857f6a6cd188adf2999982d519a3d9d53762b1a477dd51186f
7
- data.tar.gz: 43f131a9684c8fde7dc088724c0ed5d4ab64e7b3f7f0ed6e150eddcfadf6e97d88f6335e96108d5b341f4051ace9f8fc5dc0b88371a734deb29381a7e55d574d
6
+ metadata.gz: 7602eb0f8a31448ea87b96c7d8838e91a1380e45b098fa0a8b7e44241c9bdf6b73330338083b20bbfec1e36c76104180a2681bb89cb7ac8493d1e0d676e2b165
7
+ data.tar.gz: e8faccd4fe7495644f6f3c1abeb616f7d57b7cab32bcbf24a2a72eb7334b97de551f7ac690d28cd760b78abe22d37db362a8c47b1a80db24ef1fadffc25a471e
@@ -37,10 +37,11 @@ module NCore
37
37
 
38
38
 
39
39
  def request_cache_key(url:, headers:)
40
+ hdrs = headers.reject{|k,v| k=='X-Request-Id'}.sort
40
41
  [ 'ncore',
41
42
  url.gsub(/[^a-zA-Z0-9]+/,'-'),
42
- Digest::MD5.hexdigest(headers.sort.to_s)
43
- ].join ':'
43
+ Digest::MD5.hexdigest(hdrs.to_s)
44
+ ].join(':')
44
45
  end
45
46
 
46
47
  end
@@ -38,6 +38,7 @@ module NCore
38
38
  res = " -> %d (%.1f ms)" % [http_status, event.duration]
39
39
 
40
40
  msg = color(msg, :yellow)
41
+ # for rails≤70, must exclude :bold param entirely since a Hash is truthy
41
42
  if (200..299).include? http_status
42
43
  res = color(res, :green, bold: true)
43
44
  else
data/lib/ncore/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module NCore
2
- VERSION = '3.6.1'
2
+ VERSION = '3.6.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ncore
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1
4
+ version: 3.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Notioneer Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-01 00:00:00.000000000 Z
11
+ date: 2023-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.3.26
145
+ rubygems_version: 3.4.10
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: NCore - Gem for building REST API clients