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 +4 -4
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/lib/icontrol_rest/client.rb +4 -4
- data/lib/icontrol_rest/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fad69ef03119e3b1e0d4b14d2d52bbe2068ac82
|
4
|
+
data.tar.gz: 790fa57a3e23e0681741d22abadb895b41cdb739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 498c382ef83d8644cb071dc9bc954f2ef5606ee39b5902ffd8f1ae4dfacff9b1395019b85c4b93836dfafa414dcfea70034f6ba41fdbd815c5be92d7ca4e671c
|
7
|
+
data.tar.gz: b9b73ddf7e16e5598eb773ef4e4a148605df073f192cfadebabf3f31dbdfb08341c9ea6e4714d276d1e5d1857890c9d4ed588a8ba6843155cf64777595f047ed
|
data/Gemfile
CHANGED
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](
|
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](
|
60
|
+
Please review the [guidelines for contributing](CONTRIBUTING.md) to this repository.
|
data/lib/icontrol_rest/client.rb
CHANGED
@@ -42,7 +42,7 @@ module IcontrolRest
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
45
|
-
# rubocop:enable Metrics/
|
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.
|
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.
|
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-
|
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.
|
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.
|