moiscot-coffee 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f58442a6495a761f2b7993e51fa2204fbe7f74d4
4
- data.tar.gz: 6713411422dc0c8eb0125350f058da976be51538
3
+ metadata.gz: 3d8a7c962cebad9db778d1fa36c255a63e0eb4d8
4
+ data.tar.gz: 0d19af4c627a0354ae9664213b3d2dd3d0b283cb
5
5
  SHA512:
6
- metadata.gz: 399fdd770d89885f50c8bfefed760332d11f64cedafc59dfe9af3296b6fbceae8d73156c747ff80a212ad49c21782b6d450c4ff057a50b598cb9fed461bf36ed
7
- data.tar.gz: e6f436e21116213a26664be214a9096d27d47fa284617da1c9839dd92401df97a51f0797175219e737c68eb22e5881b30e46f4ee3299c4e7929097a543390671
6
+ metadata.gz: f3b678d1f80f88d7bf2ed1d5c43027014be510dedf60f032a027d585173191c655f3f741944624296219fc9ab33bd524275be73214b27af5683f91cd7f628632
7
+ data.tar.gz: 3f66fb9c4a36deff50335a8868b57608049e8730fce3d64620b94fcc96a698fc0388aefeb7a17311cb4ae38415833a84b38daf97df7f9e22c60fb3be99ae9bd7
@@ -15,7 +15,10 @@ module Lita
15
15
  day = time.strftime("%a")
16
16
 
17
17
  # read data json file
18
- file = File.read('lib/lita/handlers/data.json')
18
+ spec = Gem::Specification.find_by_name("moiscot-coffee")
19
+ gem_root = spec.gem_dir
20
+ path = gem_root + '/lib/lita/handlers/data.json'
21
+ file = File.read(path)
19
22
  data_hash = JSON.parse(file)
20
23
 
21
24
  # compare day with data
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'moiscot-coffee'
3
- spec.version = '0.0.4'
3
+ spec.version = '0.0.5'
4
4
  spec.authors = 'Paulo McNally'
5
5
  spec.email = ['paulomcnally@gmail.com']
6
6
  spec.description = %q{Lita handler delivering coffee assignation}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moiscot-coffee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo McNally