cyclid-client 0.3.1 → 0.3.2

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: 41e5bfacfd4b9fcaaa8ac85bfca72dbd4454d3f6
4
- data.tar.gz: 746a23a5fe68e831f2541f3f3e5398dfc5ae1a7e
3
+ metadata.gz: 8e0ed4474b3e654888e5af98ce8651e7185c86c4
4
+ data.tar.gz: ec58a0848ac45a46b4958491b1da1b6dc90e5b89
5
5
  SHA512:
6
- metadata.gz: 968413bb276528a5bbc3757841f60a5b102bcf60e0b7e948c8a108ddd433dcc1a73ee6665062b36e3b3c8599f96284dda32e465d2e9dc1c41b6560fb12080250
7
- data.tar.gz: 95cb13d1331282bf7fc5a0633c17f200a93e744fb4e0137578bc314a3e0a7f54fb60445a95b4d2f991e447181f0dd08087e5a15b41d4d87e103804288f095239
6
+ metadata.gz: 8b84d6e3bf1b4debc7848d9e75a5b311a361cd94ad5856c175619cdae694a7e456e2854d24a1abd2925bf9fa99121bd2fb9d0160e2386d7ef7efbbf760615c71
7
+ data.tar.gz: 825e9d50626ce58d262f8e3b01a17c0c59684467dc209b4538c000d676466f97ba8956b87501c33451aef267fe75f8e4773c282eab0ee810bf87357944d85c6a
data/bin/cyclid CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
  # Copyright 2016 Liqwyd Ltd.
3
4
  #
4
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -107,7 +108,7 @@ module Cyclid
107
108
  delete = true
108
109
  else
109
110
  print "Delete organization #{name}: are you sure? (Y/n): ".colorize(:red)
110
- delete = STDIN.getc.chr.casecmp('y') == 0
111
+ delete = STDIN.getc.chr.casecmp('y').zero?
111
112
  end
112
113
  abort unless delete
113
114
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -127,7 +128,7 @@ module Cyclid
127
128
  delete = true
128
129
  else
129
130
  print "Delete user #{username}: are you sure? (Y/n): ".colorize(:red)
130
- delete = STDIN.getc.chr.casecmp('y') == 0
131
+ delete = STDIN.getc.chr.casecmp('y').zero?
131
132
  end
132
133
  abort unless delete
133
134
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -30,6 +31,9 @@ module Cyclid
30
31
  when 'string', 'integer'
31
32
  data = config[name] || 'Not set'
32
33
  puts "#{setting['description']}: ".colorize(:cyan) + data
34
+ when 'password'
35
+ data = config[name] ? '*' * config[name].length : 'Not set'
36
+ puts "#{setting['description']}: ".colorize(:cyan) + data
33
37
  when 'boolean'
34
38
  data = config[name] || 'Not set'
35
39
  puts "#{setting['description']}: ".colorize(:cyan) + (data ? 'true' : 'false')
@@ -55,8 +59,6 @@ module Cyclid
55
59
  end
56
60
  end
57
61
  end
58
- else
59
- raise "unknown schema type #{type}"
60
62
  end
61
63
  end
62
64
  rescue StandardError => ex
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -110,7 +111,7 @@ module Cyclid
110
111
  true
111
112
  else
112
113
  print "Remove user #{user}: are you sure? (Y/n): ".colorize(:red)
113
- STDIN.getc.chr.casecmp('y') == 0
114
+ STDIN.getc.chr.casecmp('y').zero?
114
115
  end
115
116
  end
116
117
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -88,7 +89,7 @@ module Cyclid
88
89
  path: path)
89
90
  end
90
91
 
91
- def method_missing(method, *args, &block)
92
+ def method_missing(method, *args, &block) # rubocop:disable Style/MethodMissing
92
93
  @api.send(method, *args, &block)
93
94
  end
94
95
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Copyright 2016 Liqwyd Ltd.
2
3
  #
3
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,6 @@
1
+ # frozen_string_literal: true
1
2
  module Cyclid
2
3
  module Client
3
- VERSION = '0.3.1'.freeze
4
+ VERSION = '0.3.2'
4
5
  end
5
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyclid-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Van Der Vliet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-05 00:00:00.000000000 Z
11
+ date: 2016-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor