okcomputer_html_view 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6eda0e7905725dfa1a0f80c6c8732ebac8ed951341cd3a41b59b8a5e0b5e322e
4
- data.tar.gz: ac3ed7669d1d8fd2764192a8d29ef8fad3b7f72451775f8e8f22f5a55b7e9a06
3
+ metadata.gz: a0d71c7fef932284be1f492b9423035eae63f0764b0a7c014259017e658f4398
4
+ data.tar.gz: f0c721b4ce42a41029f8d771a2192cc269cd9c52e73de81e285acd4734473406
5
5
  SHA512:
6
- metadata.gz: 9a904ec0a9c1e6a56490e349b374dd932e2fe99aae256bcb7213957061d16bcf16f6ec2f8edf58ff14a1d963ad5a21b0c5d14e33d3d38b8f5af605e81b7d6696
7
- data.tar.gz: 43f2ee3d098b62e2ffa980c39da1a6715f99524d2cec0b15eb829d4305c61818609c02dc12a0166511fe495d60ddadb5705a1ec3f70cb1d89b36bab6e9a41448
6
+ metadata.gz: '048d18df5bd227a7c01bcf294e0203704518202d998d80dd4bd4e5c7e1a27711940077f23281614cd1443f06c1038cbe52e5c9a4dca79a0fe8f2af271b77802b'
7
+ data.tar.gz: 345de5e2ddaa380b212ff070f0a4bd0e6aea50fa7f4f45ea9b8af587592bb470b97bce1e02e47f7debce9c420670166a60e79adf8d383b620612185b3889299b
@@ -1,31 +1,29 @@
1
1
  name: Ruby
2
2
 
3
- on: [push,pull_request]
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
9
+ concurrency:
10
+ group: ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
4
12
 
5
13
  jobs:
6
14
  build:
7
15
  runs-on: ubuntu-latest
8
16
  strategy:
9
17
  matrix:
10
- ruby: [ '2.6', '2.7', '3.0' ]
18
+ ruby: ["3", "4"]
11
19
  steps:
12
- - uses: actions/checkout@v2
13
- - name: Set up Ruby
14
- uses: ruby/setup-ruby@v1
15
- with:
16
- ruby-version: ${{ matrix.ruby }}
17
- - name: cache ruby deps
18
- uses: actions/cache@v1
19
- with:
20
- path: vendor/bundle
21
- key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
22
- restore-keys: |
23
- ${{ runner.os }}-gem-
24
- - name: install bundler
25
- run: gem install bundler -v 2.2.3
26
- - name: install ruby deps
27
- run: bundle install --jobs 4 --retry 3 --path vendor/bundle
28
- - name: lint
29
- run: bundle exec standardrb
30
- - name: test
31
- run: bundle exec rspec
20
+ - uses: actions/checkout@v7
21
+ - name: Set up Ruby
22
+ uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby }}
25
+ bundler-cache: true
26
+ - name: lint
27
+ run: bundle exec standardrb
28
+ - name: test
29
+ run: bundle exec rspec
data/.gitignore CHANGED
@@ -13,3 +13,4 @@
13
13
  vendor
14
14
 
15
15
  spec/dummy/log
16
+ Gemfile.lock
data/Gemfile CHANGED
@@ -7,6 +7,6 @@ gemspec
7
7
 
8
8
  gem "rails"
9
9
  gem "rake", "~> 13.0"
10
- gem "rspec", "~> 3.0"
10
+ gem "rspec", "~> 3.12"
11
11
  gem "rspec-rails"
12
12
  gem "standard"
@@ -18,3 +18,4 @@
18
18
  </tr>
19
19
  <% end %>
20
20
  </tbody>
21
+ </table>
@@ -1,39 +1,155 @@
1
1
  <style>
2
+ :root {
3
+ --ok-bg: #f5f6f8;
4
+ --ok-surface: #ffffff;
5
+ --ok-border: #e5e7eb;
6
+ --ok-text: #1f2430;
7
+ --ok-text-muted: #6b7280;
8
+ --ok-green: #15803d;
9
+ --ok-green-bg: #ecfdf3;
10
+ --ok-red: #dc2626;
11
+ --ok-red-bg: #fef2f2;
12
+ --ok-radius: 12px;
13
+ }
14
+
15
+ @media (prefers-color-scheme: dark) {
16
+ :root {
17
+ --ok-bg: #0f1115;
18
+ --ok-surface: #171a21;
19
+ --ok-border: #272b35;
20
+ --ok-text: #e5e7eb;
21
+ --ok-text-muted: #8b93a3;
22
+ --ok-green: #34d399;
23
+ --ok-green-bg: rgba(52, 211, 153, 0.12);
24
+ --ok-red: #f87171;
25
+ --ok-red-bg: rgba(248, 113, 113, 0.14);
26
+ }
27
+ }
28
+
29
+ * {
30
+ box-sizing: border-box;
31
+ }
32
+
2
33
  body {
3
- margin: 20px;
34
+ margin: 0;
35
+ padding: 40px 24px;
36
+ background: var(--ok-bg);
37
+ color: var(--ok-text);
38
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
39
+ -webkit-font-smoothing: antialiased;
4
40
  }
