cron-kubernetes 2.0.0 → 3.0.0

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: 8d270469720001ff34f95dd439c0de2a23c282a33ccd4ed1b14f4286f39968c8
4
- data.tar.gz: ab6337710606835428a34ba7a5e7bc8530bf6e8e09eca98a1f245866c4e2ea40
3
+ metadata.gz: 2e5d2a957850a9948815b5d16adc3ffb7b649c96c8f6b2e87809fa0a60108bb7
4
+ data.tar.gz: 18fa886afcb6fc6747367d2d32529433de35e26b3376e2ff9fc5829bec130122
5
5
  SHA512:
6
- metadata.gz: e5a914ae99f3475d65145458746ed5fe78c0599c1a188b96469332c6b0cf112cde6be15008f0943c3bded3e19b184008fa10077854f660628ddf0ecd241a09fd
7
- data.tar.gz: a38265b2e4c43ddb8c3f70a10cbd9a8fe5729930c8a11ee120678323ee8e26dd934d44681da36212671314b6f791c6384ee1b38183d4340d8e192b7430d82e5e
6
+ metadata.gz: 9a24f609ad87f0e55a5cdb98bad19b2af84a3cb195e08dc011f37c559365f216cd7b3e52b0469b451658c6bc04bca0f06df6aa9ec339337a712ccea04a35ae0f
7
+ data.tar.gz: 8f16e5079dd78b3728e6425bed90215621263cd2e3696ef062b52e033f76cc245567ad8b9c9a6bdda64fb47b078539b8fd55c6bbf11a7a875ddfe77cfa25d60c
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ AllCops:
2
2
  Exclude:
3
3
  - "gemfiles/*"
4
4
  SuggestExtensions: false
5
- TargetRubyVersion: 2.7
5
+ TargetRubyVersion: 3.2
6
6
 
7
7
  Documentation:
8
8
  Exclude:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v3.0.0
2
+ - Change syntax for ruby 3.2.2
3
+
1
4
  # v2.0.0
2
5
  **Breaking Change:**
3
6
  - Requires ruby 2.7 or later
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.description = "Configure and deploy Kubernetes CronJobs from ruby with a single schedule."
15
15
  spec.homepage = "https://github.com/keylimetoolbox/cron-kubernetes"
16
16
  spec.license = "MIT"
17
- spec.required_ruby_version = ">= 2.7"
17
+ spec.required_ruby_version = ">= 3.2"
18
18
 
19
19
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
20
  f.match(%r{^(test|spec|features)/})
@@ -18,7 +18,7 @@ module CronKubernetes
18
18
  "v1",
19
19
  namespace,
20
20
  auth_options: {bearer_token_file: TOKEN_FILE},
21
- ssl_options: ssl_options
21
+ ssl_options:
22
22
  )
23
23
  end
24
24
 
@@ -17,7 +17,7 @@ module CronKubernetes
17
17
  return CronKubernetes.kubeclient if CronKubernetes.kubeclient
18
18
  return unless context
19
19
 
20
- Kubeclient::Client.new(context.endpoint + scope, version || context.version, context.options)
20
+ Kubeclient::Client.new(context.endpoint + scope, version || context.version, **context.options)
21
21
  end
22
22
 
23
23
  def context
@@ -44,10 +44,10 @@ module CronKubernetes
44
44
 
45
45
  def new_cron_job(schedule, command, name)
46
46
  CronJob.new(
47
- schedule: schedule,
47
+ schedule:,
48
48
  command: make_command(command),
49
49
  job_manifest: CronKubernetes.manifest,
50
- name: name,
50
+ name:,
51
51
  identifier: @identifier
52
52
  )
53
53
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CronKubernetes
4
- VERSION = "2.0.0"
4
+ VERSION = "3.0.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cron-kubernetes
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Wadsack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-12 00:00:00.000000000 Z
11
+ date: 2024-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kubeclient
@@ -190,14 +190,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - ">="
192
192
  - !ruby/object:Gem::Version
193
- version: '2.7'
193
+ version: '3.2'
194
194
  required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
196
  - - ">="
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  requirements: []
200
- rubygems_version: 3.4.10
200
+ rubygems_version: 3.3.3
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Configure and deploy Kubernetes CronJobs from ruby.