selective-ruby-core 0.2.3-arm64-darwin → 0.2.4-arm64-darwin

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: 65a9d5ea2fc988fb01cc1966ec4eea098a9149593b0217fea94e74d8dfb9191d
4
- data.tar.gz: c6c330b10973b8d83ee8ae51947e22b1cbe0bb2893c7beaf340f4dd91deed152
3
+ metadata.gz: 2e1eca15119e443f80735ecf5a021664cc706dd9efb903a3f1d4825df5950e0d
4
+ data.tar.gz: 3b9f485c85389105e30cec608443215d8b141efa03f2d20cff61a5451cc9d6ff
5
5
  SHA512:
6
- metadata.gz: 14788a8944552736e727242a3be3b5eb8240523f4b7b881836cc9ff95a00814fac741e6756a4a25b153439dece54c02e76732998dc282d7f4a6b07df50c4c15d
7
- data.tar.gz: cdb477933ff7b2ebf328efc0ac5aa88bfaccdde6a4e7fe0ef27a6ac83256837596808fe3393d06fcb31d564b712c29a8d1caf40ad100aa104949c995f306f5a4
6
+ metadata.gz: a9948e7eb50a8b2f828a99d4813aa0d58508affb1596c0c559239311a5e8a8777f48d488caae6f6fe590eff4622c263cf1b8fccef3377e8b3b9109687002347a
7
+ data.tar.gz: 6fb5ad1de05daa3d5fed90f4ac7ca89038edd0a10137ad90449335044365d83af07ed00d9901bff5c380fdbc7198808a6a566fbeec3b387e6002b0d721e99791
data/lib/bin/build_env.sh CHANGED
@@ -31,22 +31,26 @@ elif [ -n "$SEMAPHORE" ]; then
31
31
  pr_title=$SEMAPHORE_GIT_PR_NAME
32
32
  fi
33
33
 
34
+ function escape() {
35
+ echo -n "$1" | sed 's/"/\\"/g'
36
+ }
37
+
34
38
  # Output the JSON
35
39
  cat <<EOF
36
40
  {
37
- "api_key": "$SELECTIVE_API_KEY",
38
- "host": "${SELECTIVE_HOST:-wss://app.selective.ci}",
39
- "platform": "${SELECTIVE_PLATFORM:-$platform}",
40
- "branch": "${SELECTIVE_BRANCH:-$branch}",
41
- "pr_title": "${SELECTIVE_PR_TITLE:-$pr_title}",
42
- "target_branch": "${SELECTIVE_TARGET_BRANCH:-$target_branch}",
43
- "actor": "${SELECTIVE_ACTOR:-$actor}",
44
- "sha": "${SELECTIVE_SHA:-$sha}",
45
- "run_id": "${SELECTIVE_RUN_ID:-$run_id}",
46
- "run_attempt": "${SELECTIVE_RUN_ATTEMPT:-$run_attempt}",
47
- "runner_id": "${SELECTIVE_RUNNER_ID:-$runner_id}",
48
- "commit_message": "$(git log --format=%s -n 1 $sha)",
49
- "committer_name": "$(git show -s --format='%an' -n 1 $sha)",
50
- "committer_email": "$(git show -s --format='%ae' -n 1 $sha)"
41
+ "api_key": "$(escape "${SELECTIVE_API_KEY}")",
42
+ "host": "$(escape "${SELECTIVE_HOST:-wss://app.selective.ci}")",
43
+ "platform": "$(escape "${SELECTIVE_PLATFORM:-$platform}")",
44
+ "branch": "$(escape "${SELECTIVE_BRANCH:-$branch}")",
45
+ "pr_title": "$(escape "${SELECTIVE_PR_TITLE:-$pr_title}")",
46
+ "target_branch": "$(escape "${SELECTIVE_TARGET_BRANCH:-$target_branch}")",
47
+ "actor": "$(escape "${SELECTIVE_ACTOR:-$actor}")",
48
+ "sha": "$(escape "${SELECTIVE_SHA:-$sha}")",
49
+ "run_id": "$(escape "${SELECTIVE_RUN_ID:-$run_id}")",
50
+ "run_attempt": "$(escape "${SELECTIVE_RUN_ATTEMPT:-$run_attempt}")",
51
+ "runner_id": "$(escape "${SELECTIVE_RUNNER_ID:-$runner_id}")",
52
+ "commit_message": "$(escape "$(git log --format=%s -n 1 $sha)")",
53
+ "committer_name": "$(escape "$(git show -s --format='%an' -n 1 $sha)")",
54
+ "committer_email": "$(escape "$(git show -s --format='%ae' -n 1 $sha)")"
51
55
  }
52
56
  EOF
data/lib/bin/transport CHANGED
Binary file
@@ -3,7 +3,7 @@
3
3
  module Selective
4
4
  module Ruby
5
5
  module Core
6
- VERSION = "0.2.3"
6
+ VERSION = "0.2.4"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selective-ruby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Benjamin Wood
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-02-06 00:00:00.000000000 Z
12
+ date: 2024-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zeitwerk
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.4.10
74
+ rubygems_version: 3.5.3
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Selective Ruby Client Core