komponent 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -2
- data/README.md +1 -1
- data/lib/generators/component/component_generator.rb +1 -1
- data/lib/generators/component/templates/view.html.erb.erb +1 -1
- data/lib/generators/component/templates/view.html.haml.erb +1 -1
- data/lib/generators/component/templates/view.html.slim.erb +1 -1
- data/lib/komponent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e2bae47fbc3e0bfcce014af0c87f14a34ab714c
|
4
|
+
data.tar.gz: 8ccf2d57342494ecfb6e45eb4db627b70fde7f7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a77641b9e00d24bcf7ca35a5c7788abcfde90564864c8020840d9a49a73437fa8af1f9904f2dea2623243c4b53ef115f25239612f2fa0fa0aabbddfb20d66094
|
7
|
+
data.tar.gz: a50699a3015564a76b88665aeef7e8b45e3f928e1cdb8547754141cd800ca755ddf7b944705f8fe55808528c75d7049a765cd16ff67595a20db76a27c7cb943f
|
data/CHANGELOG.md
CHANGED
@@ -2,16 +2,24 @@
|
|
2
2
|
|
3
3
|
## Upcoming release
|
4
4
|
|
5
|
-
## v2.
|
5
|
+
## v2.2.0 (2018-07-03)
|
6
6
|
|
7
7
|
**Enhancements:**
|
8
|
+
- Component generator: use `component_name` instead of `module_name` in templates,
|
9
|
+
so when we create a `button` component, by default it contains `button` instead
|
10
|
+
of `button_component`
|
11
|
+
|
12
|
+
**Bug fixes:**
|
13
|
+
- Component generator: fix error when the single-quotes are used in `import`s
|
14
|
+
|
15
|
+
## v2.1.0 (2018-05-31)
|
8
16
|
|
17
|
+
**Enhancements:**
|
9
18
|
- Block given to component now pass return values
|
10
19
|
|
11
20
|
## v2.0.0 (2018-04-22)
|
12
21
|
|
13
22
|
**Enhancements:**
|
14
|
-
|
15
23
|
- Use lazy lookup for translations in all generator templates
|
16
24
|
|
17
25
|
## v2.0.0.pre.1 (2018-04-12)
|
data/README.md
CHANGED
@@ -335,7 +335,7 @@ end
|
|
335
335
|
|
336
336
|
#### Change default stylesheet engine
|
337
337
|
|
338
|
-
You can configure the stylesheet engine used for generate stylesheet file, values
|
338
|
+
You can configure the stylesheet engine used for generate stylesheet file, allowed values are `:css`, `:scss`, `:sass`.
|
339
339
|
|
340
340
|
```rb
|
341
341
|
Rails.application.config.komponent.stylesheet_engine = :css # default value is :css
|
@@ -170,7 +170,7 @@ class ComponentGenerator < Rails::Generators::NamedBase
|
|
170
170
|
|
171
171
|
def sort_lines_alphabetically!(path)
|
172
172
|
lines = File.readlines(path).map do |line|
|
173
|
-
line if line =~ /^import "(.*)";$/
|
173
|
+
line if line =~ /^import ["'](.*)["'];$/
|
174
174
|
end.compact
|
175
175
|
|
176
176
|
return if lines.empty?
|
data/lib/komponent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: komponent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ouvrages
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|