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 +4 -4
- data/README.md +23 -0
- data/config/bower_vendor.yml +1 -0
- data/lib/bower_vendor/setup.rb +9 -2
- data/lib/bower_vendor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71c6b47d3180e746ab297450516eebc265381506
|
4
|
+
data.tar.gz: 9ce29e8333311819e14bf1696040d009ea0cecf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/config/bower_vendor.yml
CHANGED
data/lib/bower_vendor/setup.rb
CHANGED
@@ -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
|
-
|
20
|
-
|
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"
|
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.0.
|
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-
|
11
|
+
date: 2015-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|