bower_vendor 0.0.8 → 0.0.9

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: fa7830e5d65a79a0c721890074fd606fbd08de7b
4
- data.tar.gz: b72786fdae940e9ab06d027b9ce87bd242862716
3
+ metadata.gz: 71c6b47d3180e746ab297450516eebc265381506
4
+ data.tar.gz: 9ce29e8333311819e14bf1696040d009ea0cecf3
5
5
  SHA512:
6
- metadata.gz: 43a934a39d6c8d7dcc773b4f10f93a9fb203886b244b21acbc0d40c39321e7f55005d3de014f42c5e9f5f8e55720e86273decc15099c22a609ffbacf1153fa1e
7
- data.tar.gz: a288f0c188e9e35b72bcf92a8b402a02f34cfa3061abafe6e72d79871600dc81cc5be296dc15372cf396f727f7173ce1901ab6dc981132cb3bdc7efe7c9c0c68
6
+ metadata.gz: 8e7d7d40f9aaa0dd7ed75517058a0c86cacb0fb6608bf97aa3015ca3bf24f5cddf7e44ca8daae01dbf5d74f97e1124c1e0468f4ed8e6544f45247b95d209cc14
7
+ data.tar.gz: 267dada517299d486c8e6cbc2c416bd2ee60c079dcbf6a221260b2897b1b68579a68094ad31f23ae2fee9a5e723b270803fcfc5a112d66722ea452a469d04f2c
data/README.md CHANGED
@@ -30,6 +30,21 @@ gem 'bower_vendor'
30
30
 
31
31
  1) Configuration file
32
32
 
33
+ Syntax
34
+ ```ruby
35
+ # git & tag for the cases when bower central repo doesn't
36
+ # have some package registered
37
+ bootstrap-multiselect:
38
+ version: X.Y.Z
39
+ # git: git@github.com:gituser/repo-path.git
40
+ # tag: <git-tag>
41
+ assets:
42
+ - <asset-pattern>
43
+ - <asset-path>:
44
+ - <asset pattern>
45
+ ```ruby
46
+
47
+
33
48
  vendor.yml
34
49
  ```ruby
35
50
  jquery:
@@ -64,6 +79,14 @@ bootstrap-sass:
64
79
  - assets/stylesheets/bootstrap/mixins/*.scss
65
80
  # "*" matches all files
66
81
  - assets/fonts/bootstrap/*
82
+ bootstrap-multiselect:
83
+ version: 0.9.13
84
+ git: git@github.com:davidstutz/bootstrap-multiselect.git
85
+ tag: v0.9.13
86
+ assets:
87
+ - dist/css/bootstrap-multiselect.css
88
+ - dist/js/bootstrap-multiselect.js
89
+ - dist/js/bootstrap-multiselect-collapsible-groups.js
67
90
  ```
68
91
 
69
92
  2) Install assets
@@ -13,6 +13,7 @@ dst_dirs:
13
13
  less: stylesheets
14
14
  # fonts
15
15
  eot: fonts
16
+ otf: fonts
16
17
  ttf: fonts
17
18
  woff: fonts
18
19
  woff2: fonts
@@ -15,9 +15,16 @@ module BowerVendor
15
15
  }
16
16
  vendors.each do |vendor_key, vendor|
17
17
  version = vendor['version']
18
+ tag_version = version
18
19
 
19
- data[:dependencies][vendor_key] = version
20
- data[:resolutions][vendor_key] = version
20
+ git = vendor['git']
21
+ tag = vendor['tag']
22
+ if git
23
+ tag_version = tag ? "#{git}##{tag}" : git
24
+ end
25
+
26
+ data[:dependencies][vendor_key] = tag_version
27
+ data[:resolutions][vendor_key] = tag_version
21
28
  end
22
29
 
23
30
  target_file = "#{work_dir}/bower.json"
@@ -1,3 +1,3 @@
1
1
  module BowerVendor
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - kari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-17 00:00:00.000000000 Z
11
+ date: 2015-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print