gitingest 0.7.0 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c5544ec1d956710315693490fddc60f26452452ca674739d9a343f0418b26c6
4
- data.tar.gz: 6d9dd377e78788bf3f3b0a6511cc38cfc9a5e85bba787f905f879235d767dc8c
3
+ metadata.gz: 8823c78db091723b50cdeebcb51cc716315d2a3351e295badfa80b0cb48270f7
4
+ data.tar.gz: 530854838bff4d35f40a22d355cf256db244dbedd0a0be70a88f067e19f9ec5e
5
5
  SHA512:
6
- metadata.gz: 96154003ef92d35503ddb9488ee25f147c0809f88226a3554d818e43b6692908fae94e00d56a525a8c31327f7be3b0323486bb79227dac5fe36709cd99f09a11
7
- data.tar.gz: 25d6c8de3537f84f27feedc6fb3ec812e14ad3ebf1cbe708b3931e757741d00a69d7e43a86f08bb5198cf1532f92b44d64bdf9c53afa2ec802c7013cb54bf366
6
+ metadata.gz: 3fb379041c49627197e47fa3df1b59f6a1a553772e2a162fb38fe89d6eca61f5b0f6cdf1c9ccaf5857fab709b6d7eb3d773375d2db60f409a6df6dff6823fffa
7
+ data.tar.gz: caa01a9ea924ec97127c8e75a9d1abb3511a93aef3f8a21714910dde7c133f4ffccfea35004d49d1d04d87f844807d596bdf2a956667d1647e0737db084e3e20
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.1] - 2025-06-20
4
+
5
+ ### Changed
6
+ - Refactored file prioritization logic to use a `case` statement for improved readability and maintainability.
7
+
3
8
  ## [0.7.0] - 2025-06-04
4
9
 
5
10
  ### Changed
data/index.html CHANGED
@@ -716,7 +716,7 @@
716
716
  <div class="header-container">
717
717
  <div class="logo">
718
718
  <div class="logo-icon">G</div>
719
- <div class="logo-text">Gitingest <span class="version-tag">v0.7.0</span></div>
719
+ <div class="logo-text">Gitingest <span class="version-tag">v0.7.1</span></div>
720
720
  </div>
721
721
  <nav>
722
722
  <ul>
@@ -765,7 +765,7 @@
765
765
  <span class="terminal-command">gem install gitingest</span>
766
766
  </div>
767
767
  <div class="terminal-output">
768
- Successfully installed gitingest-0.7.0<br />
768
+ Successfully installed gitingest-0.7.1<br />
769
769
  1 gem installed
770
770
  </div>
771
771
  <div class="terminal-line">
@@ -902,6 +902,21 @@ gitingest --repository user/repo --show-structure</code></pre>
902
902
  <div class="container">
903
903
  <h2>Changelog</h2>
904
904
  <div class="timeline">
905
+ <div class="timeline-item">
906
+ <div class="timeline-date">
907
+ <span class="timeline-month">Jun</span>
908
+ <span class="timeline-day">20</span>
909
+ </div>
910
+ <div class="timeline-content">
911
+ <h3 class="timeline-version">v0.7.1</h3>
912
+ <p class="timeline-desc">Minor internal code refactoring for better readability.</p>
913
+ <div class="timeline-list">
914
+ <ul>
915
+ <li>Refactored the file prioritization logic to be more readable and maintainable.</li>
916
+ </ul>
917
+ </div>
918
+ </div>
919
+ </div>
905
920
  <div class="timeline-item">
906
921
  <div class="timeline-date">
907
922
  <span class="timeline-month">Jun</span>
@@ -342,11 +342,14 @@ module Gitingest
342
342
 
343
343
  def prioritize_files(files)
344
344
  files.sort_by do |file|
345
- path = file.path.downcase
346
- if path.end_with?(".md", ".txt", ".json", ".yaml", ".yml") then 0
347
- elsif path.end_with?(".rb", ".py", ".js", ".ts", ".go", ".java", ".c", ".cpp", ".h") then 1
345
+ ext = File.extname(file.path.downcase)
346
+ case ext
347
+ when ".md", ".txt", ".json", ".yaml", ".yml"
348
+ 0 # Documentation and data files first
349
+ when ".rb", ".py", ".js", ".ts", ".go", ".java", ".c", ".cpp", ".h"
350
+ 1 # Source code files second
348
351
  else
349
- 2
352
+ 2 # Other files last
350
353
  end
351
354
  end
352
355
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gitingest
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitingest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davide Santangelo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-04 00:00:00.000000000 Z
11
+ date: 2025-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby