hutzbot 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2041220becd680d7be9abe4f656037f3c680e483fd6479dd687b460089219f6e
4
- data.tar.gz: 7213aae4ff4b82d3c1a2b2188c272928e621f67addefa4ba9c48195c3a063e95
3
+ metadata.gz: e7e32ac3cb651a6954d11601c55dfc45534c353d515965b5439b91adb06307dc
4
+ data.tar.gz: 285769f8a0f1d7839a352bfa5b2081b370ee4f69c3c1754740f7342b95eb61a5
5
5
  SHA512:
6
- metadata.gz: 745b62c428bd5070d7d881304c56334b5d6dc5d8a3539573ed87b356cfdd4a0284dcd9fece28677d9dbef82ec1e0f49d39e9e7375d157dd20601658f094eca54
7
- data.tar.gz: 15dc53c6db2b0a0c795dc58530de3bbfaa1ae5c3a3fee67f15dba2f3314227c004b0f20865ab073bf40d6c0bd1add5c2ba5b91123852a3cff8d23afda600556b
6
+ metadata.gz: 81294683367c96e4a71a9c41c633aac30869f15f855e13a181a564f2eaefefc298ee90bc48e31958eb45b0af045ff8f22f100ec56c8e5b96adfafe47037f8f6f
7
+ data.tar.gz: 86580da0ed02d5191ca4504760361dbd80b644285d6a28f2a3678a0cf43279ecf49c243a619c472471972dcf43a70200d12b2b2389624428f8167c5c8c6b54eb
@@ -70,11 +70,12 @@ module Hutzbot
70
70
 
71
71
 
72
72
  class Hutzbot
73
- def initialize logger, host, user, key
73
+ def initialize logger, host, user, key, application
74
74
  @logger = logger
75
75
  @host = host
76
76
  @user = user
77
77
  @key = key
78
+ @application = application
78
79
  @options = { headers: { 'X-User-Email' => @user, 'X-User-Token' => @key, 'Accept' => 'application/json' } }
79
80
  end
80
81
 
@@ -127,7 +128,7 @@ module Hutzbot
127
128
  end
128
129
 
129
130
  def create_conversation params
130
- response = HTTParty.post("#{@host}/conversations", @options.merge({ query: { conversation: params.merge({ application: :email }) } }))
131
+ response = HTTParty.post("#{@host}/conversations", @options.merge({ query: { conversation: params.merge({ application: @application }) } }))
131
132
  check_errors response
132
133
  Conversation.new(JSON.parse(response.body))
133
134
  end
@@ -1,3 +1,3 @@
1
1
  module Hutzbot
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hutzbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wise