jekyll-git 0.3.3 → 0.3.6

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.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/gem-push.yml +7 -0
  3. data/Gemfile +1 -1
  4. data/README.md +3 -3
  5. data/{jekyll-git_metadata.gemspec → jekyll-git.gemspec} +4 -4
  6. data/lib/jekyll/git_metadata/version.rb +1 -1
  7. metadata +10 -166
  8. data/test/helper.rb +0 -32
  9. data/test/test_git_metadata.rb +0 -227
  10. data/test/test_repo/.gitignore +0 -1
  11. data/test/test_repo/_config.yml +0 -17
  12. data/test/test_repo/_gizmos/yoyo.md +0 -9
  13. data/test/test_repo/_includes/footer.html +0 -61
  14. data/test/test_repo/_includes/head.html +0 -12
  15. data/test/test_repo/_includes/header.html +0 -28
  16. data/test/test_repo/_layouts/default.html +0 -19
  17. data/test/test_repo/_layouts/page.html +0 -14
  18. data/test/test_repo/_layouts/post.html +0 -15
  19. data/test/test_repo/_posts/2014-07-14-welcome-to-jekyll.markdown +0 -30
  20. data/test/test_repo/about.md +0 -11
  21. data/test/test_repo/css/main.css +0 -410
  22. data/test/test_repo/dot_git/COMMIT_EDITMSG +0 -1
  23. data/test/test_repo/dot_git/HEAD +0 -1
  24. data/test/test_repo/dot_git/MERGE_RR +0 -0
  25. data/test/test_repo/dot_git/ORIG_HEAD +0 -1
  26. data/test/test_repo/dot_git/config +0 -7
  27. data/test/test_repo/dot_git/description +0 -1
  28. data/test/test_repo/dot_git/hooks/applypatch-msg.sample +0 -15
  29. data/test/test_repo/dot_git/hooks/commit-msg.sample +0 -24
  30. data/test/test_repo/dot_git/hooks/post-update.sample +0 -8
  31. data/test/test_repo/dot_git/hooks/pre-applypatch.sample +0 -14
  32. data/test/test_repo/dot_git/hooks/pre-commit.sample +0 -49
  33. data/test/test_repo/dot_git/hooks/pre-push.sample +0 -54
  34. data/test/test_repo/dot_git/hooks/pre-rebase.sample +0 -169
  35. data/test/test_repo/dot_git/hooks/prepare-commit-msg.sample +0 -36
  36. data/test/test_repo/dot_git/hooks/update.sample +0 -128
  37. data/test/test_repo/dot_git/index +0 -0
  38. data/test/test_repo/dot_git/info/exclude +0 -6
  39. data/test/test_repo/dot_git/logs/HEAD +0 -9
  40. data/test/test_repo/dot_git/logs/refs/heads/master +0 -8
  41. data/test/test_repo/dot_git/objects/00/26c4c5df4d5148a07b9fbd790620f4e11d0802 +0 -0
  42. data/test/test_repo/dot_git/objects/0a/842bc255214909543fb198145783107e735907 +0 -0
  43. data/test/test_repo/dot_git/objects/0b/6d4b0cffe0117537f4ac31c918588c394778ef +0 -0
  44. data/test/test_repo/dot_git/objects/0e/a9d20342677512902dde3175a73e1dd1059e67 +0 -0
  45. data/test/test_repo/dot_git/objects/13/30fa92b3c8d94ee3ebb645b04154e735c04cf1 +0 -0
  46. data/test/test_repo/dot_git/objects/1a/24ab60234bd846f0f1532f914d66ea986fadbb +0 -0
  47. data/test/test_repo/dot_git/objects/25/d62f6feeb7190483f81564f4a76c1ec33d5118 +0 -0
  48. data/test/test_repo/dot_git/objects/32/3a65e20f0feb846438bbda1a0396ea2db7616e +0 -0
  49. data/test/test_repo/dot_git/objects/32/fff15665e830f9bdd82ea46a906bd3cf1122b0 +0 -1
  50. data/test/test_repo/dot_git/objects/3d/32f2f8ec3470e6a88ad1f9096e539cec42a47a +0 -0
  51. data/test/test_repo/dot_git/objects/3e/d64bb62b98b0827096cda5da5a728ec1bf5e3e +0 -1
  52. data/test/test_repo/dot_git/objects/48/d97759a460f607e077eea99a2df7b3cd5a2601 +0 -0
  53. data/test/test_repo/dot_git/objects/4c/2dd956115a971f5376a998bc4b243022c8881e +0 -0
  54. data/test/test_repo/dot_git/objects/4d/1b13c2e1ef1c1a944aae52994682da833a5bef +0 -1
  55. data/test/test_repo/dot_git/objects/4d/7f8a4c1a1bac8d553ba169e18882a7f51235bd +0 -0
  56. data/test/test_repo/dot_git/objects/59/821b143fbc62850d08e3f70c70d02af08df684 +0 -0
  57. data/test/test_repo/dot_git/objects/59/bc060e8c1fbe31c985e00c6cc2fef3b46c0c62 +0 -0
  58. data/test/test_repo/dot_git/objects/60/9711c27d50b5ab6ecc7d8fd485082481f9fc4a +0 -0
  59. data/test/test_repo/dot_git/objects/62/61f5911f204a827c313081c33e2522f0dd457c +0 -0
  60. data/test/test_repo/dot_git/objects/70/343eb1287191b30371400048167253a883d6ca +0 -0
  61. data/test/test_repo/dot_git/objects/78/845656f899d0bfd86d2806b85b0c54adddd3c8 +0 -0
  62. data/test/test_repo/dot_git/objects/7f/9eb0e6044998d71653c06fdc6e359dfbfc4211 +0 -0
  63. data/test/test_repo/dot_git/objects/83/65a44c640d5c7cafc8788607a274dfd91b89bb +0 -3
  64. data/test/test_repo/dot_git/objects/83/8ad7a02ebe551a90bea885c94191667f29009c +0 -1
  65. data/test/test_repo/dot_git/objects/83/8daa5e0163161d6e47bd1b0d783ca7307066c6 +0 -0
  66. data/test/test_repo/dot_git/objects/88/090a3ea8ce80e49ea42d249836aaa25f257454 +0 -0
  67. data/test/test_repo/dot_git/objects/8d/1f788990d1f80ebcbe7b78c3e5c393b7a41943 +0 -0
  68. data/test/test_repo/dot_git/objects/99/117f666995e8836652d9590daa2fdcb4de8b2a +0 -0
  69. data/test/test_repo/dot_git/objects/9e/00340e45d33e52bb16100f1b613a36f82f9c57 +0 -0
  70. data/test/test_repo/dot_git/objects/a9/f5097c614e0d4be7f900c04d782d3b1d675ee2 +0 -0
  71. data/test/test_repo/dot_git/objects/ae/45638b71046b28d46a764d8a2f7780fec58c01 +0 -1
  72. data/test/test_repo/dot_git/objects/af/415865cd1f1c0a5963a5d45b1335856e23dae8 +0 -0
  73. data/test/test_repo/dot_git/objects/b8/ffd38affdd1cc22ee4cb830cbe5c398b4e3df1 +0 -2
  74. data/test/test_repo/dot_git/objects/ba/a938862bbe45533863069649b40fdebf59e81c +0 -0
  75. data/test/test_repo/dot_git/objects/c0/8f9add7a1d48045bec46451dfdbb5b5ebf8dc0 +0 -0
  76. data/test/test_repo/dot_git/objects/c8/f101653f2c1de3611232fc4c940246b06779cd +0 -0
  77. data/test/test_repo/dot_git/objects/da/077394cb4d5bf7ffac527dbfc652ec0592b423 +0 -2
  78. data/test/test_repo/dot_git/objects/e1/ec08bcf36967f7be9ec6df51c862cc86305f4f +0 -3
  79. data/test/test_repo/dot_git/objects/e3/c2be348eb0873f7ac3f500ae6daaa93ebd7959 +0 -0
  80. data/test/test_repo/dot_git/objects/e5/e6f26a0481e83434feb2de4ef29843c8a1b8b2 +0 -0
  81. data/test/test_repo/dot_git/objects/e7/76acafd9b27ddcdd8e8a2c973b1fa1ccd690ab +0 -3
  82. data/test/test_repo/dot_git/objects/ff/74852f93c8e337b7ae3088c31cfe8673def356 +0 -0
  83. data/test/test_repo/dot_git/refs/heads/master +0 -1
  84. data/test/test_repo/feed.xml +0 -30
  85. data/test/test_repo/index.html +0 -20
  86. /data/{LICENSE.txt → LICENSE} +0 -0
  87. /data/lib/{jekyll-git_metadata.rb → jekyll-git.rb} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3e81fefb94077e191ada3164a4aae3b61b0a8213134818b155771c0267cb77f
4
- data.tar.gz: 22a905b0b143b9ef49b453a008f033835c3c7dfadd2b7b0ca49e6ef1e4656223
3
+ metadata.gz: 1b7f55c5c2d58071fa5ca1f35b931e9695f9b120320faf92b3d718de82fd0ce7
4
+ data.tar.gz: 89a9a1e8e893679b74dd5d88e4a81ec6c929ef52e76fd4f7955ece127e8adcf0
5
5
  SHA512:
6
- metadata.gz: 5f3ddfa2e34d5c71ed90028a05525b10888442a00cc73d0064a7ab6187446e5671bcca7b9cb945f0fbe1fc242e12a7c15d945cfb29e83ae7404c90b9b8743be5
7
- data.tar.gz: b194ccbf3caa47a2ffac402f6597bf9a1146aa8d0451f4055b2c1ee3d22bb2fd6892a46399c84fe144a5bdded82035e759a94d86275d4ffe9742f1d72905a41d
6
+ metadata.gz: e1f6b076072f1505be51b7c95d901cd220ba6bd01a6c0e42d375c1c9db08098939b8976bc6b6f712796121991e9b91da976526ef32498e77667ed4a6ff65a80a
7
+ data.tar.gz: 79f855c4cc2f0832b14fe1419699b9b7257d9a7d743eb3a1ae22e8fd9b2cb9bf3a231224ba63930b67c6d300ea31f9660d33b6ae70e567d7981c661977e2d320
@@ -43,3 +43,10 @@ jobs:
43
43
  env:
44
44
  GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
45
45
  OWNER: ${{ github.repository_owner }}
46
+
47
+ - name: Publish to RubyGems
48
+ uses: cadwallion/publish-rubygems-action@master
49
+ env:
50
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
51
+ RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
52
+ RELEASE_COMMAND: rake release
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in jekyll-git_metadata.gemspec
3
+ # Specify your gem's dependencies in jekyll-git.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -22,14 +22,14 @@ My version of thie gem is installable from GitHub Package Registry (GPR)'s rubyg
22
22
 
23
23
  Install with the command line:
24
24
  ```bash
25
- gem install jekyll-git_metadata
25
+ gem install jekyll-git
26
26
  ```
27
27
 
28
28
  Add to your `Gemfile`:
29
29
 
30
30
  ```
31
31
  source "https://rubygems.pkg.github.com/joshpinto6" do
32
- gem "jekyll-git_metadata"
32
+ gem "jekyll-git"
33
33
  end
34
34
  ```