5
41
 
6
- .status span.faild {
7
- color: #FF5555;
42
+ h1 {
43
+ max-width: 960px;
44
+ margin: 0 auto 20px;
45
+ font-size: 22px;
46
+ font-weight: 700;
47
+ letter-spacing: -0.02em;
48
+ }
49
+
50
+ h2.status {
51
+ max-width: 960px;
52
+ margin: 0 auto 24px;
53
+ display: flex;
54
+ align-items: center;
55
+ gap: 10px;
56
+ font-size: 13px;
57
+ font-weight: 600;
58
+ letter-spacing: 0.04em;
59
+ text-transform: uppercase;
60
+ color: var(--ok-text-muted);
61
+ }
62
+
63
+ .status span.faild,
64
+ .status span.failed {
65
+ color: var(--ok-red);
66
+ background: var(--ok-red-bg);
8
67
  }
9
68
 
10
69
  .status span.passed {
11
- color: #55FF55;
70
+ color: var(--ok-green);
71
+ background: var(--ok-green-bg);
72
+ }
73
+
74
+ .status span.faild,
75
+ .status span.failed,
76
+ .status span.passed {
77
+ display: inline-flex;
78
+ align-items: center;
79
+ padding: 4px 12px;
80
+ border-radius: 999px;
81
+ font-size: 12px;
82
+ font-weight: 700;
83
+ letter-spacing: 0.04em;
12
84
  }
13
85
 
14
86
  table {
15
- border-collapse: collapse;
16
- width: 100%;
87
+ max-width: 960px;
88
+ margin: 0 auto;
89
+ width: 100%;
90
+ border-collapse: separate;
91
+ border-spacing: 0;
92
+ background: var(--ok-surface);
93
+ border: 1px solid var(--ok-border);
94
+ border-radius: var(--ok-radius);
95
+ overflow: hidden;
96
+ box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
97
+ }
98
+
99
+ th {
100
+ text-align: left;
101
+ font-size: 11px;
102
+ font-weight: 700;
103
+ letter-spacing: 0.06em;
104
+ text-transform: uppercase;
105
+ color: var(--ok-text-muted);
106
+ padding: 12px 16px;
107
+ border-bottom: 1px solid var(--ok-border);
108
+ }
109
+
110
+ td {
111
+ padding: 14px 16px;
112
+ border-bottom: 1px solid var(--ok-border);
113
+ font-size: 14px;
114
+ vertical-align: top;
115
+ }
116
+
117
+ tbody tr:last-child td {
118
+ border-bottom: none;
119
+ }
120
+
121
+ tbody tr:hover {
122
+ background: var(--ok-bg);
123
+ }
124
+
125
+ td.registrant_name {
126
+ font-weight: 600;
127
+ white-space: nowrap;
17
128
  }
18
129
 
19
- thead {
20
- background-color: #CCCCCC;
130
+ td.passfail {
131
+ font-size: 11px;
132
+ font-weight: 700;
133
+ letter-spacing: 0.06em;
134
+ white-space: nowrap;
21
135
  }
22
136
 
23
- th,td {
24
- border: solid 1px #000000;
25
- padding: 10px;
137
+ tr.failed td.passfail {
138
+ color: var(--ok-red);
26
139
  }
27
140
 
28
- tr.failed {
29
- background-color: #FFCCCC;
141
+ tr.passed td.passfail {
142
+ color: var(--ok-green);
30
143
  }
31
144
 
32
- tr.passed {
33
- background-color: #EEFFEE;
145
+ td.message {
146
+ color: var(--ok-text-muted);
34
147
  }
35
148
 
36
- td.registrant_name, td.passfail, td.time {
37
- text-align: center;
149
+ td.time {
150
+ text-align: right;
151
+ font-variant-numeric: tabular-nums;
152
+ color: var(--ok-text-muted);
153
+ white-space: nowrap;
38
154
  }
39
155
  </style>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OkcomputerHtmlView
4
- VERSION = "0.1.2"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -19,5 +19,5 @@ Gem::Specification.new do |spec|
19
19
  spec.bindir = "exe"
20
20
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
- spec.add_dependency "okcomputer", "~> 1.18.4"
22
+ spec.add_dependency "okcomputer", ">= 1.19.2"
23
23
  end
data/sample.png CHANGED
Binary file
metadata CHANGED
@@ -1,29 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okcomputer_html_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Madogiwa
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2021-10-02 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: okcomputer
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 1.18.4
18
+ version: 1.19.2
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - "~>"
23
+ - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: 1.18.4
25
+ version: 1.19.2
27
26
  description: html view for OK Computer.
28
27
  email:
29
28
  - madogiwa0124@gmail.com
@@ -37,7 +36,6 @@ files:
37
36
  - ".rspec"
38
37
  - CODE_OF_CONDUCT.md
39
38
  - Gemfile
40
- - Gemfile.lock
41
39
  - LICENSE.txt
42
40
  - README.md
43
41
  - Rakefile
@@ -58,7 +56,6 @@ licenses:
58
56
  - MIT
59
57
  metadata:
60
58
  homepage_uri: https://github.com/Madogiwa0124/okcomputer_html_view
61
- post_install_message:
62
59
  rdoc_options: []
63
60
  require_paths:
64
61
  - lib
@@ -73,8 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
70
  - !ruby/object:Gem::Version
74
71
  version: '0'
75
72
  requirements: []
76
- rubygems_version: 3.2.3
77
- signing_key:
73
+ rubygems_version: 4.0.16
78
74
  specification_version: 4
79
75
  summary: html view for OK Computer.
80
76
  test_files: []
data/Gemfile.lock DELETED
@@ -1,199 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- okcomputer_html_view (0.1.2)
5
- okcomputer (~> 1.18.4)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (6.1.4.1)
11
- actionpack (= 6.1.4.1)
12
- activesupport (= 6.1.4.1)
13
- nio4r (~> 2.0)
14
- websocket-driver (>= 0.6.1)
15
- actionmailbox (6.1.4.1)
16
- actionpack (= 6.1.4.1)
17
- activejob (= 6.1.4.1)
18
- activerecord (= 6.1.4.1)
19
- activestorage (= 6.1.4.1)
20
- activesupport (= 6.1.4.1)
21
- mail (>= 2.7.1)
22
- actionmailer (6.1.4.1)
23
- actionpack (= 6.1.4.1)
24
- actionview (= 6.1.4.1)
25
- activejob (= 6.1.4.1)
26
- activesupport (= 6.1.4.1)
27
- mail (~> 2.5, >= 2.5.4)
28
- rails-dom-testing (~> 2.0)
29
- actionpack (6.1.4.1)
30
- actionview (= 6.1.4.1)
31
- activesupport (= 6.1.4.1)
32
- rack (~> 2.0, >= 2.0.9)
33
- rack-test (>= 0.6.3)
34
- rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
- actiontext (6.1.4.1)
37
- actionpack (= 6.1.4.1)
38
- activerecord (= 6.1.4.1)
39
- activestorage (= 6.1.4.1)
40
- activesupport (= 6.1.4.1)
41
- nokogiri (>= 1.8.5)
42
- actionview (6.1.4.1)
43
- activesupport (= 6.1.4.1)
44
- builder (~> 3.1)
45
- erubi (~> 1.4)
46
- rails-dom-testing (~> 2.0)
47
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.1.4.1)
49
- activesupport (= 6.1.4.1)
50
- globalid (>= 0.3.6)
51
- activemodel (6.1.4.1)
52
- activesupport (= 6.1.4.1)
53
- activerecord (6.1.4.1)
54
- activemodel (= 6.1.4.1)
55
- activesupport (= 6.1.4.1)
56
- activestorage (6.1.4.1)
57
- actionpack (= 6.1.4.1)
58
- activejob (= 6.1.4.1)
59
- activerecord (= 6.1.4.1)
60
- activesupport (= 6.1.4.1)
61
- marcel (~> 1.0.0)
62
- mini_mime (>= 1.1.0)
63
- activesupport (6.1.4.1)
64
- concurrent-ruby (~> 1.0, >= 1.0.2)
65
- i18n (>= 1.6, < 2)
66
- minitest (>= 5.1)
67
- tzinfo (~> 2.0)
68
- zeitwerk (~> 2.3)
69
- ast (2.4.2)
70
- builder (3.2.4)
71
- concurrent-ruby (1.1.9)
72
- crass (1.0.6)
73
- diff-lcs (1.4.4)
74
- erubi (1.10.0)
75
- globalid (0.5.2)
76
- activesupport (>= 5.0)
77
- i18n (1.8.10)
78
- concurrent-ruby (~> 1.0)
79
- loofah (2.12.0)
80
- crass (~> 1.0.2)
81
- nokogiri (>= 1.5.9)
82
- mail (2.7.1)
83
- mini_mime (>= 0.1.1)
84
- marcel (1.0.2)
85
- method_source (1.0.0)
86
- mini_mime (1.1.1)
87
- minitest (5.14.4)
88
- nio4r (2.5.8)
89
- nokogiri (1.12.5-x86_64-darwin)
90
- racc (~> 1.4)
91
- nokogiri (1.12.5-x86_64-linux)
92
- racc (~> 1.4)
93
- okcomputer (1.18.4)
94
- parallel (1.21.0)
95
- parser (3.0.2.0)
96
- ast (~> 2.4.1)
97
- racc (1.5.2)
98
- rack (2.2.3)
99
- rack-test (1.1.0)
100
- rack (>= 1.0, < 3)
101
- rails (6.1.4.1)
102
- actioncable (= 6.1.4.1)
103
- actionmailbox (= 6.1.4.1)
104
- actionmailer (= 6.1.4.1)
105
- actionpack (= 6.1.4.1)
106
- actiontext (= 6.1.4.1)
107
- actionview (= 6.1.4.1)
108
- activejob (= 6.1.4.1)
109
- activemodel (= 6.1.4.1)
110
- activerecord (= 6.1.4.1)
111
- activestorage (= 6.1.4.1)
112
- activesupport (= 6.1.4.1)
113
- bundler (>= 1.15.0)
114
- railties (= 6.1.4.1)
115
- sprockets-rails (>= 2.0.0)
116
- rails-dom-testing (2.0.3)
117
- activesupport (>= 4.2.0)
118
- nokogiri (>= 1.6)
119
- rails-html-sanitizer (1.4.2)
120
- loofah (~> 2.3)
121
- railties (6.1.4.1)
122
- actionpack (= 6.1.4.1)
123
- activesupport (= 6.1.4.1)
124
- method_source
125
- rake (>= 0.13)
126
- thor (~> 1.0)
127
- rainbow (3.0.0)
128
- rake (13.0.6)
129
- regexp_parser (2.1.1)
130
- rexml (3.2.5)
131
- rspec (3.10.0)
132
- rspec-core (~> 3.10.0)
133
- rspec-expectations (~> 3.10.0)
134
- rspec-mocks (~> 3.10.0)
135
- rspec-core (3.10.1)
136
- rspec-support (~> 3.10.0)
137
- rspec-expectations (3.10.1)
138
- diff-lcs (>= 1.2.0, < 2.0)
139
- rspec-support (~> 3.10.0)
140
- rspec-mocks (3.10.2)
141
- diff-lcs (>= 1.2.0, < 2.0)
142
- rspec-support (~> 3.10.0)
143
- rspec-rails (5.0.2)
144
- actionpack (>= 5.2)
145
- activesupport (>= 5.2)
146
- railties (>= 5.2)
147
- rspec-core (~> 3.10)
148
- rspec-expectations (~> 3.10)
149
- rspec-mocks (~> 3.10)
150
- rspec-support (~> 3.10)
151
- rspec-support (3.10.2)
152
- rubocop (1.20.0)
153
- parallel (~> 1.10)
154
- parser (>= 3.0.0.0)
155
- rainbow (>= 2.2.2, < 4.0)
156
- regexp_parser (>= 1.8, < 3.0)
157
- rexml
158
- rubocop-ast (>= 1.9.1, < 2.0)
159
- ruby-progressbar (~> 1.7)
160
- unicode-display_width (>= 1.4.0, < 3.0)
161
- rubocop-ast (1.11.0)
162
- parser (>= 3.0.1.1)
163
- rubocop-performance (1.11.5)
164
- rubocop (>= 1.7.0, < 2.0)
165
- rubocop-ast (>= 0.4.0)
166
- ruby-progressbar (1.11.0)
167
- sprockets (4.0.2)
168
- concurrent-ruby (~> 1.0)
169
- rack (> 1, < 3)
170
- sprockets-rails (3.2.2)
171
- actionpack (>= 4.0)
172
- activesupport (>= 4.0)
173
- sprockets (>= 3.0.0)
174
- standard (1.3.0)
175
- rubocop (= 1.20.0)
176
- rubocop-performance (= 1.11.5)
177
- thor (1.1.0)
178
- tzinfo (2.0.4)
179
- concurrent-ruby (~> 1.0)
180
- unicode-display_width (2.1.0)
181
- websocket-driver (0.7.5)
182
- websocket-extensions (>= 0.1.0)
183
- websocket-extensions (0.1.5)
184
- zeitwerk (2.4.2)
185
-
186
- PLATFORMS
187
- x86_64-darwin-18
188
- x86_64-linux
189
-
190
- DEPENDENCIES
191
- okcomputer_html_view!
192
- rails
193
- rake (~> 13.0)
194
- rspec (~> 3.0)
195
- rspec-rails
196
- standard
197
-
198
- BUNDLED WITH
199
- 2.2.3