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

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: f3c2ada7869177656debc626f77920f3554ce00fb9c29c3b6d6ca33282190f69
4
- data.tar.gz: 78fd7d5ee34a92ac3c85dae98c6278e4600c9735f07250c11a531af0aaaef899
3
+ metadata.gz: bf4ede6530f65732361cb3edca6e3bf1fe1b75702d42460710248e6afd77d042
4
+ data.tar.gz: 8d09d05ec38cc9aea45834835bd98fe6d94f7387d06cfa337d632ba97c68b69d
5
5
  SHA512:
6
- metadata.gz: d020bf7e569391e88b9a31e7290c2898b4ae0597da69146e265b9362dcf8f3fa6a226ed023e69c888b64b89d9037512847620603b1993c90a67e7111a1c6a00b
7
- data.tar.gz: f81b0d47f266fafd9010090973ccd19c1d0f00b5f7444f23288f0f969ae14584d3b181832a9042bde8d6cd104c822b96e68f70f965d6d37c244a56dec2ec5a69
6
+ metadata.gz: 27a5595b47add478a1c99c71f7574a66b6fbe0cf8deafb503bedd48f61302397469658b7f0d9cc71c147668980a50169c48c2e4a3c912afb0a6ed8dab3088429
7
+ data.tar.gz: 5f1a0a6a1644f4193eb2d29eaf820278a7a74b96a0f1c8a49e2b3e7623485379b7f1f207285c145120a97f9dabb69308c4a1bbf64f3b4836102420f016b531a3
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-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