35
35
 
@@ -37,7 +37,7 @@ Add to your `_config.yml`:
37
37
 
38
38
  ```yml
39
39
  gems:
40
- - jekyll-git_metadata
40
+ - jekyll-git
41
41
  ```
42
42
 
43
43
  ## ⌨️ Usage
@@ -6,14 +6,14 @@ require 'jekyll/git_metadata/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "jekyll-git"
8
8
  spec.version = Jekyll::GitMetadata::VERSION
9
- spec.authors = ["joshpinto6"]
9
+ spec.authors = ["matmanna"]
10
10
  spec.email = [""]
11
11
  spec.summary = %q{Expose Git metadata to Jekyll.}
12
12
  spec.description = %q{Get access to Git information in your Jekyll templates}
13
- spec.homepage = "https://github.com/joshpinto6/jekyll-git"
13
+ spec.homepage = "https://github.com/matmanna/jekyll-git"
14
14
  spec.license = "MIT"
15
- spec.metadata["homepage"] = "https://github.com/joshpinto6/jekyll"
16
- spec.metadata["source_code_uri"] = "https://github.com/joshpinto6/jekyll-git"
15
+ spec.metadata["homepage"] = "https://github.com/matmanna/jekyll"
16
+ spec.metadata["source_code_uri"] = "https://github.com/matmanna/jekyll-git"
17
17
 
18
18
  spec.files = `git ls-files -z`.split("\x0")
19
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module GitMetadata
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-git
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
- - joshpinto6
7
+ - matmanna
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-27 00:00:00.000000000 Z
10
+ date: 2025-11-11 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: jekyll
@@ -90,98 +90,20 @@ files:
90
90
  - ".gitignore"
91
91
  - ".travis.yml"
92
92
  - Gemfile
93
- - LICENSE.txt
93
+ - LICENSE
94
94
  - README.md
95
95
  - Rakefile
96
- - jekyll-git_metadata.gemspec
97
- - lib/jekyll-git_metadata.rb
96
+ - jekyll-git.gemspec
97
+ - lib/jekyll-git.rb
98
98
  - lib/jekyll/git_metadata.rb
99
99
  - lib/jekyll/git_metadata/generator.rb
100
100
  - lib/jekyll/git_metadata/version.rb
