moiscot-coffee 0.0.5 → 0.0.6

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: 3d8a7c962cebad9db778d1fa36c255a63e0eb4d8
4
- data.tar.gz: 0d19af4c627a0354ae9664213b3d2dd3d0b283cb
3
+ metadata.gz: 73069daa940c37ca9bc09379faf5bfe716a210f2
4
+ data.tar.gz: 644210bf7c41dedf4df43d8a12c00bc03759ba56
5
5
  SHA512:
6
- metadata.gz: f3b678d1f80f88d7bf2ed1d5c43027014be510dedf60f032a027d585173191c655f3f741944624296219fc9ab33bd524275be73214b27af5683f91cd7f628632
7
- data.tar.gz: 3f66fb9c4a36deff50335a8868b57608049e8730fce3d64620b94fcc96a698fc0388aefeb7a17311cb4ae38415833a84b38daf97df7f9e22c60fb3be99ae9bd7
6
+ metadata.gz: 6baf0575574d3f12df4762595e8abaf2f209336222c823b199cac99aea28af7648ebb32a1589036aa0dd33b388b2566f363a630d638c166907190a5c6a3874f7
7
+ data.tar.gz: b5e09d3aca1f5c9609d36ce8d4afb5cff2b3d146914ddfeee462e1a3ed6d101f9bece8aa4b75250d9dd570446973d77be25a66e6c28bf915a6c8e8ffcd1d1c4c
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
3
  gem 'json'
4
+ gem 'timezone'
@@ -1,5 +1,6 @@
1
1
  require 'lita'
2
2
  require 'json'
3
+ require 'timezone'
3
4
 
4
5
  module Lita
5
6
  module Handlers
@@ -10,8 +11,11 @@ module Lita
10
11
  })
11
12
 
12
13
  def coffee(response)
14
+ # time zone
15
+ timezone = Timezone::Zone.new :zone => 'America/Managua'
16
+
13
17
  # get day from now
14
- time = Time.new
18
+ time = timezone.time(Time.now)
15
19
  day = time.strftime("%a")
16
20
 
17
21
  # read data json file
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'moiscot-coffee'
3
- spec.version = '0.0.5'
3
+ spec.version = '0.0.6'
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moiscot-coffee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo McNally
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2015-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita