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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40b94a6c0e67435ecf67a7c9bce571bde6d76977
4
- data.tar.gz: c44f3a324598d272eee982c6340d348fc00ee8e1
3
+ metadata.gz: fa7830e5d65a79a0c721890074fd606fbd08de7b
4
+ data.tar.gz: b72786fdae940e9ab06d027b9ce87bd242862716
5
5
  SHA512:
6
- metadata.gz: 2f448ce2d796af330109869cd884e6869ce2a5591d536b67156bcfa974f0f6ad77b96114c6ac75abd8e8916b8f139c7823002e2c7ec6317991fba9eda15b160f
7
- data.tar.gz: a2f344f6d003323bb7402c4b10ef61171567e846c8c92cf3bbde5e5d7e865837777426d2055bfc82b0d438417db819166abf88fae414c0d52b924218e5035593
6
+ metadata.gz: 43a934a39d6c8d7dcc773b4f10f93a9fb203886b244b21acbc0d40c39321e7f55005d3de014f42c5e9f5f8e55720e86273decc15099c22a609ffbacf1153fa1e
7
+ data.tar.gz: a288f0c188e9e35b72bcf92a8b402a02f34cfa3061abafe6e72d79871600dc81cc5be296dc15372cf396f727f7173ce1901ab6dc981132cb3bdc7efe7c9c0c68
data/README.md CHANGED
@@ -98,6 +98,13 @@ app/assets/javascripts/application.js
98
98
  //
99
99
  ```
100
100
 
101
+ 4) Check for asset updates
102
+
103
+ ```bash
104
+ bundle exec rake vendor:check
105
+ ```
106
+
107
+
101
108
  # TODO
102
109
 
103
110
  - Improve documentation
@@ -5,6 +5,7 @@ require 'json'
5
5
  require "bower_vendor/version"
6
6
  require "bower_vendor/base"
7
7
  require "bower_vendor/clean"
8
+ require "bower_vendor/check"
8
9
  require "bower_vendor/copy"
9
10
  require "bower_vendor/fetch"
10
11
  require "bower_vendor/setup"
@@ -0,0 +1,12 @@
1
+ module BowerVendor
2
+ class Check < Base
3
+ def execute
4
+ Dir.chdir(work_dir) do
5
+ fork do
6
+ exec "bcu"
7
+ end
8
+ Process.wait
9
+ end
10
+ end
11
+ end
12
+ end
@@ -19,14 +19,20 @@ module BowerVendor
19
19
  data[:dependencies][vendor_key] = version
20
20
  data[:resolutions][vendor_key] = version
21
21
  end
22
- File.write("#{work_dir}/bower.json", JSON.pretty_generate(data))
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
- File.write("#{work_dir}/.bowerrc", JSON.pretty_generate(data))
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
@@ -1,3 +1,3 @@
1
1
  module BowerVendor
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -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.7
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-07-02 00:00:00.000000000 Z
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