qismo 0.17.5 → 0.17.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -0
- data/lib/qismo/version.rb +1 -1
- data/lib/tasks/vscode-snippet.rake +12 -0
- data/vscode-snippet/qismo.code-snippets +35 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 331d89d712f3c4690bf10beeaa06f205d9c0247a17ff20d117af7268f2e51050
|
4
|
+
data.tar.gz: 3e6ecee81e00a6b41e1e6444bd963b21a31447e02b896fe5b3724f4cac0d48f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27e4673e0031fd434534750eaa4df4f4b3624b5e14df7e44fead5f45b907fa5403cad78c195c2c73b5d693422522d3cc0a180c97c8e4b1e89532a2a58761aa9a
|
7
|
+
data.tar.gz: 5f92c7dadace05329d0f05f1fb7e0f3da055c1abd45a684e95e433f70a3d4e6d45cc3219a3e67af459ed3e48363aba997b13b38710d9416ee03b3d416b26e369
|
data/Rakefile
CHANGED
data/lib/qismo/version.rb
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
require "fileutils"
|
2
|
+
|
3
|
+
desc "Generate Vscode snippets of this gem"
|
4
|
+
namespace :qismo do
|
5
|
+
task :generate_vscode_snippets do
|
6
|
+
code_snippet_file = File.join(File.dirname(__FILE__), "..", "..", "vscode-snippet", "qismo.code-snippets")
|
7
|
+
destination_folder = File.join(File.dirname(__FILE__), "..", "..", ".vscode")
|
8
|
+
|
9
|
+
FileUtils.mkdir(destination_folder) unless Dir.exist?(destination_folder)
|
10
|
+
FileUtils.cp(code_snippet_file, destination_folder)
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
{
|
2
|
+
"Initiate Qismo client": {
|
3
|
+
"prefix": "Qismo",
|
4
|
+
"body": [
|
5
|
+
"client = Qismo::Client.new(",
|
6
|
+
" app_id: \"${1:app_id}\",",
|
7
|
+
" secret_key: \"${2:secret_key}\",",
|
8
|
+
" url: \"https://qismo.qiscus.com\",",
|
9
|
+
" logger: Logger.new($stdout),",
|
10
|
+
" timeout: {connect: 5, write: 2, read: 10},",
|
11
|
+
" proxy: [\"proxy-hostname.local\", 8080, \"username\", \"password\"]",
|
12
|
+
")"
|
13
|
+
],
|
14
|
+
"description": "Initiate Qismo client"
|
15
|
+
},
|
16
|
+
"List rooms": {
|
17
|
+
"prefix": "client.rooms",
|
18
|
+
"body": [
|
19
|
+
"rooms = client.rooms(",
|
20
|
+
" channels: [{ source: \"wa\", channel_id: 716171 }],",
|
21
|
+
" status: \"unresolved\",",
|
22
|
+
" serve_status: \"served\",",
|
23
|
+
" is_handled_by_bot: false,",
|
24
|
+
" name: \"Qiscus\",",
|
25
|
+
" limit: 50,",
|
26
|
+
" tag_ids: [1,2,3],",
|
27
|
+
" user_ids: [5,6,7],",
|
28
|
+
" order: \"desc\",",
|
29
|
+
" cursor_before: \"\",",
|
30
|
+
" cursor_after: \"\"",
|
31
|
+
")"
|
32
|
+
],
|
33
|
+
"description": "List rooms"
|
34
|
+
}
|
35
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qismo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Qiscus Integration
|
@@ -112,7 +112,9 @@ files:
|
|
112
112
|
- lib/qismo/webhook_requests/on_message_for_bot_sent.rb
|
113
113
|
- lib/qismo/webhook_requests/on_new_session_initiated.rb
|
114
114
|
- lib/qismo/webhook_requests/on_room_resolved.rb
|
115
|
+
- lib/tasks/vscode-snippet.rake
|
115
116
|
- qismo.gemspec
|
117
|
+
- vscode-snippet/qismo.code-snippets
|
116
118
|
homepage: https://bitbucket.org/qiscus/qismo-rb
|
117
119
|
licenses:
|
118
120
|
- MIT
|