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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 48f64d7c464aa54df35fa07f1fbd58c1aa48a09d
4
- data.tar.gz: 520ceff36e7affc10c78a5b3ca98d392b6e5557f
2
+ SHA256:
3
+ metadata.gz: 1d6f7115e8a2dda25cf37588eed69bbf15fae2aec1d909ab4096f0f018cec7d9
4
+ data.tar.gz: ec02d333fb9be91fb9cd0436b636cb43aff4f6365fbaa8486dcfa1136df5f8a1
5
5
  SHA512:
6
- metadata.gz: 8d743865d68e6a667b5e808d580c2bc73e788baaec23e1f9156c3792177bd55fffd7068a72e2198a2dccced2e450fb635fd6438aa846da7037116d1241fd5f76
7
- data.tar.gz: e34ba0f0aa017fa03fe3caf33a461148ebd8b1d39dcac4b96500a3fd41dad0338d94c25bd37e076fe73df5f3cc5d11bb82d2a0ceb0811ae0409301e2618ea20b
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.
@@ -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
@@ -0,0 +1,13 @@
1
+ module Lolp
2
+ class Client
3
+ module Certificate
4
+ def get_certificate(project_domain)
5
+ get("v1/certificates/#{project_domain}")
6
+ end
7
+
8
+ def create_certificate(project_domain)
9
+ post("v1/certificates/#{project_domain}")
10
+ end
11
+ end
12
+ end
13
+ end
@@ -17,12 +17,12 @@ module Lolp
17
17
  delete("v1/projects/#{name}")
18
18
  end
19
19
 
20
- def create_custom_domain(domain, custom_domain)
21
- post("v1/projects/#{domain}/custom-domains", domain: custom_domain)
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(domain, custom_domain)
25
- delete("v1/projects/#{domain}/custom-domains/#{custom_domain}")
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
@@ -1,3 +1,3 @@
1
1
  module Lolp
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
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.3.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-04-12 00:00:00.000000000 Z
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.6.14
168
+ rubygems_version: 2.7.3
168
169
  signing_key:
169
170
  specification_version: 4
170
171
  summary: The lolipop! client