spec_views 3.1.1 → 3.2.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: 00b69d40e64b416f54b3de9c6e90c5d1c2b49b0cd7efca85ec2a85f9d3fa958d
4
- data.tar.gz: 0f3bdab8bb94b46529cd1162e9c2639615da142e6ee12d36bda980fbbcc28979
3
+ metadata.gz: 54310e0011e60f8a5484b9a8450101e0ae7ba804ccc2194f719cbf974b9eb500
4
+ data.tar.gz: 6451285b6a799ce30614e9c36d16e3bc633a8bdebdb5938a94549dad906378ea
5
5
  SHA512:
6
- metadata.gz: '0218edcb9bec767064a6d6eff1a261374884b8ce492788018cfee281f32aa0cb480863bb1960f064c2f734bff6af9a31d9dcdaeb08fc6c2dddb277d552ee1289'
7
- data.tar.gz: cf6f9f5f1603a4bda7c8193061dd8322f4721726b0de5e3d758c0cfe02ab4e74fc1729093df1c188f80a9788a77e4b47cdcc8860a6d2dbfb94bba694c5dc6077
6
+ metadata.gz: 98f12c25bc8cde3f8f6a9aa21a3712b764dc55531299e4e7b883cb71593a19457922f8d84b30852a097bf22687fd1da1aaf9da0dcf1bf0b86b8073fa72e94350
7
+ data.tar.gz: e513e67cbed82c90b6acfab920ef547b17a7f7da92409f801f5658d2b0dd283fc66c5e3d708f32a7f783c77f9909b1027e7afcb0cee8cce274b4ad07dafcd066
@@ -83,8 +83,9 @@ module SpecViews
83
83
 
84
84
  def directories
85
85
  @directories ||= Pathname.new(directory_path).children.select(&:directory?).map do |path|
86
+ next unless File.file?("#{path}/meta.txt")
86
87
  SpecViews::Directory.new(path)
87
- end
88
+ end.compact
88
89
  latest_run = @directories.map(&:last_run).max
89
90
 
90
91
  @directories.sort_by! do |dir|
@@ -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.1'
4
+ VERSION = '3.2.1'
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.1
4
+ version: 3.2.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-10-10 00:00:00.000000000 Z
11
+ date: 2023-01-20 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