From ab2264b28ef5ca424e536da99880c0c8046d50f5 Mon Sep 17 00:00:00 2001 From: Samuel J Clopton Date: Wed, 22 May 2019 15:37:39 -0700 Subject: [PATCH] Add the ability to do debugging in tests and regen logon casset with valid response --- Gemfile | 5 +++++ Gemfile.lock | 7 +++++++ syspro-ruby.gemspec | 4 ++-- test/cassettes/test_logon.yml | 8 ++++---- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index b1ce43f..e58a0b7 100644 --- a/Gemfile +++ b/Gemfile @@ -5,3 +5,8 @@ source 'https://rubygems.org' git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } gemspec + +group :test do + gem 'pry-byebug' + gem 'rb-readline' +end diff --git a/Gemfile.lock b/Gemfile.lock index a9219cc..a04fd46 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,6 +11,7 @@ GEM addressable (2.5.2) public_suffix (>= 2.0.2, < 4.0) ast (2.4.0) + byebug (11.0.1) coderay (1.1.2) crack (0.4.3) safe_yaml (~> 1.0.0) @@ -36,9 +37,13 @@ GEM pry (0.11.3) coderay (~> 1.1.0) method_source (~> 0.9.0) + pry-byebug (3.7.0) + byebug (~> 11.0) + pry (~> 0.10) public_suffix (3.0.2) rainbow (3.0.0) rake (10.5.0) + rb-readline (0.5.5) rubocop (0.54.0) parallel (~> 1.10) parser (>= 2.5) @@ -63,7 +68,9 @@ DEPENDENCIES minitest (~> 5.0) minitest-vcr (~> 1.4.0) pry (~> 0.11) + pry-byebug rake (~> 10.0) + rb-readline rubocop (~> 0.54.0) syspro-ruby! webmock (~> 3.3.0) diff --git a/syspro-ruby.gemspec b/syspro-ruby.gemspec index a7a06d2..7a23000 100644 --- a/syspro-ruby.gemspec +++ b/syspro-ruby.gemspec @@ -7,8 +7,8 @@ require 'syspro/version' Gem::Specification.new do |spec| spec.name = 'syspro-ruby' spec.version = Syspro::VERSION - spec.authors = ['Isaac Lewis'] - spec.email = ['isaac@ike.io'] + spec.authors = ['Sam Clopton', 'Nathan Ockerman'] + spec.email = ['sam@wild.land', 'nathan@wild.land'] spec.summary = 'SYSPRO 7 Api Ruby adapter' spec.license = 'MIT' diff --git a/test/cassettes/test_logon.yml b/test/cassettes/test_logon.yml index f29d75f..ada72ea 100644 --- a/test/cassettes/test_logon.yml +++ b/test/cassettes/test_logon.yml @@ -25,12 +25,12 @@ http_interactions: Server: - Microsoft-HTTPAPI/2.0 Date: - - Mon, 14 Jan 2019 22:56:14 GMT + - Wed, 22 May 2019 22:36:13 GMT Content-ength: - - '32' + - '36' body: encoding: UTF-8 - string: 'ERROR: Invalid operator password' + string: '3EA613166FE4BF47925DF1CEA14E910100 ' http_version: - recorded_at: Mon, 14 Jan 2019 22:56:14 GMT + recorded_at: Wed, 22 May 2019 22:36:12 GMT recorded_with: VCR 4.0.0 -- libgit2 0.21.4