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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cef4c76593a2af78a46a3e9fb36d642f912b87dc8b939e1e0a580f62c3f5d33b
4
- data.tar.gz: e2afdd5cfb201523ad972b6cc41997eba442818613aa1ced80fe05e70e57d43b
3
+ metadata.gz: 43ca40663a00675570ed4dcd668987e7845c6a3d9682b999889c9af37368cfea
4
+ data.tar.gz: c9eb17ad1d6f9615868f04024afb434a821a758bffa48daac1516a1cd99b10e7
5
5
  SHA512:
6
- metadata.gz: 54352e613f428a907d2ba006cadac8ec34272830986724a91a80ca733bda2f08321d77bc64320c5912fd2242d2f9dbb7b4a1db962cf56230f36c9883f74571e9
7
- data.tar.gz: ce55bf08b13e369da2189d9e416249a5cb7421edc44066eae3c87645f6a373af92ea498aa3a24323f588e492701769ae6a555a4911f465b3f0e647eea28384d4
6
+ metadata.gz: 4fc103b4c4e0f22c58d4b87e9d1b48a61f95bd948b9b00e7afbaaf453c0d11ef5720d698e11376837f032e35639058f9e47cd74716a2f7274da00c868589110a
7
+ data.tar.gz: 13a8525d318c4e312287d136005b0bf6c751f11f85f984de5266c2222aa432deb44eb0173172305739022fe654770290dea07b712b1a1b029015782a2582d38d
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/dip.svg)](https://badge.fury.io/rb/dip)
2
- [![Build Status](https://github.com/bibendi/dip/workflows/Ruby/badge.svg?branch=master)](https://github.com/bibendi/dip/actions?query=branch%3Amaster)
2
+ [![Build Status](https://github.com/bibendi/dip/actions/workflows/ci.yml/badge.svg)](https://github.com/bibendi/dip/actions/workflows/ci.yml)
3
3
  [![Maintainability](https://api.codeclimate.com/v1/badges/d0dca854f0930502f7b3/maintainability)](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 = YAML.load_file(file_path)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dip
4
- VERSION = "8.2.3"
4
+ VERSION = "8.2.5"
5
5
  end
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.3
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-26 00:00:00.000000000 Z
11
+ date: 2024-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor