trmnl_preview 0.17.0 → 0.17.1
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/trmnlp/testing/report.rb +1 -1
- data/lib/trmnlp/testing/rspec.rb +1 -1
- data/lib/trmnlp/testing/snapshot.rb +1 -1
- data/lib/trmnlp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11b638751da7a7a5437bf05fbd1adee2ce1742c2d242771e8f571a9d2de1bd17
|
|
4
|
+
data.tar.gz: 2f73f065e6c5b364750b03eb7ac9a78657e0049110a79b48b80f989a23e5ef80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 168a16980daa6baf259a11ee7b38660eeb44a564f1bb82121698b4d1666059afe58889ee6415a8accdaaff63e70bd35e7b87ab15b1b64ecfadb592f93c475f8e
|
|
7
|
+
data.tar.gz: 0b472dbdd29f34fad3390f6bf7413f89e9f819dbaf6cea1bc1ac4ce3a00fe034218a76fefd47de74f39f8519926e90254b092a2e29aeef63fa5efe0813b4ac21
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
# Changelog
|
|
3
3
|
|
|
4
|
+
## 0.17.1
|
|
5
|
+
|
|
6
|
+
- `trmnlp test --report` writes its images readable by everyone, and `--update` its snapshots. They kept the 0600 mode of the screen's temp file, so under the `trmnl/trmnlp` image, which runs as root, the init workflow could not upload the report. (#171)
|
|
7
|
+
- Capybara's matchers compose with `.and` and `.or` in a plugin's tests. (#172)
|
|
8
|
+
|
|
4
9
|
## 0.17.0
|
|
5
10
|
|
|
6
11
|
- `trmnlp init` adds a starter `tests/plugin_spec.rb`, and its GitHub workflow gains a `test` job: `trmnlp test --report` in the `trmnl/trmnlp` image (one `TRMNLP_IMAGE` setting picks the tag), the report uploaded, a manual `update_snapshots` run, and the push to TRMNL waiting for lint and tests. (#168)
|
|
@@ -71,7 +71,7 @@ module TRMNLP
|
|
|
71
71
|
def copy_image(path)
|
|
72
72
|
name = "images/#{@images += 1}.png"
|
|
73
73
|
FileUtils.mkdir_p(File.join(@dir, 'images'))
|
|
74
|
-
|
|
74
|
+
File.binwrite(File.join(@dir, name), File.binread(path)) # not cp, which keeps the screen's private 0600 mode
|
|
75
75
|
name
|
|
76
76
|
end
|
|
77
77
|
|
data/lib/trmnlp/testing/rspec.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Loaded by `trmnlp test`: gives each example `trmnl`, Capybara's matchers and trmnlp's own.
|
|
4
|
-
require 'capybara/rspec/matchers'
|
|
5
4
|
require 'rspec/core'
|
|
6
5
|
require 'rspec/expectations'
|
|
6
|
+
require 'capybara/rspec/matchers' # after rspec/expectations, or its matchers lose .and and .or
|
|
7
7
|
|
|
8
8
|
require_relative '../../trmnlp'
|
|
9
9
|
require_relative '../browser_pool'
|
data/lib/trmnlp/version.rb
CHANGED