discourse_theme 0.9.0 → 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: '09b57640f39cc61872cd9d2d071ee9b146d1b18569836263518f14df265f3fbd'
4
- data.tar.gz: fe1d87bdd2eab5082e677d633cc4ed9001be66a84e6ce59fa80550e3b23c743a
3
+ metadata.gz: aeb5c1241cfa46228e16f9bf6afd342719ff4b5257beebc0010a799de60d3826
4
+ data.tar.gz: 44d9752ce9b27634523291a3506c2936e525a7c0a9798c15d4d64710be4df0cf
5
5
  SHA512:
6
- metadata.gz: 5b0207b38cffd1da2e6656b12a792c6fd3f72dc9bf346b7750611830a7fa061a8e80575991674f89aefb0d4ea3083a5911c8eda46b94698d338cddcadac08f76
7
- data.tar.gz: 536f514bf0fdc3be26292a8f0a429b101342dcd2b66a26ab63c09a1eed6c6a0b42923be033596443965e3ca00ff50120a2f31a8325e9c6d99dbccbbf6b8c0765
6
+ metadata.gz: 0b7fe184d6faaccabb4356d278f4346199a3b5bb99d99abb291e71d14d2f3f9b3acb8d69238600e451d79add736e4e0643666a4594193c09ab03344ea55251ad
7
+ data.tar.gz: af2b4ee6508759508ef6ca634f627d8094700c25c6c93736304816fa39c515dbc39fd0b92344b86b5c8c17cbe243a7790062a6936cd3e1a95a47e2bb9ce873d2
data/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ 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
+
14
+ ## [0.9.1] - 2023-10-06
15
+
16
+ ### Fixed
17
+
18
+ - `rspec` command saving settings using wrong dir
19
+
8
20
  ## [0.9.0] - 2023-09-27
9
21
 
10
22
  ### Added
@@ -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.
@@ -182,7 +182,7 @@ module DiscourseTheme
182
182
  end
183
183
  elsif command == "rspec"
184
184
  DiscourseTheme::CliCommands::Rspec.run(
185
- settings: settings,
185
+ settings: config[dir.split("/spec")[0]],
186
186
  dir: dir,
187
187
  args: args,
188
188
  reset: reset,
@@ -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.0"
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.0
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-09-26 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