fcoury-octopi 0.0.8 → 0.0.9

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.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 8
4
+ :patch: 9
data/lib/octopi/key.rb CHANGED
@@ -11,7 +11,7 @@ module Octopi
11
11
 
12
12
  def remove!
13
13
  result = @api.post "/user/key/remove", :id => id
14
- keys = result["public_keys"].select { |k| puts "#{title} #{k["title"]} #{k["title"] == title}"; k["title"] == title }
14
+ keys = result["public_keys"].select { |k| k["title"] == title }
15
15
  keys.empty?
16
16
  end
17
17
  end
data/lib/octopi/user.rb CHANGED
@@ -30,7 +30,7 @@ module Octopi
30
30
 
31
31
  result = @api.post("/user/key/add", :title => title, :key => key)
32
32
  return if !result["public_keys"]
33
- key_params = result["public_keys"].select { |k| puts "#{title} #{k["title"]} #{k["title"] == title}"; k["title"] == title }
33
+ key_params = result["public_keys"].select { |k| k["title"] == title }
34
34
  return if !key_params or key_params.empty?
35
35
  Key.new(@api, key_params.first, self)
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcoury-octopi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felipe Coury