crisp-api 1.1.5 → 1.1.8

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.
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.5"
5
+ s.version = "1.1.8"
6
6
  s.date = Date.today
7
7
  s.summary = "Crisp API Ruby"
8
8
  s.description = "Crisp API Ruby"
@@ -23,7 +23,7 @@ data = client.website.send_message_in_conversation(
23
23
 
24
24
  {
25
25
  "type" => "text",
26
- "content" => "This message was sent from python-crisp-api! :)",
26
+ "content" => "This message was sent from ruby-crisp-api! :)",
27
27
  "from" => "operator",
28
28
  "origin" => "chat"
29
29
  }
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.5",
94
+ :user_agent => "ruby-crisp-api/1.1.8",
95
95
  :accept => :json,
96
96
  :content_type => :json,
97
97
  "X-Crisp-Tier" => @tier,
@@ -272,6 +272,10 @@ module Crisp
272
272
  return @parent.put(self._url_people("data", website_id, people_id), data: data)
273
273
  end
274
274
 
275
+ def update_people_data(website_id, people_id, data)
276
+ return @parent.patch(self._url_people("data", website_id, people_id), data: data)
277
+ end
278
+
275
279
  def get_people_subscription_status(website_id, people_id)
276
280
  return @parent.get(self._url_people("subscription", website_id, people_id))
277
281
  end
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.5
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valerian Saliou
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-20 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -30,7 +30,9 @@ executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
+ - ".github/workflows/publish.yml"
33
34
  - ".gitignore"
35
+ - EXAMPLES.md
34
36
  - Gemfile
35
37
  - LICENSE
36
38
  - README.md
@@ -44,7 +46,7 @@ homepage: https://github.com/crisp-im/ruby-crisp-api
44
46
  licenses:
45
47
  - MIT
46
48
  metadata: {}
47
- post_install_message:
49
+ post_install_message:
48
50
  rdoc_options: []
49
51
  require_paths:
50
52
  - lib
@@ -59,8 +61,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
61
  - !ruby/object:Gem::Version
60
62
  version: '0'
61
63
  requirements: []
62
- rubygems_version: 3.0.3
63
- signing_key:
64
+ rubygems_version: 3.1.6
65
+ signing_key:
64
66
  specification_version: 4
65
67
  summary: Crisp API Ruby
66
68
  test_files: []