aho 0.1.1 → 0.1.2

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: f8c2812dff97476d7b3067cef5d3d083dd4c01914d3d2aa13b5ef0d51bdc6268
4
- data.tar.gz: d6c0a70dd6833fd1c22bc3c3070cab05d159507dfa1b83bb19d3b16f63b01faf
3
+ metadata.gz: d93a28179434feaf3200bce31c7d59f485abc0f022b96cb9482f32a1c44cef3a
4
+ data.tar.gz: 9835711037d2ea542097648aa41217a4c57ab821afc388df25fad268d20b94e2
5
5
  SHA512:
6
- metadata.gz: ecdae714f1c0b98f736c7dc90cfe7c10ea7b4540a8b6f45973dd227109a533f5d61863eff5e4f4ea172441429a779d0a21e5884475dd3e09584f6e39a7dfffed
7
- data.tar.gz: 014c55ce1ce59493da340c7b880f019b990f11cbe883c21a8a519deb8a9366f9799663ca58841953a48d0a7c6a83c86d4bebc7e2ba5a22870e9e48bea216c498
6
+ metadata.gz: 1c52ab0b387257371e8f3cde64f9aed5ec71bcdb5abec1c726534a5e63b4f80c837ec121fcf58508b9cf022bf02bdfc26cc83bbd33f7d3061a6b1e5702c26b30
7
+ data.tar.gz: 88515e06c4d939753d121682f1db5d8c3ba92b9e3abe1bd068390fdbf7a706a8e3256a7d9fb41c2ebd6d618586a3602ee73d2bf0fba9cbd262140234194fea1f
data/.rubocop.yml CHANGED
@@ -4,7 +4,7 @@ require:
4
4
  - rubocop-rake
5
5
 
6
6
  AllCops:
7
- TargetRubyVersion: 3.3.0
7
+ TargetRubyVersion: 3.4.2
8
8
  NewCops: enable
9
9
 
10
10
  Metrics/MethodLength:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.0
1
+ 3.4.2
data/aho.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = 'Aho agent is responsible for collecting resource usage data of VM instances on \
13
13
  individual Compute nodes within an Datamart Platform Studio deployment.'
14
14
  spec.homepage = 'https://datamart.ru/aho'
15
- spec.required_ruby_version = '>= 3.3.0'
15
+ spec.required_ruby_version = '>= 3.4.2'
16
16
 
17
17
  spec.metadata['homepage_uri'] = spec.homepage
18
18
  spec.metadata['source_code_uri'] = 'https://gitlab.datamart.ru/datamart/aho'
data/exe/aho CHANGED
@@ -1,10 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'bundler/setup'
4
+ # require 'bundler/setup'
5
5
  require 'aho'
6
- require 'rack/handler/puma'
7
- require File.join(Aho.root_path, 'config', 'routes')
8
6
 
9
- app = Aho::WebServer::Application.new
10
- Rack::Handler::Puma.run(app)
7
+ root_dir = File.expand_path('..', __dir__)
8
+ rackup_file = File.join(root_dir, 'config.ru')
9
+ puma_config = File.join(root_dir, 'config', 'puma.rb')
10
+
11
+ exec "puma -C #{puma_config} #{rackup_file}"
@@ -11,7 +11,7 @@ module Aho
11
11
  @method = method
12
12
  @path = path
13
13
  @destination = destination
14
- @openapi_paths = YAML.load_file(OPENAPI_FILE)['paths']
14
+ @openapi_paths = YAML.load_file(File.join(Aho.root_path, OPENAPI_FILE))['paths']
15
15
  end
16
16
 
17
17
  def controller
data/lib/aho/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aho
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
data/lib/aho.rb CHANGED
@@ -5,6 +5,7 @@ require 'time'
5
5
  require 'yaml'
6
6
  require 'json'
7
7
  require 'rack'
8
+ require 'fileutils'
8
9
 
9
10
  require_relative 'aho/version'
10
11
  require_relative 'aho/configuration'
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Panasenkov A.
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-09-08 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: puma
@@ -139,7 +138,6 @@ metadata:
139
138
  source_code_uri: https://gitlab.datamart.ru/datamart/aho
140
139
  changelog_uri: https://gitlab.datamart.ru/datamart/aho/CHANGELOG.md
141
140
  rubygems_mfa_required: 'true'
142
- post_install_message:
143
141
  rdoc_options: []
144
142
  require_paths:
145
143
  - lib
@@ -147,15 +145,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
145
  requirements:
148
146
  - - ">="
149
147
  - !ruby/object:Gem::Version
150
- version: 3.3.0
148
+ version: 3.4.2
151
149
  required_rubygems_version: !ruby/object:Gem::Requirement
152
150
  requirements:
153
151
  - - ">="
154
152
  - !ruby/object:Gem::Version
155
153
  version: '0'
156
154
  requirements: []
157
- rubygems_version: 3.5.22
158
- signing_key:
155
+ rubygems_version: 3.7.1
159
156
  specification_version: 4
160
157
  summary: Aho agent for billing, monitoring and audit data from resources.
161
158
  test_files: []