chupacabra 0.1.3 → 0.2.1

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: 8e5a5b3852ea7e72dc83697f3a988c57c434ae42
4
- data.tar.gz: 12fd57052ddfc1b7444cae417a0d2c7fd19bdaab
3
+ metadata.gz: 827c827c90f33ac238f7e4e6ffdb92903824241f
4
+ data.tar.gz: 4b576fcd8b49219a30ed14bf1997fe409e228b85
5
5
  SHA512:
6
- metadata.gz: 64c6ed57487118cf8b4f2b4cfba3e4d551ae61f43d853585bc88ab4ba8ff5e1e7eac39ab5499f719f67b7aacdc919e9c8022e957f4f5a45791d28d0d6f65e209
7
- data.tar.gz: 6ee5b55e22ad221a635b51884d8fb9abb15a5d677a722a32bb6b7235739d3a06abcfa4a60183ea40a3d48631fd5d0578765788854d5afb0cc339afc58a072675
6
+ metadata.gz: 370a0a21a2363eb0ba1e9447cf6f66bc67afecccd84fd79944a8d636b9a6e16e1033bede68cbf3e8992cbe881cddae8f4cc8f29dd65ce6df8f2690408e2cf529
7
+ data.tar.gz: 25971bac04c9558123909a9b5836f9fbb993c3a28166fca0807baff3f359aa4787408ed75737484ded5603030e523c139d335ac3569adeb67e8f1a56a9107903
@@ -20,6 +20,12 @@ OptionParser.new do |opts|
20
20
  exit
21
21
  end
22
22
 
23
+ opts.on("-f", "--forget", "Forget chupacabra main password stored in memory") do
24
+ Chupacabra::System.clear
25
+ puts "This machine won't know your main chupacabra password any more."
26
+ exit
27
+ end
28
+
23
29
  opts.on("-i", "--install", "Install Apple service") do |port|
24
30
  Chupacabra::System::Install.install
25
31
  puts "Service installed in #{Chupacabra::System::Install.user_service_path}"
@@ -25,6 +25,7 @@ module Chupacabra
25
25
  System.alert('Wrong password!')
26
26
  'Wrong password'
27
27
  rescue Exception => e
28
+ System.log("Ruby version: #{ RUBY_VERSION }", true)
28
29
  System.log("#{ e.class.name }: #{ e.message }\n #{ e.backtrace }", true)
29
30
  System.alert("Unexpected error, check log in: #{System.log_path}")
30
31
  raise e
@@ -18,7 +18,7 @@ module Chupacabra
18
18
  else
19
19
  log(command)
20
20
  `#{command}`
21
- end.strip
21
+ end.encode!('UTF-8', :undef => :replace, :invalid => :replace, :replace => "").strip
22
22
  end
23
23
 
24
24
  def get_password
@@ -1,3 +1,3 @@
1
1
  module Chupacabra
2
- VERSION = '0.1.3'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chupacabra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dawid Sklodowski