bullet_train-themes-light 1.4.3 → 1.4.4

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: e96ed9667c7707a1a6ddaff6228ef4b366b40bba748d80b16268ef1c370bb055
4
- data.tar.gz: c5dc60ad83baaa31e7c4d42720b07e0131f8f2981caf36b75827965721e1162e
3
+ metadata.gz: cd6213a0aa1a9b5337e75e60f0351b969a7841822b06fa8a60b5202a0b1bd1b0
4
+ data.tar.gz: 9e955f2b161768a53de20b9d74f628534fd2918c2d0257a9cfee666f45aa0e1d
5
5
  SHA512:
6
- metadata.gz: d437ace19bab48e089e04b5660f3e5dbf0347bfdc3a308a2e7ab138255d63a62dfb08bcba765972ccb5944e8e48a47339c195c4ba790d9d210e1be129b16691d
7
- data.tar.gz: 81782bd705a7a3118bbb8f068dab68108e0b4a077d016981e187139199790200da332d9bf2fb993a3aa2897237a3c8d8024afd34e97e9ff434c3f574e773a2eb
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.3"
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.3
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-14 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