ratonvirus 0.4.2 → 0.4.3

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: bf996f1b6f63fe570fb46f62c91625c0e8ad3ec073f595802d580c399c1fca27
4
- data.tar.gz: 6ad46dd7435948e0750b00cb78820f550b1edd8229923ed84e118ac09feacbde
3
+ metadata.gz: 54fcf1a6676b0edbd60fc04c6e0790b538fa795d9ec78e2e99e33292f09ba2d5
4
+ data.tar.gz: e840f5043ce9a27115f69e205bb848fa4266cfae74ecf6d9dafa7173fadb51b6
5
5
  SHA512:
6
- metadata.gz: 3eacdeb037efa1a36dc2c7c600d39cd29c52ca23abebe2f28b054046de9e73553dcb7b53b1907f2db6075df7af0cb85b9be2c869dcf3c0a8ed6dc747580caa27
7
- data.tar.gz: 47e950609423daec9177c450bcf96d7dab1273ec288ecf4becc8f881f04121207487b05271bd035c2fe8036d1f198f6a0202e2d6a5e458bcd9d2338ac21933e7
6
+ metadata.gz: 6df74f6e28b507d9ae253ba09b684fa59c777542f6fc40539d543960105f867ee73528265e59b43e869c0301492401ae84f2f001b78fcce1be08923d14e5979d
7
+ data.tar.gz: 4f783c558fecd0b8e7b62c6e78867305197f23c5dd0a7a368ceef7fbcd0806dca854e8c7af327848e57ad245be73b54a8da0a398f3d3e794ff3668edacd5d03f
@@ -24,7 +24,7 @@ module Ratonvirus
24
24
  return unless block_given?
25
25
 
26
26
  return unless asset
27
- return if asset.empty?
27
+ return if asset.respond_to?(:empty?) && asset.empty?
28
28
 
29
29
  if asset.respond_to?(:path)
30
30
  # A file asset that responds to path (e.g. default `File`
@@ -33,7 +33,6 @@ module Ratonvirus
33
33
 
34
34
  return
35
35
  end
36
-
37
36
  # Plain file path string provided as resource
38
37
  yield asset
39
38
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ratonvirus
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratonvirus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antti Hukkanen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-25 00:00:00.000000000 Z
11
+ date: 2023-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport