lolp 0.4.0 → 0.5.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
- SHA256:
3
- metadata.gz: 1d6f7115e8a2dda25cf37588eed69bbf15fae2aec1d909ab4096f0f018cec7d9
4
- data.tar.gz: ec02d333fb9be91fb9cd0436b636cb43aff4f6365fbaa8486dcfa1136df5f8a1
2
+ SHA1:
3
+ metadata.gz: 5252b93f750bfc15820a1e202d29566204139d21
4
+ data.tar.gz: 3bf722f69ca6792e1e3725720a0e8a6d642ea897
5
5
  SHA512:
6
- metadata.gz: dde7d89fa3c3b01dfbb26c55693df75144559a0cadeb8764c89a97f6f1005f5cefb30b3ebce441da30bce00e062eb48c87ee8c09ac9343e0b17ecca32701cc90
7
- data.tar.gz: 5fd953d6b5b4234f7661784f36bcb8634156e17fe5f80220e6c116037ed9e881c4c290108af383ebe314842a5d26902979df313613d9a5d27170ad463e729172
6
+ metadata.gz: 365ad2a7aba89c8b6cb04fbbbfe82f1390a55650bcff5a8efa84408a328b69361c3b7b188e5da55e402a781655f8ee75b85070c26c04fc76c574a0477123e47d
7
+ data.tar.gz: b03443d5b139d630d72b3ab8e52ce633cde41a2ff0cbb4abffe88457630e475d81fa4c97eb49202b37d18534d9bfb6a51d8c37d2fb1dbfdb2f0f991f0f1fd097
@@ -3,6 +3,7 @@ require 'lolp/configuration'
3
3
  require 'lolp/client/project'
4
4
  require 'lolp/client/authentication'
5
5
  require 'lolp/client/certificate'
6
+ require 'lolp/client/publickey'
6
7
 
7
8
  module Lolp
8
9
  class Client
@@ -11,6 +12,7 @@ module Lolp
11
12
  include Lolp::Client::Project
12
13
  include Lolp::Client::Authentication
13
14
  include Lolp::Client::Certificate
15
+ include Lolp::Client::Publickey
14
16
 
15
17
  def initialize(config = {})
16
18
  defaults
@@ -0,0 +1,17 @@
1
+ module Lolp
2
+ class Client
3
+ module Publickey
4
+ def publickeys
5
+ get('v1/pubkeys')
6
+ end
7
+
8
+ def create_publickey(name, key)
9
+ post('v1/pubkeys', { name: name, key: key })
10
+ end
11
+
12
+ def delete_publickey(name)
13
+ delete("v1/pubkeys/#{name}")
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Lolp
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.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.4.0
4
+ version: 0.5.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-05-15 00:00:00.000000000 Z
11
+ date: 2018-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -141,6 +141,7 @@ files:
141
141
  - lib/lolp/client/authentication.rb
142
142
  - lib/lolp/client/certificate.rb
143
143
  - lib/lolp/client/project.rb
144
+ - lib/lolp/client/publickey.rb
144
145
  - lib/lolp/configuration.rb
145
146
  - lib/lolp/connection.rb
146
147
  - lib/lolp/errors.rb
@@ -165,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
166
  version: '0'
166
167
  requirements: []
167
168
  rubyforge_project:
168
- rubygems_version: 2.7.3
169
+ rubygems_version: 2.6.13
169
170
  signing_key:
170
171
  specification_version: 4
171
172
  summary: The lolipop! client