branch_base 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/branch_base/cli.rb +4 -2
- data/lib/branch_base/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc2fd31ad2a015dc7193e8969d004ab5b47a4de51bb6b070affaf06a53a9ccfc
|
4
|
+
data.tar.gz: 38390be061f730fd42260dbd469bd13d2c00a1f76a4034c0503c1f2def4b8730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65d38708fa5b79e534cb46b7c3c49215bc926a4e6113d78e2b06ec80a232c7087377a947362a27cb76e09423e026ee4c00dbef4140dccb8b2d72ceade09e1f0c
|
7
|
+
data.tar.gz: 429969c6cabff024eec2dc804bdec41956bddfab2f4c1c497a0a2d17e92d115f1239bb3376709911083bf3157e9af042b018a6f72fc055d8336899d4acf2a898
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/lib/branch_base/cli.rb
CHANGED
@@ -57,8 +57,10 @@ module BranchBase
|
|
57
57
|
File.write(json_full_path, JSON.pretty_generate(@results))
|
58
58
|
BranchBase.logger.info("Git wrapped JSON stored in #{json_full_path}")
|
59
59
|
|
60
|
-
|
61
|
-
|
60
|
+
gem_root = Gem::Specification.find_by_name("branch_base").gem_dir
|
61
|
+
template_file_path =
|
62
|
+
File.join(gem_root, "lib", "internal", "template.html.erb")
|
63
|
+
erb = ERB.new(File.read(template_file_path))
|
62
64
|
generated_html = erb.result(binding)
|
63
65
|
|
64
66
|
html_full_path = "#{full_repo_path}/git-wrapped.html"
|
data/lib/branch_base/version.rb
CHANGED