discourse_theme 0.9.1 → 1.0.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: ea250fe17a63ff7c35463db99c6e18a8d19d64445f38a3e572b0897547f903d7
4
- data.tar.gz: b3e938ab61da639be2d4e2fdb7928925c78374f9840548ec6ba1aaa1eedcc3da
3
+ metadata.gz: aeb5c1241cfa46228e16f9bf6afd342719ff4b5257beebc0010a799de60d3826
4
+ data.tar.gz: 44d9752ce9b27634523291a3506c2936e525a7c0a9798c15d4d64710be4df0cf
5
5
  SHA512:
6
- metadata.gz: 8d5cc920192553d7502846f375c6042e613c425eac2f9f20f578d99cbec9d75aa118944965a43a9710b861e3277d2becdbbaafc93e431de4bdbf34b55f95df0c
7
- data.tar.gz: e2642e70c461e25d4c4343f0b2865b390db2424918d3339800b0226e8657f55ec17a6e083c72ba843058d9b3e9893d2cf8ae74b52f64672c02f8dcfc63e316ca
6
+ metadata.gz: 0b7fe184d6faaccabb4356d278f4346199a3b5bb99d99abb291e71d14d2f3f9b3acb8d69238600e451d79add736e4e0643666a4594193c09ab03344ea55251ad
7
+ data.tar.gz: af2b4ee6508759508ef6ca634f627d8094700c25c6c93736304816fa39c515dbc39fd0b92344b86b5c8c17cbe243a7790062a6936cd3e1a95a47e2bb9ce873d2
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.0] - 2023-10-09
9
+
10
+ ### Fixed
11
+
12
+ - Change `--headless` option for the rspec command to `--headful` which is the correct name.
13
+
8
14
  ## [0.9.1] - 2023-10-06
9
15
 
10
16
  ### Fixed
@@ -23,7 +23,7 @@ module DiscourseTheme
23
23
  upload DIR - Uploads the theme from the specified directory to Discourse.
24
24
  watch DIR - Watches the theme in the specified directory and synchronizes any changes with Discourse.
25
25
  rspec DIR [OPTIONS] - Runs the RSpec tests in the specified directory. The tests can be run using a local Discourse repository or a Docker container.
26
- --headless - Runs the RSpec system type tests in headless mode. Applies to both modes.
26
+ --headful - Runs the RSpec system type tests in headful mode. Applies to both modes.
27
27
 
28
28
  If specified directory has been configured to run in a Docker container, the additional options are supported.
29
29
  --rebuild - Forces a rebuilds of Docker container.
@@ -7,7 +7,7 @@ module DiscourseTheme
7
7
  class Rspec
8
8
  DISCOURSE_TEST_DOCKER_CONTAINER_NAME_PREFIX = "discourse_theme_test"
9
9
  DISCOURSE_THEME_TEST_TMP_DIR = "/tmp/.discourse_theme_test"
10
- SELENIUM_HEADLESS_ENV = "SELENIUM_HEADLESS=0"
10
+ SELENIUM_HEADFUL_ENV = "SELENIUM_HEADLESS=0"
11
11
 
12
12
  class << self
13
13
  def discourse_test_docker_container_name
@@ -33,7 +33,7 @@ module DiscourseTheme
33
33
 
34
34
  configure_local_directory(settings)
35
35
 
36
- headless = !!args.delete("--headless")
36
+ headless = !args.delete("--headful")
37
37
 
38
38
  if settings.local_discourse_directory.empty?
39
39
  run_tests_with_docker(
@@ -88,7 +88,7 @@ module DiscourseTheme
88
88
 
89
89
  Kernel.exec(
90
90
  ENV,
91
- "cd #{local_directory} && #{headless ? SELENIUM_HEADLESS_ENV : ""} bundle exec rspec #{spec_path}",
91
+ "cd #{local_directory} && #{headless ? "" : SELENIUM_HEADFUL_ENV} bundle exec rspec #{spec_path}",
92
92
  )
93
93
  end
94
94
 
@@ -171,7 +171,7 @@ module DiscourseTheme
171
171
 
172
172
  rspec_envs = []
173
173
 
174
- if headless
174
+ if !headless
175
175
  container_ip =
176
176
  execute(
177
177
  command:
@@ -181,7 +181,7 @@ module DiscourseTheme
181
181
  service =
182
182
  start_chromedriver(allowed_origin: "host.docker.internal", allowed_ip: container_ip)
183
183
 
184
- rspec_envs.push(SELENIUM_HEADLESS_ENV)
184
+ rspec_envs.push(SELENIUM_HEADFUL_ENV)
185
185
  rspec_envs.push("CAPYBARA_SERVER_HOST=0.0.0.0")
186
186
  rspec_envs.push(
187
187
  "CAPYBARA_REMOTE_DRIVER_URL=http://host.docker.internal:#{service.uri.port}",
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module DiscourseTheme
3
- VERSION = "0.9.1"
3
+ VERSION = "1.0.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-06 00:00:00.000000000 Z
11
+ date: 2023-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitar