bower_vendor 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 528ee73660595f68b74a028707d90a8e9a7a615868c603f6b460d3755a13912e
4
- data.tar.gz: c339dba801459e47acb15e52d44bb397ac88853d7745419a4c50706b95e4e1b9
3
+ metadata.gz: 376a8400e93df09c74ad183ccb54be4f43aa7debe5da8b6726bdcc1f92451b38
4
+ data.tar.gz: 769b1358664ad78b83b26d14aa1351430feef03f3f7ac7fb90122877481deaae
5
5
  SHA512:
6
- metadata.gz: adf244aab28554a2d3cb68188434621270e7cdff3041fd4ba40242dcf63643967c9efc6d9a4e38c3cfba2b8c9579c348ea65adbfb8218e2d2f06e20dc9ddf15d
7
- data.tar.gz: 7118f3a1074ad8ce9e66fa9784c62c9037a06ce5293ddf84d5e43879610c1aee47990f54066997226482431d33256dcabf10e622aafbea76e5d26149f78c99e2
6
+ metadata.gz: 85804386d48a177b32e3896f759761eaeebc04465ebb945a1654bd9ddbbfa2ca83f626485fb3014ac0670fc40081bb557b52186ca1e4e80802c0db8d465700be
7
+ data.tar.gz: 7383d144b491779979b5368fa9a5d83e6b4ff16804b8fad219e62dc160b76b679b678f73c10437a7fb023ca89f682e97a91bee51e6eb59f73418fe14ebac9d54
@@ -1,3 +1,3 @@
1
1
  module BowerVendor
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -31,6 +31,8 @@ class BowerVendor::Yarn < BowerVendor::Copy
31
31
  vendor = nil
32
32
  lines.each do |line|
33
33
  next if line.start_with?('#')
34
+ next if line.empty?
35
+
34
36
  if line.start_with?(' version')
35
37
  version = line.split(' ').last.tr('"', '')
36
38
  versions[vendor] = version
@@ -38,7 +40,9 @@ class BowerVendor::Yarn < BowerVendor::Copy
38
40
  elsif line.start_with?(' ')
39
41
  next
40
42
  else
41
- vendor = line.tr('"', '').split('@').first
43
+ line = line.tr('"', '')
44
+ vendor = line.split('@').select { |e| !e.empty? }.first
45
+ vendor = "@#{vendor}" if line.start_with?('@')
42
46
  end
43
47
  end
44
48
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bower_vendor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - kari
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.7.4
123
+ rubygems_version: 2.7.3
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Use bower to manage resources for rails application