crisp-api 1.1.7 → 1.1.9

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: 67123868f362fec018c3fa0fdd7b7aac68d89c3c2f564ca8567166e28c43046b
4
- data.tar.gz: 88fda25dbedf1f0e7af45e63e61cf3395164f978a54dbbc3866594e8b6073f60
3
+ metadata.gz: 59db2e5908afa5ae5c95b38d016832ff57c2e789487a87f32e7ef8c322f993e3
4
+ data.tar.gz: cdf9d1ed5d893af3ff760832acfe7c27d4194fd3847956e3fd68477803cc826b
5
5
  SHA512:
6
- metadata.gz: f6dae8693f940577f1d2af31425298bacf0bd18d38e70d8cf85ccfd204b713cfab3be253b0e8d886061d6ce55d530724ba6f5142bcbafac401599304f7750068
7
- data.tar.gz: be85d3d8b15ecee2d6cc624781fe9c1ac1c627b757a4e0dc7a9b8757367c8e87d0093b09e717bff11e35959104944acfac448e6b8db2bb2566f9416baf86ae2f
6
+ metadata.gz: 3d4a16274e8d5786ffbe46fd0f6ee51094b43cd2f0eb626a303acc51eaaee4f4d3531b75f8f9403d5bf28962289cfe586a13bb68c2937acf49cdbd98e13726c5
7
+ data.tar.gz: cfb799018b89104237bbc5b4d04311bc69065563b4d1f72591e32659063b74da3516ba4c2c8a25490b95691a3bda8a78e7ba13919651f8a1edc8aa81559519ff
@@ -0,0 +1,37 @@
1
+ on:
2
+ push:
3
+ tags:
4
+ - "v*.*.*"
5
+
6
+ name: Build and Release
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ id: checkout
14
+ uses: actions/checkout@v3
15
+
16
+ - name: Install Ruby
17
+ id: install_ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: "2.7"
21
+
22
+ - name: Install dependencies
23
+ id: install_dependencies
24
+ run: |
25
+ bundle install
26
+
27
+ - name: Build
28
+ id: build
29
+ run: |
30
+ gem build crisp-api.gemspec
31
+
32
+ - name: Publish
33
+ id: publish
34
+ run: |
35
+ gem push crisp-api-*.gem
36
+ env:
37
+ GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018 Crisp IM SARL
1
+ Copyright (c) 2018 Crisp IM SAS
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person
4
4
  obtaining a copy of this software and associated documentation
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
- # ruby-crisp-api
1
+ # Crisp API Wrapper
2
+
3
+ [![Build and Release](https://github.com/crisp-im/ruby-crisp-api/workflows/Build%20and%20Release/badge.svg)](https://github.com/crisp-im/ruby-crisp-api/actions?query=workflow%3A%22Build+and+Release%22) [![NPM](https://img.shields.io/gem/v/crisp-api.svg)](https://rubygems.org/gems/crisp-api) [![Downloads](https://img.shields.io/gem/dt/crisp-api.svg)](https://rubygems.org/gems/crisp-api)
2
4
 
3
5
  The Crisp API Ruby wrapper. Authenticate, send messages, fetch conversations, access your agent accounts from your Ruby code.
4
6
 
5
- Copyright 2019 Crisp IM SARL. See LICENSE for copying information.
7
+ Copyright 2023 Crisp IM SAS. See LICENSE for copying information.
6
8
 
7
9
  * **📝 Implements**: [REST API Reference (V1)](https://docs.crisp.chat/references/rest-api/v1/) at revision: 12/31/2017
8
10
  * **😘 Maintainer**: [@valeriansaliou](https://github.com/valeriansaliou), [@eliottvincent](https://github.com/eliottvincent)
@@ -14,7 +16,7 @@ You may follow the [REST API Quickstart](https://docs.crisp.chat/guides/rest-api
14
16
  Add the library to your `Gemfile`:
15
17
 
16
18
  ```bash
17
- gem "crisp-api", "~> 1.1.7"
19
+ gem "crisp-api", "~> 1.1.9"
18
20
  ```
19
21
 
20
22
  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.7"
5
+ s.version = "1.1.9"
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.7",
94
+ :user_agent => "ruby-crisp-api/1.1.9",
95
95
  :accept => :json,
96
96
  :content_type => :json,
97
97
  "X-Crisp-Tier" => @tier,
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.7
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valerian Saliou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-01 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,6 +30,7 @@ executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
+ - ".github/workflows/build.yml"
33
34
  - ".gitignore"
34
35
  - EXAMPLES.md
35
36
  - Gemfile
@@ -60,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
61
  - !ruby/object:Gem::Version
61
62
  version: '0'
62
63
  requirements: []
63
- rubygems_version: 3.0.3.1
64
+ rubygems_version: 3.1.6
64
65
  signing_key:
65
66
  specification_version: 4
66
67
  summary: Crisp API Ruby