dis 1.1.14 → 1.1.15

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: 2acf4657d4efb07fc8714d7df10b8372b0dce72cb1fdd13eb8ffad8ae3630c2d
4
- data.tar.gz: e1e9a23d9bcffe0eb4b86b68ba2bb64bcfebea8928e63c9931b4c8fd04821fdd
3
+ metadata.gz: 01be14250b0e693d08af2c904da29c44285336a51badd8d546cacb8174f6825e
4
+ data.tar.gz: 515b5ec19664cbbe29fd33881a9ba64b13f1c9f874d580d3eb4d40c00b24f714
5
5
  SHA512:
6
- metadata.gz: 051320c551ca05a009cd5df56d0df3856de3d0fb0497ac1dde7fbe953626fa08afbab758058650aad2dc5906eb76dbf687dace3b09ae3f0d188a713b97aa02c1
7
- data.tar.gz: da3caea0e3361535924141054e3b64787232e30ac06306c38a786960ea30c52202b645c5088eecfed31c8bd542724fd60235ac1039181f6d97e0b6f6f1dc19a8
6
+ metadata.gz: 65d8d59a4016559b04f1c6a68d73effbb41fa6ce945cf6ef7dfee44cfc27f61892f978408dc5a96b9f429386bd642b5a5fc7d87cb82e0179f891bf69711247e3
7
+ data.tar.gz: 9d4e5092d6a2e2025fc93c5fe459732eecb6e920813c1e4d846a5c3451942dab28b948691e21e6c09d5d6561828e618e1742ac474a5a4f93f1bb5c665aaeb646
data/lib/dis/layer.rb CHANGED
@@ -108,10 +108,7 @@ module Dis
108
108
  def existing(type, keys)
109
109
  return [] if keys.empty?
110
110
 
111
- list = []
112
- directory(type, keys.first).files.each do |file|
113
- list << file.key
114
- end
111
+ list = directory(type, keys.first).files.map(&:key)
115
112
 
116
113
  keys.select { |key| list.include?(key_component(type, key)) }
117
114
  end
data/lib/dis/logging.rb CHANGED
@@ -4,7 +4,7 @@ module Dis
4
4
  module Logging
5
5
  def debug_log(message, &block)
6
6
  result = nil
7
- duration = Benchmark.ms { result = block.call }
7
+ duration = Benchmark.realtime { result = block.call } * 1000
8
8
  logger.debug(format("[Dis] %<message>s (%<duration>.1fms)",
9
9
  message:,
10
10
  duration:))
data/lib/dis/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dis
4
- VERSION = "1.1.14"
4
+ VERSION = "1.1.15"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.14
4
+ version: 1.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inge Jørgensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-16 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -109,14 +109,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: 3.1.0
112
+ version: 3.2.0
113
113
  required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.5.3
119
+ rubygems_version: 3.5.17
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: A file store for your Rails app