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.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +5 -4
  3. data/Gemfile.lock +71 -51
  4. data/README.md +3 -3
  5. data/heartland-retail.gemspec +2 -2
  6. data/lib/heartland/client/uri.rb +2 -1
  7. data/spec/heartland/client/response_spec.rb +1 -1
  8. data/vendor/cache/addressable-2.8.5.gem +0 -0
  9. data/vendor/cache/codeclimate-test-reporter-1.0.9.gem +0 -0
  10. data/vendor/cache/coderay-1.1.3.gem +0 -0
  11. data/vendor/cache/coveralls-0.8.19.gem +0 -0
  12. data/vendor/cache/crack-0.4.5.gem +0 -0
  13. data/vendor/cache/diff-lcs-1.5.0.gem +0 -0
  14. data/vendor/cache/faraday-1.10.3.gem +0 -0
  15. data/vendor/cache/faraday-em_http-1.0.0.gem +0 -0
  16. data/vendor/cache/faraday-em_synchrony-1.0.0.gem +0 -0
  17. data/vendor/cache/faraday-excon-1.1.0.gem +0 -0
  18. data/vendor/cache/faraday-httpclient-1.0.1.gem +0 -0
  19. data/vendor/cache/faraday-multipart-1.0.4.gem +0 -0
  20. data/vendor/cache/faraday-net_http-1.0.1.gem +0 -0
  21. data/vendor/cache/faraday-net_http_persistent-1.2.0.gem +0 -0
  22. data/vendor/cache/faraday-patron-1.0.0.gem +0 -0
  23. data/vendor/cache/faraday-rack-1.0.0.gem +0 -0
  24. data/vendor/cache/faraday-retry-1.0.3.gem +0 -0
  25. data/vendor/cache/hashdiff-1.0.1.gem +0 -0
  26. data/vendor/cache/hashie-5.0.0.gem +0 -0
  27. data/vendor/cache/json-2.6.3.gem +0 -0
  28. data/vendor/cache/method_source-1.0.0.gem +0 -0
  29. data/vendor/cache/multipart-post-2.3.0.gem +0 -0
  30. data/vendor/cache/pry-0.14.2.gem +0 -0
  31. data/vendor/cache/public_suffix-5.0.3.gem +0 -0
  32. data/vendor/cache/rake-13.0.6.gem +0 -0
  33. data/vendor/cache/rexml-3.2.6.gem +0 -0
  34. data/vendor/cache/rspec-3.12.0.gem +0 -0
  35. data/vendor/cache/rspec-core-3.12.2.gem +0 -0
  36. data/vendor/cache/rspec-expectations-3.12.3.gem +0 -0
  37. data/vendor/cache/rspec-mocks-3.12.6.gem +0 -0
  38. data/vendor/cache/rspec-support-3.12.1.gem +0 -0
  39. data/vendor/cache/ruby2_keywords-0.0.5.gem +0 -0
  40. data/vendor/cache/simplecov-0.12.0.gem +0 -0
  41. data/vendor/cache/simplecov-html-0.10.2.gem +0 -0
  42. data/vendor/cache/sync-0.5.0.gem +0 -0
  43. data/vendor/cache/term-ansicolor-1.7.1.gem +0 -0
  44. data/vendor/cache/thor-0.19.4.gem +0 -0
  45. data/vendor/cache/tins-1.32.1.gem +0 -0
  46. data/vendor/cache/webmock-3.18.1.gem +0 -0
  47. metadata +43 -34
  48. data/vendor/cache/addressable-2.2.8.gem +0 -0
  49. data/vendor/cache/codeclimate-test-reporter-1.0.8.gem +0 -0
  50. data/vendor/cache/coderay-1.1.0.gem +0 -0
  51. data/vendor/cache/coveralls-0.7.11.gem +0 -0
  52. data/vendor/cache/crack-0.4.2.gem +0 -0
  53. data/vendor/cache/diff-lcs-1.2.5.gem +0 -0
  54. data/vendor/cache/faraday-0.17.3.gem +0 -0
  55. data/vendor/cache/hashie-4.1.0.gem +0 -0
  56. data/vendor/cache/json-2.3.0.gem +0 -0
  57. data/vendor/cache/method_source-0.8.2.gem +0 -0
  58. data/vendor/cache/mime-types-2.4.3.gem +0 -0
  59. data/vendor/cache/multi_json-1.11.0.gem +0 -0
  60. data/vendor/cache/multipart-post-2.1.1.gem +0 -0
  61. data/vendor/cache/netrc-0.10.3.gem +0 -0
  62. data/vendor/cache/pry-0.10.1.gem +0 -0
  63. data/vendor/cache/rake-10.4.2.gem +0 -0
  64. data/vendor/cache/rest-client-1.7.3.gem +0 -0
  65. data/vendor/cache/rspec-3.2.0.gem +0 -0
  66. data/vendor/cache/rspec-core-3.2.2.gem +0 -0
  67. data/vendor/cache/rspec-expectations-3.2.0.gem +0 -0
  68. data/vendor/cache/rspec-mocks-3.2.1.gem +0 -0
  69. data/vendor/cache/rspec-support-3.2.2.gem +0 -0
  70. data/vendor/cache/safe_yaml-1.0.4.gem +0 -0
  71. data/vendor/cache/simplecov-0.9.2.gem +0 -0
  72. data/vendor/cache/simplecov-html-0.9.0.gem +0 -0
  73. data/vendor/cache/slop-3.6.0.gem +0 -0
  74. data/vendor/cache/term-ansicolor-1.3.0.gem +0 -0
  75. data/vendor/cache/thor-0.19.1.gem +0 -0
  76. data/vendor/cache/tins-1.3.5.gem +0 -0
  77. 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: d1bdee96767c0beb69e567edbce236959ce1305d420bc940586ac2732a6a27c5
