riemann-opensearch 1.0.0 → 1.1.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: e421ab3d4b594cb0d899db3f7c943cba9f508f4910ee17029e74b36bbd58ba08
4
- data.tar.gz: 6021ddfdf816fb9ebcb4b3ebfab92440f423eac5473e4d7c9699d5f5dcbb7f6c
3
+ metadata.gz: 5c1f698db75539aabf7e762e3e01401e58ca60efeb7cef5e484c743446c55c98
4
+ data.tar.gz: d64f8742878a285efa1658620bab0b1187c0f3ad4fc14651d926977317091efb
5
5
  SHA512:
6
- metadata.gz: 942e357f3327a1b33d5365ce84fd171f4e682a614937887d6cc4d750370044e07d51f692a732d0096565f655739e5baeb85ad3310807eaa777f69e8add9ff5b2
7
- data.tar.gz: be0bbcebc1454adb840d7b0790f46ba2def7a24fc166d2588bc6e1ad5b37f505180b52b2da8994ff3b4bdadc8d69d41383a2f24f65cd2ef216685c98d55679fc
6
+ metadata.gz: 514e405981311ed0449c8142f32bdc6374155fa862b4ee0a2da662ec2b05d7351788d78a295d18d51aaceeef4a1acc3c40e8f28ce1729c62e484218dfdd6c837
7
+ data.tar.gz: 1dbaa11916c52850625fb3f801579a4699cb0e768e7f59d17309a4d7d29e7424926a684dae798c03777e1eb5078242cf0db376c8c0c526393c3d63a192b0f6da
data/.github/CODEOWNERS CHANGED
@@ -1 +1,4 @@
1
+ # Managed by modulesync - DO NOT EDIT
2
+ # See: https://github.com/opus-codium/modulesync_riemann
3
+
1
4
  * @opus-codium/core @opus-codium/vittoria-conseil
@@ -0,0 +1,16 @@
1
+ # Managed by modulesync - DO NOT EDIT
2
+ # See: https://github.com/opus-codium/modulesync_riemann
3
+
4
+ version: 2
5
+ updates:
6
+ # Open PR for gem updates
7
+ - package-ecosystem: "bundler"
8
+ directory: "/"
9
+ schedule:
10
+ interval: "daily"
11
+
12
+ # Open PR for GitHub Actions updates
13
+ - package-ecosystem: "github-actions"
14
+ directory: "/"
15
+ schedule:
16
+ interval: "daily"
@@ -0,0 +1,14 @@
1
+ ---
2
+ # Managed by modulesync - DO NOT EDIT
3
+ # See: https://github.com/opus-codium/modulesync_riemann
4
+
5
+ backwards-incompatible:
6
+ - head-branch: ['^change-', '^remove-']
7
+ bug:
8
+ - head-branch: ['^fix-']
9
+ enhancement:
10
+ - head-branch: ['^add-', '^allow-', '^set-']
11
+ modulesync:
12
+ - head-branch: ['^modulesync$']
13
+ skip-changelog:
14
+ - head-branch: ['^release-', '^release$']
@@ -1,4 +1,7 @@
1
1
  ---
2
+ # Managed by modulesync - DO NOT EDIT
3
+ # See: https://github.com/opus-codium/modulesync_riemann
4
+
2
5
  name: CI
3
6
 
4
7
  on:
@@ -13,8 +16,8 @@ jobs:
13
16
  standard:
14
17
  runs-on: ubuntu-latest
15
18
  steps:
16
- - uses: actions/checkout@v3
17
- - name: Setup ruby
19
+ - uses: actions/checkout@v6
20
+ - name: Setup Ruby
18
21
  uses: ruby/setup-ruby@v1
19
22
  with:
20
23
  ruby-version: 3.0
@@ -35,11 +38,11 @@ jobs:
35
38
  - "3.4"
36
39
  name: Ruby ${{ matrix.ruby }}
37
40
  steps:
38
- - uses: actions/checkout@v3
39
- - name: Setup ruby
41
+ - uses: actions/checkout@v6
42
+ - name: Setup Ruby
40
43
  uses: ruby/setup-ruby@v1
41
44
  with:
42
45
  ruby-version: ${{ matrix.ruby }}
43
46
  bundler-cache: true
44
47
  - name: Run tests
