llms-txt-ruby 0.0.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 +7 -0
- data/.gitignore +56 -0
- data/LICENSE +21 -0
- data/README.md +76 -0
- data/lib/llms-txt/version.rb +3 -0
- data/llms-txt-ruby.gemspec +34 -0
- metadata +54 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 57be54434134c87cc4939264861e7e64f1b721aeef9e52ebe11080b3f1ab08d1
|
4
|
+
data.tar.gz: d413c3a1902cd259f9af274aefbcaf65df9714ba7e6ae958de2afc30101b4778
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 43ab2bcc770fb9f0486363b4904f006d6b462a6adfae1b9e7d05d8a1aed5c2b4356f02ca2737ca4c6e1d0a333f132d621d5cbb1033a28afcff8c8bafcd690b4a
|
7
|
+
data.tar.gz: ba760b69ca401f1b3cf0e5ec14a9e76bef92e86c5804a040b03b203aa6af1e39361cbe8fb5e8fbb84ecbf48d557cb3ccd49e194f0e7e2eaeb872f0f7f07a171b
|
data/.gitignore
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
# .env
|
15
|
+
|
16
|
+
# Ignore Byebug command history file.
|
17
|
+
.byebug_history
|
18
|
+
|
19
|
+
## Specific to RubyMotion:
|
20
|
+
.dat*
|
21
|
+
.repl_history
|
22
|
+
build/
|
23
|
+
*.bridgesupport
|
24
|
+
build-iPhoneOS/
|
25
|
+
build-iPhoneSimulator/
|
26
|
+
|
27
|
+
## Specific to RubyMotion (use of CocoaPods):
|
28
|
+
#
|
29
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
30
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
31
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
32
|
+
#
|
33
|
+
# vendor/Pods/
|
34
|
+
|
35
|
+
## Documentation cache and generated files:
|
36
|
+
/.yardoc/
|
37
|
+
/_yardoc/
|
38
|
+
/doc/
|
39
|
+
/rdoc/
|
40
|
+
|
41
|
+
## Environment normalization:
|
42
|
+
/.bundle/
|
43
|
+
/vendor/bundle
|
44
|
+
/lib/bundler/man/
|
45
|
+
|
46
|
+
# for a library or gem, you might want to ignore these files since the code is
|
47
|
+
# intended to run in multiple environments; otherwise, check them in:
|
48
|
+
# Gemfile.lock
|
49
|
+
# .ruby-version
|
50
|
+
# .ruby-gemset
|
51
|
+
|
52
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
53
|
+
.rvmrc
|
54
|
+
|
55
|
+
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
56
|
+
# .rubocop-https?--*
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 Maciej Mensfeld
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
# llms-txt-ruby
|
2
|
+
|
3
|
+
> ⚠️ **Work in Progress** - This gem is currently under active development and not yet ready for any use.
|
4
|
+
|
5
|
+
A Ruby gem that automatically generates [llms.txt](https://llmstxt.org/) files for Ruby projects using AI. This gem analyzes your Ruby codebase, extracts documentation from YARD comments, README files, and gemspec metadata, then uses a Large Language Model to create a properly formatted llms.txt file following the official specification.
|
6
|
+
|
7
|
+
## What is llms.txt?
|
8
|
+
|
9
|
+
The llms.txt file is a proposed standard for providing LLM-friendly content on websites. It offers brief background information, guidance, and links to detailed markdown files, helping Large Language Models understand and navigate your project more effectively.
|
10
|
+
|
11
|
+
Learn more at [llmstxt.org](https://llmstxt.org/).
|
12
|
+
|
13
|
+
## Features
|
14
|
+
|
15
|
+
- 🤖 **AI-powered generation**: Uses Claude or GPT models to create natural, comprehensive llms.txt files
|
16
|
+
- 📚 **YARD integration**: Extracts rich documentation from YARD comments and tags
|
17
|
+
- 🔧 **Configurable**: Supports multiple LLM providers and customizable options
|
18
|
+
- 🖥️ **CLI + API**: Use from command line or integrate into your Ruby applications
|
19
|
+
- 📁 **Project awareness**: Understands Ruby project structure and conventions
|
20
|
+
- 🎯 **Spec compliant**: Generates files that strictly follow the llms.txt specification
|
21
|
+
|
22
|
+
## Installation
|
23
|
+
|
24
|
+
Add this line to your application's Gemfile:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem 'llms-txt-ruby'
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
```bash
|
33
|
+
$ bundle install
|
34
|
+
```
|
35
|
+
|
36
|
+
Or install it yourself as:
|
37
|
+
|
38
|
+
```bash
|
39
|
+
$ gem install llms-txt-ruby
|
40
|
+
```
|
41
|
+
|
42
|
+
## Example Output
|
43
|
+
|
44
|
+
Here's what a generated llms.txt file might look like:
|
45
|
+
|
46
|
+
```markdown
|
47
|
+
# MyAwesomeGem
|
48
|
+
|
49
|
+
> MyAwesomeGem is a Ruby library for processing data with advanced algorithms and providing a clean API for developers.
|
50
|
+
|
51
|
+
This gem provides a comprehensive toolkit for data processing, featuring both synchronous and asynchronous processing capabilities. It includes built-in caching, error handling, and extensive configuration options.
|
52
|
+
|
53
|
+
## Documentation
|
54
|
+
|
55
|
+
- [Getting Started Guide](docs/getting_started.md): Quick introduction and basic usage examples
|
56
|
+
- [API Documentation](https://rubydoc.info/gems/my_awesome_gem): Complete API reference
|
57
|
+
- [Configuration Guide](docs/configuration.md): Detailed configuration options
|
58
|
+
|
59
|
+
## Examples
|
60
|
+
|
61
|
+
- [Basic Usage Examples](examples/basic_usage.rb): Simple examples to get started
|
62
|
+
- [Advanced Patterns](examples/advanced_patterns.rb): Complex usage patterns and best practices
|
63
|
+
|
64
|
+
## Optional
|
65
|
+
|
66
|
+
- [Contributing Guidelines](CONTRIBUTING.md): How to contribute to this project
|
67
|
+
- [Changelog](CHANGELOG.md): Version history and changes
|
68
|
+
```
|
69
|
+
|
70
|
+
## License
|
71
|
+
|
72
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
73
|
+
|
74
|
+
---
|
75
|
+
|
76
|
+
Made with ❤️ for the Ruby community
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/llms-txt/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'llms-txt-ruby'
|
7
|
+
spec.version = LLMsTxt::VERSION
|
8
|
+
spec.authors = ['Maciej Mensfeld']
|
9
|
+
spec.email = %w[maciej@mensfeld.pl]
|
10
|
+
|
11
|
+
spec.summary = 'Ruby implementation of the llms.txt specification for LLM-friendly content'
|
12
|
+
spec.description = <<~DESC
|
13
|
+
A Ruby gem that implements the llms.txt specification, providing tools to create and manage
|
14
|
+
llms.txt markdown files for websites. These files help Large Language Models understand
|
15
|
+
and navigate website content more effectively by providing curated, LLM-friendly information
|
16
|
+
in a standardized format.
|
17
|
+
DESC
|
18
|
+
|
19
|
+
spec.homepage = 'https://github.com/mensfeld/llms-txt-ruby'
|
20
|
+
spec.license = 'MIT'
|
21
|
+
spec.required_ruby_version = '>= 3.1.0'
|
22
|
+
|
23
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
24
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
25
|
+
spec.metadata['source_code_uri'] = 'https://github.com/mensfeld/llms-txt-ruby'
|
26
|
+
spec.metadata['changelog_uri'] = 'https://github.com/mensfeld/llms-txt-ruby/blob/main/CHANGELOG.md'
|
27
|
+
spec.metadata['documentation_uri'] = 'https://github.com/mensfeld/llms-txt-ruby'
|
28
|
+
|
29
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
|
30
|
+
|
31
|
+
spec.bindir = 'bin'
|
32
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
33
|
+
spec.require_paths = ['lib']
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: llms-txt-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Maciej Mensfeld
|
8
|
+
bindir: bin
|
9
|
+
cert_chain: []
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
|
+
dependencies: []
|
12
|
+
description: |
|
13
|
+
A Ruby gem that implements the llms.txt specification, providing tools to create and manage
|
14
|
+
llms.txt markdown files for websites. These files help Large Language Models understand
|
15
|
+
and navigate website content more effectively by providing curated, LLM-friendly information
|
16
|
+
in a standardized format.
|
17
|
+
email:
|
18
|
+
- maciej@mensfeld.pl
|
19
|
+
executables: []
|
20
|
+
extensions: []
|
21
|
+
extra_rdoc_files: []
|
22
|
+
files:
|
23
|
+
- ".gitignore"
|
24
|
+
- LICENSE
|
25
|
+
- README.md
|
26
|
+
- lib/llms-txt/version.rb
|
27
|
+
- llms-txt-ruby.gemspec
|
28
|
+
homepage: https://github.com/mensfeld/llms-txt-ruby
|
29
|
+
licenses:
|
30
|
+
- MIT
|
31
|
+
metadata:
|
32
|
+
allowed_push_host: https://rubygems.org
|
33
|
+
homepage_uri: https://github.com/mensfeld/llms-txt-ruby
|
34
|
+
source_code_uri: https://github.com/mensfeld/llms-txt-ruby
|
35
|
+
changelog_uri: https://github.com/mensfeld/llms-txt-ruby/blob/main/CHANGELOG.md
|
36
|
+
documentation_uri: https://github.com/mensfeld/llms-txt-ruby
|
37
|
+
rdoc_options: []
|
38
|
+
require_paths:
|
39
|
+
- lib
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 3.1.0
|
45
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
requirements: []
|
51
|
+
rubygems_version: 3.6.7
|
52
|
+
specification_version: 4
|
53
|
+
summary: Ruby implementation of the llms.txt specification for LLM-friendly content
|
54
|
+
test_files: []
|