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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bc33ea363a4b36cdcac55451d53d0d7820a8420
4
- data.tar.gz: 0be312d16fc8f34fa4c63b34f0be96d2b57db88e
3
+ metadata.gz: 3e2bae47fbc3e0bfcce014af0c87f14a34ab714c
4
+ data.tar.gz: 8ccf2d57342494ecfb6e45eb4db627b70fde7f7a
5
5
  SHA512:
6
- metadata.gz: d86754c2778f9ae90066090229b0467d74a1e3467fc224a74c9769a8c8589703c3f3736f85d288000f0717b3841f4959d940395ef920ff20c1c6662e3f773cc3
7
- data.tar.gz: a3d654154152e906a9a61f2b1a8ee8682c3a45eafeb8d16e05dc5e9a4737a8c26a3a8ded4ca890522678276efa851acff1b7d994b4a1de6251016967bf2ac520
6
+ metadata.gz: a77641b9e00d24bcf7ca35a5c7788abcfde90564864c8020840d9a49a73437fa8af1f9904f2dea2623243c4b53ef115f25239612f2fa0fa0aabbddfb20d66094
7
+ data.tar.gz: a50699a3015564a76b88665aeef7e8b45e3f928e1cdb8547754141cd800ca755ddf7b944705f8fe55808528c75d7049a765cd16ff67595a20db76a27c7cb943f
@@ -2,16 +2,24 @@
2
2
 
3
3
  ## Upcoming release
4
4
 
5
- ## v2.1.0 (2018-05-31)
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 allowed are ':css', ':scss', ':sass'.
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?
@@ -2,6 +2,6 @@
2
2
  <%- if locale? -%>
3
3
  <%%= t ".component_name" %>
4
4
  <%- else -%>
5
- <%= module_name.underscore %>
5
+ <%= component_name.underscore %>
6
6
  <%- end -%>
7
7
  </div>
@@ -2,5 +2,5 @@
2
2
  <%- if locale? -%>
3
3
  = t ".component_name"
4
4
  <%- else -%>
5
- <%= module_name.underscore %>
5
+ <%= component_name.underscore %>
6
6
  <%- end -%>
@@ -2,5 +2,5 @@
2
2
  <%- if locale? -%>
3
3
  = t ".component_name"
4
4
  <%- else -%>
5
- | <%= module_name.underscore %>
5
+ | <%= component_name.underscore %>
6
6
  <%- end -%>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Komponent
4
- VERSION = "2.1.0"
4
+ VERSION = "2.2.0"
5
5
  end
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.1.0
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-05-31 00:00:00.000000000 Z
11
+ date: 2018-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview