selective-ruby-core 0.3.0 → 0.3.1

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: b1a2419b9f116139a88f893db32c30d4b20ede42f5e8d67e29efa7338ad25746
4
- data.tar.gz: 4f74720e2576103b12a264a8d111c6b473e8abb9a59cf8f92a9a63fa3f6ea7e4
3
+ metadata.gz: 6c714de052c8981bced1542296c80c93ba54cf2d44e7c8697eae8a2d8c0ce8cb
4
+ data.tar.gz: c5c674ca88fd448ff332dbf1e59df6452dd08dd269103c2de3223666d5bbe870
5
5
  SHA512:
6
- metadata.gz: dd99fe2d8968bb63a4ac93443648fb1aaa16c081bf1ffdf09f5aaef8696137ab1135814eac6bbdc8ef0159fb72741075ec000e96112dd68f835146731e8d98a4
7
- data.tar.gz: 141d0a456bdc91ba810c14328d28dd2380028936834f5d403dda87f7be95ceea7014d0d119bca41dea7c06f81490b04700c11999a5cd18921f1eaed011fb12e6
6
+ metadata.gz: b97b2789ba71ec4a2ad01b22105c3542bdb53731a357e80b88e28df5972ce6b3e6ae3abd06cc9fd081dc9589552fdaa0de0a8a2c90e3e03b3763402f6c5c5096
7
+ data.tar.gz: 410d54de24aad6116b84810f3e9a8e40049e6386d5526c5ab10b7be19673d6b9b49552755423ec0aac7fb33a1d38cf6e65c8e4c5fbd1bdf78f2f3d12c1978f40
data/lib/bin/build_env.sh CHANGED
@@ -44,6 +44,8 @@ if [ -n "$GITHUB_ACTIONS" ]; then
44
44
  if [ -f "$GITHUB_EVENT_PATH" ]; then
45
45
  if command -v jq >/dev/null 2>&1; then
46
46
  base_sha=$(jq -r '.pull_request.base.sha // .before // empty' < "$GITHUB_EVENT_PATH" 2>/dev/null)
47
+ # On pull_request events GITHUB_SHA is GitHub's merge commit; this is the branch's own commit.
48
+ head_sha=$(jq -r '.pull_request.head.sha // empty' < "$GITHUB_EVENT_PATH" 2>/dev/null)
47
49
  else
48
50
  base_sha=$(grep -o '"before"[[:space:]]*:[[:space:]]*"[^"]*"' "$GITHUB_EVENT_PATH" | head -1 | sed -E 's/.*"[^"]*"[[:space:]]*:[[:space:]]*"([^"]*)".*/\1/')
49
51
  fi
@@ -194,6 +196,7 @@ cat <<EOF
194
196
  "actor": "$(escape "${SELECTIVE_ACTOR:-$actor}")",
195
197
  "sha": "$(escape "${SELECTIVE_SHA:-$sha}")",
196
198
  "base_sha": "$(escape "${SELECTIVE_BASE_SHA:-$base_sha}")",
199
+ "head_sha": "$(escape "${SELECTIVE_HEAD_SHA:-${head_sha:-${SELECTIVE_SHA:-$sha}}}")",
197
200
  "run_id": "$(escape "${SELECTIVE_RUN_ID:-$run_id}")",
198
201
  "run_attempt": "$(escape "${SELECTIVE_RUN_ATTEMPT:-$run_attempt}")",
199
202
  "runner_id": "$(escape "${SELECTIVE_RUNNER_ID:-$runner_id}")",
@@ -3,7 +3,7 @@
3
3
  module Selective
4
4
  module Ruby
5
5
  module Core
6
- VERSION = "0.3.0"
6
+ VERSION = "0.3.1"
7
7
  end
8
8
  end
9
9
  end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/selective/ruby/core/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "selective-ruby-core"
