stastic 0.2.5 → 0.2.6

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.
@@ -2,8 +2,6 @@ require 'rest-client'
2
2
  require 'json'
3
3
 
4
4
  module Stastic
5
- class InvalidCredentials < RestClient::Forbidden; end
6
- class ValidationFailed < RestClient::UnprocessableEntity; end
7
5
 
8
6
  class Client
9
7
  attr_accessor :user, :token, :host
@@ -16,7 +16,7 @@ module Stastic::Command
16
16
  print " Password: "
17
17
  password = ask_for_password
18
18
  token = Stastic::Client.authenticate(email, password)
19
- rescue Stastic::InvalidCredentials
19
+ rescue RestClient::Forbidden
20
20
  if attempts < 3
21
21
  print "\nInvalid credentials - try again.\n\n"
22
22
  retry
data/lib/stastic.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Stastic
2
2
 
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
4
4
 
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 5
9
- version: 0.2.5
8
+ - 6
9
+ version: 0.2.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brian Smith
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-08 00:00:00 -08:00
17
+ date: 2011-03-09 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency