dapr 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddccde41cfa4987277e70db836676786db13d6738a1a38b4ace5c36a2058d352
4
- data.tar.gz: d9cc8aae9caa4391550971b33efed13c78ce6c3b412ba8d4a69e4a6ac92c29de
3
+ metadata.gz: b9b1861855feb00e3a85702db26126a648ed46ca976fa7067a65dcbea385bef6
4
+ data.tar.gz: a394aef5db23216f4ae71bf245898224f4e5f1460a2ff3ca7f1c48b7c7f31919
5
5
  SHA512:
6
- metadata.gz: 243bb6776639c2d9269d80d8230914c66d1b155a519c2570b4e65c256fbd1da47bf8fc853e11ef470dd704304bbe471239dfef8cb57e0e860b9ce6a5c2cc63f0
7
- data.tar.gz: 05ebe5607bccc04e6049ca3c27671e76611ae4bb996542b43989fff2ab86d4f715db13ad6f89b83ab0fb089388da057990ae113300cb08234fa03f51a6d0c72f
6
+ metadata.gz: 85fb99c3f34aacfaf3c90bf7fcde6d7eb5a8bc4e5821211fa54911e7ebc65c5304450b1dc426911683204fb8d7c1c5fa4d8d1596615574cdb7d5818a436111e2
7
+ data.tar.gz: fc3e8692862885bf2b09efa26b09c8604f9fd19ceae1a681a7b6e24b3f4a66f2b16f474966b287bf9e4bbb3b63974497f40e792916c011ced5d6a7529310a48f
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.3.0"
2
+ ".": "0.3.2"
3
3
  }
data/.rubocop.yml CHANGED
@@ -4,7 +4,7 @@ require:
4
4
  - rubocop-minitest
5
5
 
6
6
  AllCops:
7
- TargetRubyVersion: 3.2.0
7
+ TargetRubyVersion: 3.3.0
8
8
  NewCops: enable
9
9
 
10
10
 
