alula-ruby 2.36.1 → 2.37.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 154981cfc160269723494980c506e36e8d2d57b2c783d0e4a0acddaed9178f40
4
- data.tar.gz: 0fcb3761e56a08fdd4c10d3fe40862f64d2d0f4b6eb14ed02e103c9eb9244691
3
+ metadata.gz: 1450a63f49d8034e80111ba70f6c569e0310d42821d896efcc8da07399cb7095
4
+ data.tar.gz: 00b419ad4db16844dcdcc3916de4359503cc6155f054560f79ac4528b23e762c
5
5
  SHA512:
6
- metadata.gz: ac1159abe8d5d0c98af879b25738f02f3dd18e77cc00d3bff4310962d59d2d4cf56a7e586a00abcdcfb38494c233f9b2c267a4bb12a4bfdefb0dbdf1d0939cc0
7
- data.tar.gz: e86fd3d7b7e26c151851a599ba36d270140af8f61db44c985eb802ca62a3fce4292853aa1427646f53fd16bb3df242f37148516c014e61a12cfa901fbc2ab733
6
+ metadata.gz: 658cf9fac3dd66c4b15e6afbf387405631444eadf5492fb60bfeb059d95d02ac3a5ffb309d696d4b0d087867869df97d4225f0597eb56ebec8f84b9343c4b1de
7
+ data.tar.gz: 8bdf701cf35947de8ff682085ac1628275696a1ffbb13dab694e2a6a2b26500fd53f8636204a79cf020f76b77b3eb6a9a60c34519a96a46ade4b883510771d18
data/.circleci/config.yml CHANGED
@@ -29,17 +29,50 @@ jobs:
29
29
  - run:
30
30
  name: Bring up the Core API
31
31
  command: make up
32
+ # `make up` reports only "container is unhealthy", so surface the container's
33
+ # own output. `|| true` throughout because steps run under `bash -eo pipefail`.
32
34
  - run:
33
- name: Install Ruby 3.4.4
35
+ name: Core API diagnostics on failure
36
+ when: on_fail
37
+ command: |
38
+ COMPOSE="docker compose --profile app -f alula-docker-compose.yml"
39
+ echo "--- container status ---"
40
+ $COMPOSE ps || true
41
+ CID=$($COMPOSE ps -q ipdapi || true)
42
+ if [ -n "$CID" ]; then
43
+ echo "--- ipdapi last healthcheck probe ---"
44
+ docker inspect --format '{{json .State.Health}}' "$CID" || true
45
+ fi
46
+ echo "--- ipdapi logs ---"
47
+ $COMPOSE logs --no-color --tail=200 ipdapi || true
48
+ - run:
49
+ name: Install Ruby 3.4.10
34
50
  command: |
35
51
  wget -O ruby-install-0.9.3.tar.gz https://github.com/postmodern/ruby-install/releases/download/v0.9.3/ruby-install-0.9.3.tar.gz
36
52
  tar -xzvf ruby-install-0.9.3.tar.gz
37
53
  cd ruby-install-0.9.3 && sudo make install
38
- sudo ruby-install --system ruby 3.4.4
54
+ sudo ruby-install --system ruby 3.4.10
55
+ # rbenv's shims precede /usr/local/bin, so without this the job runs rbenv's
56
+ # global Ruby instead of the one installed above. Keep $PATH single-quoted
57
+ # (shellcheck SC2016) so it expands when later steps source BASH_ENV.
58
+ - run:
59
+ name: Put the installed Ruby ahead of rbenv on PATH
60
+ command: echo 'export PATH=/usr/local/bin:$PATH' >> "$BASH_ENV"
61
+ - run:
62
+ name: Verify the expected Ruby is active
63
+ command: |
64
+ ruby -v
65
+ ruby -e 'exit(RUBY_VERSION == "3.4.10")' || {
66
+ echo "ERROR: expected Ruby 3.4.10, got $(ruby -v). which ruby: $(which ruby)"
67
+ exit 1
68
+ }
69
+ # The system gem dir is root-owned, so gems go in the workspace instead.
39
70
  - run:
40
71
  name: Install bundler and gems
41
72
  command: |
42
- gem install bundler
73
+ sudo gem install bundler -v 4.0.18
74
+ bundle -v
75
+ bundle config set --local path vendor/bundle
43
76
  bundle install
44
77
  - run:
45
78
  name: Execute test suite
@@ -17,7 +17,7 @@ jobs:
17
17
  - name: Set up Ruby 3.4
18
18
  uses: ruby/setup-ruby@v1
19
19
  with:
20
- ruby-version: '3.4'
20
+ ruby-version: '3.4.10'
21
21
 
22
22
  - name: Publish to GPR
23
23
  run: |
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  /.bundle/
2
+ /vendor/
2
3
  /.yardoc
3
4
  /_yardoc/
4
5
  /coverage/
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.4.4
1
+ 3.4.10
data/Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
- FROM ruby:3.3.6-alpine
1
+ FROM ruby:3.4.10-alpine
2
2
 
3
- RUN gem install bundler
3
+ RUN gem install bundler -v 4.0.18
4
4
 
5
5
  RUN apk add bash git build-base jq curl
6
6
 
data/VERSION.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | ------------| --------------------------------------------------------------------------- |
5
+ | v2.37.0 | 2026-08-06 | Upgrade Ruby to 3.4.10 and Bundler to 4.0.18; raise minimum Ruby to 3.4 |
5
6
  | v2.36.1 | 2026-06-16 | Eliminated the polynomial-ReDoS backtracking pattern flagged by CodeQL |
6
7
  | v2.36.0 | 2026-06-16 | Upgrade httparty gem to v0.24 |
7
8
  | v2.35.0 | 2026-05-21 | Add acl field to Receiver model (M2M-TCP receivers) |
@@ -101,7 +101,14 @@ services:
101
101
  interval: 5s
102
102
  retries: 10
103
103
  start_period: 30s
104
- test: apk add curl && curl -s http://localhost/public/v1/healthcheck/default || exit -1
104
+ # Use node to reach the healthcheck endpoint: curl and a package manager to
105
+ # install it are not guaranteed in this image, but node always is — the
106
+ # entrypoint runs `node app/main.js`.
107
+ test:
108
+ - CMD
109
+ - node
110
+ - -e
111
+ - "require('http').get('http://localhost/public/v1/healthcheck/default', r => process.exit(r.statusCode < 400 ? 0 : 1)).on('error', () => process.exit(1))"
105
112
  timeout: 10s
106
113
  image: 613707345027.dkr.ecr.us-east-1.amazonaws.com/api/ipdapi:staging
107
114
  networks:
data/alula.gemspec CHANGED
@@ -7,7 +7,7 @@ require "alula/version"
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = "alula-ruby"
9
9
  spec.version = Alula::VERSION
10
- spec.required_ruby_version = ">= 3.3.0"
10
+ spec.required_ruby_version = ">= 3.4.0"
11
11
  spec.summary = "Ruby bindings for the Alula API"
12
12
 
13
13
  spec.authors = ["Titus Johnson"]
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '2.36.1'
4
+ VERSION = '2.37.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alula-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.36.1
4
+ version: 2.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Johnson
@@ -202,7 +202,6 @@ files:
202
202
  - ".gitignore"
203
203
  - ".rspec"
204
204
  - ".ruby-version"
205
- - ".travis.yml"
206
205
  - Dockerfile
207
206
  - Gemfile
208
207
  - Guardfile
@@ -413,7 +412,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
413
412
  requirements:
414
413
  - - ">="
415
414
  - !ruby/object:Gem::Version
416
- version: 3.3.0
415
+ version: 3.4.0
417
416
  required_rubygems_version: !ruby/object:Gem::Requirement
418
417
  requirements:
419
418
  - - ">="
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.5.2
7
- before_install: gem install bundler -v 2.0.1