lolp 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +9 -0
- data/lib/lolp/client.rb +2 -0
- data/lib/lolp/client/certificate.rb +13 -0
- data/lib/lolp/client/project.rb +4 -4
- data/lib/lolp/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1d6f7115e8a2dda25cf37588eed69bbf15fae2aec1d909ab4096f0f018cec7d9
|
4
|
+
data.tar.gz: ec02d333fb9be91fb9cd0436b636cb43aff4f6365fbaa8486dcfa1136df5f8a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dde7d89fa3c3b01dfbb26c55693df75144559a0cadeb8764c89a97f6f1005f5cefb30b3ebce441da30bce00e062eb48c87ee8c09ac9343e0b17ecca32701cc90
|
7
|
+
data.tar.gz: 5fd953d6b5b4234f7661784f36bcb8634156e17fe5f80220e6c116037ed9e881c4c290108af383ebe314842a5d26902979df313613d9a5d27170ad463e729172
|
data/README.md
CHANGED
@@ -39,6 +39,15 @@ Lolp.create_custom_domain('jungly-naha-2778.lolipop.ohr','example.com')
|
|
39
39
|
Lolp.delete_custom_domain('jungly-naha-2778.lolipop.ohr','example.com')
|
40
40
|
```
|
41
41
|
|
42
|
+
### Certificate
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
# get certificates infomation
|
46
|
+
Lolp.get_certificate('agile-kitsuki-0978.lolipop.io')
|
47
|
+
# create certificates
|
48
|
+
Lolp.create_certificate('agile-kitsuki-0978.lolipop.io')
|
49
|
+
```
|
50
|
+
|
42
51
|
## Development
|
43
52
|
|
44
53
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/lolp/client.rb
CHANGED
@@ -2,6 +2,7 @@ require 'lolp/connection'
|
|
2
2
|
require 'lolp/configuration'
|
3
3
|
require 'lolp/client/project'
|
4
4
|
require 'lolp/client/authentication'
|
5
|
+
require 'lolp/client/certificate'
|
5
6
|
|
6
7
|
module Lolp
|
7
8
|
class Client
|
@@ -9,6 +10,7 @@ module Lolp
|
|
9
10
|
include Lolp::Connection
|
10
11
|
include Lolp::Client::Project
|
11
12
|
include Lolp::Client::Authentication
|
13
|
+
include Lolp::Client::Certificate
|
12
14
|
|
13
15
|
def initialize(config = {})
|
14
16
|
defaults
|
data/lib/lolp/client/project.rb
CHANGED
@@ -17,12 +17,12 @@ module Lolp
|
|
17
17
|
delete("v1/projects/#{name}")
|
18
18
|
end
|
19
19
|
|
20
|
-
def create_custom_domain(
|
21
|
-
post("v1/projects/#{
|
20
|
+
def create_custom_domain(project_domain, custom_domain)
|
21
|
+
post("v1/projects/#{project_domain}/custom-domains", domain: custom_domain)
|
22
22
|
end
|
23
23
|
|
24
|
-
def delete_custom_domain(
|
25
|
-
delete("v1/projects/#{
|
24
|
+
def delete_custom_domain(project_domain, custom_domain)
|
25
|
+
delete("v1/projects/#{project_domain}/custom-domains/#{custom_domain}")
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/lib/lolp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- linyows
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -139,6 +139,7 @@ files:
|
|
139
139
|
- lib/lolp.rb
|
140
140
|
- lib/lolp/client.rb
|
141
141
|
- lib/lolp/client/authentication.rb
|
142
|
+
- lib/lolp/client/certificate.rb
|
142
143
|
- lib/lolp/client/project.rb
|
143
144
|
- lib/lolp/configuration.rb
|
144
145
|
- lib/lolp/connection.rb
|
@@ -164,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
165
|
version: '0'
|
165
166
|
requirements: []
|
166
167
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.7.3
|
168
169
|
signing_key:
|
169
170
|
specification_version: 4
|
170
171
|
summary: The lolipop! client
|