error_response 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/error_response.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89dfae134289bf7bbcc43d119e0e94bffca2022dcaa82aa32ae62dabf6d016b7
|
4
|
+
data.tar.gz: 8f3b6b890ba7191734fe1d2ae21102149ebb84ca4ee6102b1d608b21357b44ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06e1f7500a4f97c6448611eb6dea6ea52decf9703aa560805c79ce7d473a025cce114edd1110623d6c6e26669129ccd50513a23be2f638a4d179644838beeada
|
7
|
+
data.tar.gz: 0c9e59ed9a5421fb3fab7ac591df3cc1163ed9eca82dcdcbb395ebf2f101cf47834b5ab3b54b3841a8c27f4b76ee061c9a3c35252197068afea868c11ff56615
|
data/lib/error_response.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
require 'yaml'
|
2
|
+
require 'open-uri'
|
3
|
+
|
2
4
|
class ErrorResponse
|
3
5
|
YAML_PATH = 'config/error_response.yml'
|
4
6
|
|
@@ -26,6 +28,11 @@ class ErrorResponse
|
|
26
28
|
}
|
27
29
|
end
|
28
30
|
|
31
|
+
def self.load_remote(remote_file)
|
32
|
+
content = open(remote_file){|f| f.read}
|
33
|
+
@hash = YAML.load(content)
|
34
|
+
end
|
35
|
+
|
29
36
|
private
|
30
37
|
|
31
38
|
def self.yaml_hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: error_response
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kdan Mobile Software Developer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: use for error_response
|
14
14
|
email: dev@kdanmobile.com
|