7
+ spec.version = Selective::Ruby::Core::VERSION
8
+ spec.authors = ["Benjamin Wood", "Nate Vick"]
9
+ spec.email = ["ben@hint.io", "nate@hint.io"]
10
+ spec.license = "MIT"
11
+
12
+ # Currently supported release platforms are:
13
+ # Linux: x86_64-linux, aarch64-linux
14
+ # MacOS: x86_64-darwin, arm64-darwin
15
+ if (platform = ENV["RELEASE_PLATFORM"])
16
+ spec.platform = platform
17
+ end
18
+
19
+ spec.summary = "Selective Ruby Client Core"
20
+ spec.description = "Selective is an intelligent test runner for your current CI provider. Get real-time test results, intelligent ordering based on code changes, shorter run times, automatic flake detection, the ability to re-enqueue failed tests, and more."
21
+ spec.homepage = "https://www.selective.ci"
22
+ spec.required_ruby_version = ">= 2.7.0"
23
+
24
+ spec.metadata["homepage_uri"] = spec.homepage
25
+ spec.metadata["source_code_uri"] = "http://github.com/selectiveci/selective-ruby-core"
26
+ spec.metadata["changelog_uri"] = "https://github.com/selectiveci/selective-ruby-core/blob/main/CHANGELOG.md"
27
+
28
+ # Specify which files should be added to the gem when it is released.
29
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30
+ spec.files = Dir.chdir(__dir__) do
31
+ `git ls-files -z`.split("\x0").reject do |f|
32
+ (File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ docs/ rubocop/ simplicity/ test/ spec/ features/ log/ .git .circleci appveyor .rspec .ruby-version .standard.yml .rubocop-simplicity.yml README.md CHANGELOG.md CODE_OF_CONDUCT.md AGENTS.md Gemfile])
33
+ end
34
+ end
35
+
36
+ # Add the transport binary
37
+ unless ENV["RELEASE_PLATFORM"].nil?
38
+ spec.files << "lib/bin/transport"
39
+ end
40
+
41
+ # The optional test map tracer. extconf.rb writes a no-op Makefile when it
42
+ # can't build (no compiler, unsupported Ruby), so installation never fails
43
+ # because of it; the runner then reports it can't record.
44
+ spec.extensions = ["ext/selective_tracer/extconf.rb"]
45
+
46
+ spec.bindir = "exe"
47
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
48
+ spec.require_paths = ["lib"]
49
+
50
+ # Uncomment to register a new dependency of your gem
51
+ spec.add_dependency("logger", "~> 1.6")
52
+ spec.add_dependency("zeitwerk", "~> 2.6.12")
53
+ end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selective-ruby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Wood
8
8
  - Nate Vick
9
+ autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 1980-01-02 00:00:00.000000000 Z
12
+ date: 2026-11-14 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: logger
@@ -69,6 +70,7 @@ files:
69
70
  - lib/selective/ruby/core/test_map/tree.rb
70
71
  - lib/selective/ruby/core/test_map/uploader.rb
71
72
  - lib/selective/ruby/core/version.rb
73
+ - selective-ruby-core.gemspec
72
74
  homepage: https://www.selective.ci
73
75
  licenses:
74
76
  - MIT
@@ -76,6 +78,7 @@ metadata:
76
78
  homepage_uri: https://www.selective.ci
77
79
  source_code_uri: http://github.com/selectiveci/selective-ruby-core
78
80
  changelog_uri: https://github.com/selectiveci/selective-ruby-core/blob/main/CHANGELOG.md
81
+ post_install_message:
79
82
  rdoc_options: []
80
83
  require_paths:
81
84
  - lib
@@ -90,7 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
93
  - !ruby/object:Gem::Version
91
94
  version: '0'
92
95
  requirements: []
93
- rubygems_version: 4.0.20
96
+ rubygems_version: 3.5.22
97
+ signing_key:
94
98
  specification_version: 4
95
99
  summary: Selective Ruby Client Core
96
100
  test_files: []