phlex_ui 0.0.1 → 0.0.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: 41ab4c5420499be24805f7d933eb210b452ff7b2e7377313ed77d5aeb98edd43
4
- data.tar.gz: 67ae3e2faf0c7998d0faf939b700774d75d8110fb764b5c34834cb0ff2f88e62
3
+ metadata.gz: 29e085b8d0e7610e5df2e338c62b923980042ea4a00e513db923e269c396e68e
4
+ data.tar.gz: d1ea7147df22c7db15e95ff68bfaeba8b065a32af2e3b08441374c8622342433
5
5
  SHA512:
6
- metadata.gz: 93141ee33e1bd597fbed75bded190f655b18fe4cd813b063248d35664f59035f86b0214cbd556cc09cac4ed171b1d783768f79ac0509b8e2b3adffa6cc553b96
7
- data.tar.gz: 8d04d2f076242335844d3f1e37bfe4469e4ce7807eb749d3c81653879e8e28dda0d7636ec6f312c358bf88b428b32b7ad212b776c4170961667a459e3d8ba795
6
+ metadata.gz: 0b9c8a9d14c7bb3cdf6a80dca9e451232897919dc10a4da0ba03fc34e126d022360cf54dad2457ee0b4bbdac746cef2dce043db57ec3a8cf704a8a767918b0e0
7
+ data.tar.gz: b60175b105044a7e0fc4c7419bcb35ae0e859e2b76ffb5dfa3cf693cebe4c098c917765f4d6d908bee5e403be4789b7ae044d16bc2e1ac42b04d93bb474ba97b
data/lib/phlex_ui.rb CHANGED
@@ -13,7 +13,7 @@ module PhlexUI
13
13
  # If Rails is defined, load the rake tasks
14
14
  class Railtie < Rails::Railtie
15
15
  rake_tasks do
16
- load 'tasks/update_tailwind_config.rake'
16
+ load File.join(Gem.loaded_specs['phlex_ui'].full_gem_path, 'tasks', 'update_tailwind_config.rake')
17
17
  end
18
18
  end if defined?(Rails)
19
19
  end
@@ -0,0 +1,26 @@
1
+ require 'colorize'
2
+
3
+ namespace :phlex_ui do
4
+ desc "Print the path of phlex_ui gem"
5
+ task print_gem_path: :environment do
6
+ gem_path = Gem.loaded_specs['phlex_ui'].full_gem_path
7
+ puts "Please update the 'content' array in your 'tailwind.config.js' file like this:".colorize(:green)
8
+ puts "
9
+ module.exports = {
10
+ content: [
11
+ './app/views/**/*.rb',
12
+ './app/components/**/*rb',
13
+ './app/views/**/*.{erb,haml,html,slim,rb}',
14
+ './app/helpers/**/*.rb',
15
+ './app/assets/stylesheets/**/*.css',
16
+ './app/javascript/**/*.js',".colorize(:yellow)
17
+ puts "
18
+ // Add this line below so that Tailwind can find the classes in PhlexUI
19
+ '#{gem_path}/**/*.rb',
20
+ ".colorize(:green)
21
+ puts "
22
+ ],
23
+ }
24
+ ".colorize(:yellow)
25
+ end
26
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlex_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Kettle
@@ -81,6 +81,7 @@ extra_rdoc_files: []
81
81
  files:
82
82
  - lib/phlex_ui.rb
83
83
  - lib/phlex_ui/button.rb
84
+ - tasks/update_tailwind_config.rake
84
85
  homepage: https://rubygems.org/gems/phlex_ui
85
86
  licenses:
86
87
  - MIT