bobot 3.7.6 → 3.7.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1467d4fd44a082555e17397b3d1fc46df9aa74cba99dd6321306c673a02019a1
4
- data.tar.gz: bc68ea22e8a24379c066f75664690ad9d192392e7ca541a329175743ba94c279
3
+ metadata.gz: 1a5f4aa43b9ba1d17f37bbee3092e686671bd4c924b678a8c6f99707abd4884d
4
+ data.tar.gz: 35b7ccdf752a5cd5b735e9b976abae6aefe851a00d0ccb1290224fc86d4bb558
5
5
  SHA512:
6
- metadata.gz: 647b500a1c999af3bda25c1df077b6f6556ed0a6b28202551eb73052c5facef1d718423194f1ddd17ee9f308f52b763505d74f520b867614d841214ad2221e91
7
- data.tar.gz: ba78252574a28bb087bac879c424a7fb93959f5c1d70c5645073cc00bc9c8ba28c992fa908d6ff7597eef3b39eafc7fd277a5b29675388582d7757bead4575b4
6
+ metadata.gz: 3417c5e19a7cb5b8c796deeaa0d449adbe51b62e453cd609c1bbaf7c09a05a44a5f8152a55d3c5d46e22cdf13c15e464ac31a220920d5c18f73ed4506c69854f
7
+ data.tar.gz: 22d46f07f5d919030c9b2dd5c6a9f93929113a7399cd80061efb093539100c2acafd3c6a8f01a529bb965586b0a7e31464e5ee4840af8219ee1cb6582f193821
@@ -56,7 +56,7 @@ module Bobot
56
56
  end
57
57
 
58
58
  def signature_for(string)
59
- format('sha1=%s'.freeze, generate_hmac(string))
59
+ format('sha1=%<sha1>s'.freeze, sha1: generate_hmac(string))
60
60
  end
61
61
 
62
62
  def signature
@@ -2,7 +2,7 @@ module Bobot
2
2
  class Version
3
3
  MAJOR = 3
4
4
  MINOR = 7
5
- PATCH = 6
5
+ PATCH = 8
6
6
  PRE = nil
7
7
 
8
8
  class << self
@@ -1,13 +1,13 @@
1
1
  require 'pathname'
2
2
  require 'rails/generators'
3
- require File.expand_path('../utils', __FILE__)
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('../templates', __FILE__)
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('../utils', __FILE__)
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('../templates', __FILE__)
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: 'MESSAGE',
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: 'MESSAGE',
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: 'MESSAGE',
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: 'MESSAGE',
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: 'MESSAGE',
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: 'MESSAGE',
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: 'MESSAGE',
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: 'MESSAGE',
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: 'MESSAGE',
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: 'MESSAGE',
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: 'MESSAGE',
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: 'MESSAGE',
314
+ messaging_type: 'RESPONSE',
315
315
  },
316
316
  to: payload['recipient']['id'],
317
317
  )
@@ -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('../dummy/config/environment', __FILE__)
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bobot
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.6
4
+ version: 3.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Navid EMAD