cupertino 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cf461d43315831dbcca7b1856cb205a18c48e1c
4
- data.tar.gz: 4a1989c9a30877a50a53bf544b41db709ba86f88
3
+ metadata.gz: 32f7d124c3b489a1f344e7b9f55a3ebb402c9f52
4
+ data.tar.gz: a3301adfc2687b34c8b7e986a95482f4dc3cfe9e
5
5
  SHA512:
6
- metadata.gz: 58815fef9b735b6ffac11b34d3435934758deefeaec82fcaf9e46819c71ff8e476ec101321e24934937cba3add8c79eae9e8fa106d1f9388c6db0c6a73444887
7
- data.tar.gz: 6eb72e4e27b01b7fbf8111699c9077ac6c1a2b412579cc3e4e6166971ef3aec8b93db0646ace46e5f7ae38ec56f731126ce784b0d6d3baec60034a661cc14ea3
6
+ metadata.gz: 188a348aff0d568890d6d653e08e1b129224af2e20e1c014f0feea1d2f288776bb9b170f9e9ab20e71b148bebf7da7923df6772f3d63ab6c7a9de399f4ee9429
7
+ data.tar.gz: 725a0d9913edd6ccc26e5ce7c08077292dac89be09de5dd28bd5b9fe8ed53ffff814ba1bf749b120a58fd0f06d86e60e945fbff9def0e703dafbfe8ab7772560
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cupertino (1.0.1)
4
+ cupertino (1.0.2)
5
5
  certified (>= 0.1.0)
6
6
  commander (~> 4.1.2)
7
7
  mechanize (~> 2.5.1)
Binary file
@@ -9,8 +9,10 @@ command :login do |c|
9
9
  user = ask "Username:"
10
10
  pass = password "Password:"
11
11
 
12
- Security::InternetPassword.add(Cupertino::ProvisioningPortal::HOST, user, pass)
13
-
14
- say_ok "Account credentials saved"
12
+ if Security::InternetPassword.add(Cupertino::ProvisioningPortal::HOST, user, pass)
13
+ say_ok "Account credentials saved"
14
+ else
15
+ say_error "Error saving credentials"
16
+ end
15
17
  end
16
18
  end
@@ -6,8 +6,10 @@ command :logout do |c|
6
6
  c.action do |args, options|
7
7
  say_error "You are not authenticated" and abort unless Security::InternetPassword.find(:server => Cupertino::ProvisioningPortal::HOST)
8
8
 
9
- Security::InternetPassword.delete(:server => Cupertino::ProvisioningPortal::HOST)
10
-
11
- say_ok "Account credentials removed"
9
+ if Security::InternetPassword.delete(:server => Cupertino::ProvisioningPortal::HOST)
10
+ say_ok "Account credentials removed"
11
+ else
12
+ say_error "Error removing credentials"
13
+ end
12
14
  end
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module Cupertino
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cupertino
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattt Thompson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-12 00:00:00.000000000 Z
11
+ date: 2014-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -159,6 +159,7 @@ extra_rdoc_files: []
159
159
  files:
160
160
  - ./cupertino-0.9.7.gem
161
161
  - ./cupertino-1.0.0.gem
162
+ - ./cupertino-1.0.1.gem
162
163
  - ./cupertino.gemspec
163
164
  - ./Gemfile
164
165
  - ./Gemfile.lock