45
- run: bundle exec rspec
48
+ run: bundle exec rake
@@ -0,0 +1,22 @@
1
+ ---
2
+ # Managed by modulesync - DO NOT EDIT
3
+ # See: https://github.com/opus-codium/modulesync_riemann
4
+
5
+ name: "Pull Request Labeler"
6
+
7
+ # yamllint disable-line rule:truthy
8
+ on:
9
+ pull_request_target: {}
10
+
11
+ permissions:
12
+ contents: read
13
+ pull-requests: write
14
+
15
+ jobs:
16
+ labeler:
17
+ permissions:
18
+ contents: read
19
+ pull-requests: write
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/labeler@v6
data/.gitignore CHANGED
@@ -1 +1,8 @@
1
- Gemfile.lock
1
+ # Managed by modulesync - DO NOT EDIT
2
+ # See: https://github.com/opus-codium/modulesync_riemann
3
+
4
+ /.rspec_status
5
+ /Gemfile.lock
6
+ /coverage/
7
+ /pkg/
8
+ /spec/examples.txt
data/.simplecov ADDED
@@ -0,0 +1,10 @@
1
+ # Managed by modulesync - DO NOT EDIT
2
+ # See: https://github.com/opus-codium/modulesync_riemann
3
+
4
+ # frozen_string_literal: true
5
+
6
+ # vim:set syntax=ruby:
7
+
8
+ SimpleCov.start do
9
+ add_filter "/spec/"
10
+ end
data/.standard.yml ADDED
@@ -0,0 +1,5 @@
1
+ # Managed by modulesync - DO NOT EDIT
2
+ # See: https://github.com/opus-codium/modulesync_riemann
3
+
4
+ plugins:
5
+ - standard-rspec
data/.sync.yml ADDED
@@ -0,0 +1,3 @@
1
+ .github/CODEOWNERS:
2
+ extra_owners:
3
+ - vittoria-conseil
data/CHANGELOG.md CHANGED
@@ -1,24 +1,20 @@
1
1
  # Changelog
2
2
 
3
- ## [v1.0.0](https://github.com/opus-codium/riemann-opensearch/tree/v1.0.0) (2025-05-06)
3
+ ## [v1.1.1](https://github.com/opus-codium/riemann-opensearch/tree/v1.1.1) (2026-06-03)
4
4
 
