vpsfree-client 0.7.0 → 0.12.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
- SHA1:
3
- metadata.gz: 9b617fa6df69edfb51cf8345c99e5b3f69997b69
4
- data.tar.gz: 67de25283f3a9d202a2d2f9e591344f5f70ecf41
2
+ SHA256:
3
+ metadata.gz: 7e1da48567f1c7950cacf4c3bcac876a9d79f0559a79957fb8f98bbe6c7cb7f3
4
+ data.tar.gz: 93c4bb1667356cf5a588e95a736ddc4a6647d1a4aa343f9d513261d41bbc4fcf
5
5
  SHA512:
6
- metadata.gz: a8b18da0e710b84d9d6b774bd6832d1b1b883c67e4aa29b5f539f771466872b8c40ade20aaf74bbff7687a439f2b9f67d097d89ba12d5910e0efac79efeda4df
7
- data.tar.gz: 30a7cfe9fecd95a565a56b8bf621cc221957eb27c030c9cd907ad27780915ba4490e7949068404720eec96701efe6335ef9a2cc660c9e0be43be7d55ef216ef6
6
+ metadata.gz: d2ba2c3c7be4702bd018bcff0491f64333f4fbf84de666c29af11b73ae593e59e5a6eb2aa1225af9ba0d7f6e6998f04201b40466411887282443feb319124c3b
7
+ data.tar.gz: 0b830f895550c0184745e3d4a20aa268eda2b55aace340f0e7b925b5bd35fa9663b4e9248daaccb799225a351a7290d06cd0a167e230f3a1b1094900fbb36f77
data/.gitignore CHANGED
@@ -20,3 +20,4 @@ tmp
20
20
  *.o
21
21
  *.a
22
22
  mkmf.log
23
+ .gems
data/CHANGELOG CHANGED
@@ -1,3 +1,19 @@
1
+ * Sat Jul 11 2020 - version 0.12.0
2
+ - Base on vpsadmin-client v3.0.0 pre-release
3
+
4
+ * Fri May 17 2019 - version 0.11.0
5
+ - Base on vpsadmin-client v3.0.0 pre-release
6
+
7
+ * Mon Nov 27 2017 - version 0.10.0
8
+ - Depend on vpsadmin-client v2.9.1
9
+
10
+ * Wed Jun 07 2017 - version 0.9.0
11
+ - Depend on vpsadmin-client v2.8.0
12
+
13
+ * Fri Feb 10 2017 - version 0.8.0
14
+ - Fix arguments of client constructor
15
+ - Add shortcut method VpsFree::Client.new
16
+
1
17
  * Fri Nov 25 2016 - version 0.7.0
2
18
  - Depend on vpsadmin-client v2.6.0
3
19
 
data/README.md CHANGED
@@ -18,6 +18,11 @@ Or install it yourself as:
18
18
 
19
19
  $ gem install vpsfree-client
20
20
 
21
+ ### Distributions
22
+
23
+ If you are a Nix user, the `nixpkgs.vpsfree-client` is available in
24
+ `nixos-unstable` and will become available in the next "20.09" release.
25
+
21
26
  ## Usage
22
27
  ### CLI
23
28
  $ vpsfreectl -h
