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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/error_bot.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9464203799a36240568665903c1ea43ef54c3dda9b5faeb26771b6d5e5b976b6
4
- data.tar.gz: 94e2928a8d487dcfa32aeacd66100efef723e7c480269450b6dd1a84d3b3a470
3
+ metadata.gz: 54b52af7fb7829cba3d4fab436f04f62b15a59204bd2b1e33935ae846315751a
4
+ data.tar.gz: 0d15c7ea2e04006dfc2f7988f14d28d972be6fefe79dd0196bb6be412c4c3026
5
5
  SHA512:
6
- metadata.gz: baf805f21ab92089789cc82eccba57d4a463f8361e21c9491753587ffee5360a61b46309b7ce5e2d39dacb554bcc6290d9e21d72ce0bf4fb08d03804b4124a20
7
- data.tar.gz: c05b6677a5289e69b8e5e974eb964e1886b498836843f37f7b677fd81567993fe7c115e7df2516edb681de2ab699a1980d01c74976ce6ea1770dda976ab4e355
6
+ metadata.gz: b45183eaedd82b7a92bd0b9f91275a7c79e729240a80a91386a7252f1954194b69c66d2f69e49a4fe88af910f9d33b35fde34dd53a0f9e869bf075be4b0fd62d
7
+ data.tar.gz: 8215336fe22ebc1ca973e4fa22a96c0c1a0aeb89409c672c20b991159461c122cae4fc6a3071cf17bcf7eb35e8bcff215c7e223dfcc34c11cd4c7e9ed50576b6
@@ -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
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: error_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jameslee