lookbook_visual_tester 0.1.5 → 0.1.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18c7c1416411fad57a1b3aea4b748cc2d861f24f84d9187e81de98352741e620
|
4
|
+
data.tar.gz: 46ea4cf22145443a9edff07fa0a4e35673e590d628739a70f2d8c2c96c3cce95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07c1a331af6c9747215ce41c3a7db6e263b474b95ab1ff6eb49d5672ef63e857bc7d53e710e038032dba5e633eec8eb5ba9034b90de69fd13e85f46cbcdcaa6e
|
7
|
+
data.tar.gz: c3c24f9c64bbf4b872e56636205a3fc27f6dcf1439e6f939f8d5aa1c147594d308befb263ef8f4059712f8b490e1d6fd1bb814ad8138570988302ad4e19ecb9d
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2
|
1
|
+
3.4.2
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,13 @@ Here is the changelog for version **0.1.5** of *LookbookVisualTester*:
|
|
6
6
|
|
7
7
|
# Changelog
|
8
8
|
|
9
|
+
## [0.1.6] - 2025-03-04
|
10
|
+
|
11
|
+
### Better search
|
12
|
+
|
13
|
+
- better search logic, add components_folder config
|
14
|
+
|
15
|
+
|
9
16
|
## [0.1.5] - 2025-02-26
|
10
17
|
|
11
18
|
### ✨ New Features & Improvements
|
@@ -2,7 +2,8 @@ module LookbookVisualTester
|
|
2
2
|
class Configuration
|
3
3
|
attr_accessor :base_path, :lookbook_host,
|
4
4
|
:baseline_dir, :current_dir, :diff_dir, :history_dir,
|
5
|
-
:history_keep_last_n, :threads, :copy_to_clipboard
|
5
|
+
:history_keep_last_n, :threads, :copy_to_clipboard,
|
6
|
+
:components_folder
|
6
7
|
|
7
8
|
DEFAULT_THREADS = 4
|
8
9
|
|
@@ -22,6 +23,7 @@ module LookbookVisualTester
|
|
22
23
|
@threads = DEFAULT_THREADS
|
23
24
|
@history_keep_last_n = 5
|
24
25
|
@copy_to_clipboard = true
|
26
|
+
@components_folder = 'app/components'
|
25
27
|
|
26
28
|
@lookbook_host = ENV.fetch('LOOKBOOK_HOST', 'https://localhost:5000')
|
27
29
|
end
|
@@ -41,8 +41,15 @@ module LookbookVisualTester
|
|
41
41
|
selected_changes.any?
|
42
42
|
end
|
43
43
|
|
44
|
+
def components_folder
|
45
|
+
LookbookVisualTester.config.components_folder
|
46
|
+
end
|
47
|
+
|
44
48
|
def clean_file_name(file)
|
45
|
-
|
49
|
+
file = file.split(components_folder)[-1]
|
50
|
+
# '/' + file.split('/')[-1].split('.')[0]
|
51
|
+
puts ">>>> #{file}"
|
52
|
+
file.split('.')[0].gsub('_preview', '')
|
46
53
|
end
|
47
54
|
|
48
55
|
def selected_previews
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lookbook_visual_tester
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Murilo Vasconcelos
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-04 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: capybara
|