moiscot-coffee 0.0.6 → 0.0.7

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: 73069daa940c37ca9bc09379faf5bfe716a210f2
4
- data.tar.gz: 644210bf7c41dedf4df43d8a12c00bc03759ba56
3
+ metadata.gz: 5f77c0ebf9785304ad79e250571d064dc7284eef
4
+ data.tar.gz: a0d7944349e579e3a8bae07f7a4ab2b45bd0aebb
5
5
  SHA512:
6
- metadata.gz: 6baf0575574d3f12df4762595e8abaf2f209336222c823b199cac99aea28af7648ebb32a1589036aa0dd33b388b2566f363a630d638c166907190a5c6a3874f7
7
- data.tar.gz: b5e09d3aca1f5c9609d36ce8d4afb5cff2b3d146914ddfeee462e1a3ed6d101f9bece8aa4b75250d9dd570446973d77be25a66e6c28bf915a6c8e8ffcd1d1c4c
6
+ metadata.gz: 4a1124a730bd625668e18dbf0439e92506ab79f4767640087ca4218c107f09f801cc82708a01d5b1e669b1df847db58a7fa3ad68ceed0443e7eef361d3a265c4
7
+ data.tar.gz: a032a80c30a1bcd8dd2237840ba5a34ee6840aff18fd919294009bbac430cc2cdf6a4811575cf75ca365b570443e34121c24cbade1be05237b81bf95ec4ae4a0
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
3
  gem 'json'
4
- gem 'timezone'
@@ -1,6 +1,5 @@
1
1
  require 'lita'
2
2
  require 'json'
3
- require 'timezone'
4
3
 
5
4
  module Lita
6
5
  module Handlers
@@ -11,11 +10,8 @@ module Lita
11
10
  })
12
11
 
13
12
  def coffee(response)
14
- # time zone
15
- timezone = Timezone::Zone.new :zone => 'America/Managua'
16
-
17
- # get day from now
18
- time = timezone.time(Time.now)
13
+ # get day from now\
14
+ time = Time.new
19
15
  day = time.strftime("%a")
20
16
 
21
17
  # 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.6'
3
+ spec.version = '0.0.7'
4
4
  spec.authors = 'Paulo McNally'
5
5
  spec.email = ['paulomcnally@gmail.com']
6
6
  spec.description = %q{Lita handler delivering coffee assignation}
@@ -1,13 +1,11 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Lita::Handlers::Coffee, lita_handler: true do
4
-
5
4
  describe "#test" do
6
5
  it "increases the term's score by one and says the new score" do
7
6
  send_command("coffee")
8
- expect(replies.last).to eq("Hoy le toca a José Guerrero")
7
+ expect(replies.last).to eq("Hoy le toca a Paulo McNally")
9
8
  puts replies.last
10
9
  end
11
10
  end
12
-
13
11
  end
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.6
4
+ version: 0.0.7
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-16 00:00:00.000000000 Z
11
+ date: 2015-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita