k8s-ruby 0.13.0 → 0.14.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 852ad2775ba818eac10ac0cfd9f1e362e1390526102e7c6e0d46b4941e153dc6
4
- data.tar.gz: 83ef7dc2a19aa6abcc703161f715ce3d4b14732546ec5025991fbcc9d1440b47
3
+ metadata.gz: 9578f60e7b7d2a2b420991a83fe76229b24b2ae979659489bc799da9b0d04ec9
4
+ data.tar.gz: 85701ff904f50ede9395191e30df570fd2efbfb0006fb128c696bd23cada36e4
5
5
  SHA512:
6
- metadata.gz: ffac9cb78159e00e5a84c8e81d60981f2a67f05a414e382599761e6c83f44ffc468e1367862225f3c652a69ff8265deba09a5525631a2f67dc12cefef69e1717
7
- data.tar.gz: '087453bd8f6650b2db503e286c17f4ee3455bb9b376a13c04bfe145ae48ddcef9f31563f5f64d0e88dd2e52302a0888767c91e7a03b43a045f57bb4261095ea3'
6
+ metadata.gz: f2d9d82630ecdd1b7a19d180d77d26290807ef0c7fa5b7c9e3e0356cabd75ac71df01c621e31699988fb0365dd764ed33a1273431ee443acc2d5ca844a6337d6
7
+ data.tar.gz: 7eb209e837f19da46987014fe0b144999632052159ae8ca34ab0544a632fa040bb107951bc2d390f1aa57afcb2dfa99feeaa7aff70d5d5c31a126278c46ef27a
@@ -11,16 +11,26 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - uses: actions/checkout@v3
14
- - run: docker-compose up --build rspec-2.6
14
+ - run: docker-compose build rspec-2.6
15
+ - run: docker-compose run rspec-2.6
15
16
 
16
17
  build-2-7:
17
18
  runs-on: ubuntu-latest
18
19
  steps:
19
20
  - uses: actions/checkout@v3
20
- - run: docker-compose up --build rspec-2.7
21
+ - run: docker-compose build rspec-2.7
22
+ - run: docker-compose run rspec-2.7
21
23
 
22
24
  build-3-0:
23
25
  runs-on: ubuntu-latest
24
26
  steps:
25
27
  - uses: actions/checkout@v3
26
- - run: docker-compose up --build rspec-3.0
28
+ - run: docker-compose build rspec-3.0
29
+ - run: docker-compose run rspec-3.0
30
+
31
+ build-3-1:
32
+ runs-on: ubuntu-latest
33
+ steps:
34
+ - uses: actions/checkout@v3
35
+ - run: docker-compose build rspec-3.1
36
+ - run: docker-compose run rspec-3.1
data/Gemfile CHANGED
@@ -2,5 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
+ # forked and upgraded to be compatible with ruby 3.1
6
+ gem 'yaml-safe_load_stream3', '~> 0.1.2'
5
7
  # Specify your gem's dependencies in k8s-ruby.gemspec
6
8
  gemspec
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # K8s::Client provided by k8s-ruby
2
2
 
3
+ ## Readme continues
4
+
3
5
  Ruby client library for the Kubernetes (1.9+) API.
4
6
 
5
7
  The `k8s-ruby` project is a fork of
data/docker-compose.yaml CHANGED
@@ -20,3 +20,11 @@ services:
20
20
  BASE_IMAGE: ruby:3.0
21
21
  volumes:
22
22
  - .:/app
23
+ rspec-3.1:
24
+ build:
25
+ context: .
26
+ args:
27
+ BASE_IMAGE: ruby:3.1
28
+ volumes:
29
+ - .:/app
30
+ entrypoint: bundle exec rspec
data/k8s-ruby.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.bindir = "bin"
22
22
  spec.executables = []
23
23
  spec.require_paths = ["lib"]
24
- spec.required_ruby_version = [">= 2.4", "< 3.1"]
24
+ spec.required_ruby_version = spec.required_ruby_version = [">= 2.4", "< 3.2"]
25
25
 
26
26
  spec.add_runtime_dependency "excon", "~> 0.71"
27
27
  spec.add_runtime_dependency "dry-struct", "<= 1.6.0"
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_runtime_dependency "hashdiff", "~> 1.0.0"
32
32
  spec.add_runtime_dependency "jsonpath", "~> 0.9.5"
33
33
  spec.add_runtime_dependency "yajl-ruby", "~> 1.4.0"
34
- spec.add_runtime_dependency "yaml-safe_load_stream2", "~> 0.1.1"
34
+ spec.add_runtime_dependency "yaml-safe_load_stream3"
35
35
 
36
36
  spec.add_development_dependency "bundler", ">= 1.17", "< 3.0"
37
37
  spec.add_development_dependency "rake", ">= 12.3.3"
data/lib/k8s/config.rb CHANGED
@@ -111,7 +111,10 @@ module K8s
111
111
  # @param path [String]
112
112
  # @return [K8s::Config]
113
113
  def self.load_file(path)
114
- new(YAML.safe_load(File.read(File.expand_path(path)), [Time, DateTime, Date], [], true))
114
+ new(YAML.safe_load(File.read(File.expand_path(path)),
115
+ permitted_classes: [Time, DateTime, Date],
116
+ permitted_symbols: [],
117
+ aliases: true))
115
118
  end
116
119
 
117
120
  # Loads configuration files listed in KUBE_CONFIG environment variable and
data/lib/k8s/resource.rb CHANGED
@@ -23,7 +23,7 @@ module K8s
23
23
  # @param filename [String] file path
24
24
  # @return [K8s::Resource]
25
25
  def self.from_file(filename)
26
- new(YAML.safe_load(File.read(filename), [], [], true, filename))
26
+ new(YAML.safe_load(File.read(filename), permitted_classes: [], permitted_symbols: [], aliases: true, filename: filename))
27
27
  end
28
28
 
29
29
  # @param path [String] file path
@@ -3,6 +3,6 @@
3
3
  module K8s
4
4
  class Ruby
5
5
  # Updated on releases using semver.
6
- VERSION = "0.13.0"
6
+ VERSION = "0.14.0"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k8s-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rdx.net
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-11-23 00:00:00.000000000 Z
12
+ date: 2023-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon
@@ -124,19 +124,19 @@ dependencies:
124
124
  - !ruby/object:Gem::Version
125
125
  version: 1.4.0
126
126
  - !ruby/object:Gem::Dependency
127
- name: yaml-safe_load_stream2
127
+ name: yaml-safe_load_stream3
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - "~>"
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: 0.1.1
132
+ version: '0'
133
133
  type: :runtime
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - "~>"
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: 0.1.1
139
+ version: '0'
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: bundler
142
142
  requirement: !ruby/object:Gem::Requirement
@@ -241,7 +241,6 @@ files:
241
241
  - ".rubocop.yml"
242
242
  - Dockerfile
243
243
  - Gemfile
244
- - Gemfile.lock
245
244
  - LICENSE
246
245
  - README.md
247
246
  - Rakefile
@@ -284,14 +283,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
284
283
  version: '2.4'
285
284
  - - "<"
286
285
  - !ruby/object:Gem::Version
287
- version: '3.1'
286
+ version: '3.2'
288
287
  required_rubygems_version: !ruby/object:Gem::Requirement
289
288
  requirements:
290
289
  - - ">="
291
290
  - !ruby/object:Gem::Version
292
291
  version: '0'
293
292
  requirements: []
294
- rubygems_version: 3.2.33
293
+ rubygems_version: 3.3.7
295
294
  signing_key:
296
295
  specification_version: 4
297
296
  summary: Kubernetes client library for Ruby
