devfile 0.0.22.pre.alpha1-x86_64-linux → 0.0.24.pre.alpha1-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: b499838203f602155d80bd0538694417554a36280aad522971d51469e2fb82b7
4
- data.tar.gz: 473979bed9ab0c3b8de1ff9b820554a48d1ba8856cdadeb5914f3689b60c27dd
3
+ metadata.gz: 0d33af180e121632e4ecfabf1bdd75e269673169524d6c66b4e68bcedc8ba89a
4
+ data.tar.gz: 5e76b36bfe50a047635fbf89a2c24227ed62db76cb43a35234f62faeb055dda7
5
5
  SHA512:
6
- metadata.gz: 779c77a870f6a67f9bdb043f83562f826cf43819cc0cdfac1850202d9321ddb658b4dde2016384c0cb2b25c501848166dcddc70428f918dee9a8acd1dbf8b168
7
- data.tar.gz: c72b96768b00d50a0df000f0ac23fecba47bc3a9d48d5afe91f7d4c8128419fc1c4986df3f18921ed65f8318f213b4b04a913b3046c771d33c2d4a65ce12cbee
6
+ metadata.gz: 9823bcb31a6327222c92e6e5dfa5770e3ca179a7734bb85ce9476b0dd8b5f04099e3db74ffea466ed67c7fdd5210c5cd384d8c5dc8d76c756e89ce04c7d6b24c
7
+ data.tar.gz: 50c02f5c9d8c643d5bcb9a623eb751e3b6b2d751f5cff6fcbe5447a27a5f6becb9a7db92f8f48b1374b16afd07313e2136b8582dcf20784c309a3232021cd766
data/bin/devfile CHANGED
Binary file
data/ext/devfile.go CHANGED
@@ -306,7 +306,7 @@ func parseDevfile(content string) (Devfile, error) {
306
306
  Data: []byte(content),
307
307
  }
308
308
  // TODO: figure out how to handle warnings
309
- // https://gitlab.com/gitlab-org/remote-development/devfile-gem/-/issues/6
309
+ // https://gitlab.com/gitlab-org/ruby/gems/devfile-gem/-/issues/6
310
310
  devfileObj, _, err := devfile.ParseDevfileAndValidate(parserArgs)
311
311
  return Devfile{
312
312
  devfileObj: devfileObj,
data/ext/go.mod CHANGED
@@ -1,6 +1,6 @@
1
- module gitlab-org/remote-development/devfile-gem
1
+ module gitlab-org/ruby/gems/devfile-gem
2
2
 
3
- go 1.19
3
+ go 1.21
4
4
 
5
5
  require (
6
6
  github.com/devfile/api/v2 v2.2.0
data/lib/devfile.rb CHANGED
@@ -9,6 +9,8 @@ module Devfile
9
9
  # Set of services to parse a devfile and output k8s manifests
10
10
  class Parser
11
11
  FILE_PATH = File.expand_path('./../bin/devfile', File.dirname(__FILE__))
12
+ DEVFILE_GEMSPEC = Gem.loaded_specs['devfile']
13
+ SYSTEM_PLATFORM = "#{Gem::Platform.local.cpu}-#{Gem::Platform.local.os}"
12
14
 
13
15
  class << self
14
16
  def get_deployment(devfile, name, namespace, labels, annotations, replicas)
@@ -38,12 +40,20 @@ module Devfile
38
40
  private
39
41
 
40
42
  def call(*cmd)
43
+ warn_for_ruby_platform
44
+
41
45
  stdout, stderr, status = Open3.capture3({}, FILE_PATH, *cmd.map(&:to_s))
42
46
 
43
47
  raise(CliError, stderr) unless status.success?
44
48
 
45
49
  stdout
46
50
  end
51
+
52
+ def warn_for_ruby_platform
53
+ return unless DEVFILE_GEMSPEC && DEVFILE_GEMSPEC.platform == 'ruby' && SYSTEM_PLATFORM != 'arm64-darwin'
54
+
55
+ warn "devfile-gem only supports os: darwin and architecture: arm64 for 'ruby' platform"
56
+ end
47
57
  end
48
58
  end
49
59
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22.pre.alpha1
4
+ version: 0.0.24.pre.alpha1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-11 00:00:00.000000000 Z
11
+ date: 2023-11-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Library used to generate kubernetes manifests from a Devfile.
14
14
  email:
@@ -30,7 +30,7 @@ homepage: https://gitlab.com
30
30
  licenses:
31
31
  - MIT
32
32
  metadata:
33
- source_code_uri: https://gitlab.com/gitlab-org/remote-development/devfile-gem
33
+ source_code_uri: https://gitlab.com/gitlab-org/ruby/gems/devfile-gem
34
34
  post_install_message:
35
35
  rdoc_options: []
36
36
  require_paths: