phraseapp-ruby 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phraseapp-ruby.rb +2 -2
- data/lib/phraseapp-ruby/request_handler.rb +4 -4
- data/lib/phraseapp-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1aa7f0ac5ccd202703bbac9de61694c907418ad8
|
4
|
+
data.tar.gz: d45f7314f13beb0b9a95a4a615da10e58bc312db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 199de16186f3af5d5e5687b5df1c0790c105943f4638f394a3d4269ffba85917c5c11206c6d0f494cfc9a98d2121000034a1bc880289f6a7703da82afa9bff2b
|
7
|
+
data.tar.gz: 5a22b972f9f09883a2d4db34995135ea7d189d899e64947d16d9d6b7e1fc94e676c085935a6a5c39c0ad7c067a0b536049ceb1dcf59f0eb0730f548f9e8f54a4
|
data/lib/phraseapp-ruby.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
|
-
# revision_docs:
|
3
|
-
# revision_generator:
|
2
|
+
# revision_docs:22719e50d32eec5ea61ce7b1233b3c8931e93334
|
3
|
+
# revision_generator:HEAD/2016-10-24T105550/sacry1
|
4
4
|
require 'ostruct'
|
5
5
|
require 'net/https'
|
6
6
|
require 'uri'
|
@@ -5,7 +5,7 @@ module PhraseApp
|
|
5
5
|
API_CLIENT_IDENTIFIER = "PhraseApp Ruby #{VERSION}"
|
6
6
|
|
7
7
|
module RequestErrors
|
8
|
-
class ErrorResponse
|
8
|
+
class ErrorResponse < StandardError
|
9
9
|
attr_reader :message
|
10
10
|
|
11
11
|
def initialize(http_response)
|
@@ -16,7 +16,7 @@ module PhraseApp
|
|
16
16
|
alias_method :error, :message
|
17
17
|
end
|
18
18
|
|
19
|
-
class ValidationErrorResponse
|
19
|
+
class ValidationErrorResponse < StandardError
|
20
20
|
attr_reader :message
|
21
21
|
attr_reader :errors
|
22
22
|
|
@@ -27,7 +27,7 @@ module PhraseApp
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
class ValidationErrorMessage
|
30
|
+
class ValidationErrorMessage < StandardError
|
31
31
|
attr_reader :resource, :field, :message
|
32
32
|
|
33
33
|
def initialize(error)
|
@@ -41,7 +41,7 @@ module PhraseApp
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
class RateLimitingError
|
44
|
+
class RateLimitingError < StandardError
|
45
45
|
attr_reader :limit, :remaining, :reset
|
46
46
|
|
47
47
|
def initialize(resp)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phraseapp-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PhraseApp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: PhraseApp API client libary
|
14
14
|
email:
|