jekyll-bower 1.0.0 → 1.0.1
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/.gitignore +68 -0
- data/.gitlab-ci.yml +15 -0
- data/Gemfile +4 -0
- data/README.md +1 -0
- data/Rakefile +11 -0
- data/jekyll-bower.gemspec +21 -0
- data/lib/jekyll/bower_plugin.rb +20 -0
- data/lib/jekyll/plugin_version.rb +6 -0
- data/lib/jekyll_bower.rb +2 -21
- metadata +66 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 663e9cab729e5dd6a28a811d7677d8de304fbfe3
|
4
|
+
data.tar.gz: 9269e39179a840a8049e4505f8dd33c79844f217
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d15feb4fe2a46b8fbd3ea2a0f9de6c911b4b17eb68afc67cc7f969897669bbe875233c055d09d4f01c57bfe534d28e6f0ce008c771db26f11a96e76dfae72c0
|
7
|
+
data.tar.gz: ba9d060ef167cb5fc9af1e2eb7668706d5591356ee8d539cca97f4d1cb548b21655fa23b7883ae1c6e213a077810b240429472c1d4b8c6fd4ba3572007224d97
|
data/.gitignore
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
|
2
|
+
# Created by https://www.gitignore.io/api/bower,ruby,jekyll
|
3
|
+
|
4
|
+
### Bower ###
|
5
|
+
bower_components
|
6
|
+
.bower-cache
|
7
|
+
.bower-registry
|
8
|
+
.bower-tmp
|
9
|
+
|
10
|
+
|
11
|
+
### Ruby ###
|
12
|
+
*.gem
|
13
|
+
*.rbc
|
14
|
+
/.config
|
15
|
+
/coverage/
|
16
|
+
/InstalledFiles
|
17
|
+
/pkg/
|
18
|
+
/spec/reports/
|
19
|
+
/spec/examples.txt
|
20
|
+
/test/tmp/
|
21
|
+
/test/version_tmp/
|
22
|
+
/tmp/
|
23
|
+
.bundler-cache
|
24
|
+
|
25
|
+
# Used by dotenv library to load environment variables.
|
26
|
+
# .env
|
27
|
+
|
28
|
+
## Specific to RubyMotion:
|
29
|
+
.dat*
|
30
|
+
.repl_history
|
31
|
+
build/
|
32
|
+
*.bridgesupport
|
33
|
+
build-iPhoneOS/
|
34
|
+
build-iPhoneSimulator/
|
35
|
+
|
36
|
+
## Specific to RubyMotion (use of CocoaPods):
|
37
|
+
#
|
38
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
39
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
40
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
41
|
+
#
|
42
|
+
# vendor/Pods/
|
43
|
+
|
44
|
+
## Documentation cache and generated files:
|
45
|
+
/.yardoc/
|
46
|
+
/_yardoc/
|
47
|
+
/doc/
|
48
|
+
/rdoc/
|
49
|
+
|
50
|
+
## Environment normalization:
|
51
|
+
/.bundle/
|
52
|
+
/vendor/bundle
|
53
|
+
/lib/bundler/man/
|
54
|
+
|
55
|
+
# for a library or gem, you might want to ignore these files since the code is
|
56
|
+
# intended to run in multiple environments; otherwise, check them in:
|
57
|
+
Gemfile.lock
|
58
|
+
# .ruby-version
|
59
|
+
# .ruby-gemset
|
60
|
+
|
61
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
62
|
+
.rvmrc
|
63
|
+
|
64
|
+
|
65
|
+
### Jekyll ###
|
66
|
+
_site/
|
67
|
+
.sass-cache/
|
68
|
+
.jekyll-metadata
|
data/.gitlab-ci.yml
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Jekyll Bower
|
data/Rakefile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'jekyll/plugin_version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = 'jekyll-bower'
|
8
|
+
s.version = JekyllPlugins::Bower::VERSION
|
9
|
+
s.summary = "This plugin helps install bower that helps resolve JavaScript dependencies"
|
10
|
+
s.description = "This plugin helps install bower that helps resolve JavaScript dependencies"
|
11
|
+
s.authors = ["Rohan Sakhale"]
|
12
|
+
s.email = 'rohansakhale@gmail.com'
|
13
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
14
|
+
s.require_paths = ['lib']
|
15
|
+
s.homepage = 'https://gitlab.com/SaiAshirwadInformatia/Jekyll-Bower'
|
16
|
+
s.license = 'MIT'
|
17
|
+
s.add_dependency 'jekyll', '~> 3.2'
|
18
|
+
s.add_development_dependency 'bundler', '~> 1.10'
|
19
|
+
s.add_development_dependency 'rake', '~> 10.0'
|
20
|
+
s.add_development_dependency 'minitest', '~> 5.9.0'
|
21
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
|
2
|
+
module JekyllPlugins
|
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
|
+
end
|
15
|
+
print "Resolving dependencies with bower\n"
|
16
|
+
system('bower install')
|
17
|
+
print "Bower dependencies resolved successfully\n"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/jekyll_bower.rb
CHANGED
@@ -1,26 +1,7 @@
|
|
1
1
|
# Generate script code for Google Analytics with Liquid Tag
|
2
2
|
require 'jekyll'
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
class Bower
|
7
|
-
def initialize()
|
8
|
-
print "Checking if NPM is available\n"
|
9
|
-
fail unless system('which npm')
|
10
|
-
print "Great, NPM is available\n"
|
11
|
-
print "Checkin if Bower is available\n"
|
12
|
-
unless system('which bower')
|
13
|
-
print "Bower not available\n"
|
14
|
-
print "Installing bower\n"
|
15
|
-
system('npm install -g bower')
|
16
|
-
print "Installation completed\n"
|
17
|
-
end
|
18
|
-
print "Resolving dependencies with bower\n"
|
19
|
-
system('bower install')
|
20
|
-
print "Bower dependencies resolved successfully\n"
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
3
|
+
require_relative 'jekyll/bower_plugin.rb'
|
4
|
+
require_relative 'jekyll/plugin_version.rb'
|
24
5
|
|
25
6
|
# Register Jekyll Site Post Read hook of Bower plugin
|
26
7
|
Jekyll::Hooks.register :site, :post_read do |jekyll| # jekyll here acts as site global object
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rohan Sakhale
|
@@ -9,13 +9,77 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-09-18 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 5.9.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 5.9.0
|
13
69
|
description: This plugin helps install bower that helps resolve JavaScript dependencies
|
14
70
|
email: rohansakhale@gmail.com
|
15
71
|
executables: []
|
16
72
|
extensions: []
|
17
73
|
extra_rdoc_files: []
|
18
74
|
files:
|
75
|
+
- ".gitignore"
|
76
|
+
- ".gitlab-ci.yml"
|
77
|
+
- Gemfile
|
78
|
+
- README.md
|
79
|
+
- Rakefile
|
80
|
+
- jekyll-bower.gemspec
|
81
|
+
- lib/jekyll/bower_plugin.rb
|
82
|
+
- lib/jekyll/plugin_version.rb
|
19
83
|
- lib/jekyll_bower.rb
|
20
84
|
homepage: https://gitlab.com/SaiAshirwadInformatia/Jekyll-Bower
|
21
85
|
licenses:
|