ruby_llm-instrumentation 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d9e2aed9f99267bf2d7b48cd6c701010303c609e86031303b73abed0edd46f89
4
+ data.tar.gz: c9da42bd129dd5ebe12ef2c1b3aa71a329b7f1df9b4dd3d93e18a32fa571562b
5
+ SHA512:
6
+ metadata.gz: 12e71b9d65278b849f374a39c1d59c6aa010e2f2b9ac749e308eefd45d6e13f875ba2eb1139e535785f67bc7f840b426b6a0ad5e5029e1c935a36ea425b997ce
7
+ data.tar.gz: 7588e95cfd2099fbe40145369d8e801270a010d0497a07cbee466e4f66ecb9fac78e1f66fb4a143175dbd55ed268e105ca2fbd9d8d8aada3b35ec42aa8cf2d57
data/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # RubyLlm::Instrumentation
2
+ Short description and motivation.
3
+
4
+ ## Usage
5
+ How to use my plugin.
6
+
7
+ ## Installation
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem "ruby_llm-instrumentation"
12
+ ```
13
+
14
+ And then execute:
15
+ ```bash
16
+ $ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+ ```bash
21
+ $ gem install ruby_llm-instrumentation
22
+ ```
23
+
24
+ ## Contributing
25
+ Contribution directions go here.
26
+
27
+ ## License
28
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,3 @@
1
+ require "bundler/setup"
2
+
3
+ require "bundler/gem_tasks"
@@ -0,0 +1,23 @@
1
+ module RubyLLM
2
+ module Instrumentation
3
+ class Railtie < ::Rails::Railtie
4
+ INFLECTION_OVERRIDES = { "ruby_llm" => "RubyLLM" }.freeze
5
+
6
+ initializer "ruby_llm_instrumentation.inflector", after: "ruby_llm.inflections", before: :set_autoload_paths do
7
+ ActiveSupport::Inflector.inflections(:en) do |inflections|
8
+ # The RubyLLM gem registers "RubyLLM" as an acronym in its railtie,
9
+ # which breaks underscore conversion (RubyLLM.underscore => "rubyllm").
10
+ # We need to remove it and use "LLM" as an acronym instead for proper conversion:
11
+ # * "ruby_llm".camelize => "RubyLLM" (not "RubyLlm")
12
+ # * "RubyLLM".underscore => "ruby_llm" (not "rubyllm")
13
+ inflections.acronyms.delete("rubyllm")
14
+ inflections.acronym("LLM")
15
+ end
16
+
17
+ Rails.autoloaders.each do |loader|
18
+ loader.inflector.inflect(INFLECTION_OVERRIDES)
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,5 @@
1
+ module RubyLLM
2
+ module Instrumentation
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ require "ruby_llm/instrumentation/version"
2
+ require "ruby_llm/instrumentation/railtie"
3
+
4
+ module RubyLLM
5
+ module Instrumentation
6
+ # Your code goes here...
7
+ end
8
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :ruby_llm_instrumentation do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,75 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby_llm-instrumentation
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Patricio Mac Adden
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: rails
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 7.0.0
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: 7.0.0
26
+ - !ruby/object:Gem::Dependency
27
+ name: ruby_llm
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ description: Rails instrumentation for RubyLLM
41
+ email:
42
+ - patricio.macadden@sinaptia.dev
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - README.md
48
+ - Rakefile
49
+ - lib/ruby_llm/instrumentation.rb
50
+ - lib/ruby_llm/instrumentation/railtie.rb
51
+ - lib/ruby_llm/instrumentation/version.rb
52
+ - lib/tasks/ruby_llm/instrumentation_tasks.rake
53
+ homepage: https://github.com/sinaptia/ruby_llm-instrumentation
54
+ licenses: []
55
+ metadata:
56
+ homepage_uri: https://github.com/sinaptia/ruby_llm-instrumentation
57
+ source_code_uri: https://github.com/sinaptia/ruby_llm-instrumentation
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubygems_version: 3.6.9
73
+ specification_version: 4
74
+ summary: Rails instrumentation for RubyLLM
75
+ test_files: []