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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 376a8400e93df09c74ad183ccb54be4f43aa7debe5da8b6726bdcc1f92451b38
4
- data.tar.gz: 769b1358664ad78b83b26d14aa1351430feef03f3f7ac7fb90122877481deaae
2
+ SHA1:
3
+ metadata.gz: f85364e824eb274d778b704afb164438d9e6a4f2
4
+ data.tar.gz: d92fcc6794a03b1789775b03abd17f55fadaf596
5
5
  SHA512:
6
- metadata.gz: 85804386d48a177b32e3896f759761eaeebc04465ebb945a1654bd9ddbbfa2ca83f626485fb3014ac0670fc40081bb557b52186ca1e4e80802c0db8d465700be
7
- data.tar.gz: 7383d144b491779979b5368fa9a5d83e6b4ff16804b8fad219e62dc160b76b679b678f73c10437a7fb023ca89f682e97a91bee51e6eb59f73418fe14ebac9d54
6
+ metadata.gz: 538072251793d3ad6b1d72e77f9223ef37c5661910f25b815650547bf0b16475fb9a62b7577f626164a50dc69ec79b26f067679b32aa1a5058da162d97409fb1
7
+ data.tar.gz: 70fa62ee6c489871cc23e835abff057f97ee7ae13986a5eb23ab9685366f09d7753da3309e8356a43cd583b27a21ebca417eeb9963bfbf851bc7f72dbc9cba23
@@ -1 +1 @@
1
- 2.5.0
1
+ 2.6.1
@@ -1,3 +1,3 @@
1
1
  module BowerVendor
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.19"
3
3
  end
@@ -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
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: 2018-03-09 00:00:00.000000000 Z
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.7.3
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