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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +12 -0
- data/lib/view_component/styles/engine.rb +11 -0
- data/lib/view_component/styles/version.rb +1 -1
- data/lib/view_component/styles.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 284d24a7b4c34148fbd09a1c7bf826b6feba1a7f90dce99742b7718fdf3f2f97
|
4
|
+
data.tar.gz: 9de7fce7e7eb437b8d7ab82882ef131aeb125fdbd882edcb9374ffd84f523544
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ee52704df578a1d265451260cbd61d05f6214d0adedf11e7ad1d9049b64d42cfc417839e0f6001163d144327f11d4cd95506ffcb01de4b7fb42b30f96f2c5b4
|
7
|
+
data.tar.gz: 64788007b403748829cab0e2b1e901cbbc837ac06ead5dd7252a0dda57691665d435c83ca3bd709a1ed3d90277f148ccfe020860aea394e7518045ac10fc963e
|
data/Gemfile.lock
CHANGED
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.
|
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.
|
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-
|
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
|