kanal-interfaces-pachka 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da3ea2ca5eb705a798c4f661e30128b9b7acfd219a81e2b59c7b16fd140c68b5
|
4
|
+
data.tar.gz: d9625a3ec90ddea49fe88a5c65e2d6eae44e4ae0671e8c070d752ece652154de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8506860e02a1077d7b5ac2d2805c2ced396df3d745e9f5b2ef9527366c017d5384e2443eed20b1c2f4f060ce291a067c14f09d8e588ebdf1394c865988cc1b0f
|
7
|
+
data.tar.gz: 2116b6b5469bd94488484ba220c891e732d6391b296a720bf675df221b780ecef0e1a8365b6987a800e254a075b6792e7f283ef13b3397f1aa904335785797a3
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
kanal-interfaces-pachka (0.1.
|
4
|
+
kanal-interfaces-pachka (0.1.1)
|
5
5
|
faraday (= 2.7.4)
|
6
6
|
faraday-multipart (= 1.0.4)
|
7
7
|
kanal (= 0.5.1)
|
@@ -33,6 +33,8 @@ GEM
|
|
33
33
|
multipart-post (2.3.0)
|
34
34
|
nokogiri (1.14.3-x86_64-darwin)
|
35
35
|
racc (~> 1.4)
|
36
|
+
nokogiri (1.14.3-x86_64-linux)
|
37
|
+
racc (~> 1.4)
|
36
38
|
parallel (1.22.1)
|
37
39
|
parser (3.2.2.0)
|
38
40
|
ast (~> 2.4.1)
|
@@ -97,6 +99,7 @@ GEM
|
|
97
99
|
|
98
100
|
PLATFORMS
|
99
101
|
x86_64-darwin-22
|
102
|
+
x86_64-linux
|
100
103
|
|
101
104
|
DEPENDENCIES
|
102
105
|
kanal-interfaces-pachka!
|
@@ -21,7 +21,7 @@ module Kanal
|
|
21
21
|
#
|
22
22
|
# Output parameters registered:
|
23
23
|
# output.pachka_text - you can specify it in the respond block for bot to reply with text
|
24
|
-
#
|
24
|
+
# output.pachka_file_path - you can specify it in the respond block for bot to reply with file
|
25
25
|
#
|
26
26
|
class PachkaInterface < Kanal::Core::Interfaces::Interface
|
27
27
|
include Kanal::Logger
|
@@ -53,11 +53,12 @@ module Kanal
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def consume_output(output)
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
unless output.pachka_file_path.nil?
|
57
|
+
@api.send_file(output.pachka_entity_id, output.pachka_file_path, output.pachka_text)
|
58
|
+
return
|
59
|
+
end
|
59
60
|
|
60
|
-
@api.
|
61
|
+
@api.send_text(output.pachka_entity_id, output.pachka_text) unless output.pachka_text.nil?
|
61
62
|
end
|
62
63
|
|
63
64
|
def start
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kanal-interfaces-pachka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- idchlife
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2023-04-15 00:00:00.000000000 Z
|
@@ -100,7 +100,6 @@ files:
|
|
100
100
|
- example/example.rb
|
101
101
|
- example/sample_file.zip
|
102
102
|
- example/sample_image.png
|
103
|
-
- kanal-interfaces-pachka.gemspec
|
104
103
|
- lib/kanal/interfaces/pachka.rb
|
105
104
|
- lib/kanal/interfaces/pachka/helpers/local_server.rb
|
106
105
|
- lib/kanal/interfaces/pachka/helpers/pachka_api.rb
|
@@ -116,7 +115,7 @@ metadata:
|
|
116
115
|
homepage_uri: https://github.com/idchlife/kanal-interfaces-pachka
|
117
116
|
source_code_uri: https://github.com/idchlife/kanal-interfaces-pachka
|
118
117
|
changelog_uri: https://github.com/idchlife/kanal-interfaces-pachka/blob/main/CHANGELOG.md
|
119
|
-
post_install_message:
|
118
|
+
post_install_message:
|
120
119
|
rdoc_options: []
|
121
120
|
require_paths:
|
122
121
|
- lib
|
@@ -132,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
131
|
version: '0'
|
133
132
|
requirements: []
|
134
133
|
rubygems_version: 3.1.6
|
135
|
-
signing_key:
|
134
|
+
signing_key:
|
136
135
|
specification_version: 4
|
137
136
|
summary: Kanal Interface to work with Pachka messenger
|
138
137
|
test_files: []
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "lib/kanal/interfaces/pachka/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "kanal-interfaces-pachka"
|
7
|
-
spec.version = Kanal::Interfaces::Pachka::VERSION
|
8
|
-
spec.authors = ["idchlife"]
|
9
|
-
spec.email = ["idchlife@gmail.com"]
|
10
|
-
|
11
|
-
spec.summary = "Kanal Interface to work with Pachka messenger"
|
12
|
-
spec.description = "Use this interface with your Kanal to create bot for Pachka messenger"
|
13
|
-
spec.homepage = "https://github.com/idchlife/kanal-interfaces-pachka"
|
14
|
-
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = ">= 2.7.6"
|
16
|
-
|
17
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
18
|
-
|
19
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
20
|
-
spec.metadata["source_code_uri"] = "https://github.com/idchlife/kanal-interfaces-pachka"
|
21
|
-
spec.metadata["changelog_uri"] = "https://github.com/idchlife/kanal-interfaces-pachka/blob/main/CHANGELOG.md"
|
22
|
-
|
23
|
-
# Specify which files should be added to the gem when it is released.
|
24
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
|
-
spec.files = Dir.chdir(__dir__) do
|
26
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
27
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
|
28
|
-
end
|
29
|
-
end
|
30
|
-
spec.bindir = "exe"
|
31
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
|
-
spec.require_paths = ["lib"]
|
33
|
-
|
34
|
-
# Uncomment to register a new dependency of your gem
|
35
|
-
spec.add_dependency "faraday", "2.7.4"
|
36
|
-
spec.add_dependency "faraday-multipart", "1.0.4"
|
37
|
-
spec.add_dependency "kanal", "0.5.1"
|
38
|
-
spec.add_dependency "mini_mime", "1.1.2"
|
39
|
-
spec.add_dependency "webrick", "1.8.1"
|
40
|
-
|
41
|
-
# For more information and examples about making a new gem, check out our
|
42
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
43
|
-
end
|