daytona 0.214.0 → 0.215.0
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 +4 -4
- data/lib/daytona/config.rb +10 -1
- data/lib/daytona/object_storage.rb +5 -1
- data/lib/daytona/sdk/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 95395a0e8e8a1c853fbbb922baf90d9fe6247dc64454589b82692c058aa1c60f
|
|
4
|
+
data.tar.gz: 588d86f42d524472b0e80ce92cc1931ac180eccb8e0a7ae889c9660a94181490
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc20a5a6fc3c2f8614b3318f0e5905c9987d7f9801e99e3d389b1abee89d258a50c13c95bda30548ecb31f406f589786c8f9eeb9f40021f6d27434c8480872ee
|
|
7
|
+
data.tar.gz: 9ef485e7c32dceaf5f52760db0cf3589a88800a1c2e95c3dede6519ca3922834522ef73e3e0f4278fa079d02f755ceaf9696a9c0b000817a4f73b6f1f073f771
|
data/lib/daytona/config.rb
CHANGED
|
@@ -19,13 +19,22 @@ module Daytona
|
|
|
19
19
|
@substitutions = [Dotenv::Substitutions::Variable].freeze
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
# dotenv 3 returns `ENV.fetch(key, value)` per key unless asked to overwrite, so a key
|
|
23
|
+
# already in the environment comes back as the environment's value and a caller cannot
|
|
24
|
+
# tell the file named it. dotenv 2 has no such keyword — it takes a positional
|
|
25
|
+
# `is_load` that gates `${VAR}` against ENV, and already reports what the file says —
|
|
26
|
+
# so the argument is only passed where it exists. The gemspec allows both.
|
|
27
|
+
PARSER_ACCEPTS_OVERWRITE = Dotenv::Parser.instance_method(:initialize)
|
|
28
|
+
.parameters.any? { |kind, name| kind == :key && name == :overwrite }
|
|
29
|
+
|
|
22
30
|
# Read with the mode dotenv itself uses, so the accepted format does not narrow: `bom`
|
|
23
31
|
# skips a byte-order mark an editor on Windows may have written, and pinning `utf-8`
|
|
24
32
|
# keeps the file readable under a POSIX locale, where the default external encoding
|
|
25
33
|
# would make one accented byte anywhere — a comment included — raise while it is scanned.
|
|
26
34
|
def self.parse(path)
|
|
27
35
|
verify_suppression!
|
|
28
|
-
|
|
36
|
+
text = File.read(path, mode: 'rb:bom|utf-8')
|
|
37
|
+
PARSER_ACCEPTS_OVERWRITE ? Parser.call(text, overwrite: true) : Parser.call(text)
|
|
29
38
|
end
|
|
30
39
|
|
|
31
40
|
# The subclass reaches into dotenv's internals rather than a public API, and dotenv has
|
|
@@ -150,7 +150,11 @@ module Daytona
|
|
|
150
150
|
archive_path = temp_file.path
|
|
151
151
|
|
|
152
152
|
begin
|
|
153
|
-
|
|
153
|
+
# `--` ends option processing, so a name beginning with `-` is archived as the file
|
|
154
|
+
# it is rather than read as a tar option. Passing argv without a shell does not
|
|
155
|
+
# prevent that: tar parses its own operands.
|
|
156
|
+
unless system('tar', '-cf', archive_path, '-C', File.dirname(source_path), '--',
|
|
157
|
+
File.basename(source_path))
|
|
154
158
|
raise Sdk::Error, "Failed to create tar archive for #{source_path}"
|
|
155
159
|
end
|
|
156
160
|
|
data/lib/daytona/sdk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: daytona
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.215.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daytona Platforms Inc.
|
|
@@ -91,42 +91,42 @@ dependencies:
|
|
|
91
91
|
requirements:
|
|
92
92
|
- - '='
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
|
-
version: 0.
|
|
94
|
+
version: 0.215.0
|
|
95
95
|
type: :runtime
|
|
96
96
|
prerelease: false
|
|
97
97
|
version_requirements: !ruby/object:Gem::Requirement
|
|
98
98
|
requirements:
|
|
99
99
|
- - '='
|
|
100
100
|
- !ruby/object:Gem::Version
|
|
101
|
-
version: 0.
|
|
101
|
+
version: 0.215.0
|
|
102
102
|
- !ruby/object:Gem::Dependency
|
|
103
103
|
name: daytona_api_client
|
|
104
104
|
requirement: !ruby/object:Gem::Requirement
|
|
105
105
|
requirements:
|
|
106
106
|
- - '='
|
|
107
107
|
- !ruby/object:Gem::Version
|
|
108
|
-
version: 0.
|
|
108
|
+
version: 0.215.0
|
|
109
109
|
type: :runtime
|
|
110
110
|
prerelease: false
|
|
111
111
|
version_requirements: !ruby/object:Gem::Requirement
|
|
112
112
|
requirements:
|
|
113
113
|
- - '='
|
|
114
114
|
- !ruby/object:Gem::Version
|
|
115
|
-
version: 0.
|
|
115
|
+
version: 0.215.0
|
|
116
116
|
- !ruby/object:Gem::Dependency
|
|
117
117
|
name: daytona_toolbox_api_client
|
|
118
118
|
requirement: !ruby/object:Gem::Requirement
|
|
119
119
|
requirements:
|
|
120
120
|
- - '='
|
|
121
121
|
- !ruby/object:Gem::Version
|
|
122
|
-
version: 0.
|
|
122
|
+
version: 0.215.0
|
|
123
123
|
type: :runtime
|
|
124
124
|
prerelease: false
|
|
125
125
|
version_requirements: !ruby/object:Gem::Requirement
|
|
126
126
|
requirements:
|
|
127
127
|
- - '='
|
|
128
128
|
- !ruby/object:Gem::Version
|
|
129
|
-
version: 0.
|
|
129
|
+
version: 0.215.0
|
|
130
130
|
- !ruby/object:Gem::Dependency
|
|
131
131
|
name: dotenv
|
|
132
132
|
requirement: !ruby/object:Gem::Requirement
|