dip 8.2.3 → 8.2.5
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/README.md +1 -1
- data/lib/dip/config.rb +4 -2
- data/lib/dip/version.rb +1 -1
- data/schema.json +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43ca40663a00675570ed4dcd668987e7845c6a3d9682b999889c9af37368cfea
|
4
|
+
data.tar.gz: c9eb17ad1d6f9615868f04024afb434a821a758bffa48daac1516a1cd99b10e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fc103b4c4e0f22c58d4b87e9d1b48a61f95bd948b9b00e7afbaaf453c0d11ef5720d698e11376837f032e35639058f9e47cd74716a2f7274da00c868589110a
|
7
|
+
data.tar.gz: 13a8525d318c4e312287d136005b0bf6c751f11f85f984de5266c2222aa432deb44eb0173172305739022fe654770290dea07b712b1a1b029015782a2582d38d
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[](https://badge.fury.io/rb/dip)
|
2
|
-
[](https://github.com/bibendi/dip/actions/workflows/ci.yml)
|
3
3
|
[](https://codeclimate.com/github/bibendi/dip/maintainability)
|
4
4
|
|
5
5
|
<img src="https://raw.githubusercontent.com/bibendi/dip/master/.github/logo.png" alt="dip logo" height="140" />
|
data/lib/dip/config.rb
CHANGED
@@ -120,8 +120,8 @@ module Dip
|
|
120
120
|
schema_path = File.join(File.dirname(__FILE__), "../../schema.json")
|
121
121
|
raise Dip::Error, "Schema file not found: #{schema_path}" unless File.exist?(schema_path)
|
122
122
|
|
123
|
-
data =
|
124
|
-
schema = JSON.parse(File.read(schema_path))
|
123
|
+
data = self.class.load_yaml(file_path)
|
124
|
+
schema = JSON::Validator.parse(File.read(schema_path))
|
125
125
|
JSON::Validator.validate!(schema, data)
|
126
126
|
rescue Psych::SyntaxError => e
|
127
127
|
raise Dip::Error, "Invalid YAML syntax in config file: #{e.message}"
|
@@ -129,6 +129,8 @@ module Dip
|
|
129
129
|
data_display = data ? data.to_yaml.gsub("\n", "\n ") : "nil"
|
130
130
|
error_message = "Schema validation failed: #{e.message}\nInput data:\n #{data_display}"
|
131
131
|
raise Dip::Error, error_message
|
132
|
+
rescue JSON::Schema::JsonParseError => e
|
133
|
+
raise Dip::Error, "Error parsing schema file: #{e.message}"
|
132
134
|
end
|
133
135
|
|
134
136
|
private
|
data/lib/dip/version.rb
CHANGED
data/schema.json
CHANGED
@@ -68,14 +68,6 @@
|
|
68
68
|
"description": "Options to pass to the 'docker-compose run' command",
|
69
69
|
"examples": [["service-ports", "rm"]]
|
70
70
|
},
|
71
|
-
"compose_run_options": {
|
72
|
-
"type": "array",
|
73
|
-
"items": {
|
74
|
-
"type": "string"
|
75
|
-
},
|
76
|
-
"description": "DEPRECATED: Options to pass to the 'docker-compose run' command",
|
77
|
-
"examples": [["service-ports", "rm"]]
|
78
|
-
},
|
79
71
|
"profiles": {
|
80
72
|
"type": "array",
|
81
73
|
"items": {
|
@@ -102,6 +94,14 @@
|
|
102
94
|
"type": "string",
|
103
95
|
"description": "Specifies the pod for the kubectl runner"
|
104
96
|
},
|
97
|
+
"compose_run_options": {
|
98
|
+
"type": "array",
|
99
|
+
"items": {
|
100
|
+
"type": "string"
|
101
|
+
},
|
102
|
+
"description": "DEPRECATED: Options to pass to the 'docker-compose run' command",
|
103
|
+
"examples": [["service-ports", "rm"]]
|
104
|
+
},
|
105
105
|
"subcommands": {
|
106
106
|
"type": "object",
|
107
107
|
"description": "Contains subcommands with the same structure as main commands",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.2.
|
4
|
+
version: 8.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bibendi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|