data/Gemfile.lock DELETED
@@ -1,117 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- k8s-ruby (0.13.0)
5
- dry-configurable (~> 0.13.0)
6
- dry-struct (<= 1.6.0)
7
- dry-types (<= 1.7.0)
8
- excon (~> 0.71)
9
- hashdiff (~> 1.0.0)
10
- jsonpath (~> 0.9.5)
11
- recursive-open-struct (~> 1.1.3)
12
- yajl-ruby (~> 1.4.0)
13
- yaml-safe_load_stream2 (~> 0.1.1)
14
-
15
- GEM
16
- remote: https://rubygems.org/
17
- specs:
18
- addressable (2.8.1)
19
- public_suffix (>= 2.0.2, < 6.0)
20
- ast (2.4.2)
21
- byebug (11.1.3)
22
- concurrent-ruby (1.1.10)
23
- crack (0.4.5)
24
- rexml
25
- diff-lcs (1.5.0)
26
- dry-configurable (0.13.0)
27
- concurrent-ruby (~> 1.0)
28
- dry-core (~> 0.6)
29
- dry-container (0.11.0)
30
- concurrent-ruby (~> 1.0)
31
- dry-core (0.9.1)
32
- concurrent-ruby (~> 1.0)
33
- zeitwerk (~> 2.6)
34
- dry-inflector (0.3.0)
35
- dry-logic (1.3.0)
36
- concurrent-ruby (~> 1.0)
37
- dry-core (~> 0.9, >= 0.9)
38
- zeitwerk (~> 2.6)
39
- dry-struct (1.5.2)
40
- dry-core (~> 0.9, >= 0.9)
41
- dry-types (~> 1.6)
42
- ice_nine (~> 0.11)
43
- zeitwerk (~> 2.6)
44
- dry-types (1.6.1)
45
- concurrent-ruby (~> 1.0)
46
- dry-container (~> 0.3)
47
- dry-core (~> 0.9, >= 0.9)
48
- dry-inflector (~> 0.1, >= 0.1.2)
49
- dry-logic (~> 1.3, >= 1.3)
50
- zeitwerk (~> 2.6)
51
- excon (0.94.0)
52
- hashdiff (1.0.1)
53
- ice_nine (0.11.2)
54
- jsonpath (0.9.9)
55
- multi_json
56
- to_regexp (~> 0.2.1)
57
- multi_json (1.15.0)
58
- parallel (1.22.1)
59
- parser (3.1.2.1)
60
- ast (~> 2.4.1)
61
- public_suffix (5.0.0)
62
- rainbow (3.1.1)
63
- rake (13.0.6)
64
- recursive-open-struct (1.1.3)
65
- regexp_parser (2.6.1)
66
- rexml (3.2.5)
67
- rspec (3.12.0)
68
- rspec-core (~> 3.12.0)
69
- rspec-expectations (~> 3.12.0)
70
- rspec-mocks (~> 3.12.0)
71
- rspec-core (3.12.0)
72
- rspec-support (~> 3.12.0)
73
- rspec-expectations (3.12.0)
74
- diff-lcs (>= 1.2.0, < 2.0)
75
- rspec-support (~> 3.12.0)
76
- rspec-mocks (3.12.0)
77
- diff-lcs (>= 1.2.0, < 2.0)
78
- rspec-support (~> 3.12.0)
79
- rspec-support (3.12.0)
80
- rubocop (0.93.1)
81
- parallel (~> 1.10)
82
- parser (>= 2.7.1.5)
83
- rainbow (>= 2.2.2, < 4.0)
84
- regexp_parser (>= 1.8)
85
- rexml
86
- rubocop-ast (>= 0.6.0)
87
- ruby-progressbar (~> 1.7)
88
- unicode-display_width (>= 1.4.0, < 2.0)
89
- rubocop-ast (1.23.0)
90
- parser (>= 3.1.1.0)
91
- ruby-progressbar (1.11.0)
92
- to_regexp (0.2.1)
93
- unicode-display_width (1.8.0)
94
- webmock (3.6.2)
95
- addressable (>= 2.3.6)
96
- crack (>= 0.3.2)
97
- hashdiff (>= 0.4.0, < 2.0.0)
98
- yajl-ruby (1.4.3)
99
- yaml-safe_load_stream2 (0.1.1)
100
- zeitwerk (2.6.6)
101
-
102
- PLATFORMS
103
- aarch64-linux
104
- arm64-darwin-21
105
- x86_64-darwin-21
106
-
107
- DEPENDENCIES
108
- bundler (>= 1.17, < 3.0)
109
- byebug (~> 11.1)
110
- k8s-ruby!
111
- rake (>= 12.3.3)
112
- rspec (~> 3.7)
113
- rubocop (~> 0.82)
114
- webmock (~> 3.6.2)
115
-
116
- BUNDLED WITH
117
- 2.3.26