Commit ab2264b28ef5ca424e536da99880c0c8046d50f5
1 parent
58ed758f
Add the ability to do debugging in tests and regen logon casset with valid response
Showing
4 changed files
with
18 additions
and
6 deletions
Show diff stats
Gemfile
@@ -5,3 +5,8 @@ source 'https://rubygems.org' | @@ -5,3 +5,8 @@ source 'https://rubygems.org' | ||
5 | git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } | 5 | git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } |
6 | 6 | ||
7 | gemspec | 7 | gemspec |
8 | + | ||
9 | +group :test do | ||
10 | + gem 'pry-byebug' | ||
11 | + gem 'rb-readline' | ||
12 | +end |
Gemfile.lock
@@ -11,6 +11,7 @@ GEM | @@ -11,6 +11,7 @@ GEM | ||
11 | addressable (2.5.2) | 11 | addressable (2.5.2) |
12 | public_suffix (>= 2.0.2, < 4.0) | 12 | public_suffix (>= 2.0.2, < 4.0) |
13 | ast (2.4.0) | 13 | ast (2.4.0) |
14 | + byebug (11.0.1) | ||
14 | coderay (1.1.2) | 15 | coderay (1.1.2) |
15 | crack (0.4.3) | 16 | crack (0.4.3) |
16 | safe_yaml (~> 1.0.0) | 17 | safe_yaml (~> 1.0.0) |
@@ -36,9 +37,13 @@ GEM | @@ -36,9 +37,13 @@ GEM | ||
36 | pry (0.11.3) | 37 | pry (0.11.3) |
37 | coderay (~> 1.1.0) | 38 | coderay (~> 1.1.0) |
38 | method_source (~> 0.9.0) | 39 | method_source (~> 0.9.0) |
40 | + pry-byebug (3.7.0) | ||
41 | + byebug (~> 11.0) | ||
42 | + pry (~> 0.10) | ||
39 | public_suffix (3.0.2) | 43 | public_suffix (3.0.2) |
40 | rainbow (3.0.0) | 44 | rainbow (3.0.0) |
41 | rake (10.5.0) | 45 | rake (10.5.0) |
46 | + rb-readline (0.5.5) | ||
42 | rubocop (0.54.0) | 47 | rubocop (0.54.0) |
43 | parallel (~> 1.10) | 48 | parallel (~> 1.10) |
44 | parser (>= 2.5) | 49 | parser (>= 2.5) |
@@ -63,7 +68,9 @@ DEPENDENCIES | @@ -63,7 +68,9 @@ DEPENDENCIES | ||
63 | minitest (~> 5.0) | 68 | minitest (~> 5.0) |
64 | minitest-vcr (~> 1.4.0) | 69 | minitest-vcr (~> 1.4.0) |
65 | pry (~> 0.11) | 70 | pry (~> 0.11) |
71 | + pry-byebug | ||
66 | rake (~> 10.0) | 72 | rake (~> 10.0) |
73 | + rb-readline | ||
67 | rubocop (~> 0.54.0) | 74 | rubocop (~> 0.54.0) |
68 | syspro-ruby! | 75 | syspro-ruby! |
69 | webmock (~> 3.3.0) | 76 | webmock (~> 3.3.0) |
syspro-ruby.gemspec
@@ -7,8 +7,8 @@ require 'syspro/version' | @@ -7,8 +7,8 @@ require 'syspro/version' | ||
7 | Gem::Specification.new do |spec| | 7 | Gem::Specification.new do |spec| |
8 | spec.name = 'syspro-ruby' | 8 | spec.name = 'syspro-ruby' |
9 | spec.version = Syspro::VERSION | 9 | spec.version = Syspro::VERSION |
10 | - spec.authors = ['Isaac Lewis'] | ||
11 | - spec.email = ['isaac@ike.io'] | 10 | + spec.authors = ['Sam Clopton', 'Nathan Ockerman'] |
11 | + spec.email = ['sam@wild.land', 'nathan@wild.land'] | ||
12 | 12 | ||
13 | spec.summary = 'SYSPRO 7 Api Ruby adapter' | 13 | spec.summary = 'SYSPRO 7 Api Ruby adapter' |
14 | spec.license = 'MIT' | 14 | spec.license = 'MIT' |
test/cassettes/test_logon.yml
@@ -25,12 +25,12 @@ http_interactions: | @@ -25,12 +25,12 @@ http_interactions: | ||
25 | Server: | 25 | Server: |
26 | - Microsoft-HTTPAPI/2.0 | 26 | - Microsoft-HTTPAPI/2.0 |
27 | Date: | 27 | Date: |
28 | - - Mon, 14 Jan 2019 22:56:14 GMT | 28 | + - Wed, 22 May 2019 22:36:13 GMT |
29 | Content-<syspro_company>ength: | 29 | Content-<syspro_company>ength: |
30 | - - '32' | 30 | + - '36' |
31 | body: | 31 | body: |
32 | encoding: UTF-8 | 32 | encoding: UTF-8 |
33 | - string: 'ERROR: Invalid operator password' | 33 | + string: '3EA613166FE4BF47925DF1CEA14E910100 ' |
34 | http_version: | 34 | http_version: |
35 | - recorded_at: Mon, 14 Jan 2019 22:56:14 GMT | 35 | + recorded_at: Wed, 22 May 2019 22:36:12 GMT |
36 | recorded_with: VCR 4.0.0 | 36 | recorded_with: VCR 4.0.0 |