spec_views 3.1.0 → 3.1.1

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: af819d4fc2aa2487c81eb455030288533b00153f6fde05a5152211734c1625c1
4
- data.tar.gz: c3b653db474cd69198cf0ccdd9be78a9c224be98a8802bcb0d4941553081e20c
3
+ metadata.gz: 00b69d40e64b416f54b3de9c6e90c5d1c2b49b0cd7efca85ec2a85f9d3fa958d
4
+ data.tar.gz: 0f3bdab8bb94b46529cd1162e9c2639615da142e6ee12d36bda980fbbcc28979
5
5
  SHA512:
6
- metadata.gz: d5e1a78b8fe0cea35ab90985f35eeb512e12c262171a3279c1aead04f754aef40c29adf9e236d58d844a59f36f05fd8fea1f4ec16c6809b97e7f051dc15e978b
7
- data.tar.gz: 296860d1ef38ce4136d7a5a61229aa5ece286c9aeaef409d0688eaf801e7e631fe0019bfd91370ebf077a029ecf2d63564d32a08e871ff17f837b2eb5560cb92
6
+ metadata.gz: '0218edcb9bec767064a6d6eff1a261374884b8ce492788018cfee281f32aa0cb480863bb1960f064c2f734bff6af9a31d9dcdaeb08fc6c2dddb277d552ee1289'
7
+ data.tar.gz: cf6f9f5f1603a4bda7c8193061dd8322f4721726b0de5e3d758c0cfe02ab4e74fc1729093df1c188f80a9788a77e4b47cdcc8860a6d2dbfb94bba694c5dc6077
@@ -98,9 +98,9 @@ module SpecViews
98
98
 
99
99
  def content_type
100
100
  @content_type ||= begin
101
- ActiveSupport::StringInquirer.new(meta[3])
102
- rescue Errno::ENOENT
103
- :response
101
+ ct = 'html'
102
+ ct = meta[3] if meta && meta[3].present?
103
+ ActiveSupport::StringInquirer.new(ct)
104
104
  end
105
105
  end
106
106
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SpecViews
4
- VERSION = '3.1.0'
4
+ VERSION = '3.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec_views
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Gaul
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-08 00:00:00.000000000 Z
11
+ date: 2022-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails