bower_vendor 0.1.4 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/lib/bower_vendor/version.rb +1 -1
- data/lib/bower_vendor/yarn.rb +20 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f85364e824eb274d778b704afb164438d9e6a4f2
|
4
|
+
data.tar.gz: d92fcc6794a03b1789775b03abd17f55fadaf596
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 538072251793d3ad6b1d72e77f9223ef37c5661910f25b815650547bf0b16475fb9a62b7577f626164a50dc69ec79b26f067679b32aa1a5058da162d97409fb1
|
7
|
+
data.tar.gz: 70fa62ee6c489871cc23e835abff057f97ee7ae13986a5eb23ab9685366f09d7753da3309e8356a43cd583b27a21ebca417eeb9963bfbf851bc7f72dbc9cba23
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.1
|
data/lib/bower_vendor/version.rb
CHANGED
data/lib/bower_vendor/yarn.rb
CHANGED
@@ -23,11 +23,14 @@ class BowerVendor::Yarn < BowerVendor::Copy
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def load_vendor_versions
|
26
|
+
puts "RESOLVE yarn vendor versions"
|
26
27
|
data = File.read 'yarn.lock'
|
27
28
|
lines = data.split("\n")
|
28
29
|
|
29
30
|
versions = {}
|
30
31
|
|
32
|
+
vendors = []
|
33
|
+
|
31
34
|
vendor = nil
|
32
35
|
lines.each do |line|
|
33
36
|
next if line.start_with?('#')
|
@@ -43,6 +46,23 @@ class BowerVendor::Yarn < BowerVendor::Copy
|
|
43
46
|
line = line.tr('"', '')
|
44
47
|
vendor = line.split('@').select { |e| !e.empty? }.first
|
45
48
|
vendor = "@#{vendor}" if line.start_with?('@')
|
49
|
+
vendors << vendor
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
vendors.each do |vendor|
|
54
|
+
package_file_path = "node_modules/#{vendor}/package.json"
|
55
|
+
if File.exists?(package_file_path)
|
56
|
+
json = File.read(package_file_path)
|
57
|
+
data = JSON.parse(json)
|
58
|
+
version = data['version']
|
59
|
+
|
60
|
+
if versions[vendor] != version
|
61
|
+
puts "CORRECTED: #{vendor} => #{version} (was: #{versions[vendor]})"
|
62
|
+
versions[vendor] = version
|
63
|
+
end
|
64
|
+
else
|
65
|
+
puts "NOT_FOUND: #{vendor} => ??? (was: #{versions[vendor]})"
|
46
66
|
end
|
47
67
|
end
|
48
68
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -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.
|
123
|
+
rubygems_version: 2.5.1
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Use bower to manage resources for rails application
|