hutzbot 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hutzbot/hutzbot.rb +4 -1
- data/lib/hutzbot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 280d4f588344bff8c40a21fb585bdc32464469933e695c463b6a6ba63205dc36
|
4
|
+
data.tar.gz: 59afc1cce6d8221ced5494ffddcda5f534afffa58daf2ee9d9cb12211cb343e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dab1bbb52466a0a6f78f6234255f82c8b0c76456e1f7a2ef78dd15c972704b875ff75cff5b7dd7ace8c06c1a1d09bc7800a4c49753d0a73732934610b8e7f71
|
7
|
+
data.tar.gz: c7899dae92fc1f4259bbf5e363b9c386876f41f51de7a8d0ea2d9521b2659c7f3ab5e981412feb8e7063abbc3fd8f861246e66fa7b93d0fb2a696572f0ea52a4
|
data/lib/hutzbot/hutzbot.rb
CHANGED
@@ -31,8 +31,10 @@ module Hutzbot
|
|
31
31
|
|
32
32
|
class Conversation
|
33
33
|
attr_accessor :id
|
34
|
+
attr_accessor :created_at
|
34
35
|
attr_accessor :current_state
|
35
36
|
attr_accessor :taxonomy
|
37
|
+
attr_accessor :daily_counter
|
36
38
|
attr_accessor :tagged_document
|
37
39
|
attr_accessor :user
|
38
40
|
attr_accessor :application
|
@@ -40,7 +42,8 @@ module Hutzbot
|
|
40
42
|
attr_accessor :valid_responses
|
41
43
|
|
42
44
|
def initialize attrs
|
43
|
-
@id, @current_state, @taxonomy, @tagged_document, @user, @application = *attrs.values_at('id', 'current_state', 'taxonomy', 'tagged_document', 'user', 'application')
|
45
|
+
@id, @current_state, @taxonomy, @tagged_document, @user, @application, @daily_counter = *attrs.values_at('id', 'current_state', 'taxonomy', 'tagged_document', 'user', 'application', 'daily_counter')
|
46
|
+
@created_at = Date.parse(attrs['created_at'])
|
44
47
|
@responses = attrs['responses'].map{ |r| Response.new(r) } if attrs['responses']
|
45
48
|
@valid_responses = attrs['valid_responses'].map{ |vr| ValidResponse.new(vr) } if attrs['valid_responses']
|
46
49
|
end
|
data/lib/hutzbot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hutzbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wise
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|