icontrol_rest 2.2.0 → 2.3.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
  SHA1:
3
- metadata.gz: 04f7ecf74aee27e247b202b91bfa851831a4887f
4
- data.tar.gz: 39f67265927ec920c8e48d56466a4bfc3432d264
3
+ metadata.gz: 7fad69ef03119e3b1e0d4b14d2d52bbe2068ac82
4
+ data.tar.gz: 790fa57a3e23e0681741d22abadb895b41cdb739
5
5
  SHA512:
6
- metadata.gz: 644b8cbc0279c05ca28b54cd61bc964697391dc1027bad2f7e69ba45f87791310c6c085373c9c99bf4b83ba754fa3200ae973b650376bd238b8fd96ce1b1015b
7
- data.tar.gz: '019a150a73271c5515f2efa574fc6aa8e548c03818586bdd88acfacea1dc1e16728ec29fc51a3be2e980124b6e2fd45cc399023a5b9aa653a5be5f6ed79daa99'
6
+ metadata.gz: 498c382ef83d8644cb071dc9bc954f2ef5606ee39b5902ffd8f1ae4dfacff9b1395019b85c4b93836dfafa414dcfea70034f6ba41fdbd815c5be92d7ca4e671c
7
+ data.tar.gz: b9b73ddf7e16e5598eb773ef4e4a148605df073f192cfadebabf3f31dbdfb08341c9ea6e4714d276d1e5d1857890c9d4ed588a8ba6843155cf64777595f047ed
data/Gemfile CHANGED
@@ -11,5 +11,5 @@ end
11
11
  # build-time dependencies
12
12
  gem 'rake', '~> 10.0'
13
13
  gem 'rspec', '~> 3.4'
14
- gem 'rubocop', '~> 0.47'
14
+ gem 'rubocop', '~> 0.52'
15
15
  gem 'simplecov', '~> 0.13'
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem used to wrap iControl API REST calls to an F5. The intent of this client is to match the iControl API methods and pass the response without modification. It does not contain business logic to scrub a response or prevent certain methods. This logic is to be in your orchestration layer, not in the client.
4
4
 
5
- This has been tested against 11.5.4, but should be compatible with future versions. If this gem isn't compatible with a newer version of BIG-IP, or doesn't have the functionality required to access a certain method, feel free to follow the [guidelines for contributing](.github/CONTRIBUTING.md) and provide an enhancement. When doing so, please follow semantic versioning when considering changes.
5
+ This has been tested against 11.5.4, but should be compatible with future versions. If this gem isn't compatible with a newer version of BIG-IP, or doesn't have the functionality required to access a certain method, feel free to follow the [guidelines for contributing](CONTRIBUTING.md) and provide an enhancement. When doing so, please follow semantic versioning when considering changes.
6
6
 
7
7
  ## Installation
8
8
 
@@ -57,4 +57,4 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
57
57
 
58
58
  ## Contributing
59
59
 
60
- Please review the [guidelines for contributing](.github/CONTRIBUTING.md) to this repository.
60
+ Please review the [guidelines for contributing](CONTRIBUTING.md) to this repository.
@@ -42,7 +42,7 @@ module IcontrolRest
42
42
  end
43
43
  end
44
44
  end
45
- # rubocop:enable Metrics/ParameterList
45
+ # rubocop:enable Metrics/ParameterLists
46
46
 
47
47
  # Public: Returns a set logger. If none exists, a NullLogger is returned for stability.
48
48
  def logger
@@ -76,7 +76,7 @@ module IcontrolRest
76
76
  # data - Hash of parameters to pass with request.
77
77
  #
78
78
  # Returns - response from the server as a hash.
79
- %w[post put].each do |action|
79
+ %w[post put patch].each do |action|
80
80
  define_method(action.to_s) do |route, data|
81
81
  body = {}
82
82
  body[:body] = data.to_json
@@ -114,13 +114,13 @@ module IcontrolRest
114
114
  send(route_chain[0].downcase, route(route_chain), args.first)
115
115
  end
116
116
 
117
- # Private - Adds methods prefixed with delete/get/post/put to object.
117
+ # Private - Adds methods prefixed with delete/get/post/put/patch to object.
118
118
  #
119
119
  # method_name - Symbol of unknown method called.
120
120
  #
121
121
  # Returns - true if the object responds to it, or if delete/get..etc.
122
122
  def respond_to_missing?(method_name, include_private = false)
123
- method_name.to_s.start_with?('delete', 'get', 'post', 'put') || super
123
+ method_name.to_s.start_with?('delete', 'get', 'post', 'put', 'patch') || super
124
124
  end
125
125
 
126
126
  # Private - Converts the route chain into a uri.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IcontrolRest
4
- VERSION = '2.2.0'
4
+ VERSION = '2.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icontrol_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerrod Carpenter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-31 00:00:00.000000000 Z
11
+ date: 2017-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.6.11
78
+ rubygems_version: 2.6.13
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Allows user to interact with iControl REST interface.