101
- - test/helper.rb
102
- - test/test_git_metadata.rb
103
- - test/test_repo/.gitignore
104
- - test/test_repo/_config.yml
105
- - test/test_repo/_gizmos/yoyo.md
106
- - test/test_repo/_includes/footer.html
107
- - test/test_repo/_includes/head.html
108
- - test/test_repo/_includes/header.html
109
- - test/test_repo/_layouts/default.html
110
- - test/test_repo/_layouts/page.html
111
- - test/test_repo/_layouts/post.html
112
- - test/test_repo/_posts/2014-07-14-welcome-to-jekyll.markdown
113
- - test/test_repo/about.md
114
- - test/test_repo/css/main.css
115
- - test/test_repo/dot_git/COMMIT_EDITMSG
116
- - test/test_repo/dot_git/HEAD
117
- - test/test_repo/dot_git/MERGE_RR
118
- - test/test_repo/dot_git/ORIG_HEAD
119
- - test/test_repo/dot_git/config
120
- - test/test_repo/dot_git/description
121
- - test/test_repo/dot_git/hooks/applypatch-msg.sample
122
- - test/test_repo/dot_git/hooks/commit-msg.sample
123
- - test/test_repo/dot_git/hooks/post-update.sample
124
- - test/test_repo/dot_git/hooks/pre-applypatch.sample
125
- - test/test_repo/dot_git/hooks/pre-commit.sample
126
- - test/test_repo/dot_git/hooks/pre-push.sample
127
- - test/test_repo/dot_git/hooks/pre-rebase.sample
128
- - test/test_repo/dot_git/hooks/prepare-commit-msg.sample
129
- - test/test_repo/dot_git/hooks/update.sample
130
- - test/test_repo/dot_git/index
131
- - test/test_repo/dot_git/info/exclude
132
- - test/test_repo/dot_git/logs/HEAD
133
- - test/test_repo/dot_git/logs/refs/heads/master
134
- - test/test_repo/dot_git/objects/00/26c4c5df4d5148a07b9fbd790620f4e11d0802
135
- - test/test_repo/dot_git/objects/0a/842bc255214909543fb198145783107e735907
136
- - test/test_repo/dot_git/objects/0b/6d4b0cffe0117537f4ac31c918588c394778ef
137
- - test/test_repo/dot_git/objects/0e/a9d20342677512902dde3175a73e1dd1059e67
138
- - test/test_repo/dot_git/objects/13/30fa92b3c8d94ee3ebb645b04154e735c04cf1
139
- - test/test_repo/dot_git/objects/1a/24ab60234bd846f0f1532f914d66ea986fadbb
140
- - test/test_repo/dot_git/objects/25/d62f6feeb7190483f81564f4a76c1ec33d5118
141
- - test/test_repo/dot_git/objects/32/3a65e20f0feb846438bbda1a0396ea2db7616e
142
- - test/test_repo/dot_git/objects/32/fff15665e830f9bdd82ea46a906bd3cf1122b0
143
- - test/test_repo/dot_git/objects/3d/32f2f8ec3470e6a88ad1f9096e539cec42a47a
144
- - test/test_repo/dot_git/objects/3e/d64bb62b98b0827096cda5da5a728ec1bf5e3e
145
- - test/test_repo/dot_git/objects/48/d97759a460f607e077eea99a2df7b3cd5a2601
146
- - test/test_repo/dot_git/objects/4c/2dd956115a971f5376a998bc4b243022c8881e
147
- - test/test_repo/dot_git/objects/4d/1b13c2e1ef1c1a944aae52994682da833a5bef
148
- - test/test_repo/dot_git/objects/4d/7f8a4c1a1bac8d553ba169e18882a7f51235bd
149
- - test/test_repo/dot_git/objects/59/821b143fbc62850d08e3f70c70d02af08df684
150
- - test/test_repo/dot_git/objects/59/bc060e8c1fbe31c985e00c6cc2fef3b46c0c62
151
- - test/test_repo/dot_git/objects/60/9711c27d50b5ab6ecc7d8fd485082481f9fc4a
152
- - test/test_repo/dot_git/objects/62/61f5911f204a827c313081c33e2522f0dd457c
153
- - test/test_repo/dot_git/objects/70/343eb1287191b30371400048167253a883d6ca
154
- - test/test_repo/dot_git/objects/78/845656f899d0bfd86d2806b85b0c54adddd3c8
155
- - test/test_repo/dot_git/objects/7f/9eb0e6044998d71653c06fdc6e359dfbfc4211
156
- - test/test_repo/dot_git/objects/83/65a44c640d5c7cafc8788607a274dfd91b89bb
157
- - test/test_repo/dot_git/objects/83/8ad7a02ebe551a90bea885c94191667f29009c
158
- - test/test_repo/dot_git/objects/83/8daa5e0163161d6e47bd1b0d783ca7307066c6
159
- - test/test_repo/dot_git/objects/88/090a3ea8ce80e49ea42d249836aaa25f257454
160
- - test/test_repo/dot_git/objects/8d/1f788990d1f80ebcbe7b78c3e5c393b7a41943
161
- - test/test_repo/dot_git/objects/99/117f666995e8836652d9590daa2fdcb4de8b2a
162
- - test/test_repo/dot_git/objects/9e/00340e45d33e52bb16100f1b613a36f82f9c57
163
- - test/test_repo/dot_git/objects/a9/f5097c614e0d4be7f900c04d782d3b1d675ee2
164
- - test/test_repo/dot_git/objects/ae/45638b71046b28d46a764d8a2f7780fec58c01
165
- - test/test_repo/dot_git/objects/af/415865cd1f1c0a5963a5d45b1335856e23dae8
166
- - test/test_repo/dot_git/objects/b8/ffd38affdd1cc22ee4cb830cbe5c398b4e3df1
167
- - test/test_repo/dot_git/objects/ba/a938862bbe45533863069649b40fdebf59e81c
168
- - test/test_repo/dot_git/objects/c0/8f9add7a1d48045bec46451dfdbb5b5ebf8dc0
169
- - test/test_repo/dot_git/objects/c8/f101653f2c1de3611232fc4c940246b06779cd
170
- - test/test_repo/dot_git/objects/da/077394cb4d5bf7ffac527dbfc652ec0592b423
171
- - test/test_repo/dot_git/objects/e1/ec08bcf36967f7be9ec6df51c862cc86305f4f
172
- - test/test_repo/dot_git/objects/e3/c2be348eb0873f7ac3f500ae6daaa93ebd7959
173
- - test/test_repo/dot_git/objects/e5/e6f26a0481e83434feb2de4ef29843c8a1b8b2
174
- - test/test_repo/dot_git/objects/e7/76acafd9b27ddcdd8e8a2c973b1fa1ccd690ab
175
- - test/test_repo/dot_git/objects/ff/74852f93c8e337b7ae3088c31cfe8673def356
176
- - test/test_repo/dot_git/refs/heads/master
177
- - test/test_repo/feed.xml
178
- - test/test_repo/index.html
179
- homepage: https://github.com/joshpinto6/jekyll-git
101
+ homepage: https://github.com/matmanna/jekyll-git
180
102
  licenses:
181
103
  - MIT
182
104
  metadata:
183
- homepage: https://github.com/joshpinto6/jekyll
184
- source_code_uri: https://github.com/joshpinto6/jekyll-git
105
+ homepage: https://github.com/matmanna/jekyll
106
+ source_code_uri: https://github.com/matmanna/jekyll-git
185
107
  rdoc_options: []
186
108
  require_paths:
187
109
  - lib
@@ -199,82 +121,4 @@ requirements: []
199
121
  rubygems_version: 3.6.2
200
122
  specification_version: 4
201
123
  summary: Expose Git metadata to Jekyll.
