vstheme2scss 0.0.11 → 0.0.13

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
  SHA256:
3
- metadata.gz: a8c485c870585b4e0cb799a4a369c28e8a555ff8ce3d045ca19064fb801424e3
4
- data.tar.gz: e8a7ef81966f7bf86844325e03408d5391866d3d2b3d7ab3ea4c1508cfb4bf1b
3
+ metadata.gz: 07506f7a917d8770a082231465b78bdb601a490769dab77cc050c5c24046461b
4
+ data.tar.gz: 76026fcde9b1559417ca91dfe686b24326974634cfe48a497f54b04bf96b680a
5
5
  SHA512:
6
- metadata.gz: 9599015e65ced35c3010c4037260e4844841de052d284353f5d02792cd783c58eb49ddf92823444ba02d035dbd1e5a8c5146b698f17c17c04eb8ab7432e17e5c
7
- data.tar.gz: cfa05b74357b9154390cd4115bd66845c5c6a686b152fd34627f81649f7f3272f11bd2b1222ace69da555767ea555250ecdf33cac78b26285873fee6558699a6
6
+ metadata.gz: b321b57d5a3553bcce16dee09cbaf829e2b49ce6d03bc1a324d2d4cc577f591280b9796bd7aa59a25beb2845f7098862e78f5423149f43e6145104e53bfd7b97
7
+ data.tar.gz: f9560b1729b7bec615cba1172567a6781e118d505ea33338aa954f926733f6738f32c29a0feb2c89e097bb503ab7c00a3742b70a0a00a8cd437b00c9bcdd7232
@@ -28,14 +28,15 @@ module Converter
28
28
  end
29
29
 
30
30
  def theme_files_to_hash(themes)
31
- json_res = themes.map{ |theme_file|
31
+ themes.map{ |theme_file|
32
32
  theme_path = Pathname.new(theme_file)
33
+ theme = nil
33
34
  if not theme_path.directory?
34
35
  theme = JSON.parse(theme_path.read)
35
36
  else
36
37
  puts "Error: #{theme_path.dirname}#{theme_path.basename} was not a file."
37
38
  end
38
- theme_path.directory? ? nil : JSON.parse(theme_path.read)
39
+ theme
39
40
  }.select{ |theme| theme != nil }
40
41
  end
41
42
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vstheme2scss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Kruhlmann