discourse_theme 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/discourse_theme/cli_commands/rspec.rb +7 -7
- data/lib/discourse_theme/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f330872d917c9b14b0e2ab7827f7fa16c41f5dce83ad4ec960888dc91e13a368
|
4
|
+
data.tar.gz: e19bf6dfde320a3a616890abe72ff9a72021c25a5168dccada18824007540fcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fee66903932cf9fb014e7e5c637daf2995756f8a122219cb4e5616d87229eff1fba8ed20aa59bcd07b5d58773c5f3ee07fc1801d44f07506d28c767b2c2adb92
|
7
|
+
data.tar.gz: bf7b0fd4078e802e0039daa8499fc369a7befbb15349208361dae8678093d4402c7f938779c91c760a2141ab4f64fcf93693708a21564f4f3fda08fca0a25f1b
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,19 @@ 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.2] - 2023-12-08
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
- `discourse_theme rspec` command using Docker container not copying theme to the right directory that is mounted inside
|
13
|
+
the Docker container.
|
14
|
+
|
15
|
+
## [1.0.1] - 2023-10-19
|
16
|
+
|
17
|
+
### Fixed
|
18
|
+
|
19
|
+
- Spec path was not preserved when running rspec against a local Discourse repository.
|
20
|
+
|
8
21
|
## [1.0.0] - 2023-10-09
|
9
22
|
|
10
23
|
### Fixed
|
@@ -37,7 +37,7 @@ module DiscourseTheme
|
|
37
37
|
|
38
38
|
if settings.local_discourse_directory.empty?
|
39
39
|
run_tests_with_docker(
|
40
|
-
|
40
|
+
dir,
|
41
41
|
spec_directory,
|
42
42
|
spec_path,
|
43
43
|
headless: headless,
|
@@ -47,7 +47,7 @@ module DiscourseTheme
|
|
47
47
|
else
|
48
48
|
run_tests_locally(
|
49
49
|
settings.local_discourse_directory,
|
50
|
-
|
50
|
+
File.join(dir, spec_path),
|
51
51
|
headless: headless,
|
52
52
|
)
|
53
53
|
end
|
@@ -93,13 +93,15 @@ module DiscourseTheme
|
|
93
93
|
end
|
94
94
|
|
95
95
|
def run_tests_with_docker(
|
96
|
-
|
96
|
+
theme_directory,
|
97
97
|
spec_directory,
|
98
98
|
spec_path,
|
99
99
|
headless: false,
|
100
100
|
verbose: false,
|
101
101
|
rebuild: false
|
102
102
|
)
|
103
|
+
theme_directory_name = File.basename(theme_directory)
|
104
|
+
|
103
105
|
image = "discourse/discourse_test:release"
|
104
106
|
UI.progress("Running RSpec tests using '#{image}' Docker image...")
|
105
107
|
|
@@ -191,9 +193,7 @@ module DiscourseTheme
|
|
191
193
|
rspec_envs = rspec_envs.map { |env| "-e #{env}" }.join(" ")
|
192
194
|
|
193
195
|
begin
|
194
|
-
|
195
|
-
FileUtils.mkdir_p(tmp_theme_directory) if !Dir.exist?(tmp_theme_directory)
|
196
|
-
FileUtils.cp_r(spec_directory, File.join(tmp_theme_directory))
|
196
|
+
FileUtils.cp_r(theme_directory, DISCOURSE_THEME_TEST_TMP_DIR)
|
197
197
|
|
198
198
|
execute(
|
199
199
|
command:
|
@@ -203,7 +203,7 @@ module DiscourseTheme
|
|
203
203
|
stream: true,
|
204
204
|
)
|
205
205
|
ensure
|
206
|
-
FileUtils.rm_rf(File.join(
|
206
|
+
FileUtils.rm_rf(File.join(DISCOURSE_THEME_TEST_TMP_DIR, theme_directory_name))
|
207
207
|
end
|
208
208
|
end
|
209
209
|
|
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: 1.0.
|
4
|
+
version: 1.0.2
|
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-
|
11
|
+
date: 2023-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitar
|