bower_vendor 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/bower_vendor.rb +1 -0
- data/lib/bower_vendor/check.rb +12 -0
- data/lib/bower_vendor/setup.rb +8 -2
- data/lib/bower_vendor/version.rb +1 -1
- data/lib/tasks/bower_vendor.rake +6 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa7830e5d65a79a0c721890074fd606fbd08de7b
|
4
|
+
data.tar.gz: b72786fdae940e9ab06d027b9ce87bd242862716
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43a934a39d6c8d7dcc773b4f10f93a9fb203886b244b21acbc0d40c39321e7f55005d3de014f42c5e9f5f8e55720e86273decc15099c22a609ffbacf1153fa1e
|
7
|
+
data.tar.gz: a288f0c188e9e35b72bcf92a8b402a02f34cfa3061abafe6e72d79871600dc81cc5be296dc15372cf396f727f7173ce1901ab6dc981132cb3bdc7efe7c9c0c68
|
data/README.md
CHANGED
data/lib/bower_vendor.rb
CHANGED
data/lib/bower_vendor/setup.rb
CHANGED
@@ -19,14 +19,20 @@ module BowerVendor
|
|
19
19
|
data[:dependencies][vendor_key] = version
|
20
20
|
data[:resolutions][vendor_key] = version
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
|
+
target_file = "#{work_dir}/bower.json"
|
24
|
+
File.write(target_file, JSON.pretty_generate(data))
|
25
|
+
puts "Wrote: #{target_file}"
|
23
26
|
end
|
24
27
|
|
25
28
|
def create_bowerrc
|
26
29
|
data = {
|
27
30
|
directory: "bower_components"
|
28
31
|
}
|
29
|
-
|
32
|
+
|
33
|
+
target_file = "#{work_dir}/.bowerrc"
|
34
|
+
File.write(target_file, JSON.pretty_generate(data))
|
35
|
+
puts "Wrote: #{target_file}"
|
30
36
|
end
|
31
37
|
end
|
32
38
|
end
|
data/lib/bower_vendor/version.rb
CHANGED
data/lib/tasks/bower_vendor.rake
CHANGED
@@ -13,8 +13,13 @@ namespace :vendor do
|
|
13
13
|
BowerVendor::Setup.new.execute
|
14
14
|
end
|
15
15
|
|
16
|
+
desc 'Check for asset updates for bower_components (requires bower-check-updates)'
|
17
|
+
task :check => [:setup] do
|
18
|
+
BowerVendor::Check.new.execute
|
19
|
+
end
|
20
|
+
|
16
21
|
desc 'Fetch bower_components'
|
17
|
-
task :fetch do
|
22
|
+
task :fetch => [:setup] do
|
18
23
|
BowerVendor::Fetch.new.execute
|
19
24
|
end
|
20
25
|
|
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.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- config/bower_vendor.yml
|
85
85
|
- lib/bower_vendor.rb
|
86
86
|
- lib/bower_vendor/base.rb
|
87
|
+
- lib/bower_vendor/check.rb
|
87
88
|
- lib/bower_vendor/clean.rb
|
88
89
|
- lib/bower_vendor/copy.rb
|
89
90
|
- lib/bower_vendor/fetch.rb
|