Skip to content

Commit

Permalink
add ruby3.2-http (#27301)
Browse files Browse the repository at this point in the history
Signed-off-by: Dentrax <[email protected]>
  • Loading branch information
Dentrax authored Aug 29, 2024
1 parent f0ab1c5 commit 49d1c49
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
63 changes: 63 additions & 0 deletions ruby3.2-http.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
package:
name: ruby3.2-http
version: 5.2.0
epoch: 0
description: An easy-to-use client library for making requests from Ruby. It uses a simple method chaining system for building requests, similar to Python's Requests.
copyright:
- license: MIT
dependencies:
runtime:
- ruby3.2-addressable
- ruby3.2-base64
- ruby3.2-http-cookie
- ruby3.2-http-form_data
- ruby3.2-llhttp

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- git
- ruby-3.2
- ruby-3.2-dev

pipeline:
- uses: git-checkout
with:
repository: https://github.com/httprb/http
tag: v${{package.version}}
expected-commit: bb754c7d85dca26180567b781815e1b84c784d86

- uses: ruby/build
with:
gem: ${{vars.gem}}

- uses: ruby/install
with:
gem: ${{vars.gem}}
version: ${{package.version}}

- uses: ruby/clean

vars:
gem: http

test:
pipeline:
- runs: ruby -e "require 'http'"
- name: Basic HTTP request parsing
runs: |
cat <<EOF > /tmp/test.rb
require "http"
HTTP.get("https://github.com").to_s
EOF
ruby /tmp/test.rb
update:
enabled: true
github:
identifier: httprb/http
strip-prefix: v
use-tag: true
3 changes: 2 additions & 1 deletion ruby3.2-llhttp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package:
name: ruby3.2-llhttp
version: 2023.03.29
# NOTE: There are also environment variables in this melange which may have to be bumped between upgrades.
epoch: 0
epoch: 1
description: Ruby bindings for llhttp.
copyright:
- license: MIT
Expand Down Expand Up @@ -85,6 +85,7 @@ subpackages:
dependencies:
runtime:
- ruby3.2-ffi
- ruby3.2-ffi-compiler
pipeline:
- working-directory: ffi
pipeline:
Expand Down

0 comments on commit 49d1c49

Please sign in to comment.