branch_base 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e8975df88b472de6656de7de0d8e12f001d75199ac700cda2f5ad000ee77195
4
- data.tar.gz: 9c5eb74b754b008a63a212fb2c0a383dc47706d8e086a797d96520b8bf917e2e
3
+ metadata.gz: fc2fd31ad2a015dc7193e8969d004ab5b47a4de51bb6b070affaf06a53a9ccfc
4
+ data.tar.gz: 38390be061f730fd42260dbd469bd13d2c00a1f76a4034c0503c1f2def4b8730
5
5
  SHA512:
6
- metadata.gz: 48fc53438c183e89d834dc29570b69acde47b100cadcc007a8726c348d26f2e7823ccbb542bc296e9dd6324903c6dea3efc548524306d5321088d4ddc416f715
7
- data.tar.gz: c198e8cff780a0758dfff5e97dfb87eb73cd60b40e105d80d83416c3359052584002c4c17ac88a640eb8b2d54c6d06cd9771d267f4fd4bd05bb86a80b0d4fa5c
6
+ metadata.gz: 65d38708fa5b79e534cb46b7c3c49215bc926a4e6113d78e2b06ec80a232c7087377a947362a27cb76e09423e026ee4c00dbef4140dccb8b2d72ceade09e1f0c
7
+ data.tar.gz: 429969c6cabff024eec2dc804bdec41956bddfab2f4c1c497a0a2d17e92d115f1239bb3376709911083bf3157e9af042b018a6f72fc055d8336899d4acf2a898
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ node_modules
17
17
 
18
18
  *.db
19
19
  .DS_Store
20
+ *.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- branch_base (0.1.3)
4
+ branch_base (0.1.4)
5
5
  rugged
6
6
  sqlite3
7
7
  thor (~> 1.0)
@@ -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
- erb_template = File.read("./lib/internal/template.html.erb")
61
- erb = ERB.new(erb_template)
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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BranchBase
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: branch_base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shayon Mukherjee