rbender 0.3.0 → 0.4.92

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.
@@ -0,0 +1,3 @@
1
+ # Put your gems used in bot here
2
+
3
+ #gem 'rbender'
@@ -0,0 +1,9 @@
1
+ ---
2
+ title: SampleName
3
+ mongo: mongodb://localhost:27017
4
+ development:
5
+ token: insert your token here
6
+ log_error: true
7
+ log_user: false
8
+ production:
9
+ token: insert your token here
@@ -0,0 +1,3 @@
1
+ en:
2
+ title: "Sample title"
3
+ bot_description: "Sample description"
@@ -0,0 +1,61 @@
1
+ require 'rbender'
2
+
3
+ state :start do
4
+ before do
5
+ # - - - - - -
6
+ # Before hook
7
+ # - - - - - -
8
+ end
9
+
10
+
11
+ keyboard do
12
+ set_response("Sample response") #response are required
13
+ button :btn_1, "Btn1" do
14
+ # do something
15
+ end
16
+
17
+ button :btn_2, "Btn2" do
18
+ # do something
19
+ end
20
+
21
+ add_line :btn_1, :btn_2
22
+ # - - - - - - -
23
+ # Init keyboard
24
+ # - - - - - - -
25
+ end
26
+
27
+
28
+ keyboard_inline :kb_inline do
29
+ # - - - - - -
30
+ # Init inline keyboard
31
+ # - - - - - -
32
+ end
33
+
34
+ after do
35
+ # - - - - - -
36
+ # After hook
37
+ # - - - - - -
38
+ end
39
+
40
+ text do |text|
41
+ # - - - - - - - - - - - -
42
+ # Process user's message
43
+ # - - - - - - - - - - - -
44
+ end
45
+ end
46
+
47
+ global do
48
+ command '/command' do
49
+ # command without params
50
+ end
51
+
52
+ command '/command2' do |params|
53
+ # command with params
54
+ end
55
+
56
+ helpers do
57
+ # - - - - - - - - - - -
58
+ # Define global helpers
59
+ # - - - - - - - - - - -
60
+ end
61
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.92
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arthur
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-05-18 00:00:00.000000000 Z
12
+ date: 2017-06-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Gem provides domain specific language for messengers bot creation.
15
15
  email: art2rik.desperado@gmail.com
@@ -21,11 +21,17 @@ files:
21
21
  - bin/rbender
22
22
  - lib/rbender.rb
23
23
  - lib/rbender/base.rb
24
+ - lib/rbender/config_handler.rb
24
25
  - lib/rbender/keyboard.rb
25
26
  - lib/rbender/keyboard_inline.rb
27
+ - lib/rbender/methods.rb
26
28
  - lib/rbender/mongo_client.rb
27
29
  - lib/rbender/sessionmanager.rb
28
30
  - lib/rbender/state.rb
31
+ - templates/Gemfile
32
+ - templates/config.yaml
33
+ - templates/locales/en.yaml
34
+ - templates/sample.rb
29
35
  homepage: https://github.com/art2rik/RBender
30
36
  licenses: []
31
37
  metadata: {}