error_bot 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/error_bot.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54b52af7fb7829cba3d4fab436f04f62b15a59204bd2b1e33935ae846315751a
|
4
|
+
data.tar.gz: 0d15c7ea2e04006dfc2f7988f14d28d972be6fefe79dd0196bb6be412c4c3026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b45183eaedd82b7a92bd0b9f91275a7c79e729240a80a91386a7252f1954194b69c66d2f69e49a4fe88af910f9d33b35fde34dd53a0f9e869bf075be4b0fd62d
|
7
|
+
data.tar.gz: 8215336fe22ebc1ca973e4fa22a96c0c1a0aeb89409c672c20b991159461c122cae4fc6a3071cf17bcf7eb35e8bcff215c7e223dfcc34c11cd4c7e9ed50576b6
|
data/lib/error_bot.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
class ErrorBot
|
3
|
+
GEM_ROOT = File.expand_path("../..", __FILE__)
|
3
4
|
YAML_PATH = "./lib/error_code.yml"
|
4
5
|
|
5
6
|
def self.to_api(key, message=nil)
|
@@ -14,6 +15,7 @@ class ErrorBot
|
|
14
15
|
|
15
16
|
private
|
16
17
|
def self.yaml_hash
|
17
|
-
@hash ||= YAML.load_file(YAML_PATH)
|
18
|
+
@hash ||= YAML.load_file(File.join(GEM_ROOT, YAML_PATH))
|
18
19
|
end
|
19
20
|
end
|
21
|
+
|