lolp 0.4.0 → 0.5.0
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 +5 -5
- data/lib/lolp/client.rb +2 -0
- data/lib/lolp/client/publickey.rb +17 -0
- 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
|
+
SHA1:
|
3
|
+
metadata.gz: 5252b93f750bfc15820a1e202d29566204139d21
|
4
|
+
data.tar.gz: 3bf722f69ca6792e1e3725720a0e8a6d642ea897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 365ad2a7aba89c8b6cb04fbbbfe82f1390a55650bcff5a8efa84408a328b69361c3b7b188e5da55e402a781655f8ee75b85070c26c04fc76c574a0477123e47d
|
7
|
+
data.tar.gz: b03443d5b139d630d72b3ab8e52ce633cde41a2ff0cbb4abffe88457630e475d81fa4c97eb49202b37d18534d9bfb6a51d8c37d2fb1dbfdb2f0f991f0f1fd097
|
data/lib/lolp/client.rb
CHANGED
@@ -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
|
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.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-
|
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.
|
169
|
+
rubygems_version: 2.6.13
|
169
170
|
signing_key:
|
170
171
|
specification_version: 4
|
171
172
|
summary: The lolipop! client
|