data/.version.txt CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.2](https://github.com/rubyists/dapr-ruby-client/compare/v0.3.1...v0.3.2) (2024-07-19)
4
+
5
+
6
+ ### Features
7
+
8
+ * **grpc:** Update grpc to 1.65.1 ([#69](https://github.com/rubyists/dapr-ruby-client/issues/69)) ([536dec9](https://github.com/rubyists/dapr-ruby-client/commit/536dec92730f3578de368d19c8150d701a6aac1b))
9
+
10
+ ## [0.3.1](https://github.com/rubyists/dapr-ruby-client/compare/v0.3.0...v0.3.1) (2024-06-03)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Remove owner/ from the published ghcr.io image ([#67](https://github.com/rubyists/dapr-ruby-client/issues/67)) ([47100ba](https://github.com/rubyists/dapr-ruby-client/commit/47100ba1b4621ad351e8349a2b185ac4bd424c21))
16
+
3
17
  ## [0.3.0](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.11...v0.3.0) (2024-06-03)
4
18
 
5
19
 
data/ci/build_image.sh CHANGED
@@ -30,7 +30,8 @@ base_dir=$(basename "$(pwd)")
30
30
  : "${IMAGE_NAME:=$base_dir}"
31
31
  : "${LICENSE:=MIT}"
32
32
  : "${REGISTRY:=ghcr.io}"
33
- : "${RUBY_VERSION:=3.3.2}"
33
+ : "${RUBY_VERSION:=3.3.4}"
34
+ : "${REGISTRY_TOKEN:=$GITHUB_TOKEN}"
34
35
 
35
36
  base_image_tag="$RUBY_VERSION-alpine$ALPINE_VERSION"
36
37
  base_exists=$(skopeo list-tags docker://docker.io/ruby |jq -r "any(.Tags[] == \"$base_image_tag\"; .)")
@@ -155,7 +156,6 @@ if [ $# -gt 0 ]; then
155
156
  shift
156
157
  fi
157
158
 
158
-
159
159
  if [ -z "$CONTAINERFILE" ]; then
160
160
  printf "No containerfile specified, looking for default locations\n"
161
161
  for containerfile in Containerfile Dockerfile
@@ -218,8 +218,8 @@ $runtime build --tag "$full_tag" "$@" \
218
218
  --label org.opencontainers.image.revision="$revision" \
219
219
  --label org.opencontainers.image.url="$repo_url" \
220
220
  --label org.opencontainers.image.title="$IMAGE_NAME" \
221
- --label org.opencontainers.image.source="Generated by gitops_tools/bin/build_image ($USER@$HOSTNAME)" \
222
- --label org.opencontainers.image.version="$tag" \
221
+ --label org.opencontainers.image.source="Generated by ruby-automation's build_image.sh ($USER@$HOSTNAME)" \
222
+ --label org.opencontainers.image.version="$full_tag" \
223
223
  --label shortref="$shortref" \
224
224
  --build-arg ALPINE_VERSION="$ALPINE_VERSION" \
225
225
  --build-arg RUBY_VERSION="$RUBY_VERSION" \
@@ -229,25 +229,26 @@ $runtime build --tag "$full_tag" "$@" \
229
229
  if ! $runtime login --get-login "$REGISTRY" >/dev/null 2>/dev/null
230
230
  then
231
231
  printf "Not logged in to '%s', trying to login\n" "$REGISTRY" >&2
232
- [ -z "$GITHUB_TOKEN" ] && die 9 "No GITHUB_TOKEN set, cannot login"
233
- printf "%s" "$GITHUB_TOKEN" | $runtime login -u "$GITHUB_TOKEN" --password-stdin "$REGISTRY" || die 10 "Failed to login to $REGISTRY"
232
+ [ -z "$REGISTRY_TOKEN" ] && die 9 "No REGISTRY_TOKEN (nor GITHUB_TOKEN) set, cannot login"
233
+ printf "%s" "$REGISTRY_TOKEN" | $runtime login -u "$REGISTRY_TOKEN" --password-stdin "$REGISTRY" || die 10 "Failed to login to $REGISTRY"
234
234
  fi
235
235
 
236
- mapfile -t tags < <(echo "$tag" | awk -F'.' 'NF==3{print $1"."$2"."$3; print $1"."$2; print $1; next} NF==2{print $1"."$2; print $1; next} {print}')
236
+ # Split 1.2.3 into 1.2.3, 1.2, 1. We want to tag our image with all 3 of these
237
+ mapfile -t tags < <(echo "$tag" | awk -F'.' 'NF==3{print; print $1"."$2; print $1; next} NF==2{print; print $1; next} {print}')
237
238
  for t in "${tags[@]}"
238
239
  do
239
240
  new_tag=$IMAGE_NAME:$t-ruby$RUBY_VERSION-alpine$ALPINE_VERSION
240
- debug "Tagging %s as %s\n" "$full_tag" "$new_tag"
241
+ registry_image_name="$REGISTRY/$owner/$new_tag"
241
242
  if [ "$runtime" = "podman" ]
242
243
  then
243
244
  if [ "$full_tag" != "$new_tag" ]
244
245
  then
246
+ debug "Tagging %s as %s\n" "$full_tag" "$new_tag"
245
247
  podman tag "$full_tag" "$new_tag" || die 11 "Failed to tag image $full_tag as $new_tag"
246
248
  fi
247
- registry_image_name="$REGISTRY/$owner/$new_tag"
248
249
  podman push "$new_tag" "$registry_image_name" || die 12 "Failed to push image $new_tag to $registry_image_name"
249
250
  else
250
- registry_image_name="$REGISTRY/$owner/$new_tag"
251
+ debug "Tagging %s as %s\n" "$full_tag" "$registry_image_name"
251
252
  docker tag "$full_tag" "$registry_image_name" || die 13 "Failed to tag image $full_tag as $registry_image_name"
252
253
  docker push "$registry_image_name" || die 14 "Failed to push image $new_tag to $registry_image_name"
253
254
  fi
data/lib/dapr/version.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module Rubyists
4
4
  module Dapr
5
5
  # x-release-please-start-version
6
- VERSION = '0.3.0'
6
+ VERSION = '0.3.2'
7
7
  # x-release-please-end
8
8
  end
9
9
  end
data/oci/Containerfile CHANGED
@@ -1,5 +1,5 @@
1
- ARG ALPINE_VERSION=3.19
2
- ARG RUBY_VERSION=3.3.1
1
+ ARG ALPINE_VERSION=3.20
2
+ ARG RUBY_VERSION=3.3.4
3
3
  FROM docker.io/ruby:$RUBY_VERSION-alpine$ALPINE_VERSION AS build-env
4
4
 
5
5
  # Setting env up
@@ -33,8 +33,8 @@ RUN bundle config set build.nokogiri --use-system-libraries && \
33
33
  RUN rm -rf node_modules tmp/cache app/assets vendor/assets spec
34
34
 
35
35
  ############### Build step done ###############
36
- ARG ALPINE_VERSION=3.19
37
- ARG RUBY_VERSION=3.3.1
36
+ ARG ALPINE_VERSION=3.20
37
+ ARG RUBY_VERSION=3.3.4
38
38
  FROM docker.io/ruby:$RUBY_VERSION-alpine$ALPINE_VERSION
39
39
 
40
40
  ARG APP_ROOT=/app
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-06-03 00:00:00.000000000 Z
12
+ date: 2024-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dapr-ruby
@@ -86,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 3.2.0
89
+ version: 3.3.0
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - ">="