bobot 3.7.6 → 3.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/bobot/webhook_controller.rb +1 -1
- data/lib/bobot/version.rb +1 -1
- data/lib/generators/bobot/install_generator.rb +2 -2
- data/lib/generators/bobot/uninstall_generator.rb +2 -2
- data/spec/bobot/event/common_spec.rb +12 -12
- data/spec/rails_helper.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a5f4aa43b9ba1d17f37bbee3092e686671bd4c924b678a8c6f99707abd4884d
|
4
|
+
data.tar.gz: 35b7ccdf752a5cd5b735e9b976abae6aefe851a00d0ccb1290224fc86d4bb558
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3417c5e19a7cb5b8c796deeaa0d449adbe51b62e453cd609c1bbaf7c09a05a44a5f8152a55d3c5d46e22cdf13c15e464ac31a220920d5c18f73ed4506c69854f
|
7
|
+
data.tar.gz: 22d46f07f5d919030c9b2dd5c6a9f93929113a7399cd80061efb093539100c2acafd3c6a8f01a529bb965586b0a7e31464e5ee4840af8219ee1cb6582f193821
|
data/lib/bobot/version.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
require 'pathname'
|
2
2
|
require 'rails/generators'
|
3
|
-
require File.expand_path('
|
3
|
+
require File.expand_path('utils', __dir__)
|
4
4
|
|
5
5
|
module Bobot
|
6
6
|
class InstallGenerator < Rails::Generators::Base
|
7
7
|
include Rails::Generators::Migration
|
8
8
|
include Generators::Utils::InstanceMethods
|
9
9
|
extend Generators::Utils::ClassMethods
|
10
|
-
source_root File.expand_path('
|
10
|
+
source_root File.expand_path('templates', __dir__)
|
11
11
|
|
12
12
|
argument :_namespace, type: :string, required: false, desc: 'Bot url namespace'
|
13
13
|
desc 'Bobot install'
|
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'rails/generators'
|
2
|
-
require File.expand_path('
|
2
|
+
require File.expand_path('utils', __dir__)
|
3
3
|
|
4
4
|
module Bobot
|
5
5
|
class UninstallGenerator < Rails::Generators::Base
|
6
6
|
include Rails::Generators::Migration
|
7
7
|
include Generators::Utils::InstanceMethods
|
8
8
|
extend Generators::Utils::ClassMethods
|
9
|
-
source_root File.expand_path('
|
9
|
+
source_root File.expand_path('templates', __dir__)
|
10
10
|
|
11
11
|
desc 'Bobot uninstall'
|
12
12
|
|
@@ -78,7 +78,7 @@ RSpec.describe Bobot::Dummy do
|
|
78
78
|
expect(subject.page).to receive(:deliver).with(
|
79
79
|
payload_template: {
|
80
80
|
sender_action: 'typing_on',
|
81
|
-
messaging_type: '
|
81
|
+
messaging_type: 'RESPONSE',
|
82
82
|
},
|
83
83
|
to: payload['recipient']['id'],
|
84
84
|
)
|
@@ -88,7 +88,7 @@ RSpec.describe Bobot::Dummy do
|
|
88
88
|
expect(subject.page).to receive(:deliver).with(
|
89
89
|
payload_template: {
|
90
90
|
sender_action: 'typing_off',
|
91
|
-
messaging_type: '
|
91
|
+
messaging_type: 'RESPONSE',
|
92
92
|
},
|
93
93
|
to: payload['recipient']['id'],
|
94
94
|
)
|
@@ -101,7 +101,7 @@ RSpec.describe Bobot::Dummy do
|
|
101
101
|
expect(subject.page).to receive(:deliver).with(
|
102
102
|
payload_template: {
|
103
103
|
sender_action: 'mark_seen',
|
104
|
-
messaging_type: '
|
104
|
+
messaging_type: 'RESPONSE',
|
105
105
|
},
|
106
106
|
to: payload['recipient']['id'],
|
107
107
|
)
|
@@ -116,7 +116,7 @@ RSpec.describe Bobot::Dummy do
|
|
116
116
|
message: {
|
117
117
|
text: 'Hello, human'
|
118
118
|
},
|
119
|
-
messaging_type: '
|
119
|
+
messaging_type: 'RESPONSE',
|
120
120
|
},
|
121
121
|
to: payload['recipient']['id'],
|
122
122
|
)
|
@@ -139,7 +139,7 @@ RSpec.describe Bobot::Dummy do
|
|
139
139
|
},
|
140
140
|
},
|
141
141
|
},
|
142
|
-
messaging_type: '
|
142
|
+
messaging_type: 'RESPONSE',
|
143
143
|
},
|
144
144
|
to: payload['recipient']['id'],
|
145
145
|
)
|
@@ -160,7 +160,7 @@ RSpec.describe Bobot::Dummy do
|
|
160
160
|
},
|
161
161
|
},
|
162
162
|
},
|
163
|
-
messaging_type: '
|
163
|
+
messaging_type: 'RESPONSE',
|
164
164
|
},
|
165
165
|
to: payload['recipient']['id'],
|
166
166
|
)
|
@@ -180,7 +180,7 @@ RSpec.describe Bobot::Dummy do
|
|
180
180
|
},
|
181
181
|
},
|
182
182
|
},
|
183
|
-
messaging_type: '
|
183
|
+
messaging_type: 'RESPONSE',
|
184
184
|
},
|
185
185
|
to: payload['recipient']['id'],
|
186
186
|
)
|
@@ -200,7 +200,7 @@ RSpec.describe Bobot::Dummy do
|
|
200
200
|
},
|
201
201
|
},
|
202
202
|
},
|
203
|
-
messaging_type: '
|
203
|
+
messaging_type: 'RESPONSE',
|
204
204
|
},
|
205
205
|
to: payload['recipient']['id'],
|
206
206
|
)
|
@@ -220,7 +220,7 @@ RSpec.describe Bobot::Dummy do
|
|
220
220
|
},
|
221
221
|
},
|
222
222
|
},
|
223
|
-
messaging_type: '
|
223
|
+
messaging_type: 'RESPONSE',
|
224
224
|
},
|
225
225
|
to: payload['recipient']['id'],
|
226
226
|
)
|
@@ -248,7 +248,7 @@ RSpec.describe Bobot::Dummy do
|
|
248
248
|
}
|
249
249
|
]
|
250
250
|
},
|
251
|
-
messaging_type: '
|
251
|
+
messaging_type: 'RESPONSE',
|
252
252
|
},
|
253
253
|
to: payload['recipient']['id'],
|
254
254
|
)
|
@@ -281,7 +281,7 @@ RSpec.describe Bobot::Dummy do
|
|
281
281
|
}
|
282
282
|
]
|
283
283
|
},
|
284
|
-
messaging_type: '
|
284
|
+
messaging_type: 'RESPONSE',
|
285
285
|
},
|
286
286
|
to: payload['recipient']['id'],
|
287
287
|
)
|
@@ -311,7 +311,7 @@ RSpec.describe Bobot::Dummy do
|
|
311
311
|
}
|
312
312
|
}
|
313
313
|
},
|
314
|
-
messaging_type: '
|
314
|
+
messaging_type: 'RESPONSE',
|
315
315
|
},
|
316
316
|
to: payload['recipient']['id'],
|
317
317
|
)
|
data/spec/rails_helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
2
|
require 'spec_helper'
|
3
3
|
ENV['RAILS_ENV'] ||= 'test'
|
4
|
-
require File.expand_path('
|
4
|
+
require File.expand_path('dummy/config/environment', __dir__)
|
5
5
|
# Prevent database truncation if the environment is production
|
6
6
|
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
7
7
|
require 'rspec/rails'
|