selective-ruby-core 0.2.3-x86_64-linux → 0.2.4-x86_64-linux

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: 403cd32ad399923812bcd6250cb8770654a18fb2816022c1fb772ca830e356bf
4
- data.tar.gz: 591dd02dd211846f885995349d5005aae50495dc15e90ef5ea1f874899acb838
3
+ metadata.gz: 74f08ebaa7da3c1328489896257aa1b9e7d0b5a6c996a57d0ca40177614133ad
4
+ data.tar.gz: 2efd8ad84aa62bfef058963d7efadcfc02f131f15036436ee837573c1ecd0a71
5
5
  SHA512:
6
- metadata.gz: e9186c4fcb131d940bb6c31481f3dd5a851245c530628b33950bc1c7e1020154605378e5ff39b3f8530a49a03d220368a3a06ea2b9dd7124eec9684ab9f95115
7
- data.tar.gz: 41a8c629e830f3b775adc1334bcc49fbd728a3f0cc4de932cdeb77c526d4061dc1f35e82ae4196779b4a081da91f947ca10f6d0e39ac0ccf2b2f232101bd1651
6
+ metadata.gz: 9e43158abef313a224bf9095c054bae85380eef4107f06b39b7d58e1746c8057b15b29cf1c766bde0c78da6fb437d5d72c0595047e8110dc1a2b830ebc95240c
7
+ data.tar.gz: 8552dd1fb2439624597431526b759c7fa2c0baef9ffebea2888049a07aef2b4f3e859af2cff83077b29a657297bd5645c2da6c904adb966a84898e37cfdc4bdd
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: x86_64-linux
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