crisp-api 1.1.4 → 1.1.5

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
  SHA256:
3
- metadata.gz: 53c7728a4e3a7dfd54454fda7525cdaf6ba0b6fa51e722b7a9c9d5d289dd0236
4
- data.tar.gz: 8e35a4746ca4e8279b6cee485abd2a9a9411efae6a02358a7f5d6d17fd3905f0
3
+ metadata.gz: fe1293fc6504f10040ac4837f78ca211c437e823c6381a962d8f2fd7ffe16067
4
+ data.tar.gz: c97ef803d68d9c7d7f83c568cc81f9e90118baaff3f16c2e123636b5e14dfe2c
5
5
  SHA512:
6
- metadata.gz: 54a6816c31343e8edabf31b24653eaec00d97cefaea05863b9e30bec1a781452cdd90a9b4b57168f434fbdbfe2353d2a66f0a5951374d381bb079e5588af58ed
7
- data.tar.gz: 2b7b0ce22ce1f4eeb5471e800735f70926e50909260606644badca667c1d678bb288f297fe3b3ef393882b23e7d37f18f96666bb13f69edf1e3a850c9cfefcbb
6
+ metadata.gz: 9066fdcc6d9305de0607524f3eb720dd750ce5d517bd95e9eed49ce5101166c2af6aa336bc9d8e7785b1fd2e3e49a55a1402b4c44ac9f0b2777d538deb766c6a
7
+ data.tar.gz: f9c9ffeb9c607fff2e1888b744ee6df6a168f11f36c7ad3c489050b29c8d117df99aef8804bc9b61929543b033fcf2374450cb207d6bdff4ab83fb782314af13
data/README.md CHANGED
@@ -5,14 +5,14 @@ The Crisp API Ruby wrapper. Authenticate, send messages, fetch conversations, ac
5
5
  Copyright 2019 Crisp IM SARL. See LICENSE for copying information.
6
6
 
7
7
  * **📝 Implements**: [Crisp Platform - API ~ v1](https://docs.crisp.chat/api/v1/) at reference revision: 12/31/2017
8
- * **😘 Maintainer**: [@valeriansaliou](https://github.com/valeriansaliou)
8
+ * **😘 Maintainer**: [@valeriansaliou](https://github.com/valeriansaliou), [@eliottvincent](https://github.com/eliottvincent)
9
9
 
10
10
  ## Usage
11
11
 
12
12
  Add the library to your `Gemfile`:
13
13
 
14
14
  ```bash
15
- gem "crisp-api", "~> 1.1.4"
15
+ gem "crisp-api", "~> 1.1.5"
16
16
  ```
17
17
 
18
18
  Then, import it:
data/crisp-api.gemspec CHANGED
@@ -2,7 +2,7 @@ require File.expand_path("../lib/crisp-api", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "crisp-api"
5
- s.version = "1.1.4"
5
+ s.version = "1.1.5"
6
6
  s.date = Date.today
7
7
  s.summary = "Crisp API Ruby"
8
8
  s.description = "Crisp API Ruby"
data/lib/crisp-api.rb CHANGED
@@ -91,7 +91,7 @@ module Crisp
91
91
  :payload => (data ? data.to_json : nil),
92
92
 
93
93
  :headers => {
94
- :user_agent => "ruby-crisp-api/1.1.4",
94
+ :user_agent => "ruby-crisp-api/1.1.5",
95
95
  :accept => :json,
96
96
  :content_type => :json,
97
97
  "X-Crisp-Tier" => @tier,
@@ -124,8 +124,8 @@ module Crisp
124
124
  return self.search_conversations(website_id, page_number)
125
125
  end
126
126
 
127
- def create_new_conversation(website_id, data)
128
- return @parent.post(self._url_website(website_id, "/conversation"), data: data)
127
+ def create_new_conversation(website_id)
128
+ return @parent.post(self._url_website(website_id, "/conversation"))
129
129
  end
130
130
 
131
131
  def check_conversation_exists(website_id, session_id)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crisp-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valerian Saliou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-28 00:00:00.000000000 Z
11
+ date: 2021-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client