style_capsule 1.0.2 → 1.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/CHANGELOG.md +21 -1
- data/README.md +91 -13
- data/lib/style_capsule/class_registry.rb +101 -0
- data/lib/style_capsule/component.rb +4 -1
- data/lib/style_capsule/component_builder.rb +145 -0
- data/lib/style_capsule/css_file_writer.rb +9 -3
- data/lib/style_capsule/helper.rb +9 -5
- data/lib/style_capsule/phlex_helper.rb +8 -4
- data/lib/style_capsule/railtie.rb +9 -17
- data/lib/style_capsule/standalone_helper.rb +196 -0
- data/lib/style_capsule/stylesheet_registry.rb +114 -24
- data/lib/style_capsule/version.rb +1 -1
- data/lib/style_capsule/view_component.rb +4 -1
- data/lib/style_capsule/view_component_helper.rb +8 -4
- data/lib/style_capsule.rb +17 -5
- data/lib/tasks/style_capsule.rake +2 -69
- data/sig/style_capsule.rbs +6 -3
- metadata +10 -9
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: style_capsule
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrei Makarov
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activesupport
|
|
@@ -20,7 +19,7 @@ dependencies:
|
|
|
20
19
|
- - "<"
|
|
21
20
|
- !ruby/object:Gem::Version
|
|
22
21
|
version: '9.0'
|
|
23
|
-
type: :
|
|
22
|
+
type: :development
|
|
24
23
|
prerelease: false
|
|
25
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
25
|
requirements:
|
|
@@ -40,7 +39,7 @@ dependencies:
|
|
|
40
39
|
- - "<"
|
|
41
40
|
- !ruby/object:Gem::Version
|
|
42
41
|
version: '9.0'
|
|
43
|
-
type: :
|
|
42
|
+
type: :development
|
|
44
43
|
prerelease: false
|
|
45
44
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
45
|
requirements:
|
|
@@ -249,7 +248,8 @@ dependencies:
|
|
|
249
248
|
description: Provides component-scoped CSS encapsulation using [data-capsule] attributes
|
|
250
249
|
for Phlex components, ViewComponent components, and ERB templates. Styles are automatically
|
|
251
250
|
scoped to prevent leakage between components. Inspired by component-based CSS approaches
|
|
252
|
-
like Angular's view encapsulation and CSS modules.
|
|
251
|
+
like Angular's view encapsulation and CSS modules. Works with Rails and can be used
|
|
252
|
+
standalone in other Ruby frameworks (Sinatra, Hanami, etc.) or plain Ruby scripts.
|
|
253
253
|
email:
|
|
254
254
|
- contact@kiskolabs.com
|
|
255
255
|
executables: []
|
|
@@ -261,13 +261,16 @@ files:
|
|
|
261
261
|
- README.md
|
|
262
262
|
- SECURITY.md
|
|
263
263
|
- lib/style_capsule.rb
|
|
264
|
+
- lib/style_capsule/class_registry.rb
|
|
264
265
|
- lib/style_capsule/component.rb
|
|
266
|
+
- lib/style_capsule/component_builder.rb
|
|
265
267
|
- lib/style_capsule/component_styles_support.rb
|
|
266
268
|
- lib/style_capsule/css_file_writer.rb
|
|
267
269
|
- lib/style_capsule/css_processor.rb
|
|
268
270
|
- lib/style_capsule/helper.rb
|
|
269
271
|
- lib/style_capsule/phlex_helper.rb
|
|
270
272
|
- lib/style_capsule/railtie.rb
|
|
273
|
+
- lib/style_capsule/standalone_helper.rb
|
|
271
274
|
- lib/style_capsule/stylesheet_registry.rb
|
|
272
275
|
- lib/style_capsule/version.rb
|
|
273
276
|
- lib/style_capsule/view_component.rb
|
|
@@ -283,7 +286,6 @@ metadata:
|
|
|
283
286
|
bug_tracker_uri: https://github.com/amkisko/style_capsule.rb/issues
|
|
284
287
|
documentation_uri: https://github.com/amkisko/style_capsule.rb#readme
|
|
285
288
|
rubygems_mfa_required: 'true'
|
|
286
|
-
post_install_message:
|
|
287
289
|
rdoc_options: []
|
|
288
290
|
require_paths:
|
|
289
291
|
- lib
|
|
@@ -298,8 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
298
300
|
- !ruby/object:Gem::Version
|
|
299
301
|
version: '0'
|
|
300
302
|
requirements: []
|
|
301
|
-
rubygems_version: 3.
|
|
302
|
-
signing_key:
|
|
303
|
+
rubygems_version: 3.6.9
|
|
303
304
|
specification_version: 4
|
|
304
305
|
summary: Attribute-based CSS scoping for Phlex, ViewComponent, and ERB templates.
|
|
305
306
|
test_files: []
|