lite-component 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/generators/rails/templates/component.rb.tt +1 -1
- data/lib/lite/component/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41534fd17e7cfda5187c537d255e41ae6451624b666cefd61579bca3e8cf59c3
|
4
|
+
data.tar.gz: fd52bbac5931e9021468519f62a1a9801f7f01742c4731ff4843dcbbedcd4483
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8933b889df91e694a02a37752753a2a5cc32d3adb29723178ca8eadf69c9508e03b2d05b92f1edfac859b26d006cff4074853fb66f4634320c94fe29f96dab71
|
7
|
+
data.tar.gz: 7a945851fbb2aa0f7aa1576d962853374bfab0b6c35e0bc7a6ecef553da901c334c4603c2fd82858b4e3af2418b11128a6c4a0f7b1b17e83cc634302588bb156
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -42,10 +42,10 @@ Or install it yourself as:
|
|
42
42
|
|
43
43
|
Use `rails g component NAME` will generate the following files:
|
44
44
|
|
45
|
-
```
|
45
|
+
```erb
|
46
46
|
app/assets/javascripts/components/[name].js
|
47
47
|
app/assets/stylesheets/components/[name].scss
|
48
|
-
app/components/[name]
|
48
|
+
app/components/[name]_component.rb
|
49
49
|
app/views/components/_[name].html.erb
|
50
50
|
```
|
51
51
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
<% module_namespacing do -%>
|
4
|
-
class <%= class_name %>
|
4
|
+
class <%= class_name %>Component < <%= ApplicationComponent.to_s rescue 'Lite::Component::Base' %>
|
5
5
|
end
|
6
6
|
<% end -%>
|