4
- data.tar.gz: de52df85cb38b7e011854862c49d6314bb065d3057fcb871624951057e537383
3
+ metadata.gz: 7e21d58c84c557f61b6d695bd2fa42b7429a3406a837ff407cb1557a7b6a2802
4
+ data.tar.gz: 1c8a8032340306af2b7135a9d09656f473350196f320832de5b0fd79095071ba
5
5
  SHA512:
6
- metadata.gz: 86c7a3652a47396e2c9dc88cdc9697fdaf29cb7fcca32bf924dce5c230b773f31123cdc7e703455872bda24631aba5e7e03b2207cfa2310f2ac442f4dc7827ce
7
- data.tar.gz: 92650387b74f3e380519d3c15d481c81f176714a1c01412158e877e2818cd0f913ded6256ff0de4d223de690b37acbbfe503a23c366b248104e9fb5019929810
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
- - 1.9.3
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.0)
5
- faraday (< 1.0)
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.2.8)
13
- codeclimate-test-reporter (1.0.8)
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.0)
16
- coveralls (0.7.11)
17
- multi_json (~> 1.10)
18
- rest-client (>= 1.6.8, < 2)
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
- crack (0.4.2)
23
- safe_yaml (~> 1.0.0)
24
- diff-lcs (1.2.5)
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 (0.17.3)
27
- multipart-post (>= 1.2, < 3)
28
- hashie (4.1.0)
29
- json (2.3.0)
30
- method_source (0.8.2)
31
- mime-types (2.4.3)
32
- multi_json (1.11.0)
33
- multipart-post (2.1.1)
34
- netrc (0.10.3)
35
- pry (0.10.1)
36
- coderay (~> 1.1.0)
37
- method_source (~> 0.8.1)
38
- slop (~> 3.4)
39
- rake (10.4.2)
40
- rest-client (1.7.3)
41
- mime-types (>= 1.16, < 3.0)
42
- netrc (~> 0.7)
43
- rspec (3.2.0)
44
- rspec-core (~> 3.2.0)
45
- rspec-expectations (~> 3.2.0)
46
- rspec-mocks (~> 3.2.0)
47
- rspec-core (3.2.2)
48
- rspec-support (~> 3.2.0)
49
- rspec-expectations (3.2.0)
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.2.0)
52
- rspec-mocks (3.2.1)
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.2.0)
55
- rspec-support (3.2.2)
56
- safe_yaml (1.0.4)
57
- simplecov (0.9.2)
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
- multi_json (~> 1.0)
60
- simplecov-html (~> 0.9.0)
61
- simplecov-html (0.9.0)
62
- slop (3.6.0)
63
- term-ansicolor (1.3.0)
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.1)
66
- tins (1.3.5)
67
- webmock (1.17.4)
68
- addressable (>= 2.2.7)
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
- [![Gem Version](https://badge.fury.io/rb/springboard-retail.png)](http://badge.fury.io/rb/springboard-retail)
3
+ [![Gem Version](https://badge.fury.io/rb/heartland-retail.png)](http://badge.fury.io/rb/heartland-retail)
4
4
  [![Build Status](https://travis-ci.org/springboardretail/springboard-client-ruby.png?branch=master)](https://travis-ci.org/springboardretail/springboard-client-ruby)
5
5
  [![Code Climate](https://codeclimate.com/github/springboardretail/springboard-client-ruby.png)](https://codeclimate.com/github/springboardretail/springboard-client-ruby)
6
6
  [![Coverage Status](https://coveralls.io/repos/github/springboardretail/springboard-client-ruby/badge.svg?branch=master)](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](http://rdoc.info/github/springboardretail/springboard-client-ruby).
12
+ You can find [documentation here](https://rdoc.info/github/springboardretail/springboard-client-ruby).
13
13
 
14
14
  ## Installation
15
15
 
@@ -1,13 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'heartland-retail'
3
- s.version = '5.0.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', '< 1.0'
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
 
@@ -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
- uri.path = uri.path + ::URI.encode(subpath.to_s.gsub(/^\//, ''))
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, raw_body, raw_headers, status_code)
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
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.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: 2020-06-10 00:00:00.000000000 Z
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.2.8.gem
88
- - vendor/cache/codeclimate-test-reporter-1.0.8.gem
89
- - vendor/cache/coderay-1.1.0.gem
90
- - vendor/cache/coveralls-0.7.11.gem
91
- - vendor/cache/crack-0.4.2.gem
92
- - vendor/cache/diff-lcs-1.2.5.gem
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-0.17.3.gem
95
- - vendor/cache/hashie-4.1.0.gem
96
- - vendor/cache/json-2.3.0.gem
97
- - vendor/cache/method_source-0.8.2.gem
98
- - vendor/cache/mime-types-2.4.3.gem
99
- - vendor/cache/multi_json-1.11.0.gem
100
- - vendor/cache/multipart-post-2.1.1.gem
101
- - vendor/cache/netrc-0.10.3.gem
102
- - vendor/cache/pry-0.10.1.gem
103
- - vendor/cache/rake-10.4.2.gem
104
- - vendor/cache/rest-client-1.7.3.gem
105
- - vendor/cache/rspec-3.2.0.gem
106
- - vendor/cache/rspec-core-3.2.2.gem
107
- - vendor/cache/rspec-expectations-3.2.0.gem
108
- - vendor/cache/rspec-mocks-3.2.1.gem
109
- - vendor/cache/rspec-support-3.2.2.gem
110
- - vendor/cache/safe_yaml-1.0.4.gem
111
- - vendor/cache/simplecov-0.9.2.gem
112
- - vendor/cache/simplecov-html-0.9.0.gem
113
- - vendor/cache/slop-3.6.0.gem
114
- - vendor/cache/term-ansicolor-1.3.0.gem
115
- - vendor/cache/thor-0.19.1.gem
116
- - vendor/cache/tins-1.3.5.gem
117
- - vendor/cache/webmock-1.17.4.gem
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
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