spec_views 3.1.0 → 3.2.0

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: dde0c8db1ced1e6283cd8a14a721b755a03bc1d31cb0241a085c586bb0599c2e
4
+ data.tar.gz: f69189b543569febf78eab2038da5663bbcaa177246a07f2942bdbec6ad88836
5
5
  SHA512:
6
- metadata.gz: d5e1a78b8fe0cea35ab90985f35eeb512e12c262171a3279c1aead04f754aef40c29adf9e236d58d844a59f36f05fd8fea1f4ec16c6809b97e7f051dc15e978b
7
- data.tar.gz: 296860d1ef38ce4136d7a5a61229aa5ece286c9aeaef409d0688eaf801e7e631fe0019bfd91370ebf077a029ecf2d63564d32a08e871ff17f837b2eb5560cb92
6
+ metadata.gz: 61248141337e1c7cbf2dc79797a2096fa33b7236b8b87c28a9f2aab5eefdc1e6527d9beb2ea7c6f953369c5210f24d4cc01f34aae0f45c208ab00a0fba95b9c7
7
+ data.tar.gz: 55490980cf77efbeea95ff50d2af2b39c0902b74b00f3fcc97a5a67e028433c6622459d37ac01016a9b3abe9e6a53dc68343ab6b83607f466cebef44f1277bc1
@@ -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
 
@@ -23,8 +23,9 @@ module SpecViews
23
23
  private
24
24
 
25
25
  def response_status_match?(response, expected_status)
26
+ # Use "#{response.message}" to ensure local encoding
26
27
  response.status == expected_status ||
27
- response.message.parameterize.underscore == expected_status.to_s
28
+ "#{response.message}".parameterize.underscore == expected_status.to_s
28
29
  end
29
30
  end
30
31
  end
@@ -111,7 +111,7 @@
111
111
  display: flex;
112
112
  }
113
113
 
114
- input[type=submit], .btn {
114
+ [type=submit], .btn {
115
115
  display: block;
116
116
  padding: 0.5rem 0.5rem 0.4rem;
117
117
  border: 0 solid var(--dark-bg-lighter);
@@ -125,25 +125,25 @@
125
125
  min-width: 5rem;
126
126
  text-align: center;
127
127
  }
128
- input[type=submit]:hover, .btn:hover {
128
+ [type=submit]:hover, .btn:hover {
129
129
  background: var(--dark-bg-lighter);
130
130
  }
131
- input[type=submit].accept, .btn.accept {
131
+ [type=submit].accept, .btn.accept {
132
132
  border-color: var(--accept-bg);
133
133
  color: var(--accept-text);
134
134
  }
135
- input[type=submit].reject, .btn.reject {
135
+ [type=submit].reject, .btn.reject {
136
136
  border-color: var(--reject-bg);
137
137
  color: var(--reject-text);
138
138
  }
139
- input[type=submit].btn, .btn.btn {
139
+ [type=submit].btn, .btn.btn {
140
140
  border-color: var(--highlight);
141
141
  }
142
- input[type=submit].disabled, .btn.disabled {
142
+ [type=submit].disabled, .btn.disabled {
143
143
  opacity: 0.5;
144
144
  cursor: default;
145
145
  }
146
- input[type=submit].disabled:hover, .btn.disabled:hover {
146
+ [type=submit].disabled:hover, .btn.disabled:hover {
147
147
  background: var(--dark-bg-light);
148
148
  }
149
149
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SpecViews
4
- VERSION = '3.1.0'
4
+ VERSION = '3.2.0'
5
5
  end
metadata CHANGED
@@ -1,43 +1,55 @@
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.2.0
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-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '8.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '5.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '8.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rspec-rails
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - "~>"
37
+ - - ">="
32
38
  - !ruby/object:Gem::Version
33
39
  version: '5.0'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '7.0'
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
- - - "~>"
47
+ - - ">="
39
48
  - !ruby/object:Gem::Version
40
49
  version: '5.0'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '7.0'
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: timecop
43
55
  requirement: !ruby/object:Gem::Requirement