view_component-styles 0.1.0 → 0.2.0

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: c7047860194ebfc08bea90c9306a4881d7282ed708e20cb5cb45c7cfce0e0fa3
4
- data.tar.gz: 5995e1a0e94a23889483380d4ae26abbf25ce4632dc5008fd7d7cc1b3287f2de
3
+ metadata.gz: 284d24a7b4c34148fbd09a1c7bf826b6feba1a7f90dce99742b7718fdf3f2f97
4
+ data.tar.gz: 9de7fce7e7eb437b8d7ab82882ef131aeb125fdbd882edcb9374ffd84f523544
5
5
  SHA512:
6
- metadata.gz: f546a36658662db1cc7aa20283965da3477be5ee20f01b0cbac6c34cfac2ada1068e389356d7efa602c5a9cca8653438750859e75077766a1edca89e1694b76b
7
- data.tar.gz: 206c6ab35a36db08b0baef9b4bcae2c5a5ceaa7e9b1bdbe8fe26d55ed4466a10a02360b2b56cfe26d1e0d8897ed29531be99a7cdb500a46c0419740cfabaad95
6
+ metadata.gz: 7ee52704df578a1d265451260cbd61d05f6214d0adedf11e7ad1d9049b64d42cfc417839e0f6001163d144327f11d4cd95506ffcb01de4b7fb42b30f96f2c5b4
7
+ data.tar.gz: 64788007b403748829cab0e2b1e901cbbc837ac06ead5dd7252a0dda57691665d435c83ca3bd709a1ed3d90277f148ccfe020860aea394e7518045ac10fc963e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- view_component-styles (0.1.0)
4
+ view_component-styles (0.2.0)
5
5
  rails (>= 5)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -72,6 +72,18 @@ At this point you're all set up! Whenever a component is included in a view that
72
72
  styles will be aggregated into a single stylesheet and then loaded right into the layout. From here, they can be
73
73
  rendered regularly or picked up by premailer for inlining.
74
74
 
75
+ Note that in order to properly configure the asset pipeline in Rails in order to be compatible with this gem, you may
76
+ need to add the following configuration:
77
+
78
+ `application.rb`
79
+ ```ruby
80
+ config.assets.paths << Rails.root.join('app', 'components')
81
+ ```
82
+ `assets/config/manifest.js`
83
+ ```
84
+ //= link_tree ../../components .css
85
+ ```
86
+
75
87
  ## Development
76
88
 
77
89
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ViewComponent
4
+ module Styles
5
+ class Engine < Rails::Engine
6
+ initializer 'view_component-styles.assets.paths' do |app|
7
+ config.assets.paths << app.root.join('app', 'components')
8
+ end
9
+ end
10
+ end
11
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ViewComponent
4
4
  module Styles
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'view_component/styles/engine'
3
4
  require 'view_component/styles/version'
4
5
 
5
6
  module ViewComponent
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_component-styles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Taylor
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-09 00:00:00.000000000 Z
11
+ date: 2022-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -44,6 +44,7 @@ files:
44
44
  - lib/view_component/styles.rb
45
45
  - lib/view_component/styles/component.rb
46
46
  - lib/view_component/styles/controller.rb
47
+ - lib/view_component/styles/engine.rb
47
48
  - lib/view_component/styles/helper.rb
48
49
  - lib/view_component/styles/version.rb
49
50
  - view_component-styles.gemspec