bullet_train-themes-light 1.4.2 → 1.4.4

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: '086b71bb5cf502b4895bdd3f523431a62b577977fd7b4db31c29886f4ca98b7f'
4
- data.tar.gz: 03b61929965ba4da34504b14db140d512b36e1ac9d47d4170c328248c5295b23
3
+ metadata.gz: cd6213a0aa1a9b5337e75e60f0351b969a7841822b06fa8a60b5202a0b1bd1b0
4
+ data.tar.gz: 9e955f2b161768a53de20b9d74f628534fd2918c2d0257a9cfee666f45aa0e1d
5
5
  SHA512:
6
- metadata.gz: 3f5d0fac9dc9417158706b70d7e8f10a28e2f9af20a730d5f9d3ffc96115015d3ba880c9b19ce390f4d20445528c876c7e15034f156b2d20bee25199d581384c
7
- data.tar.gz: c9127b7173d122f9743415b3580aacb15f7202f240449a0bd5c89e7a67113fb87843b0e771616a71e376066189833c202c463f9e928c6fc88024544604c82833
6
+ metadata.gz: 6dc2e6b27bbdf7bf426dda0f20a7778d77f87bb77b53ebbfb61ba739807f1d753c663ab2ef0a00b9e0ab3be7d0cf4eaa1f6cf4b00eec10daa2526d4b8da45ea4
7
+ data.tar.gz: 944393406c53a237f85a5cd1e8283e87432f8fbf86648adcad828513840a9f9f57503ae3f89b972bfcfb5124cbc1e0acdae56cb26118a4f1908b46aa7000018b
@@ -33,7 +33,7 @@
33
33
  color: #dde2ec;
34
34
  background: transparent;
35
35
  border: 0;
36
- vertical-align: -7px;
36
+ overflow: visible;
37
37
  &:focus, &:active {
38
38
  i {
39
39
  color: var(--primary-500);
@@ -45,7 +45,7 @@
45
45
  display: none;
46
46
  }
47
47
  & + button.clear {
48
- display: inline;
48
+ display: inline-block;
49
49
  }
50
50
  }
51
51
  &:focus, &:active {
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module Light
4
- VERSION = "1.4.2"
4
+ VERSION = "1.4.4"
5
5
  end
6
6
  end
7
7
  end
@@ -29,6 +29,7 @@ module BulletTrain
29
29
 
30
30
  `mkdir #{Rails.root}/app/views/themes`
31
31
 
32
+ new_files = {}
32
33
  {
33
34
  "bullet_train-themes" => "base",
34
35
  "bullet_train-themes-tailwind_css" => "tailwind_css",
@@ -45,6 +46,8 @@ module BulletTrain
45
46
  else
46
47
  puts "Copying `#{target_file_or_directory}`."
47
48
  `cp #{file_or_directory} #{target_file_or_directory}`
49
+ gem_with_version = gem_path.split("/").last
50
+ new_files[target_file_or_directory] = file_or_directory.split(/(?=#{gem_with_version})/).last
48
51
  end
49
52
  end
50
53
  end
@@ -82,6 +85,21 @@ module BulletTrain
82
85
  end
83
86
  theme_file.write new_lines.join
84
87
 
88
+ # We add the comment to the ejected files here so the sed calls don't
89
+ # overwrite package names like `bullet_train-themes-light`.
90
+ new_files.each do |key, value|
91
+ file = Pathname.new(key)
92
+ lines = file.readlines
93
+
94
+ new_lines = case key.split(".").last
95
+ when "rb", "yml"
96
+ lines.unshift("# Ejected from #{value}\n\n")
97
+ when "erb"
98
+ lines.unshift("<% # Ejected from #{value} %>\n\n")
99
+ end
100
+ file.write(new_lines.join)
101
+ end
102
+
85
103
  `standardrb --fix #{target_path}`
86
104
 
87
105
  puts "Cutting local project over from `#{theme_name}` to `#{ejected_theme_name}` in `app/helpers/application_helper.rb`."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes-light
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-13 00:00:00.000000000 Z
11
+ date: 2023-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard