purest 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: daf312e4a9f4e684d30ff143073640fb0c383b56b1d44f0c8b9b3550195c6a9e
4
- data.tar.gz: a6afeef48fe986433d07b9f14b379c3a96226459370025d93693d0041e8ba2cc
3
+ metadata.gz: 1381388a9be22cc09d534c946030f31072042c81990b68142eabc083f4bce6b8
4
+ data.tar.gz: 361094c5b91371f037f06e387d2c6771b992fb99deccbd134084078e9b09a3b0
5
5
  SHA512:
6
- metadata.gz: cdcb8d67a737212753332272d25f6d1edd00a80300f41ac0696ea289acabca7a31b7106713a37f881ad2651c2544a3e106531ac579761a34b7a2b78f71baba03
7
- data.tar.gz: ac4bed40d5ded45656de62b9e306a6807f4c0afd388e93e75235652610d31da75c70ae1d32b9c0a0952268f38874147afdfade5ded33e56553a27ec3d4c9b3c7
6
+ metadata.gz: 4d19cc24337a4862de80ae8abff68b5ca99b465c0a2be6852674b8c4d3c1c6c315af39564549c6882ad3ccd81c2d78421845131dc762a41e64e5fdb5c3fc0c93
7
+ data.tar.gz: '0297f830232b16953ced49597c9c45e98cdf9b736854fbbab012fff23c18838714e4aaa235d45ca8f3232155ff25edcfdb73c83adda56c7dd56bd6f19c6edd84'
data/README.md CHANGED
@@ -9,7 +9,7 @@ This started as sort of a labor of love/learning exercise, and sort of blossomed
9
9
 
10
10
  2) I am not affiliated with Pure Storage, beyond the fact that my company uses their product.
11
11
 
12
- 3) While all of the classes exist, currently only up to API version 1.11 is supported.
12
+ 3) While all of the classes exist, currently only up to API version 1.12 is 'officially' supported- meaning it may work on newer versions, but I can't verify since I've only been able to develop against versions 1.12 and lower.
13
13
 
14
14
  ## Requirements
15
15
 
@@ -19,6 +19,11 @@ This library requires you use Ruby 2.3 or above.
19
19
 
20
20
  # Usage
21
21
 
22
+ ## Installation
23
+ ```
24
+ gem install purest
25
+ ```
26
+
22
27
  ## Configuration
23
28
 
24
29
  ```rb
@@ -34,7 +39,7 @@ end
34
39
  ```
35
40
 
36
41
  ## API options
37
- First: Authentication and session management is handled behind the scenes, you just need to supply your username/password in the configuration block (as shown in the example above). That's it.
42
+ First: Authentication and session management are handled behind the scenes, you just need to supply your username/password in the configuration block (as shown in the example above). That's it.
38
43
 
39
44
  Second: The various class methods of this gem turn the provided options into HTTP parameters, and are
40
45
  named accordingly. For instance, ```Purest::Volume.get({:snap: true})``` translates
@@ -2,9 +2,9 @@
2
2
 
3
3
  module Purest
4
4
  class Cert < Purest::APIMethods
5
- @access_methods = %i[get update]
5
+ @access_methods = %i[get create update delete]
6
6
 
7
- GET_PARAMS = %i[certificate common_name country email
7
+ GET_PARAMS = %i[ca_certificate certificate common_name country email
8
8
  intermediate_certificate locality organization
9
9
  organizational_unit state].freeze
10
10
 
@@ -16,8 +16,16 @@ module Purest
16
16
  end
17
17
  end
18
18
 
19
+ def create(options = nil)
20
+ super(options, 'cert')
21
+ end
22
+
19
23
  def update(options = nil)
20
24
  super(options, 'cert')
21
25
  end
26
+
27
+ def delete(options = nil)
28
+ super(options, 'cert')
29
+ end
22
30
  end
23
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Purest
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean McKinley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-01 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber