bower_vendor 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/bower_vendor/copy.rb +9 -0
- data/lib/bower_vendor/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c88e677626899af69b9baa2f75aa1b0281f00716b9136b922749a0f88b10179f
|
4
|
+
data.tar.gz: b2e8b37896d31ee8dfe46b3ee85ab17aa36aabfe8098dd3ba3879912cc5f6579
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3df637690db6045e9fe3440495de9879ec90cd59786f27794217ff9b9ebdec068f5fb4c38baa98d292a4511460811cb68a75bad5fcea5490d10c3f10ecb3d1c
|
7
|
+
data.tar.gz: b333a4c5d4d8e4acc805502cbd0669a11debba63227bb363bcbbf56d6067ab845ff5265d86632ea7e43dfaf1c03f2c17e50d1832b173657a14d9bb077e530aa5
|
data/lib/bower_vendor/copy.rb
CHANGED
@@ -79,6 +79,15 @@ class BowerVendor::Copy < BowerVendor::Base
|
|
79
79
|
full_dst_file = "#{dst_dir}/#{dst_file}"
|
80
80
|
|
81
81
|
msg level, "#{full_src_file} => #{full_dst_file}"
|
82
|
+
|
83
|
+
# NOTE KI create symlink to "current" version
|
84
|
+
vendor_parsed_path = vendor.split('/')
|
85
|
+
Dir.chdir(File.join(base_dst_dir, vendor_parsed_path[0, vendor_parsed_path.length - 1])) do
|
86
|
+
vendor_versioned_dir = vendor_parsed_path.last
|
87
|
+
FileUtils.rm_f(vendor_versioned_dir)
|
88
|
+
FileUtils.ln_sf("#{vendor_versioned_dir}-#{version}", vendor_versioned_dir)
|
89
|
+
end
|
90
|
+
|
82
91
|
if !Dir.exist? dst_dir
|
83
92
|
FileUtils.mkdir_p dst_dir
|
84
93
|
end
|
data/lib/bower_vendor/version.rb
CHANGED
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.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -119,8 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
|
123
|
-
rubygems_version: 2.5.1
|
122
|
+
rubygems_version: 3.0.1
|
124
123
|
signing_key:
|
125
124
|
specification_version: 4
|
126
125
|
summary: Use bower to manage resources for rails application
|