zend 0.1.1 → 0.1.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: 4c1178446585c5f606205714915228b0fe248fcc
4
- data.tar.gz: 97b9a0116551f9e79c7f1a5ed510b4c6b32703f7
3
+ metadata.gz: 9b0eca79914524044a554451efd2295301060fa7
4
+ data.tar.gz: 5638427f5136ae7e183f5059d28edd224fea2a4e
5
5
  SHA512:
6
- metadata.gz: fa7f07b87d15c27a2ffda1aa08217b5660fd504df39fedb0961d3fcabe99ade287fcc39f2a72a58a4ed4fd7ea20d9324e90267aaf821166a013701be6c7c06c0
7
- data.tar.gz: 34b63cc227da84131d496aac3e6e6090799ad5c3f7ff4b894f967dfd36d8e624eb37cf6f26defe3cf5ba1de288506de4a3cf9389e0e843917184413149e5e5af
6
+ metadata.gz: 08ed8a9dfb67a420ccee65cce8b6eb90758cbd8a059f4c18573144b5763cfac811cd23f0a6a98d99ea85475b09871c6f48a6757cfb257d1edeb1095cf25953e4
7
+ data.tar.gz: d3c3437c18ec430e19c4e5080ceaf59215c125c8ad3ce9e84a68c37bbf94d5648153fc65de34b1c72e0988bc2352d649c10ddb442fb7e7db763d565c4a47fd31
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.1.2 (September 7, 2013)
2
+
3
+ Bugfixes:
4
+
5
+ - correctly unset credentials on authentication retry
6
+
1
7
  ## 0.1.1 (September 7, 2013)
2
8
 
3
9
  Bugfixes:
data/lib/zend/auth.rb CHANGED
@@ -89,7 +89,7 @@ module Zend
89
89
  netrc.delete(domain)
90
90
  netrc.save
91
91
  end
92
- @email, @password = nil
92
+ @api, @account, @credentials = nil
93
93
  end
94
94
 
95
95
  def read_credentials
@@ -128,10 +128,11 @@ module Zend
128
128
 
129
129
  def authentication_failed
130
130
  say 'Authentication failed.'
131
+ delete_credentials
132
+
131
133
  if retry_login?
132
134
  ask_for_and_save_credentials
133
135
  else
134
- delete_credentials
135
136
  exit 1
136
137
  end
137
138
  end
data/lib/zend/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zend
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Mertz