浏览代码

[ruby/agoo] Update dependencies (#9070)

* [ruby/agoo] Update dependencies

Also fix flakiness by sorting worlds on id in batch update.

* [agoo] Upgrade to Ruby 3.4-rc
Petrik de Heus 1 年之前
父节点
当前提交
4f74e649a4
共有 3 个文件被更改,包括 10 次插入8 次删除
  1. 8 6
      frameworks/Ruby/agoo/Gemfile.lock
  2. 1 1
      frameworks/Ruby/agoo/agoo.dockerfile
  3. 1 1
      frameworks/Ruby/agoo/app.rb

+ 8 - 6
frameworks/Ruby/agoo/Gemfile.lock

@@ -1,11 +1,13 @@
 GEM
   remote: https://rubygems.org/
   specs:
-    agoo (2.8.3)
-    connection_pool (2.2.2)
-    oj (3.7.12)
-    pg (1.1.4)
-    rack (2.0.7)
+    agoo (2.15.10)
+    bigdecimal (3.1.8)
+    connection_pool (2.4.1)
+    oj (3.16.3)
+      bigdecimal (>= 3.0)
+    pg (1.5.6)
+    rack (3.0.11)
 
 PLATFORMS
   ruby
@@ -18,4 +20,4 @@ DEPENDENCIES
   rack
 
 BUNDLED WITH
-   1.17.2
+   2.5.10

+ 1 - 1
frameworks/Ruby/agoo/agoo.dockerfile

@@ -1,4 +1,4 @@
-FROM ruby:3.3
+FROM ruby:3.4-rc
 
 RUN apt-get update -q \
     && apt-get install --no-install-recommends -q -y \

+ 1 - 1
frameworks/Ruby/agoo/app.rb

@@ -165,7 +165,7 @@ end
 class UpdatesHandler < BaseHandler
   def self.call(req)
     queries = extract_queries_param req
-    records = ALL_IDS.sample(queries).map do |id|
+    records = ALL_IDS.sample(queries).sort.map do |id|
       world = get_one_record(id)
       world['randomnumber'] = get_one_random_number
       world