botspec 0.4.13 → 0.4.14

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
  SHA1:
3
- metadata.gz: 55dea6659ab068de91b35dffc19c82974d694ee0
4
- data.tar.gz: e79732f13e3ce4739a0fd37214a618fc2390c75a
3
+ metadata.gz: 1cc79ba873acc23b7b0aada6b8b9aefceacedd9f
4
+ data.tar.gz: 726f4ee90124ada38bebc8100170dac124d67d83
5
5
  SHA512:
6
- metadata.gz: d22179ec11906f755e7affc4fbc79735df187a9df3318cd351643074f6857d253a5dcbd80639e07465c1a13a350cffcf2bdbb8c883e2b84667e105d55f346e7f
7
- data.tar.gz: 1ff74d3b1de680fde02c2592e98970a5c2e3ba3740dc7e498b9966c752d8fdcc8ca1e25cbfee3208f2a14baf96f1027ff8da7cd8ad147e2cd5e320dcb2dd32fc
6
+ metadata.gz: 7e87e419cd6c8a15ab79920e0431b98c44c81cb0875ae9c2beda7f3072c0b29cf1a2db97b9407f903698a09a1dd75d568fc8aabdf2672c39da727e8677c1476c
7
+ data.tar.gz: d25883a7a2da19decca03a00fe3be2d731b2f200b54d8609db0779c078231395d7b5863c04b14e0d5ea31d00ea28baef4e71962f5c6a123f67b879ee88b121c7
data/Dockerfile CHANGED
@@ -17,7 +17,6 @@ RUN apk update && apk add --no-cache git make gcc libc-dev
17
17
  ENV SPEC_PATH=$SPEC_PATH
18
18
 
19
19
  RUN bundle install
20
- RUN bundle exec thor install lib/cli.thor --as botspec --force
21
20
 
22
- ENTRYPOINT ["/app/bot/botspec.sh"]
23
- CMD []
21
+ ENTRYPOINT ["sh"]
22
+
@@ -8,6 +8,10 @@ module BotSpec
8
8
  end
9
9
 
10
10
  def initialize(config)
11
+ if config[:stub_responses]
12
+ @lex_client = Aws::Lex::Client.new(stub_responses: true)
13
+ @lex_client.stub_responses(config[:stub_responses][:operation_to_stub], config[:stub_responses][:stub_data])
14
+ end
11
15
  @config = config
12
16
  @bot_name = config[:botname]
13
17
  @user_id = "botspec-#{SecureRandom.uuid}"
@@ -1,3 +1,3 @@
1
1
  module Botspec
2
- VERSION = "0.4.13"
2
+ VERSION = "0.4.14"
3
3
  end
data/lib/load_dialogs.rb CHANGED
@@ -4,7 +4,6 @@ require 'botspec/lex/lex_service.rb'
4
4
  require 'rspec'
5
5
 
6
6
  require "bundler/setup"
7
- require 'byebug'
8
7
 
9
8
  class LoadDialogs
10
9
 
@@ -61,7 +60,6 @@ class Dialog
61
60
  spec = ::RSpec.describe "#{@describe} #{@name}" do
62
61
 
63
62
  let(:resp) { @@lex_chat.post_message(interactions[0], 'user_id')}
64
-
65
63
  it interactions[0] do
66
64
  expect(resp[:message]).to match(interactions[1])
67
65
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: botspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.13
4
+ version: 0.4.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliott Murray
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-20 00:00:00.000000000 Z
11
+ date: 2019-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec