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 +4 -4
- data/lib/bower_vendor/version.rb +1 -1
- data/lib/bower_vendor/yarn.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 376a8400e93df09c74ad183ccb54be4f43aa7debe5da8b6726bdcc1f92451b38
|
4
|
+
data.tar.gz: 769b1358664ad78b83b26d14aa1351430feef03f3f7ac7fb90122877481deaae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85804386d48a177b32e3896f759761eaeebc04465ebb945a1654bd9ddbbfa2ca83f626485fb3014ac0670fc40081bb557b52186ca1e4e80802c0db8d465700be
|
7
|
+
data.tar.gz: 7383d144b491779979b5368fa9a5d83e6b4ff16804b8fad219e62dc160b76b679b678f73c10437a7fb023ca89f682e97a91bee51e6eb59f73418fe14ebac9d54
|
data/lib/bower_vendor/version.rb
CHANGED
data/lib/bower_vendor/yarn.rb
CHANGED
@@ -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
|
-
|
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.
|
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.
|
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
|