keystone_ui-styles 0.1.0 → 0.1.2
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: 87e84f0077ed42c944b353e674f80f8b0908a8b484c6eb41d7c6d06ba3eb2b00
|
|
4
|
+
data.tar.gz: 3c5dc79a04c6797a213ce267e359be2c0070b0eb85227f7d9a965eb4825a6b17
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f2807502e8e818a4e81611a12a7a7bbaa32dfcc2c82e02ba035f0f9e7e6601863b8921dc9edf46f44c9eae84b5dbd095a122dbd04f3c0c55d910ee9e70839d0
|
|
7
|
+
data.tar.gz: 9733130752a45c8908a592126bcef14a7f4caaaa6272b05475b17390be70e89120ae57f00c2d0376fe91ab4c578871b63ffb03a9e9261a0a0d8091a29cf4ab6a
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "rails"
|
|
4
|
+
require "keystone_ui/styles/leftover_stylesheet"
|
|
4
5
|
|
|
5
6
|
module KeystoneUi
|
|
6
7
|
module Styles
|
|
7
8
|
class Engine < ::Rails::Engine
|
|
8
|
-
engine_name "
|
|
9
|
+
engine_name "keystone_ui_styles_engine"
|
|
10
|
+
|
|
11
|
+
initializer "keystone_ui_styles.remove_leftover_stylesheet" do |app|
|
|
12
|
+
LeftoverStylesheet.new(app.root).remove
|
|
13
|
+
end
|
|
9
14
|
end
|
|
10
15
|
end
|
|
11
16
|
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "pathname"
|
|
4
|
+
|
|
5
|
+
module KeystoneUi
|
|
6
|
+
module Styles
|
|
7
|
+
class LeftoverStylesheet
|
|
8
|
+
def initialize(root)
|
|
9
|
+
@root = Pathname.new(root)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def remove
|
|
13
|
+
leftover = @root.join("app/assets/builds/tailwind/keystone_ui_styles.css")
|
|
14
|
+
leftover.delete if leftover.exist?
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
data/lib/keystone_ui/styles.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: keystone_ui-styles
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tyler Schneider
|
|
@@ -37,6 +37,7 @@ files:
|
|
|
37
37
|
- lib/keystone_ui-styles.rb
|
|
38
38
|
- lib/keystone_ui/styles.rb
|
|
39
39
|
- lib/keystone_ui/styles/engine.rb
|
|
40
|
+
- lib/keystone_ui/styles/leftover_stylesheet.rb
|
|
40
41
|
- lib/keystone_ui/styles/version.rb
|
|
41
42
|
homepage: https://github.com/DYB-Development/keystone_ui-styles
|
|
42
43
|
licenses:
|