@@ -91,7 +96,7 @@ Open remote VPS console:
91
96
  ```ruby
92
97
  require 'vpsfree/client'
93
98
 
94
- api = VpsFree::Client::Client.new
99
+ api = VpsFree::Client.new
95
100
  api.login(:basic, user: 'yourname', password: 'yourpassword')
96
101
 
97
102
  response = api.vps.index
@@ -3,9 +3,14 @@ require 'haveapi/client'
3
3
  module VpsFree
4
4
  module Client
5
5
  class Client < HaveAPI::Client::Client
6
- def initialize(v=nil)
7
- super('https://api.vpsfree.cz', v)
6
+ def initialize(opts = {})
7
+ super('https://api.vpsfree.cz', opts)
8
8
  end
9
9
  end
10
+
11
+ # Shortcut to {VpsFree::Client::Client.new}
12
+ def self.new(*args)
13
+ Client.new(*args)
14
+ end
10
15
  end
11
16
  end
@@ -1,5 +1,5 @@
1
1
  module VpsFree
2
2
  module Client
3
- VERSION = '0.7.0'
3
+ VERSION = '0.12.0'
4
4
  end
5
5
  end
@@ -0,0 +1,33 @@
1
+ let
2
+ pkgs = import <nixpkgs> {};
3
+ stdenv = pkgs.stdenv;
4
+
5
+ in stdenv.mkDerivation rec {
6
+ name = "vpsfree-client";
7
+
8
+ buildInputs = [
9
+ pkgs.ruby
10
+ pkgs.git
11
+ pkgs.zlib
12
+ pkgs.openssl
13
+ pkgs.ncurses
14
+ ];
15
+
16
+ shellHook = ''
17
+ export GEM_HOME="$PWD/.gems"
18
+ mkdir -p "$GEM_HOME"
19
+ export GEM_PATH="$GEM_HOME:$PWD/lib"
20
+ export PATH="$GEM_HOME/bin:$PATH"
21
+
22
+ BUNDLE="$GEM_HOME/bin/bundle"
23
+
24
+ [ ! -x "$BUNDLE" ] && ${pkgs.ruby}/bin/gem install bundler
25
+
26
+ export BUNDLE_PATH="$GEM_HOME"
27
+ export BUNDLE_GEMFILE="$PWD/Gemfile"
28
+
29
+ $BUNDLE install
30
+
31
+ export RUBYOPT=-rbundler/setup
32
+ '';
33
+ }
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_development_dependency 'bundler', '~> 1.6'
21
+ spec.add_development_dependency 'bundler'
22
22
  spec.add_development_dependency 'rake'
23
23
 
24
- spec.add_runtime_dependency 'vpsadmin-client', '~> 2.6.0'
24
+ spec.add_runtime_dependency 'vpsadmin-client', '3.0.0.master.20200711-0.46adf623'
25
25
  end
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vpsfree-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Skokan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-27 00:00:00.000000000 Z
11
+ date: 1970-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: vpsadmin-client
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.6.0
47
+ version: 3.0.0.master.20200711.pre.0.46adf623
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.6.0
54
+ version: 3.0.0.master.20200711.pre.0.46adf623
55
55
  description: Ruby API and CLI for vpsFree.cz API
56
56
  email:
57
57
  - jakub.skokan@vpsfree.cz
@@ -60,7 +60,7 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - .gitignore
63
+ - ".gitignore"
64
64
  - CHANGELOG
65
65
  - Gemfile
66
66
  - LICENSE.txt
@@ -70,6 +70,7 @@ files:
70
70
  - lib/vpsfree/cli.rb
71
71
  - lib/vpsfree/client.rb
72
72
  - lib/vpsfree/client/version.rb
73
+ - shell.nix
73
74
  - vpsfree-client.gemspec
74
75
  homepage: ''
75
76
  licenses:
@@ -81,17 +82,16 @@ require_paths:
81
82
  - lib
82
83
  required_ruby_version: !ruby/object:Gem::Requirement
83
84
  requirements:
84
- - - '>='
85
+ - - ">="
85
86
  - !ruby/object:Gem::Version
86
87
  version: '0'
87
88
  required_rubygems_version: !ruby/object:Gem::Requirement
88
89
  requirements:
89
- - - '>='
90
+ - - ">="
90
91
  - !ruby/object:Gem::Version
91
92
  version: '0'
92
93
  requirements: []
93
- rubyforge_project:
94
- rubygems_version: 2.5.2
94
+ rubygems_version: 3.1.2
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Ruby API and CLI for vpsFree.cz API