devfile 0.0.23.pre.alpha1-x86_64-linux → 0.0.25.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: '081dd3b1944526edd3b6be23e30933bec157ed104a8105dbc21a286a36070653'
4
- data.tar.gz: 1ebf140e48a6b6f7a0e353b6453a4855b7eb3627e23761bb70c1b6f3a494a090
3
+ metadata.gz: 7651e29d017b0d157f03cdc3794ec6d1a4a1f9310c38d3721a310aa9b674da3b
4
+ data.tar.gz: f7812cee4550b36651e5cf06926a25447bee60922685756c14b151cec359f32d
5
5
  SHA512:
6
- metadata.gz: 1f9c50e04284ecdd4fc9ac0b55cb8f33d9e5d19e5e9236ba5b306551c9b49d503fe1d8432fa0a0540f0c82712634407a99bdf9dd6042494fa5acbb26dfa7df17
7
- data.tar.gz: 8e75d9d12d32c18c148f527c866369265984d0bc4ea26d325f09abd7408116e24b7ef3d36e9ff3168d84ee0efa578be03ad7ab399705969ff864b62e793d2e6d
6
+ metadata.gz: 6a790a24a31dbf6a8c5c70e3ba34ae59828b3a9f6cd0e13e93f016d8f3b3439bad0e15bb72c8a170ac2fbaa727a45792101d85d7a49970c21852102421603596
7
+ data.tar.gz: 17ed5740ec3ea8501c9b47e0ce0e22560dd1c45267123fedcd30d59aa74d1cea33d75b65d45d54a2a59a928ede79e7b4d6546cd1a059c809908c0df163e78c6e
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.23.pre.alpha1
4
+ version: 0.0.25.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-10-03 00:00:00.000000000 Z
11
+ date: 2024-02-08 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: