buildkite-builder 1.0.0.beta.2 → 1.0.0.beta.3

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: 2c8f87cd12b82cdfba170b75d353b119873c5ca8cb646424fe7fbcf3f544618a
4
- data.tar.gz: 4ea661f51e29cea2310424aa09837d204b6fe7712768fba59ea52f1ffba61f44
3
+ metadata.gz: 40f7637396c09f7ee154c5e3bc1efd4f6a8814403004c6651fecbddd54e236ab
4
+ data.tar.gz: 0670bc463e05fef4118acd46507960890badc245ba18ad7a153ac9974b460149
5
5
  SHA512:
6
- metadata.gz: 32237eff23a7ac011378218ef43603799123f26ecee7066c7bf89a4776b402d2b2e797ad0c7afe0d5390471abca1e0ce2b803bea2535a8e235e88650b8d19643
7
- data.tar.gz: 678b1f9dd7d47020e7c2e3aeddd9e419a6aaba8e5a405eb4333d28834aebc558612f5b93bb4f660368c7374755b76daffb5065e9940af710cb6b2ece0095f1e2
6
+ metadata.gz: 45dcb88aa1df6f3a7b1408db8ea95e4125c69701e8b6b78343dff016267d7e760abce11204ef36862fdad1282899791f1b40fb486c8d63d1ed3b456d5d01d32e
7
+ data.tar.gz: c64d28a3546a4252cf3f93342e0cbed09e05d28093a3a7a3abcba9950921d5254f5d300693b98b43cf15acc8e7a8184fde2451b30f3ebda61edbeea430c46e50
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'buildkite-builder'
4
+ require_relative File.expand_path('../lib/buildkite-builder', __dir__)
5
5
 
6
6
  Buildkite::Builder::Commands.run
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'buildkite-builder'
5
+
6
+ Buildkite::Builder::Commands.run
@@ -6,7 +6,7 @@ require 'pathname'
6
6
 
7
7
  module Buildkite
8
8
  module Builder
9
- VERSION = '1.0.0.beta.2'
9
+ VERSION = '1.0.0.beta.3'
10
10
 
11
11
  autoload :Commands, File.expand_path('builder/commands', __dir__)
12
12
  autoload :Definition, File.expand_path('builder/definition', __dir__)
@@ -7,6 +7,7 @@ module Buildkite
7
7
  COMMANDS = {
8
8
  'files' => :Files,
9
9
  'preview' => :Preview,
10
+ 'run' => :Run
10
11
  }.freeze
11
12
 
12
13
  autoload :Abstract, File.expand_path('commands/abstract', __dir__)
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Buildkite
4
+ module Builder
5
+ module Commands
6
+ class Run < Abstract
7
+ private
8
+
9
+ self.description = 'Builds and uploads the generated pipeline.'
10
+
11
+ def run
12
+ unless pipeline
13
+ raise 'You must specify a pipeline'
14
+ end
15
+
16
+ Builder::Runner.run
17
+ end
18
+
19
+ def pipeline
20
+ @pipeline ||= ARGV.last || begin
21
+ if available_pipelines.one?
22
+ available_pipelines.first
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
metadata CHANGED
@@ -1,17 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildkite-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.2
4
+ version: 1.0.0.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ngan Pham
8
8
  - Andrew Lee
9
- autorequire:
10
- bindir: bin
9
+ autorequire:
10
+ bindir: exe
11
11
  cert_chain: []
12
- date: 2020-11-24 00:00:00.000000000 Z
12
+ date: 2020-12-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Write a longer description or delete this line.
14
+ description: Buildkite Builder is a tool that provides projects using Buildkite to
15
+ have dynamic pipeline functionality.
15
16
  email:
16
17
  - gusto-opensource-buildkite@gusto.com
17
18
  executables:
@@ -19,25 +20,20 @@ executables:
19
20
  extensions: []
20
21
  extra_rdoc_files: []
21
22
  files:
22
- - ".gitignore"
23
- - ".rspec"
24
23
  - CHANGELOG.md
25
- - CODE_OF_CONDUCT.md
26
- - Gemfile
27
- - Gemfile.lock
28
24
  - LICENSE.txt
29
25
  - README.md
30
- - Rakefile
31
26
  - bin/buildkite-builder
32
27
  - bin/console
33
28
  - bin/setup
34
- - buildkite-builder.gemspec
29
+ - exe/buildkite-builder
35
30
  - lib/buildkite-builder.rb
36
31
  - lib/buildkite/builder.rb
37
32
  - lib/buildkite/builder/commands.rb
38
33
  - lib/buildkite/builder/commands/abstract.rb
39
34
  - lib/buildkite/builder/commands/files.rb
40
35
  - lib/buildkite/builder/commands/preview.rb
36
+ - lib/buildkite/builder/commands/run.rb
41
37
  - lib/buildkite/builder/definition.rb
42
38
  - lib/buildkite/builder/file_resolver.rb
43
39
  - lib/buildkite/builder/github.rb
@@ -104,7 +100,7 @@ metadata:
104
100
  source_code_uri: https://github.com/Gusto/buildkite-builder
105
101
  changelog_uri: https://github.com/Gusto/buildkite-builder/blob/master/CHANGELOG.md
106
102
  bug_tracker_uri: https://github.com/Gusto/buildkite-builder/issues
107
- post_install_message:
103
+ post_install_message:
108
104
  rdoc_options: []
109
105
  require_paths:
110
106
  - lib
@@ -119,8 +115,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
115
  - !ruby/object:Gem::Version
120
116
  version: 1.3.1
121
117
  requirements: []
122
- rubygems_version: 3.1.4
123
- signing_key:
118
+ rubygems_version: 3.1.2
119
+ signing_key:
124
120
  specification_version: 4
125
- summary: Write a short summary, because RubyGems requires one.
121
+ summary: A gem for programmatically creating Buildkite pipelines.
126
122
  test_files: []
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format progress
2
- --color
3
- --require spec_helper
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at andrew.lee@gusto.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [https://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: https://contributor-covenant.org
74
- [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,13 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- group :development do
6
- gem 'bundler', '~> 2.1'
7
- gem 'rake'
8
-
9
- gem 'byebug'
10
- gem 'pry-byebug'
11
- gem 'rspec'
12
- gem 'webmock'
13
- end
@@ -1,56 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- buildkite-builder (1.0.0.beta.2)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- addressable (2.7.0)
10
- public_suffix (>= 2.0.2, < 5.0)
11
- byebug (11.1.3)
12
- coderay (1.1.3)
13
- crack (0.4.4)
14
- diff-lcs (1.3)
15
- hashdiff (1.0.1)
16
- method_source (1.0.0)
17
- pry (0.13.1)
18
- coderay (~> 1.1)
19
- method_source (~> 1.0)
20
- pry-byebug (3.9.0)
21
- byebug (~> 11.0)
22
- pry (~> 0.13.0)
23
- public_suffix (4.0.6)
24
- rake (13.0.1)
25
- rspec (3.9.0)
26
- rspec-core (~> 3.9.0)
27
- rspec-expectations (~> 3.9.0)
28
- rspec-mocks (~> 3.9.0)
29
- rspec-core (3.9.0)
30
- rspec-support (~> 3.9.0)
31
- rspec-expectations (3.9.0)
32
- diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.9.0)
34
- rspec-mocks (3.9.0)
35
- diff-lcs (>= 1.2.0, < 2.0)
36
- rspec-support (~> 3.9.0)
37
- rspec-support (3.9.0)
38
- webmock (3.10.0)
39
- addressable (>= 2.3.6)
40
- crack (>= 0.3.2)
41
- hashdiff (>= 0.4.0, < 2.0.0)
42
-
43
- PLATFORMS
44
- ruby
45
-
46
- DEPENDENCIES
47
- buildkite-builder!
48
- bundler (~> 2.1)
49
- byebug
50
- pry-byebug
51
- rake
52
- rspec
53
- webmock
54
-
55
- BUNDLED WITH
56
- 2.1.4
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
@@ -1,28 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path('lib', __dir__)
2
- require 'buildkite-builder'
3
-
4
- Gem::Specification.new do |spec|
5
- spec.name = "buildkite-builder"
6
- spec.version = Buildkite::Builder::VERSION
7
- spec.authors = ["Ngan Pham", "Andrew Lee"]
8
- spec.email = ["gusto-opensource-buildkite@gusto.com"]
9
-
10
- spec.summary = %q{Write a short summary, because RubyGems requires one.}
11
- spec.description = %q{Write a longer description or delete this line.}
12
- spec.homepage = 'https://github.com/Gusto/buildkite-builder'
13
- spec.license = 'MIT'
14
- spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
15
-
16
- spec.metadata["homepage_uri"] = spec.homepage
17
- spec.metadata["source_code_uri"] = "https://github.com/Gusto/buildkite-builder"
18
- spec.metadata["changelog_uri"] = "https://github.com/Gusto/buildkite-builder/blob/master/CHANGELOG.md"
19
- spec.metadata["bug_tracker_uri"] = "https://github.com/Gusto/buildkite-builder/issues"
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
- end
26
- spec.executables = ['buildkite-builder']
27
- spec.require_paths = ["lib"]
28
- end