202
- test_files:
203
- - test/helper.rb
204
- - test/test_git_metadata.rb
205
- - test/test_repo/.gitignore
206
- - test/test_repo/_config.yml
207
- - test/test_repo/_gizmos/yoyo.md
208
- - test/test_repo/_includes/footer.html
209
- - test/test_repo/_includes/head.html
210
- - test/test_repo/_includes/header.html
211
- - test/test_repo/_layouts/default.html
212
- - test/test_repo/_layouts/page.html
213
- - test/test_repo/_layouts/post.html
214
- - test/test_repo/_posts/2014-07-14-welcome-to-jekyll.markdown
215
- - test/test_repo/about.md
216
- - test/test_repo/css/main.css
217
- - test/test_repo/dot_git/COMMIT_EDITMSG
218
- - test/test_repo/dot_git/HEAD
219
- - test/test_repo/dot_git/MERGE_RR
220
- - test/test_repo/dot_git/ORIG_HEAD
221
- - test/test_repo/dot_git/config
222
- - test/test_repo/dot_git/description
223
- - test/test_repo/dot_git/hooks/applypatch-msg.sample
224
- - test/test_repo/dot_git/hooks/commit-msg.sample
225
- - test/test_repo/dot_git/hooks/post-update.sample
226
- - test/test_repo/dot_git/hooks/pre-applypatch.sample
227
- - test/test_repo/dot_git/hooks/pre-commit.sample
228
- - test/test_repo/dot_git/hooks/pre-push.sample
229
- - test/test_repo/dot_git/hooks/pre-rebase.sample
230
- - test/test_repo/dot_git/hooks/prepare-commit-msg.sample
231
- - test/test_repo/dot_git/hooks/update.sample
232
- - test/test_repo/dot_git/index
233
- - test/test_repo/dot_git/info/exclude
234
- - test/test_repo/dot_git/logs/HEAD
235
- - test/test_repo/dot_git/logs/refs/heads/master
236
- - test/test_repo/dot_git/objects/00/26c4c5df4d5148a07b9fbd790620f4e11d0802
237
- - test/test_repo/dot_git/objects/0a/842bc255214909543fb198145783107e735907
238
- - test/test_repo/dot_git/objects/0b/6d4b0cffe0117537f4ac31c918588c394778ef
239
- - test/test_repo/dot_git/objects/0e/a9d20342677512902dde3175a73e1dd1059e67
240
- - test/test_repo/dot_git/objects/13/30fa92b3c8d94ee3ebb645b04154e735c04cf1
241
- - test/test_repo/dot_git/objects/1a/24ab60234bd846f0f1532f914d66ea986fadbb
242
- - test/test_repo/dot_git/objects/25/d62f6feeb7190483f81564f4a76c1ec33d5118
243
- - test/test_repo/dot_git/objects/32/3a65e20f0feb846438bbda1a0396ea2db7616e
244
- - test/test_repo/dot_git/objects/32/fff15665e830f9bdd82ea46a906bd3cf1122b0
245
- - test/test_repo/dot_git/objects/3d/32f2f8ec3470e6a88ad1f9096e539cec42a47a
246
- - test/test_repo/dot_git/objects/3e/d64bb62b98b0827096cda5da5a728ec1bf5e3e
247
- - test/test_repo/dot_git/objects/48/d97759a460f607e077eea99a2df7b3cd5a2601
248
- - test/test_repo/dot_git/objects/4c/2dd956115a971f5376a998bc4b243022c8881e
249
- - test/test_repo/dot_git/objects/4d/1b13c2e1ef1c1a944aae52994682da833a5bef
250
- - test/test_repo/dot_git/objects/4d/7f8a4c1a1bac8d553ba169e18882a7f51235bd
251
- - test/test_repo/dot_git/objects/59/821b143fbc62850d08e3f70c70d02af08df684
252
- - test/test_repo/dot_git/objects/59/bc060e8c1fbe31c985e00c6cc2fef3b46c0c62
253
- - test/test_repo/dot_git/objects/60/9711c27d50b5ab6ecc7d8fd485082481f9fc4a
254
- - test/test_repo/dot_git/objects/62/61f5911f204a827c313081c33e2522f0dd457c
255
- - test/test_repo/dot_git/objects/70/343eb1287191b30371400048167253a883d6ca
256
- - test/test_repo/dot_git/objects/78/845656f899d0bfd86d2806b85b0c54adddd3c8
257
- - test/test_repo/dot_git/objects/7f/9eb0e6044998d71653c06fdc6e359dfbfc4211
258
- - test/test_repo/dot_git/objects/83/65a44c640d5c7cafc8788607a274dfd91b89bb
259
- - test/test_repo/dot_git/objects/83/8ad7a02ebe551a90bea885c94191667f29009c
260
- - test/test_repo/dot_git/objects/83/8daa5e0163161d6e47bd1b0d783ca7307066c6
261
- - test/test_repo/dot_git/objects/88/090a3ea8ce80e49ea42d249836aaa25f257454
262
- - test/test_repo/dot_git/objects/8d/1f788990d1f80ebcbe7b78c3e5c393b7a41943
263
- - test/test_repo/dot_git/objects/99/117f666995e8836652d9590daa2fdcb4de8b2a
264
- - test/test_repo/dot_git/objects/9e/00340e45d33e52bb16100f1b613a36f82f9c57
265
- - test/test_repo/dot_git/objects/a9/f5097c614e0d4be7f900c04d782d3b1d675ee2
266
- - test/test_repo/dot_git/objects/ae/45638b71046b28d46a764d8a2f7780fec58c01
267
- - test/test_repo/dot_git/objects/af/415865cd1f1c0a5963a5d45b1335856e23dae8
268
- - test/test_repo/dot_git/objects/b8/ffd38affdd1cc22ee4cb830cbe5c398b4e3df1
269
- - test/test_repo/dot_git/objects/ba/a938862bbe45533863069649b40fdebf59e81c
270
- - test/test_repo/dot_git/objects/c0/8f9add7a1d48045bec46451dfdbb5b5ebf8dc0
271
- - test/test_repo/dot_git/objects/c8/f101653f2c1de3611232fc4c940246b06779cd
272
- - test/test_repo/dot_git/objects/da/077394cb4d5bf7ffac527dbfc652ec0592b423
273
- - test/test_repo/dot_git/objects/e1/ec08bcf36967f7be9ec6df51c862cc86305f4f
274
- - test/test_repo/dot_git/objects/e3/c2be348eb0873f7ac3f500ae6daaa93ebd7959
275
- - test/test_repo/dot_git/objects/e5/e6f26a0481e83434feb2de4ef29843c8a1b8b2
276
- - test/test_repo/dot_git/objects/e7/76acafd9b27ddcdd8e8a2c973b1fa1ccd690ab
277
- - test/test_repo/dot_git/objects/ff/74852f93c8e337b7ae3088c31cfe8673def356
278
- - test/test_repo/dot_git/refs/heads/master
279
- - test/test_repo/feed.xml
280
- - test/test_repo/index.html
124
+ test_files: []
data/test/helper.rb DELETED
@@ -1,32 +0,0 @@
1
- require 'minitest/autorun'
2
- require 'minitest/unit'
3
- require 'shoulda'
4
- require 'mocha/mini_test'
5
- require 'jekyll'
6
- require 'jekyll-git_metadata'
7
-
8
- def jekyll_test_repo_path
9
- File.join(File.dirname(__FILE__), 'test_repo')
10
- end
11
-
12
- def remove_cache_dir
13
- FileUtils.rm_rf(File.join(jekyll_test_repo_path, '.git-metadata'))
14
- end
15
-
16
- class Minitest::Test
17
- def dot_git_path
18
- File.join(jekyll_test_repo_path, 'dot_git')
19
- end
20
-
21
- def real_dot_git_path
22
- File.join(jekyll_test_repo_path, '.git')
23
- end
24
-
25
- def create_temp_git_dir
26
- FileUtils.cp_r(dot_git_path, real_dot_git_path)
27
- end
28
-
29
- def remove_temp_git_dir
30
- FileUtils.rm_rf(real_dot_git_path)
31
- end
32
- end
@@ -1,227 +0,0 @@
1
- require 'helper'
2
-
3
- Minitest.after_run do
4
- remove_cache_dir
5
- end
6
-
7
- class Jekyll::GitMetadataTest < Minitest::Test
8
- context 'GitMetadata' do
9
-
10
- setup do
11
- create_temp_git_dir
12
- Jekyll.instance_variable_set(:@logger, Jekyll::LogAdapter.new(Jekyll::Stevenson.new, :error))
13
-
14
- config = Jekyll.configuration(
15
- :source => jekyll_test_repo_path,
16
- :destination => File.join(jekyll_test_repo_path, '_site'))
17
- @site = Jekyll::Site.new(config)
18
- @site.read
19
- @site.generate
20
- end
21
-
22
- teardown do
23
- remove_temp_git_dir
24
- end
25
-
26
- context 'site data' do
27
- setup do
28
- @site_data = @site.config['git']
29
- end
30
-
31
- should 'have correct project name' do
32
- assert_equal 'test_repo', @site_data['project_name']
33
- end
34
-
35
- should 'have correct files count' do
36
- assert_equal 14, @site_data['files_count']
37
- end
38
-
39
- should 'have correct totals count' do
40
- assert_equal 7, @site_data['total_commits']
41
- assert_equal 688, @site_data['total_additions']
42
- assert_equal 11, @site_data['total_subtractions']
43
- end
44
-
45
- should 'have correct authors data' do
46
- assert_equal 3, @site_data['authors'].count
47
- assert @site_data['authors'].include?({"commits"=>5, "name"=>"Ivan Tse", "email"=>"ivan.tse1@gmail.com"})
48
- assert @site_data['authors'].include?({"commits"=>1, "name"=>"LeBron James", "email"=>"lbj@example.com"})
49
- assert @site_data['authors'].include?({"commits"=>1, "name"=>"Mark Morga", "email"=>"mmorga@rackspace.com"})
50
- end
51
-
52
- should 'have correct first commit data' do
53
- assert_equal '7884565', @site_data['first_commit']['short_sha']
54
- assert_equal '78845656f899d0bfd86d2806b85b0c54adddd3c8', @site_data['first_commit']['long_sha']
55
- assert_equal 'Ivan Tse', @site_data['first_commit']['author_name']
56
- assert_equal 'ivan.tse1@gmail.com', @site_data['first_commit']['author_email']
57
- assert_equal 'Mon Jul 14 02:01:29 2014 -0400', @site_data['first_commit']['author_date']
58
- assert_equal 'Ivan Tse', @site_data['first_commit']['commit_name']
59
- assert_equal 'ivan.tse1@gmail.com', @site_data['first_commit']['commit_email']
60
- assert_equal 'Mon Jul 14 02:01:29 2014 -0400', @site_data['first_commit']['commit_date']
61
- assert_equal 'First commit with jekyll scaffold', @site_data['first_commit']['message']
62
- end
63
-
64
- should 'have correct last commit data' do
65
- assert_equal 'b8ffd38', @site_data['last_commit']['short_sha']
66
- assert_equal 'b8ffd38affdd1cc22ee4cb830cbe5c398b4e3df1', @site_data['last_commit']['long_sha']
67
- assert_equal 'Mark Morga', @site_data['last_commit']['author_name']
68
- assert_equal 'mmorga@rackspace.com', @site_data['last_commit']['author_email']
69
- assert_equal 'Tue Jun 20 11:36:43 2017 -0500', @site_data['last_commit']['author_date']
70
- assert_equal 'Mark Morga', @site_data['last_commit']['commit_name']
71
- assert_equal 'mmorga@rackspace.com', @site_data['last_commit']['commit_email']
72
- assert_equal 'Tue Jun 20 11:36:43 2017 -0500', @site_data['last_commit']['commit_date']
73
- assert_equal 'Adding example collection doc for git metadata', @site_data['last_commit']['message']
74
- end
75
- end
76
-
77
- context 'page data' do
78
- setup do
79
- @about_page = @site.pages.select{|p| p.name == 'about.md'}.first
80
- @page_data = @about_page.data['git']
81
- end
82
-
83
- should 'have correct totals count' do
84
- assert_equal 4, @page_data['total_commits']
85
- assert_equal 16, @page_data['total_additions']
86
- assert_equal 5, @page_data['total_subtractions']
87
- end
88
-
89
- should 'have correct authors data' do
90
- assert_equal 2, @page_data['authors'].count
91
- assert @page_data['authors'].include?({"commits"=>3, "name"=>"Ivan Tse", "email"=>"ivan.tse1@gmail.com"})
92
- assert @page_data['authors'].include?({"commits"=>1, "name"=>"LeBron James", "email"=>"lbj@example.com"})
93
- end
94
-
95
- should 'have correct first commit data' do
96
- assert_equal '7884565', @page_data['first_commit']['short_sha']
97
- assert_equal '78845656f899d0bfd86d2806b85b0c54adddd3c8', @page_data['first_commit']['long_sha']
98
- assert_equal 'Ivan Tse', @page_data['first_commit']['author_name']
99
- assert_equal 'ivan.tse1@gmail.com', @page_data['first_commit']['author_email']
100
- assert_equal 'Mon Jul 14 02:01:29 2014 -0400', @page_data['first_commit']['author_date']
101
- assert_equal 'Ivan Tse', @page_data['first_commit']['commit_name']
102
- assert_equal 'ivan.tse1@gmail.com', @page_data['first_commit']['commit_email']
103
- assert_equal 'Mon Jul 14 02:01:29 2014 -0400', @page_data['first_commit']['commit_date']
104
- assert_equal 'First commit with jekyll scaffold', @page_data['first_commit']['message']
105
- end
106
-
107
- should 'have correct last commit data' do
108
- assert_equal '70343eb', @page_data['last_commit']['short_sha']
109
- assert_equal '70343eb1287191b30371400048167253a883d6ca', @page_data['last_commit']['long_sha']
110
- assert_equal 'Ivan Tse', @page_data['last_commit']['author_name']
111
- assert_equal 'ivan.tse1@gmail.com', @page_data['last_commit']['author_email']
112
- assert_equal 'Sun Feb 12 02:21:26 2017 -0500', @page_data['last_commit']['author_date']
113
- assert_equal 'Ivan Tse', @page_data['last_commit']['commit_name']
114
- assert_equal 'ivan.tse1@gmail.com', @page_data['last_commit']['commit_email']
115
- assert_equal 'Sun Feb 12 02:21:26 2017 -0500', @page_data['last_commit']['commit_date']
116
- assert_equal "This is a long commit message\n\nAs you can tell this commit message will span several lines long because\nI need to test long comit messages too!", @page_data['last_commit']['message']
117
- assert_equal ["_posts/2014-07-14-welcome-to-jekyll.markdown", "about.md"], @page_data['last_commit']['changed_files']
118
- end
119
- end
120
-
121
- context 'post data' do
122
- setup do
123
- @welcome_post = @site.posts.docs.select{|p| p.basename == '2014-07-14-welcome-to-jekyll.markdown'}.first
124
- @page_data = @welcome_post.data['git']
125
- end
126
-
127
- should 'have correct totals count' do
128
- assert_equal 3, @page_data['total_commits']
129
- assert_equal 30, @page_data['total_additions']
130
- assert_equal 0, @page_data['total_subtractions']
131
- end
132
-
133
- should 'have correct authors data' do
134
- assert_equal 1, @page_data['authors'].count
135
- assert @page_data['authors'].include?({"commits"=>3, "name"=>"Ivan Tse", "email"=>"ivan.tse1@gmail.com"})
136
- end
137
-
138
- should 'have correct first commit data' do
139
- assert_equal '7884565', @page_data['first_commit']['short_sha']
140
- assert_equal '78845656f899d0bfd86d2806b85b0c54adddd3c8', @page_data['first_commit']['long_sha']
141
- assert_equal 'Ivan Tse', @page_data['first_commit']['author_name']
142
- assert_equal 'ivan.tse1@gmail.com', @page_data['first_commit']['author_email']
143
- assert_equal 'Mon Jul 14 02:01:29 2014 -0400', @page_data['first_commit']['author_date']
144
- assert_equal 'Ivan Tse', @page_data['first_commit']['commit_name']
145
- assert_equal 'ivan.tse1@gmail.com', @page_data['first_commit']['commit_email']
146
- assert_equal 'Mon Jul 14 02:01:29 2014 -0400', @page_data['first_commit']['commit_date']
147
- assert_equal 'First commit with jekyll scaffold', @page_data['first_commit']['message']
148
- end
149
-
150
- should 'have correct last commit data' do
151
- assert_equal '70343eb', @page_data['last_commit']['short_sha']
152
- assert_equal '70343eb1287191b30371400048167253a883d6ca', @page_data['last_commit']['long_sha']
153
- assert_equal 'Ivan Tse', @page_data['last_commit']['author_name']
154
- assert_equal 'ivan.tse1@gmail.com', @page_data['last_commit']['author_email']
155
- assert_equal 'Sun Feb 12 02:21:26 2017 -0500', @page_data['last_commit']['author_date']
156
- assert_equal 'Ivan Tse', @page_data['last_commit']['commit_name']
157
- assert_equal 'ivan.tse1@gmail.com', @page_data['last_commit']['commit_email']
158
- assert_equal 'Sun Feb 12 02:21:26 2017 -0500', @page_data['last_commit']['commit_date']
159
- assert_equal "This is a long commit message\n\nAs you can tell this commit message will span several lines long because\nI need to test long comit messages too!", @page_data['last_commit']['message']
160
- assert_equal ["_posts/2014-07-14-welcome-to-jekyll.markdown", "about.md"], @page_data['last_commit']['changed_files']
161
- end
162
- end
163
-
164
- context 'untracked file' do
165
- setup do
166
- @site.reset
167
- @untracked_file = File.join(jekyll_test_repo_path, 'untracked_file.html')
168
- File.open(@untracked_file, 'w') do |f|
169
- f.write("---\n---")
170
- end
171
- @site.read
172
- @untracked_page = @site.pages.select{|p| p.name == 'untracked_file.html'}.first
173
- @site.generate
174
- end
175
-
176
- teardown do
177
- File.delete(@untracked_file)
178
- end
179
-
180
- should 'not have git data' do
181
- assert_nil @untracked_page.data['git']
182
- end
183
- end
184
-
185
- context 'collection doc data' do
186
- setup do
187
- @gizmo_page = @site.collections['gizmos'].docs.select{|p| p.relative_path == '_gizmos/yoyo.md'}.first
188
- @page_data = @gizmo_page.data['git']
189
- end
190
-
191
- should 'have correct totals count' do
192
- assert_equal 1, @page_data['total_commits']
193
- assert_equal 9, @page_data['total_additions']
194
- assert_equal 0, @page_data['total_subtractions']
195
- end
196
-
197
- should 'have correct authors data' do
198
- assert_equal 1, @page_data['authors'].count
199
- assert @page_data['authors'].include?({"commits"=>1, "name"=>"Mark Morga", "email"=>"mmorga@rackspace.com"})
200
- end
201
-
202
- should 'have correct first commit data' do
203
- assert_equal 'b8ffd38', @page_data['first_commit']['short_sha']
204
- assert_equal 'b8ffd38affdd1cc22ee4cb830cbe5c398b4e3df1', @page_data['first_commit']['long_sha']
205
- assert_equal 'Mark Morga', @page_data['first_commit']['author_name']
206
- assert_equal 'mmorga@rackspace.com', @page_data['first_commit']['author_email']
207
- assert_equal 'Tue Jun 20 11:36:43 2017 -0500', @page_data['first_commit']['author_date']
208
- assert_equal 'Mark Morga', @page_data['first_commit']['commit_name']
209
- assert_equal 'mmorga@rackspace.com', @page_data['first_commit']['commit_email']
210
- assert_equal 'Tue Jun 20 11:36:43 2017 -0500', @page_data['first_commit']['commit_date']
211
- assert_equal 'Adding example collection doc for git metadata', @page_data['first_commit']['message']
212
- end
213
-
214
- should 'have correct last commit data' do
215
- assert_equal 'b8ffd38', @page_data['last_commit']['short_sha']
216
- assert_equal 'b8ffd38affdd1cc22ee4cb830cbe5c398b4e3df1', @page_data['last_commit']['long_sha']
217
- assert_equal 'Mark Morga', @page_data['last_commit']['author_name']
218
- assert_equal 'mmorga@rackspace.com', @page_data['last_commit']['author_email']
219
- assert_equal 'Tue Jun 20 11:36:43 2017 -0500', @page_data['last_commit']['author_date']
220
- assert_equal 'Mark Morga', @page_data['last_commit']['commit_name']
221
- assert_equal 'mmorga@rackspace.com', @page_data['last_commit']['commit_email']
222
- assert_equal 'Tue Jun 20 11:36:43 2017 -0500', @page_data['last_commit']['commit_date']
223
- assert_equal 'Adding example collection doc for git metadata', @page_data['last_commit']['message']
224
- end
225
- end
226
- end
227
- end
@@ -1 +0,0 @@
1
- _site
@@ -1,17 +0,0 @@
1
- # Site settings
2
- title: Jekyll Test Site for Jekyll::GitMetadata
3
- email: ivan.tse1@gmail.com
4
- description: "This is a test jekyll site with git contents to properly test the Jekyll::GitMetadata generator"
5
- baseurl: ""
6
- url: "http://tseivan.com"
7
- twitter_username: ivan_tse
8
- github_username: ivantsepp
9
-
10
- # Build settings
11
- markdown: kramdown
12
- permalink: pretty
13
-
14
- # Testing collections
15
- collections:
16
- gizmos:
17
- output: true
@@ -1,9 +0,0 @@
1
- ---
2
- layout: page
3
- title: Yoyo
4
- description: This is my first gizmo, a yoyo
5
- ---
6
- # Yoyo
7
-
8
- This is a sample collection document that is published.
9
-
@@ -1,61 +0,0 @@
1
- <footer class="site-footer">
2
-
3
- <div class="wrap">
4
-
5
- <h2 class="footer-heading">{{ site.title }}</h2>
6
-
7
- <div class="footer-col-1 column">
8
- <ul>
9
- <li>{{ site.title }}</li>
10
- <li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
11
- </ul>
12
- </div>
13
-
14
- <div class="footer-col-2 column">
15
- <ul>
16
- {% if site.github_username %}<li>
17
- <a href="https://github.com/{{ site.github_username }}">
18
- <span class="icon github">
19
- <svg version="1.1" class="github-icon-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
20
- viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
21
- <path fill-rule="evenodd" clip-rule="evenodd" fill="#C2C2C2" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761
22
- c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32
23
- c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472
24
- c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037
25
- C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65
26
- c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261
27
- c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082
28
- c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129
29
- c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
30
- </svg>
31
- </span>
32
- <span class="username">{{ site.github_username }}</span>
33
- </a>
34
- </li>{% endif %}
35
- {% if site.twitter_username %}<li>
36
- <a href="https://twitter.com/{{ site.twitter_username }}">
37
- <span class="icon twitter">
38
- <svg version="1.1" class="twitter-icon-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
39
- viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
40
- <path fill="#C2C2C2" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809
41
- c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27
42
- c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767
43
- c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206
44
- C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271
45
- c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469
46
- c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/>
47
- </svg>
48
- </span>
49
- <span class="username">{{ site.twitter_username }}</span>
50
- </a>
51
- </li>{% endif %}
52
- </ul>
53
- </div>
54
-
55
- <div class="footer-col-3 column">
56
- <p class="text">{{ site.description }}</p>
57
- </div>
58
-
59
- </div>
60
-
61
- </footer>