vpsadmin-client 3.0.0.master.20240728.pre.0.dc5474cc → 4.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: d4026c63fa0871d4eed11bba4a6ebdea8663af7779f63cdf2057af32934b41c4
4
- data.tar.gz: 36e4bbff971201e8ea36b887e3bb1e9102edfee78aeeb9c9183c7c35c01ec1f6
3
+ metadata.gz: 73f9447cec0e8278700d4d5e56fdc50bd7b88ceb6debac252d3ab9bb5322260e
4
+ data.tar.gz: 45c1ef064847694f9432da3872baa7f67844b1fbd69500caa9369f4187f04bc5
5
5
  SHA512:
6
- metadata.gz: 7538cc9db1cd0238951d7417d85cfaf23b1c00d95f7fda6edc937308fe471389fa75c7813c995fa0087a710af7e476905171ccfc4027d245384df305e2b882fe
7
- data.tar.gz: dd97bc1054145663273e427e043e8c3d470a13277a1893710fa4894d525fd944359f98f32502a06b0d7b4f6397d5d03eff4cc84c68f1d691e693d14262d7b549
6
+ metadata.gz: df1defede9d7b25d5279d0cfb75f84025ac503851737bda802acd084cb4cf3423fd2390d7083a8597b40f0bef86391fe6f74de67305505256cde04591a6082ee
7
+ data.tar.gz: e712ebdfc1f68faba266f8e117cf19403d705bf1f9f96bdf31824223362171506ac8de647eccd26ad239975179941f9747784da8ab347a0b5dca87d0f0849ac0
data/.rubocop.yml ADDED
@@ -0,0 +1,5 @@
1
+ inherit_from: ../.rubocop.yml
2
+
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 3.0
@@ -359,7 +359,7 @@ module VpsAdmin::CLI::Commands
359
359
  local_state[s.hist_id].delete(s)
360
360
 
361
361
  msg "Destroying #{ds}@#{s.name}"
362
- zfs(:destroy, nil, "#{ds}@#{s.name}", pretend:)
362
+ zfs(:destroy, nil, "#{ds}@#{s.name}", pretend: pretend)
363
363
  end
364
364
 
365
365
  local_state.each do |hist_id, local_snapshots|
@@ -368,7 +368,7 @@ module VpsAdmin::CLI::Commands
368
368
  ds = "#{fs}/#{hist_id}"
369
369
 
370
370
  msg "Destroying #{ds}"
371
- zfs(:destroy, nil, ds, pretend:)
371
+ zfs(:destroy, nil, ds, pretend: pretend)
372
372
  end
373
373
  end
374
374
 
@@ -132,7 +132,7 @@ module VpsAdmin::CLI::Commands
132
132
 
133
133
  @columns << {
134
134
  name: p,
135
- title:,
135
+ title: title,
136
136
  width: [size, 8].max
137
137
  }
138
138
  end
@@ -7,8 +7,8 @@ module VpsAdmin::CLI
7
7
  class DownloadError < StandardError; end
8
8
 
9
9
  class StreamDownloader
10
- def self.download(*, **)
11
- new(*, **)
10
+ def self.download(*args, **kwargs)
11
+ new(*args, **kwargs)
12
12
  end
13
13
 
14
14
  def initialize(api, dl, io, progress: $stdout, position: 0, max_rate: nil,
@@ -1,5 +1,5 @@
1
1
  module VpsAdmin
2
2
  module Client
3
- VERSION = '3.0.0.master.20240728-0.dc5474cc'.freeze
3
+ VERSION = '4.0.0'.freeze
4
4
  end
5
5
  end
@@ -6,8 +6,8 @@ module VpsAdmin
6
6
  end
7
7
 
8
8
  # Shortcut to {VpsAdmin::Client::Client.new}
9
- def self.new(*)
10
- Client.new(*)
9
+ def self.new(*args)
10
+ Client.new(*args)
11
11
  end
12
12
  end
13
13
  end
data/shell.nix CHANGED
@@ -6,7 +6,7 @@ in stdenv.mkDerivation rec {
6
6
  name = "vpsadmin-client";
7
7
 
8
8
  buildInputs = with pkgs; [
9
- ruby_3_2
9
+ ruby
10
10
  git
11
11
  zlib
12
12
  openssl
@@ -12,13 +12,13 @@ Gem::Specification.new do |spec|
12
12
  spec.homepage = ''
13
13
  spec.license = 'GPL'
14
14
 
15
- spec.required_ruby_version = ">= #{File.read('../.ruby-version').strip}"
15
+ spec.required_ruby_version = '>= 3.0'
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0")
18
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_runtime_dependency 'curses'
22
- spec.add_runtime_dependency 'haveapi-client', '~> 0.23.5'
23
- spec.add_runtime_dependency 'json'
21
+ spec.add_dependency 'curses'
22
+ spec.add_dependency 'haveapi-client', '~> 0.23.6'
23
+ spec.add_dependency 'json'
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vpsadmin-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.master.20240728.pre.0.dc5474cc
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Skokan
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.23.5
33
+ version: 0.23.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.23.5
40
+ version: 0.23.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -61,6 +61,7 @@ extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
63
  - ".gitignore"
64
+ - ".rubocop.yml"
64
65
  - CHANGELOG
65
66
  - Gemfile
66
67
  - LICENSE
@@ -94,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
95
  requirements:
95
96
  - - ">="
96
97
  - !ruby/object:Gem::Version
97
- version: 3.2.0
98
+ version: '3.0'
98
99
  required_rubygems_version: !ruby/object:Gem::Requirement
99
100
  requirements:
100
101
  - - ">="