haveapi-client 0.11.1 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG +2 -0
- data/haveapi-client.gemspec +2 -2
- data/lib/haveapi/cli/authentication/basic.rb +2 -0
- data/lib/haveapi/cli/authentication/token.rb +2 -0
- data/lib/haveapi/cli/commands/action_state_wait.rb +2 -0
- data/lib/haveapi/cli.rb +4 -3
- data/lib/haveapi/client/authentication/base.rb +2 -0
- data/lib/haveapi/client/authentication/basic.rb +2 -0
- data/lib/haveapi/client/authentication/noauth.rb +2 -0
- data/lib/haveapi/client/authentication/token.rb +2 -0
- data/lib/haveapi/client/resource_instance.rb +2 -0
- data/lib/haveapi/client/validators/acceptance.rb +2 -0
- data/lib/haveapi/client/validators/confirmation.rb +3 -1
- data/lib/haveapi/client/validators/custom.rb +2 -0
- data/lib/haveapi/client/validators/exclusion.rb +2 -0
- data/lib/haveapi/client/validators/format.rb +2 -0
- data/lib/haveapi/client/validators/inclusion.rb +2 -0
- data/lib/haveapi/client/validators/length.rb +2 -0
- data/lib/haveapi/client/validators/numericality.rb +2 -0
- data/lib/haveapi/client/validators/presence.rb +2 -0
- data/lib/haveapi/client/version.rb +1 -1
- data/lib/haveapi/client.rb +4 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ff47f61b6df0b915bbc56d44f2c876553181b26d08844bc64b9c5bdb283f89e6
|
4
|
+
data.tar.gz: 6b9cb3f316732f3caeed9bfb85e48bb4fac35914bfd3ce5c00736ca22408146e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82de4c5545307e35dab844fb0c9d830cfa341f7e1d3734a69d5cce954de071716423600b21e5e96a75e77ec2b5824e4c43bdad70936f1f43839270356f0cd29f
|
7
|
+
data.tar.gz: b6b64ffe7d37fa4f96aa7a70bdd2b652ab46ecec6c7a84c35e99db9b6a3d3cad2bab5a597f67cb341c46b265f62fb5999c00086a8628f34943dbd59f51acc546
|
data/CHANGELOG
CHANGED
data/haveapi-client.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'haveapi/client/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'haveapi-client'
|
8
8
|
spec.version = HaveAPI::Client::VERSION
|
9
|
-
spec.date = '
|
9
|
+
spec.date = '2017-11-27'
|
10
10
|
spec.authors = ['Jakub Skokan']
|
11
11
|
spec.email = ['jakub.skokan@vpsfree.cz']
|
12
12
|
spec.summary =
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'rake'
|
24
24
|
|
25
25
|
spec.add_runtime_dependency 'activesupport', '>= 4.0'
|
26
|
-
spec.add_runtime_dependency 'require_all', '~>
|
26
|
+
spec.add_runtime_dependency 'require_all', '~> 2.0.0'
|
27
27
|
spec.add_runtime_dependency 'rest-client', '~> 2.0.2'
|
28
28
|
spec.add_runtime_dependency 'json'
|
29
29
|
spec.add_runtime_dependency 'highline', '~> 1.7.8'
|
data/lib/haveapi/cli.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require 'haveapi/client'
|
2
2
|
|
3
3
|
module HaveAPI
|
4
4
|
module CLI
|
@@ -6,5 +6,6 @@ module HaveAPI
|
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
|
-
require_rel 'cli'
|
10
|
-
require_rel 'cli/
|
9
|
+
require_rel 'cli/*.rb'
|
10
|
+
require_rel 'cli/authentication/'
|
11
|
+
require_rel 'cli/commands/'
|
@@ -1,10 +1,12 @@
|
|
1
|
+
require 'haveapi/client/validator'
|
2
|
+
|
1
3
|
module HaveAPI::Client
|
2
4
|
class Validators::Confirmation < Validator
|
3
5
|
name :confirm
|
4
6
|
|
5
7
|
def valid?
|
6
8
|
other = opts[:parameter].to_sym
|
7
|
-
|
9
|
+
|
8
10
|
if opts[:equal]
|
9
11
|
return false if params[other].nil?
|
10
12
|
value == params[other].value
|
data/lib/haveapi/client.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haveapi-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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:
|
11
|
+
date: 2017-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 2.0.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 2.0.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rest-client
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
199
|
rubyforge_project:
|
200
|
-
rubygems_version: 2.
|
200
|
+
rubygems_version: 2.7.7
|
201
201
|
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: Ruby API and CLI for HaveAPI
|