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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 85a16ed6e92fb8d9afa8aee8ea0440b511f9013d
4
- data.tar.gz: bab55fd04ce9cd33239668ffdb35da6e365cb81a
2
+ SHA256:
3
+ metadata.gz: ff47f61b6df0b915bbc56d44f2c876553181b26d08844bc64b9c5bdb283f89e6
4
+ data.tar.gz: 6b9cb3f316732f3caeed9bfb85e48bb4fac35914bfd3ce5c00736ca22408146e
5
5
  SHA512:
6
- metadata.gz: 3ef53258b36786fc2f4fa2ad0105fbe963923ba7fee222f6f0e6de603e66032ca7fe3384d178a0fbab175e4e87dbe4dacf278c03368a7511cad090c1d58be319
7
- data.tar.gz: 9381aced99faa6de15d3e55a9de6b37fb2a0ebbefa552826dbc97a6307fc961a8e4f011a034468c34d0e79449210628cfd63d76485d2619b9af266c143b3ace8
6
+ metadata.gz: 82de4c5545307e35dab844fb0c9d830cfa341f7e1d3734a69d5cce954de071716423600b21e5e96a75e77ec2b5824e4c43bdad70936f1f43839270356f0cd29f
7
+ data.tar.gz: b6b64ffe7d37fa4f96aa7a70bdd2b652ab46ecec6c7a84c35e99db9b6a3d3cad2bab5a597f67cb341c46b265f62fb5999c00086a8628f34943dbd59f51acc546
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ * See ../../CHANGELOG.md for newer versions
2
+
1
3
  * Wed Mar 14 2018 - version 0.11.1
2
4
  - Downgrade require_all to v1.5
3
5
 
@@ -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 = '2018-03-14'
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', '~> 1.5.0'
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'
@@ -1,3 +1,5 @@
1
+ require 'haveapi/cli/authentication/base'
2
+
1
3
  module HaveAPI::CLI::Authentication
2
4
  class Basic < Base
3
5
  register :basic
@@ -1,3 +1,5 @@
1
+ require 'haveapi/cli/authentication/base'
2
+
1
3
  module HaveAPI::CLI::Authentication
2
4
  class Token < Base
3
5
  register :token
@@ -1,3 +1,5 @@
1
+ require 'haveapi/cli/command'
2
+
1
3
  module HaveAPI::CLI::Commands
2
4
  class ActionStateWait < HaveAPI::CLI::Command
3
5
  cmd :action_state, :wait
data/lib/haveapi/cli.rb CHANGED
@@ -1,4 +1,4 @@
1
- require_relative 'client'
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/commands'
9
+ require_rel 'cli/*.rb'
10
+ require_rel 'cli/authentication/'
11
+ require_rel 'cli/commands/'
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/communicator'
2
+
1
3
  module HaveAPI::Client
2
4
  module Authentication
3
5
  # Raise this exception when authentication process fails somewhere
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/authentication/base'
2
+
1
3
  module HaveAPI::Client::Authentication
2
4
  class Basic < Base
3
5
  register :basic
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/authentication/base'
2
+
1
3
  module HaveAPI::Client::Authentication
2
4
  class NoAuth < Base
3
5
 
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/authentication/base'
2
+
1
3
  module HaveAPI::Client::Authentication
2
4
  class Token < Base
3
5
  register :token
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/resource'
2
+
1
3
  module HaveAPI::Client
2
4
  # Instance of an object from the API.
3
5
  # An instance of this class may be in three states:
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/validator'
2
+
1
3
  module HaveAPI::Client
2
4
  class Validators::Acceptance < Validator
3
5
  name :accept
@@ -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
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/validator'
2
+
1
3
  module HaveAPI::Client
2
4
  class Validators::Custom < Validator
3
5
  name :custom
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/validator'
2
+
1
3
  module HaveAPI::Client
2
4
  class Validators::Exclusion < Validator
3
5
  name :exclude
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/validator'
2
+
1
3
  module HaveAPI::Client
2
4
  class Validators::Format < Validator
3
5
  name :format
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/validator'
2
+
1
3
  module HaveAPI::Client
2
4
  class Validators::Inclusion < Validator
3
5
  name :include
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/validator'
2
+
1
3
  module HaveAPI::Client
2
4
  class Validators::Length < Validator
3
5
  name :length
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/validator'
2
+
1
3
  module HaveAPI::Client
2
4
  class Validators::Numericality < Validator
3
5
  name :number
@@ -1,3 +1,5 @@
1
+ require 'haveapi/client/validator'
2
+
1
3
  module HaveAPI::Client
2
4
  class Validators::Presence < Validator
3
5
  name :present
@@ -1,6 +1,6 @@
1
1
  module HaveAPI
2
2
  module Client
3
3
  PROTOCOL_VERSION = '1.2'
4
- VERSION = '0.11.1'
4
+ VERSION = '0.12.0'
5
5
  end
6
6
  end
@@ -10,4 +10,7 @@ module HaveAPI
10
10
  end
11
11
  end
12
12
 
13
- require_rel 'client'
13
+ require_rel 'client/*.rb'
14
+ require_rel 'client/authentication/'
15
+ require_rel 'client/parameters/'
16
+ require_rel 'client/validators/'
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.11.1
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: 2018-03-14 00:00:00.000000000 Z
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: 1.5.0
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: 1.5.0
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.6.14
200
+ rubygems_version: 2.7.7
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Ruby API and CLI for HaveAPI