heartland-retail 5.0.0 → 5.0.1
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 +4 -4
- data/.travis.yml +5 -4
- data/Gemfile.lock +71 -51
- data/README.md +3 -3
- data/heartland-retail.gemspec +2 -2
- data/lib/heartland/client/uri.rb +2 -1
- data/spec/heartland/client/response_spec.rb +1 -1
- data/vendor/cache/addressable-2.8.5.gem +0 -0
- data/vendor/cache/codeclimate-test-reporter-1.0.9.gem +0 -0
- data/vendor/cache/coderay-1.1.3.gem +0 -0
- data/vendor/cache/coveralls-0.8.19.gem +0 -0
- data/vendor/cache/crack-0.4.5.gem +0 -0
- data/vendor/cache/diff-lcs-1.5.0.gem +0 -0
- data/vendor/cache/faraday-1.10.3.gem +0 -0
- data/vendor/cache/faraday-em_http-1.0.0.gem +0 -0
- data/vendor/cache/faraday-em_synchrony-1.0.0.gem +0 -0
- data/vendor/cache/faraday-excon-1.1.0.gem +0 -0
- data/vendor/cache/faraday-httpclient-1.0.1.gem +0 -0
- data/vendor/cache/faraday-multipart-1.0.4.gem +0 -0
- data/vendor/cache/faraday-net_http-1.0.1.gem +0 -0
- data/vendor/cache/faraday-net_http_persistent-1.2.0.gem +0 -0
- data/vendor/cache/faraday-patron-1.0.0.gem +0 -0
- data/vendor/cache/faraday-rack-1.0.0.gem +0 -0
- data/vendor/cache/faraday-retry-1.0.3.gem +0 -0
- data/vendor/cache/hashdiff-1.0.1.gem +0 -0
- data/vendor/cache/hashie-5.0.0.gem +0 -0
- data/vendor/cache/json-2.6.3.gem +0 -0
- data/vendor/cache/method_source-1.0.0.gem +0 -0
- data/vendor/cache/multipart-post-2.3.0.gem +0 -0
- data/vendor/cache/pry-0.14.2.gem +0 -0
- data/vendor/cache/public_suffix-5.0.3.gem +0 -0
- data/vendor/cache/rake-13.0.6.gem +0 -0
- data/vendor/cache/rexml-3.2.6.gem +0 -0
- data/vendor/cache/rspec-3.12.0.gem +0 -0
- data/vendor/cache/rspec-core-3.12.2.gem +0 -0
- data/vendor/cache/rspec-expectations-3.12.3.gem +0 -0
- data/vendor/cache/rspec-mocks-3.12.6.gem +0 -0
- data/vendor/cache/rspec-support-3.12.1.gem +0 -0
- data/vendor/cache/ruby2_keywords-0.0.5.gem +0 -0
- data/vendor/cache/simplecov-0.12.0.gem +0 -0
- data/vendor/cache/simplecov-html-0.10.2.gem +0 -0
- data/vendor/cache/sync-0.5.0.gem +0 -0
- data/vendor/cache/term-ansicolor-1.7.1.gem +0 -0
- data/vendor/cache/thor-0.19.4.gem +0 -0
- data/vendor/cache/tins-1.32.1.gem +0 -0
- data/vendor/cache/webmock-3.18.1.gem +0 -0
- metadata +43 -34
- data/vendor/cache/addressable-2.2.8.gem +0 -0
- data/vendor/cache/codeclimate-test-reporter-1.0.8.gem +0 -0
- data/vendor/cache/coderay-1.1.0.gem +0 -0
- data/vendor/cache/coveralls-0.7.11.gem +0 -0
- data/vendor/cache/crack-0.4.2.gem +0 -0
- data/vendor/cache/diff-lcs-1.2.5.gem +0 -0
- data/vendor/cache/faraday-0.17.3.gem +0 -0
- data/vendor/cache/hashie-4.1.0.gem +0 -0
- data/vendor/cache/json-2.3.0.gem +0 -0
- data/vendor/cache/method_source-0.8.2.gem +0 -0
- data/vendor/cache/mime-types-2.4.3.gem +0 -0
- data/vendor/cache/multi_json-1.11.0.gem +0 -0
- data/vendor/cache/multipart-post-2.1.1.gem +0 -0
- data/vendor/cache/netrc-0.10.3.gem +0 -0
- data/vendor/cache/pry-0.10.1.gem +0 -0
- data/vendor/cache/rake-10.4.2.gem +0 -0
- data/vendor/cache/rest-client-1.7.3.gem +0 -0
- data/vendor/cache/rspec-3.2.0.gem +0 -0
- data/vendor/cache/rspec-core-3.2.2.gem +0 -0
- data/vendor/cache/rspec-expectations-3.2.0.gem +0 -0
- data/vendor/cache/rspec-mocks-3.2.1.gem +0 -0
- data/vendor/cache/rspec-support-3.2.2.gem +0 -0
- data/vendor/cache/safe_yaml-1.0.4.gem +0 -0
- data/vendor/cache/simplecov-0.9.2.gem +0 -0
- data/vendor/cache/simplecov-html-0.9.0.gem +0 -0
- data/vendor/cache/slop-3.6.0.gem +0 -0
- data/vendor/cache/term-ansicolor-1.3.0.gem +0 -0
- data/vendor/cache/thor-0.19.1.gem +0 -0
- data/vendor/cache/tins-1.3.5.gem +0 -0
- data/vendor/cache/webmock-1.17.4.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e21d58c84c557f61b6d695bd2fa42b7429a3406a837ff407cb1557a7b6a2802
|
4
|
+
data.tar.gz: 1c8a8032340306af2b7135a9d09656f473350196f320832de5b0fd79095071ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cddabb351d429fc0876d90b4bf3a8363d7b4c2d069b3f2b46a752a7cc03344304e54d705800beb33f6bccea92b220bf56f52ea9f4484352aaccc306fb86d330f
|
7
|
+
data.tar.gz: ed04da560f8461757b98c62f511c05d13002ed17e5106b013bb3c728f6c4fc7aecc4c60e096c18c53bf8567ead9496e65dd4fc1e7c718b154c1646aecda8ab9c
|
data/.travis.yml
CHANGED
@@ -2,15 +2,16 @@ sudo: false
|
|
2
2
|
language: ruby
|
3
3
|
bundler_args: --without development
|
4
4
|
rvm:
|
5
|
-
-
|
6
|
-
- 2.0.0
|
7
|
-
- 2.1.0
|
8
|
-
- 2.2.0
|
5
|
+
- 2.4.0
|
9
6
|
- 2.6.0
|
7
|
+
- 2.7.0
|
10
8
|
|
11
9
|
addons:
|
12
10
|
code_climate:
|
13
11
|
repo_token: 6963f51029c0c9bf6406bd1cc69ae951bc53f9bf7751b16035515b5f764c58fe
|
14
12
|
|
13
|
+
before_install:
|
14
|
+
- gem install bundler -v '1.17.2'
|
15
|
+
|
15
16
|
after_success:
|
16
17
|
- bundle exec codeclimate-test-reporter
|
data/Gemfile.lock
CHANGED
@@ -1,72 +1,92 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
heartland-retail (5.0.
|
5
|
-
faraday (
|
4
|
+
heartland-retail (5.0.1)
|
5
|
+
faraday (~> 1.0)
|
6
6
|
hashie
|
7
7
|
json (>= 1.7.4)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
addressable (2.
|
13
|
-
|
12
|
+
addressable (2.8.5)
|
13
|
+
public_suffix (>= 2.0.2, < 6.0)
|
14
|
+
codeclimate-test-reporter (1.0.9)
|
14
15
|
simplecov (<= 0.13)
|
15
|
-
coderay (1.1.
|
16
|
-
coveralls (0.
|
17
|
-
|
18
|
-
|
19
|
-
simplecov (~> 0.9.1)
|
16
|
+
coderay (1.1.3)
|
17
|
+
coveralls (0.8.19)
|
18
|
+
json (>= 1.8, < 3)
|
19
|
+
simplecov (~> 0.12.0)
|
20
20
|
term-ansicolor (~> 1.3)
|
21
21
|
thor (~> 0.19.1)
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
tins (~> 1.6)
|
23
|
+
crack (0.4.5)
|
24
|
+
rexml
|
25
|
+
diff-lcs (1.5.0)
|
25
26
|
docile (1.1.5)
|
26
|
-
faraday (
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
27
|
+
faraday (1.10.3)
|
28
|
+
faraday-em_http (~> 1.0)
|
29
|
+
faraday-em_synchrony (~> 1.0)
|
30
|
+
faraday-excon (~> 1.1)
|
31
|
+
faraday-httpclient (~> 1.0)
|
32
|
+
faraday-multipart (~> 1.0)
|
33
|
+
faraday-net_http (~> 1.0)
|
34
|
+
faraday-net_http_persistent (~> 1.0)
|
35
|
+
faraday-patron (~> 1.0)
|
36
|
+
faraday-rack (~> 1.0)
|
37
|
+
faraday-retry (~> 1.0)
|
38
|
+
ruby2_keywords (>= 0.0.4)
|
39
|
+
faraday-em_http (1.0.0)
|
40
|
+
faraday-em_synchrony (1.0.0)
|
41
|
+
faraday-excon (1.1.0)
|
42
|
+
faraday-httpclient (1.0.1)
|
43
|
+
faraday-multipart (1.0.4)
|
44
|
+
multipart-post (~> 2)
|
45
|
+
faraday-net_http (1.0.1)
|
46
|
+
faraday-net_http_persistent (1.2.0)
|
47
|
+
faraday-patron (1.0.0)
|
48
|
+
faraday-rack (1.0.0)
|
49
|
+
faraday-retry (1.0.3)
|
50
|
+
hashdiff (1.0.1)
|
51
|
+
hashie (5.0.0)
|
52
|
+
json (2.6.3)
|
53
|
+
method_source (1.0.0)
|
54
|
+
multipart-post (2.3.0)
|
55
|
+
pry (0.14.2)
|
56
|
+
coderay (~> 1.1)
|
57
|
+
method_source (~> 1.0)
|
58
|
+
public_suffix (5.0.3)
|
59
|
+
rake (13.0.6)
|
60
|
+
rexml (3.2.6)
|
61
|
+
rspec (3.12.0)
|
62
|
+
rspec-core (~> 3.12.0)
|
63
|
+
rspec-expectations (~> 3.12.0)
|
64
|
+
rspec-mocks (~> 3.12.0)
|
65
|
+
rspec-core (3.12.2)
|
66
|
+
rspec-support (~> 3.12.0)
|
67
|
+
rspec-expectations (3.12.3)
|
50
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
-
rspec-support (~> 3.
|
52
|
-
rspec-mocks (3.
|
69
|
+
rspec-support (~> 3.12.0)
|
70
|
+
rspec-mocks (3.12.6)
|
53
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
-
rspec-support (~> 3.
|
55
|
-
rspec-support (3.
|
56
|
-
|
57
|
-
simplecov (0.
|
72
|
+
rspec-support (~> 3.12.0)
|
73
|
+
rspec-support (3.12.1)
|
74
|
+
ruby2_keywords (0.0.5)
|
75
|
+
simplecov (0.12.0)
|
58
76
|
docile (~> 1.1.0)
|
59
|
-
|
60
|
-
simplecov-html (~> 0.
|
61
|
-
simplecov-html (0.
|
62
|
-
|
63
|
-
term-ansicolor (1.
|
77
|
+
json (>= 1.8, < 3)
|
78
|
+
simplecov-html (~> 0.10.0)
|
79
|
+
simplecov-html (0.10.2)
|
80
|
+
sync (0.5.0)
|
81
|
+
term-ansicolor (1.7.1)
|
64
82
|
tins (~> 1.0)
|
65
|
-
thor (0.19.
|
66
|
-
tins (1.
|
67
|
-
|
68
|
-
|
83
|
+
thor (0.19.4)
|
84
|
+
tins (1.32.1)
|
85
|
+
sync
|
86
|
+
webmock (3.18.1)
|
87
|
+
addressable (>= 2.8.0)
|
69
88
|
crack (>= 0.3.2)
|
89
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
70
90
|
|
71
91
|
PLATFORMS
|
72
92
|
ruby
|
data/README.md
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Heartland Retail API Client
|
2
2
|
|
3
|
-
[](http://badge.fury.io/rb/heartland-retail)
|
4
4
|
[](https://travis-ci.org/springboardretail/springboard-client-ruby)
|
5
5
|
[](https://codeclimate.com/github/springboardretail/springboard-client-ruby)
|
6
6
|
[](https://coveralls.io/github/springboardretail/springboard-client-ruby?branch=master)
|
7
7
|
|
8
|
-
This is the [Heartland Retail](http://heartlandretail.us/) (a point-of-sale/retail management system) client library for Ruby. It provides access to the Heartland Retail HTTP API.
|
8
|
+
This is the [Heartland Retail](http://heartlandretail.us/) (a point-of-sale/retail management system) client library for Ruby. It provides access to the [Heartland Retail HTTP API](https://dev.retail.heartland.us/).
|
9
9
|
|
10
10
|
It is a wrapper around the [Faraday](https://github.com/lostisland/faraday) HTTP client library.
|
11
11
|
|
12
|
-
You can find [documentation here](
|
12
|
+
You can find [documentation here](https://rdoc.info/github/springboardretail/springboard-client-ruby).
|
13
13
|
|
14
14
|
## Installation
|
15
15
|
|
data/heartland-retail.gemspec
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'heartland-retail'
|
3
|
-
s.version = '5.0.
|
3
|
+
s.version = '5.0.1'
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.authors = ['Jay Stotz', 'Derek Stotz']
|
6
6
|
s.summary = 'Heartland Retail API client library'
|
7
7
|
|
8
8
|
s.required_rubygems_version = '>= 1.3.6'
|
9
9
|
|
10
|
-
s.add_runtime_dependency 'faraday', '
|
10
|
+
s.add_runtime_dependency 'faraday', '~> 1.0'
|
11
11
|
s.add_runtime_dependency 'json', '>= 1.7.4'
|
12
12
|
s.add_runtime_dependency 'hashie'
|
13
13
|
|
data/lib/heartland/client/uri.rb
CHANGED
@@ -38,7 +38,8 @@ module HeartlandRetail
|
|
38
38
|
def subpath(subpath)
|
39
39
|
uri = dup
|
40
40
|
uri.path = "#{path}/" unless path.end_with?('/')
|
41
|
-
|
41
|
+
escaped_subpath = ::URI::Parser.new.escape(subpath.to_s.gsub(/^\//, ''))
|
42
|
+
uri.path = uri.path + escaped_subpath
|
42
43
|
uri
|
43
44
|
end
|
44
45
|
|
@@ -9,7 +9,7 @@ describe HeartlandRetail::Client::Response do
|
|
9
9
|
let(:path) { '/path' }
|
10
10
|
let(:faraday_response) do
|
11
11
|
env = Faraday::Env.new(:get, raw_body, path, nil, nil, nil, nil,
|
12
|
-
nil,
|
12
|
+
nil, nil, raw_headers, status_code, nil, raw_body)
|
13
13
|
|
14
14
|
Faraday::Response.new(env)
|
15
15
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heartland-retail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Stotz
|
@@ -9,20 +9,20 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '1.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '1.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
@@ -84,37 +84,46 @@ files:
|
|
84
84
|
- spec/heartland/client_spec.rb
|
85
85
|
- spec/shared_client_context.rb
|
86
86
|
- spec/spec_helper.rb
|
87
|
-
- vendor/cache/addressable-2.
|
88
|
-
- vendor/cache/codeclimate-test-reporter-1.0.
|
89
|
-
- vendor/cache/coderay-1.1.
|
90
|
-
- vendor/cache/coveralls-0.
|
91
|
-
- vendor/cache/crack-0.4.
|
92
|
-
- vendor/cache/diff-lcs-1.
|
87
|
+
- vendor/cache/addressable-2.8.5.gem
|
88
|
+
- vendor/cache/codeclimate-test-reporter-1.0.9.gem
|
89
|
+
- vendor/cache/coderay-1.1.3.gem
|
90
|
+
- vendor/cache/coveralls-0.8.19.gem
|
91
|
+
- vendor/cache/crack-0.4.5.gem
|
92
|
+
- vendor/cache/diff-lcs-1.5.0.gem
|
93
93
|
- vendor/cache/docile-1.1.5.gem
|
94
|
-
- vendor/cache/faraday-
|
95
|
-
- vendor/cache/
|
96
|
-
- vendor/cache/
|
97
|
-
- vendor/cache/
|
98
|
-
- vendor/cache/
|
99
|
-
- vendor/cache/
|
100
|
-
- vendor/cache/
|
101
|
-
- vendor/cache/
|
102
|
-
- vendor/cache/
|
103
|
-
- vendor/cache/
|
104
|
-
- vendor/cache/
|
105
|
-
- vendor/cache/
|
106
|
-
- vendor/cache/
|
107
|
-
- vendor/cache/
|
108
|
-
- vendor/cache/
|
109
|
-
- vendor/cache/
|
110
|
-
- vendor/cache/
|
111
|
-
- vendor/cache/
|
112
|
-
- vendor/cache/
|
113
|
-
- vendor/cache/
|
114
|
-
- vendor/cache/
|
115
|
-
- vendor/cache/
|
116
|
-
- vendor/cache/
|
117
|
-
- vendor/cache/
|
94
|
+
- vendor/cache/faraday-1.10.3.gem
|
95
|
+
- vendor/cache/faraday-em_http-1.0.0.gem
|
96
|
+
- vendor/cache/faraday-em_synchrony-1.0.0.gem
|
97
|
+
- vendor/cache/faraday-excon-1.1.0.gem
|
98
|
+
- vendor/cache/faraday-httpclient-1.0.1.gem
|
99
|
+
- vendor/cache/faraday-multipart-1.0.4.gem
|
100
|
+
- vendor/cache/faraday-net_http-1.0.1.gem
|
101
|
+
- vendor/cache/faraday-net_http_persistent-1.2.0.gem
|
102
|
+
- vendor/cache/faraday-patron-1.0.0.gem
|
103
|
+
- vendor/cache/faraday-rack-1.0.0.gem
|
104
|
+
- vendor/cache/faraday-retry-1.0.3.gem
|
105
|
+
- vendor/cache/hashdiff-1.0.1.gem
|
106
|
+
- vendor/cache/hashie-5.0.0.gem
|
107
|
+
- vendor/cache/json-2.6.3.gem
|
108
|
+
- vendor/cache/method_source-1.0.0.gem
|
109
|
+
- vendor/cache/multipart-post-2.3.0.gem
|
110
|
+
- vendor/cache/pry-0.14.2.gem
|
111
|
+
- vendor/cache/public_suffix-5.0.3.gem
|
112
|
+
- vendor/cache/rake-13.0.6.gem
|
113
|
+
- vendor/cache/rexml-3.2.6.gem
|
114
|
+
- vendor/cache/rspec-3.12.0.gem
|
115
|
+
- vendor/cache/rspec-core-3.12.2.gem
|
116
|
+
- vendor/cache/rspec-expectations-3.12.3.gem
|
117
|
+
- vendor/cache/rspec-mocks-3.12.6.gem
|
118
|
+
- vendor/cache/rspec-support-3.12.1.gem
|
119
|
+
- vendor/cache/ruby2_keywords-0.0.5.gem
|
120
|
+
- vendor/cache/simplecov-0.12.0.gem
|
121
|
+
- vendor/cache/simplecov-html-0.10.2.gem
|
122
|
+
- vendor/cache/sync-0.5.0.gem
|
123
|
+
- vendor/cache/term-ansicolor-1.7.1.gem
|
124
|
+
- vendor/cache/thor-0.19.4.gem
|
125
|
+
- vendor/cache/tins-1.32.1.gem
|
126
|
+
- vendor/cache/webmock-3.18.1.gem
|
118
127
|
homepage:
|
119
128
|
licenses: []
|
120
129
|
metadata: {}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/cache/json-2.3.0.gem
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/cache/pry-0.10.1.gem
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/cache/slop-3.6.0.gem
DELETED
Binary file
|
Binary file
|
Binary file
|
data/vendor/cache/tins-1.3.5.gem
DELETED
Binary file
|
Binary file
|