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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 387f549a5a7791dc0c36043b0e031767429e65dfd8cab179e6a9376acada2c62
4
- data.tar.gz: 92ee18a231db835a294ad59dbd35162f0a84fc22e74277f461fbe5417e724717
3
+ metadata.gz: 331d89d712f3c4690bf10beeaa06f205d9c0247a17ff20d117af7268f2e51050
4
+ data.tar.gz: 3e6ecee81e00a6b41e1e6444bd963b21a31447e02b896fe5b3724f4cac0d48f6
5
5
  SHA512:
6
- metadata.gz: 25a7554d219955a4436575cf61663966a9ed41b7954cf16a9511bb5e30967353ef91e1b26d61b266e86a863dab4dddde16cf3ec15b94d7983a2f6a4f105b72c3
7
- data.tar.gz: eed71f20bb062736113ddae6a14c29925e8a850a46e5a2a9c98b4978a8a58b75d7398eea5febb7134be4d00bb82a8e21d24452f5778d57c24f5e18d58b874614
6
+ metadata.gz: 27e4673e0031fd434534750eaa4df4f4b3624b5e14df7e44fead5f45b907fa5403cad78c195c2c73b5d693422522d3cc0a180c97c8e4b1e89532a2a58761aa9a
7
+ data.tar.gz: 5f92c7dadace05329d0f05f1fb7e0f3da055c1abd45a684e95e433f70a3d4e6d45cc3219a3e67af459ed3e48363aba997b13b38710d9416ee03b3d416b26e369
data/Rakefile CHANGED
@@ -10,3 +10,5 @@ require "rubocop/rake_task"
10
10
  RuboCop::RakeTask.new
11
11
 
12
12
  task default: %i[spec rubocop]
13
+
14
+ import "./lib/tasks/vscode-snippet.rake"
data/lib/qismo/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Qismo
4
4
  # @return [String]
5
- VERSION = "0.17.5"
5
+ VERSION = "0.17.7"
6
6
  end
@@ -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.5
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