cnunciato-buildkite 0.0.49 → 0.0.51

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: 42fd089c6f1dfe0d5f710762c0abddbf64270e30cb4889b7fa493fdffcddb852
4
- data.tar.gz: b70701c4c3bbb77aab9026dfb2b9127f0a9953090abfdc3cef0059835fc49b54
3
+ metadata.gz: 6faed41d4e0673427f4b81294cf518300bbbd5bcc7ff7de39c68dd6d798435e7
4
+ data.tar.gz: 4889f192bde46e4564c18c35c4c6eb34ba204778e4377db595c9c31ffd5e178c
5
5
  SHA512:
6
- metadata.gz: bf2c21597afa41b9050e56a0c6cdc9afe391c5ad22828dc269e7cea0f177b5ead31eff933df5e8d58c0d14ec22d960f04717d6d1c6af87e06c2cdfda0cf97cd3
7
- data.tar.gz: ab6307ec67a602c467a0777ce5c201d0e22bd740730c31a8a392aebfcbf2692de03fae9ab5288a29ef0e2d72f5dc76a777bf32e862000c7003f8ef7cd93bee3e
6
+ metadata.gz: e9be43d5dc6b42a95252ae3d4b2192913a9481b7beb9107df5f7e2011a85c51a6d6631893ee1efce626ffbcefa401a12461f3905e3c92623e5afae86724114c5
7
+ data.tar.gz: d9abc353107ad9cecd895bdac27c5fa73c12c952f0ed725012172d859e8dea94247611153f9d104c6a2cdddaf98a532eaa411fccc97a4e36b5d7cfea39353c11
data/.rubocop.yml CHANGED
@@ -4,8 +4,8 @@ require:
4
4
 
5
5
  AllCops:
6
6
  TargetRubyVersion: 3.0
7
- Exclude:
8
- - "lib/schema.rb"
7
+ # Exclude:
8
+ # - "lib/schema.rb"
9
9
 
10
10
  Style/StringLiterals:
11
11
  EnforcedStyle: double_quotes
@@ -1,3 +1,3 @@
1
1
  module Buildkite
2
- VERSION = "0.0.49".freeze
2
+ VERSION = "0.0.51".freeze
3
3
  end
data/lib/buildkite.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require_relative "buildkite/version"
2
- require_relative "schema"
3
2
  require_relative "environment"
4
3
  require "json"
5
4
  require "yaml"
@@ -13,11 +12,21 @@ module Buildkite
13
12
  @steps = []
14
13
  end
15
14
 
16
- # Reverses the contents of a String or IO object.
15
+ # Adds a step to the pipeline.
17
16
  #
18
- # @param contents [String, #read] the contents to reverse
19
- # @return [String] the contents reversed lexically
20
- def add_command_step(step)
17
+ # @param [Buildkite::CommandStep, Buildkite::BlockStep] step
18
+ # The step to add, which can be either a CommandStep or a BlockStep.
19
+ # @return [self]
20
+ # Returns the pipeline itself for chaining.
21
+ #
22
+ # @example Adding a CommandStep
23
+ # command_step = Buildkite::CommandStep.new(label: "Run tests", commands: ["bundle exec rspec"])
24
+ # pipeline.add_step(command_step)
25
+ #
26
+ # @example Adding a BlockStep
27
+ # block_step = Buildkite::BlockStep.new(label: "Manual approval", block: "Deploy to production")
28
+ # pipeline.add_step(block_step)
29
+ def add_step(step)
21
30
  @steps << step
22
31
  self
23
32
  end
data/project.json CHANGED
@@ -9,14 +9,22 @@
9
9
  "executor": "nx:run-commands",
10
10
  "options": {
11
11
  "commands": [
12
- "rm -rf .yardoc",
13
- "rm -rf .rspec_status",
14
- "rm -rf pkg"
12
+ "rimraf .yardoc",
13
+ "rimraf .rspec_status",
14
+ "rimraf pkg"
15
15
  ],
16
16
  "cwd": "sdk/ruby"
17
17
  },
18
18
  "cache": false
19
19
  },
20
+ "install": {
21
+ "executor": "nx:run-commands",
22
+ "options": {
23
+ "commands": ["bundle install"],
24
+ "cwd": "sdk/ruby"
25
+ },
26
+ "cache": false
27
+ },
20
28
  "format": {
21
29
  "executor": "nx:run-commands",
22
30
  "options": {
@@ -40,7 +48,7 @@
40
48
  "commands": ["gem push cnunciato-buildkite-$VERSION.gem"],
41
49
  "cwd": "dist/sdks/ruby",
42
50
  "env": {
43
- "VERSION": "0.0.49"
51
+ "VERSION": "0.0.51"
44
52
  }
45
53
  },
46
54
  "cache": false
data/sig/buildkite.rbs CHANGED
@@ -1,4 +1,26 @@
1
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
1
2
  module Buildkite
2
3
  VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+
5
+ class CommandStep
6
+ attr_reader label: String
7
+ attr_reader commands: Array[String]
8
+ end
9
+
10
+ class BlockStep
11
+ attr_reader label: String
12
+ attr_reader block: String
13
+ end
14
+
15
+ class Pipeline
16
+ @steps: Array[CommandStep | BlockStep]
17
+
18
+ def initialize: () -> void
19
+
20
+ def add_step: (step: CommandStep | BlockStep) -> self
21
+
22
+ def to_json: () -> untyped
23
+
24
+ def to_yaml: () -> untyped
25
+ end
4
26
  end
metadata CHANGED
@@ -1,15 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cnunciato-buildkite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.49
4
+ version: 0.0.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Nunciato
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-01-07 00:00:00.000000000 Z
12
- dependencies: []
10
+ date: 2025-01-22 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: ostruct
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: 0.1.0
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: 0.1.0
13
26
  description: A Ruby SDK for Buildkite!
14
27
  email:
15
28
  - chris@nunciato.org
@@ -25,7 +38,6 @@ files:
25
38
  - lib/buildkite.rb
26
39
  - lib/buildkite/version.rb
27
40
  - lib/environment.rb
28
- - lib/schema.rb
29
41
  - project.json
30
42
  - sig/buildkite.rbs
31
43
  homepage: https://buildkite.com
@@ -34,7 +46,6 @@ metadata:
34
46
  homepage_uri: https://buildkite.com
35
47
  source_code_uri: https://github.com/cnunciato/buildkite-sdk
36
48
  changelog_uri: https://github.com/cnunciato/buildkite-sdk
37
- post_install_message:
38
49
  rdoc_options: []
39
50
  require_paths:
40
51
  - lib
@@ -49,8 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
60
  - !ruby/object:Gem::Version
50
61
  version: '0'
51
62
  requirements: []
52
- rubygems_version: 3.5.16
53
- signing_key:
63
+ rubygems_version: 3.6.2
54
64
  specification_version: 4
55
65
  summary: A Ruby SDK for Buildkite!
56
66
  test_files: []