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 +4 -4
- data/Gemfile +0 -1
- data/lib/lita/handlers/moiscot-coffee.rb +2 -6
- data/moiscot-coffee.gemspec +1 -1
- data/spec/lita/handlers/coffee_spec.rb +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f77c0ebf9785304ad79e250571d064dc7284eef
|
4
|
+
data.tar.gz: a0d7944349e579e3a8bae07f7a4ab2b45bd0aebb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a1124a730bd625668e18dbf0439e92506ab79f4767640087ca4218c107f09f801cc82708a01d5b1e669b1df847db58a7fa3ad68ceed0443e7eef361d3a265c4
|
7
|
+
data.tar.gz: a032a80c30a1bcd8dd2237840ba5a34ee6840aff18fd919294009bbac430cc2cdf6a4811575cf75ca365b570443e34121c24cbade1be05237b81bf95ec4ae4a0
|
data/Gemfile
CHANGED
@@ -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
|
-
#
|
15
|
-
|
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
|
data/moiscot-coffee.gemspec
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2015-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|