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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e31acf7d3493227af9ab7f728969de7c882622102661528186d29dce67ca722a
4
- data.tar.gz: 29761cde0d07f5a026ff7a0bc3b1342ea6ad924402236296215bb6f8edfc2e29
3
+ metadata.gz: 11b638751da7a7a5437bf05fbd1adee2ce1742c2d242771e8f571a9d2de1bd17
4
+ data.tar.gz: 2f73f065e6c5b364750b03eb7ac9a78657e0049110a79b48b80f989a23e5ef80
5
5
  SHA512:
6
- metadata.gz: c2a64c19c1fcbdd43c49f94e604e4e0f136f46469abf42a96d2c993f9594f2f4ba1801b3c243d71edc97dfc59e1801b882ee288fcc0184cd638e5917abbe1286
7
- data.tar.gz: 40a4779d9e8694389ee0d087ec03081171a930c72341aee959e2cbea37ca1ef095006a8bc311ab4dd2bf0fd610f682fe5afbb93792c247c2f9f1b4ba7bc884c2
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
- FileUtils.cp(path, File.join(@dir, name))
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
 
@@ -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'
@@ -33,7 +33,7 @@ module TRMNLP
33
33
 
34
34
  def store
35
35
  FileUtils.mkdir_p(File.dirname(path))
36
- FileUtils.cp(screen.png_path, path)
36
+ File.binwrite(path, File.binread(screen.png_path)) # not cp, which keeps the screen's private 0600 mode
37
37
  nil
38
38
  end
39
39
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TRMNLP
4
- VERSION = '0.17.0'
4
+ VERSION = '0.17.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trmnl_preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rockwell Schrock