itcss_cli 0.1.14 → 0.1.15

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f1fef50c237c9bcb8cf2e46cdfa18407e06350b
4
- data.tar.gz: 4be3aded03c8d0679a02a555c0d5edddb7d61954
3
+ metadata.gz: fcc135b9eca9e8cac76e5500e832502016ef1d83
4
+ data.tar.gz: 044bd8530619519e824dea150bfedbe6dc3a608c
5
5
  SHA512:
6
- metadata.gz: 93a8938b89b6a01db70803ffd2061c6e28ad6c661e77dbb7c1c17997133099d65799d49c144a70203f70f417ceeed564dca49f3fcbbd1e3edcd6bf986204929c
7
- data.tar.gz: 146dde6939c1d8bb9a5194eefc1cafdbd8aa04630ea3c43b413a245d392b271070cccc161f063f5df8ec7e9d909fbdd106938b146126d5e62f350c48d45ab181
6
+ metadata.gz: 9bf8a39f59794ad582c9a8d2ce71585ff50a11fc5b8983a7469be0c54275144bf83422aa8b64bf8c04b50b9446d5a7e9f26f393dc889d9ce6501037fa151ff72
7
+ data.tar.gz: e4cb91eb846713daa2e60d522d86b2337825a9b1c9f8e398b29ed9bcb1f8fdfb5112a6aa9b16fa8bad49ebf0c41ae1daabcd649a4855af056e6f42d09b2c4244
@@ -1,3 +1,3 @@
1
1
  module ItcssCli
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
data/lib/itcss_cli.rb CHANGED
@@ -114,7 +114,7 @@ module ItcssCli
114
114
  unless File.exist?(@ITCSS_CONFIG_FILE)
115
115
  File.open @ITCSS_CONFIG_TEMPLATE do |io|
116
116
  template = ERB.new io.read
117
- first_init = true
117
+ content = nil
118
118
 
119
119
  File.open @ITCSS_CONFIG_FILE, "w+" do |out|
120
120
  out.puts template.result binding
@@ -278,7 +278,6 @@ module ItcssCli
278
278
  File.open @ITCSS_CONFIG_TEMPLATE do |io|
279
279
  template = ERB.new io.read
280
280
  content = current_config.to_yaml
281
- first_init = nil
282
281
 
283
282
  File.open @ITCSS_CONFIG_FILE, "w+" do |out|
284
283
  out.puts template.result binding
@@ -2,8 +2,8 @@
2
2
  <%= "# #itcss.yml" %>
3
3
  <%= "# " + "=" * 40 %>
4
4
 
5
- <%= content %>
6
- <% unless first_init.nil? %># Root folder where the ITCSS file structure should be builded.
5
+ <% unless content.nil? %><%= content %>
6
+ <% else %># Root folder where the ITCSS file structure should be builded.
7
7
  stylesheets_directory: path/to/itcss/root
8
8
 
9
9
  # Base sass file (all ITCSS modules will be imported in it).
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itcss_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kande Bonfim