gitingest 0.5.0 → 0.6.0
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/CHANGELOG.md +10 -0
- data/README.md +1 -1
- data/bin/gitingest +1 -1
- data/index.html +945 -356
- data/lib/gitingest/generator.rb +3 -2
- data/lib/gitingest/version.rb +1 -1
- metadata +2 -2
data/lib/gitingest/generator.rb
CHANGED
@@ -187,7 +187,7 @@ module Gitingest
|
|
187
187
|
raise ArgumentError, "Repository is required" unless @options[:repository]
|
188
188
|
|
189
189
|
@options[:output_file] ||= "#{@options[:repository].split("/").last}_prompt.txt"
|
190
|
-
@options[:branch] ||=
|
190
|
+
@options[:branch] ||= :default
|
191
191
|
@options[:exclude] ||= []
|
192
192
|
@options[:threads] ||= DEFAULT_THREAD_COUNT
|
193
193
|
@options[:thread_timeout] ||= DEFAULT_THREAD_TIMEOUT
|
@@ -238,7 +238,8 @@ module Gitingest
|
|
238
238
|
# Validate repository and branch access
|
239
239
|
def validate_repository_access
|
240
240
|
begin
|
241
|
-
@client.repository(@options[:repository])
|
241
|
+
repo = @client.repository(@options[:repository])
|
242
|
+
@options[:branch] = repo.default_branch if @options[:branch] == :default
|
242
243
|
rescue Octokit::Unauthorized
|
243
244
|
raise "Authentication error: Invalid or expired GitHub token"
|
244
245
|
rescue Octokit::NotFound
|
data/lib/gitingest/version.rb
CHANGED
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.
|
4
|
+
version: 0.6.0
|
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-03-
|
11
|
+
date: 2025-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|