producer-stdlib 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78e87a9cc0162ce4df1e1dbbc9eefbd1e1b85494
4
- data.tar.gz: 008248f616629290a485871da34842f03d05e9af
3
+ metadata.gz: 12668879dd856f64bc93fbd6da0e6052e864ac3a
4
+ data.tar.gz: 269b27e52519a682a76bd0ae188a03150f3012a3
5
5
  SHA512:
6
- metadata.gz: 9dce3834db8af93fb07c91dd69609c97d78fb716681ade1195134be2d8dd918c3429bfadba2a5e9cae287a6cff84523130d830ea111236d685658b308474c60c
7
- data.tar.gz: ea9ce2376932411084b46c0644a43b09495d69c868d5ab0a7173eaf33be6b46ded0b8c701b1affcf16efde27e9b445de153382c9e1248195fb7b86a9badcfe3f
6
+ metadata.gz: ad2be9732b1b07866e1f0791c1989951c2706d55dbfc4f81ec9649459e395772e3ee8837ce27fb962150b6b23b5d855da21f312a30d89895ef95618a7830c6b2
7
+ data.tar.gz: e35a30d4052332c235472304933c48629b5605a92525c167b12fe85f99d36ef38e6d9d98e56f4074d3287a4d4981b3d46910580e8eb7d87cfe6c6b76752ddb67
@@ -15,8 +15,7 @@ module Producer
15
15
  STDLib.define_macro :ssh_copy_id do |path = SSH_AUTHORIZED_KEYS_PATH|
16
16
  condition { no_file? path }
17
17
 
18
- # FIXME: remove this hack, should have proper keyword or another way
19
- if !!condition
18
+ if condition_met?
20
19
  agent = Net::SSH::Authentication::Agent.connect
21
20
  choices = agent.identities.map { |e| [e, e.comment] }
22
21
  key = ask 'Which key do you want to copy?', choices
@@ -1,5 +1,5 @@
1
1
  module Producer
2
2
  module STDLib
3
- VERSION = '0.0.3'.freeze
3
+ VERSION = '0.0.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: producer-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibault Jouan