5
- [Full Changelog](https://github.com/opus-codium/riemann-opensearch/compare/v0.0.1...v1.0.0)
5
+ [Full Changelog](https://github.com/opus-codium/riemann-opensearch/compare/v1.1.0...v1.1.1)
6
6
 
7
- **Breaking changes:**
8
-
9
- - Remove disk usage metric [\#4](https://github.com/opus-codium/riemann-opensearch/pull/4) ([smortex](https://github.com/smortex))
10
-
11
- **Implemented enhancements:**
7
+ **Fixed bugs:**
12
8
 
13
- - Add a metric for the indices size on disk [\#3](https://github.com/opus-codium/riemann-opensearch/pull/3) ([smortex](https://github.com/smortex))
9
+ - Fix loading X.509 certificate / key [\#11](https://github.com/opus-codium/riemann-opensearch/pull/11) ([smortex](https://github.com/smortex))
14
10
 
15
- **Fixed bugs:**
11
+ ## [v1.1.0](https://github.com/opus-codium/riemann-opensearch/tree/v1.1.0) (2026-05-29)
16
12
 
17
- - Fix loading with riemann-wrapper [\#2](https://github.com/opus-codium/riemann-opensearch/pull/2) ([smortex](https://github.com/smortex))
13
+ [Full Changelog](https://github.com/opus-codium/riemann-opensearch/compare/v1.0.0...v1.1.0)
18
14
 
19
- ## [v0.0.1](https://github.com/opus-codium/riemann-opensearch/tree/v0.0.1) (2025-04-08)
15
+ **Implemented enhancements:**
20
16
 
21
- [Full Changelog](https://github.com/opus-codium/riemann-opensearch/compare/5e90741b9e5dd17b64e08ee7907a06a4f8c2f0aa...v0.0.1)
17
+ - Allow riemann-tools 2.0.0 [\#6](https://github.com/opus-codium/riemann-opensearch/pull/6) ([smortex](https://github.com/smortex))
22
18
 
23
19
 
24
20
 
data/Gemfile CHANGED
@@ -1,11 +1,15 @@
1
+ # Managed by modulesync - DO NOT EDIT
2
+ # See: https://github.com/opus-codium/modulesync_riemann
3
+
1
4
  # frozen_string_literal: true
2
5
 
3
6
  source "https://rubygems.org"
4
7
 
5
- # Specify your gem's dependencies in riemann-opensearch.gemspec
6
8
  gemspec
7
9
 
8
10
  gem "github_changelog_generator"
9
- gem "rake", "~> 13.0"
11
+ gem "rake"
10
12
  gem "rspec", "~> 3.0"
11
- gem "standard", "~> 1.3"
13
+ gem "simplecov"
14
+ gem "standard", "~> 1.36"
15
+ gem "standard-rspec"
data/Rakefile CHANGED
@@ -1,19 +1,23 @@
1
+ # Managed by modulesync - DO NOT EDIT
2
+ # See: https://github.com/opus-codium/modulesync_riemann
3
+
1
4
  # frozen_string_literal: true
2
5
 
6
+ require "riemann/tools/opensearch/version"
7
+
3
8
  require "bundler/gem_tasks"
4
9
  require "rspec/core/rake_task"
5
10
 
6
11
  RSpec::Core::RakeTask.new(:spec)
7
12
 
8
- require "standard/rake"
9
-
10
- task default: %i[standard spec]
13
+ task default: :spec
11
14
 
12
15
  require "github_changelog_generator/task"
13
16
 
14
17
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
15
18
  config.user = "opus-codium"
16
19
  config.project = "riemann-opensearch"
17
- config.exclude_labels = ["skip-changelog"]
20
+ config.exclude_labels = ["github_actions", "modulesync", "skip-changelog"]
18
21
  config.future_release = "v#{Riemann::Tools::Opensearch::VERSION}"
22
+ config.since_tag = "v1.0.0"
19
23
  end
@@ -1,7 +1,7 @@
1
1
  module Riemann
2
2
  module Tools
3
3
  class Opensearch
4
- VERSION = "1.0.0"
4
+ VERSION = "1.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -84,8 +84,8 @@ module Riemann
84
84
  transport_options: {
85
85
  ssl: {
86
86
  ca_file: opts[:os_ca_cert],
87
- client_cert: opts[:os_cert],
88
- client_key: opts[:os_key],
87
+ client_cert: opts[:os_cert] && OpenSSL::X509::Certificate.new(File.read(opts[:os_cert])),
88
+ client_key: opts[:os_key] && OpenSSL::PKey.read(File.read(opts[:os_key])),
89
89
  verify: !opts[:os_insecure]
90
90
  }
91
91
  }
@@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
33
33
 
34
34
  spec.add_dependency "faraday-net_http_persistent"
35
35
  spec.add_dependency "opensearch-ruby", "~> 3.0"
36
- spec.add_dependency "riemann-tools", "~> 1.0"
36
+ spec.add_dependency "riemann-tools", ">= 1.0", "< 3.0"
37
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-opensearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Romain Tartière
@@ -41,16 +41,22 @@ dependencies:
41
41
  name: riemann-tools
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
+ - - "<"
48
+ - !ruby/object:Gem::Version
49
+ version: '3.0'
47
50
  type: :runtime
48
51
  prerelease: false
49
52
  version_requirements: !ruby/object:Gem::Requirement
50
53
  requirements:
51
- - - "~>"
54
+ - - ">="
52
55
  - !ruby/object:Gem::Version
53
56
  version: '1.0'
57
+ - - "<"
58
+ - !ruby/object:Gem::Version
59
+ version: '3.0'
54
60
  email:
55
61
  - romain@blogreen.org
56
62
  executables:
@@ -59,9 +65,15 @@ extensions: []
59
65
  extra_rdoc_files: []
60
66
  files:
61
67
  - ".github/CODEOWNERS"
68
+ - ".github/dependabot.yml"
69
+ - ".github/labeler.yml"
62
70
  - ".github/workflows/ci.yml"
71
+ - ".github/workflows/labeler.yml"
63
72
  - ".gitignore"
64
73
  - ".rspec"
74
+ - ".simplecov"
75
+ - ".standard.yml"
76
+ - ".sync.yml"
65
77
  - CHANGELOG.md
66
78
  - CODE_OF_CONDUCT.md
67
79
  - Gemfile