jekyll-bower 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.md +21 -21
- data/README.md +40 -37
- data/lib/jekyll-bower.rb +12 -12
- data/lib/jekyll/bower_plugin.rb +25 -21
- data/lib/jekyll/plugin_version.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 112247d0d1179a7ff63e41a7cb92ac6b8df3d491
|
4
|
+
data.tar.gz: 534bf8534a4fcb97959d303793f9c08ed652eb1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ff0e3a6e8e5db1e04489eab4ac26045213eb8e2ce90f3d44e699c44512ed0a174e7bf6ecdc0334026890698804cab6b451c666eb494c031d601eb7e5940d41f
|
7
|
+
data.tar.gz: 32dbf26725b334be4b1775bd27ec42bcce983d843454f3b9839b3ef5a77cd2196a8f88f9547a32cc350b50d3b57e0ef5de243d697f1cd5de49a88325f593b88a
|
data/LICENSE.md
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2016 Rohan Sakhale
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Rohan Sakhale
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,38 +1,41 @@
|
|
1
|
-
# Jekyll Bower
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
```
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
1
|
+
# Jekyll Bower
|
2
|
+
|
3
|
+
[](https://gitlab.com/SaiAshirwadInformatia/Jekyll-Bower/commits/master)
|
4
|
+
[](https://badge.fury.io/rb/jekyll-bower)
|
5
|
+
|
6
|
+
This plugin provides support for resolving JavaScript dependencies using **bower**
|
7
|
+
|
8
|
+
### Installation
|
9
|
+
|
10
|
+
This plugin is available as a [RubyGem](https://rubygems.org/gems/jekyll-bower/)
|
11
|
+
|
12
|
+
Add this line to your application's Gemfile:
|
13
|
+
|
14
|
+
```
|
15
|
+
gem 'jekyll-bower'
|
16
|
+
```
|
17
|
+
|
18
|
+
And then execute the `bundle install` command to install the gem.
|
19
|
+
|
20
|
+
Alternatively, you can also manually install the gem using the following command:
|
21
|
+
|
22
|
+
```
|
23
|
+
$ gem install jekyll-bower
|
24
|
+
```
|
25
|
+
|
26
|
+
After the plugin has been installed successfully, add the following lines to your _config.yml in order to tell Jekyll to use the plugin:
|
27
|
+
|
28
|
+
```yaml
|
29
|
+
gems:
|
30
|
+
- jekyll-bower
|
31
|
+
```
|
32
|
+
|
33
|
+
### Contribute
|
34
|
+
|
35
|
+
Fork this repository, make your changes and then issue a pull request. If you find bugs or have new ideas that you do not want to implement yourself, file a bug report.
|
36
|
+
|
37
|
+
### Copyright
|
38
|
+
|
39
|
+
Copyright (c) 2016 Rohan Sakhale
|
40
|
+
|
38
41
|
License: MIT
|
data/lib/jekyll-bower.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
# Generate script code for Google Analytics with Liquid Tag
|
2
|
-
require 'jekyll'
|
3
|
-
require 'jekyll/bower_plugin'
|
4
|
-
require 'jekyll/plugin_version'
|
5
|
-
|
6
|
-
# Register Jekyll Site Post Read hook of Bower plugin
|
7
|
-
Jekyll::Hooks.register :site, :pre_render do |jekyll| # jekyll here acts as site global object
|
8
|
-
Jekyll::Bower.new()
|
9
|
-
print "Reading newly generated bower components"
|
10
|
-
jekyll.reset()
|
11
|
-
jekyll.read()
|
12
|
-
print "Looks like verything is ready"
|
1
|
+
# Generate script code for Google Analytics with Liquid Tag
|
2
|
+
require 'jekyll'
|
3
|
+
require 'jekyll/bower_plugin'
|
4
|
+
require 'jekyll/plugin_version'
|
5
|
+
|
6
|
+
# Register Jekyll Site Post Read hook of Bower plugin
|
7
|
+
Jekyll::Hooks.register :site, :pre_render do |jekyll| # jekyll here acts as site global object
|
8
|
+
Jekyll::Bower.new()
|
9
|
+
print "Reading newly generated bower components"
|
10
|
+
jekyll.reset()
|
11
|
+
jekyll.read()
|
12
|
+
print "Looks like verything is ready"
|
13
13
|
end
|
data/lib/jekyll/bower_plugin.rb
CHANGED
@@ -1,22 +1,26 @@
|
|
1
|
-
|
2
|
-
module Jekyll
|
3
|
-
class Bower
|
4
|
-
def initialize()
|
5
|
-
print "Checking if NPM is available\n"
|
6
|
-
fail unless system('which npm')
|
7
|
-
print "Great, NPM is available\n"
|
8
|
-
print "Checkin if Bower is available\n"
|
9
|
-
unless system('which bower')
|
10
|
-
print "Bower not available\n"
|
11
|
-
print "Installing bower\n"
|
12
|
-
system('npm install -g bower')
|
13
|
-
print "Installation completed\n"
|
14
|
-
else
|
15
|
-
print "Great, Bower is available\n"
|
16
|
-
end
|
17
|
-
print "Resolving dependencies with bower\n"
|
18
|
-
system('bower install')
|
19
|
-
|
20
|
-
|
21
|
-
|
1
|
+
|
2
|
+
module Jekyll
|
3
|
+
class Bower
|
4
|
+
def initialize()
|
5
|
+
print "Checking if NPM is available\n"
|
6
|
+
fail unless system('which npm')
|
7
|
+
print "Great, NPM is available\n"
|
8
|
+
print "Checkin if Bower is available\n"
|
9
|
+
unless system('which bower')
|
10
|
+
print "Bower not available\n"
|
11
|
+
print "Installing bower\n"
|
12
|
+
system('npm install -g bower')
|
13
|
+
print "Installation completed\n"
|
14
|
+
else
|
15
|
+
print "Great, Bower is available\n"
|
16
|
+
end
|
17
|
+
print "Resolving dependencies with bower\n"
|
18
|
+
unless system('bower install')
|
19
|
+
print "Looks like bower is run by a sudo user\n"
|
20
|
+
print "Trying with --allow-root\n"
|
21
|
+
system('bower install --allow-root')
|
22
|
+
end
|
23
|
+
print "Bower dependencies resolved successfully\n"
|
24
|
+
end
|
25
|
+
end
|
22
26
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
module Jekyll
|
3
|
-
class Bower
|
4
|
-
VERSION = "1.0.
|
5
|
-
end
|
1
|
+
|
2
|
+
module Jekyll
|
3
|
+
class Bower
|
4
|
+
VERSION = "1.0.7".freeze
|
5
|
+
end
|
6
6
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-bower
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rohan Sakhale
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.6.6
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: This plugin helps install bower that helps resolve JavaScript dependencies
|