oreilly_api 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09364ca17a234cc27c6829b0317dadc2c81cec676ab74986fdf6f13198f7cf0f'
4
- data.tar.gz: e2fe98659b11d63da56f5757bf92eddf0b54941eb5b1a6f01a95c790089d9632
3
+ metadata.gz: 331993016d4ab1bced47131d0e70f76e32d8492d66a7a853583a61fef4599600
4
+ data.tar.gz: 98931db3b5d41529f7d27a8f31270063c312139796a305bbd531fcae2ba160ec
5
5
  SHA512:
6
- metadata.gz: 65f0837929cf1333b20af74f1af02d7da2faacca75dcfa7cfda7faa6dbb148de678db5839c3ed0f136a77b6622c4c2925613fd246f59191b1626a8e5ee97edad
7
- data.tar.gz: 82c5dcd33f177b7c1ada7c66dbdfadd913eff3a80f5fceb392b5b5ab793c64081b20239927caabdfa4adeabef52da8923c1ecee4611cf6f2b9269c842bd49994
6
+ metadata.gz: 64869f04d8246537679d62a7c8fdeaaefe362c4a5cb6daa7fa46ba47deebb92de8fda5eb7b8495abd3714e60546c6581a1f0a6195988e5f96f4d2d8cf968f19b
7
+ data.tar.gz: b617ee084302e1141c5d78b859759cbaea1b95c05def9360687cd2215f4b31b805b49d535b5b7124325495069852e921c7834ce42c23d1d79d4317c0e5bb4992
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oreilly_api (1.0.0)
4
+ oreilly_api (1.0.1)
5
5
  byebug
6
6
  redis
7
7
  redis_utility
@@ -17,70 +17,71 @@ GEM
17
17
  byebug (11.1.3)
18
18
  crack (0.4.5)
19
19
  rexml
20
- diff-lcs (1.5.0)
20
+ diff-lcs (1.4.4)
21
21
  domain_name (0.5.20190701)
22
22
  unf (>= 0.0.5, < 1.0.0)
23
23
  hashdiff (1.0.1)
24
24
  http-accept (1.7.0)
25
- http-cookie (1.0.5)
25
+ http-cookie (1.0.4)
26
26
  domain_name (~> 0.5)
27
27
  mime-types (3.4.1)
28
28
  mime-types-data (~> 3.2015)
29
- mime-types-data (3.2022.0105)
29
+ mime-types-data (3.2021.1115)
30
30
  multi_json (1.15.0)
31
31
  netrc (0.11.0)
32
- parallel (1.22.1)
33
- parser (3.1.2.0)
32
+ parallel (1.21.0)
33
+ parser (3.0.2.0)
34
34
  ast (~> 2.4.1)
35
- public_suffix (4.0.7)
36
- rainbow (3.1.1)
35
+ public_suffix (4.0.6)
36
+ rainbow (3.0.0)
37
37
  rake (13.0.6)
38
- redis (4.6.0)
38
+ redis (4.5.1)
39
39
  redis_utility (1.0.0)
40
- regexp_parser (2.5.0)
40
+ regexp_parser (2.1.1)
41
41
  rest-client (2.1.0)
42
42
  http-accept (>= 1.7.0, < 2.0)
43
43
  http-cookie (>= 1.0.2, < 2.0)
44
44
  mime-types (>= 1.16, < 4.0)
45
45
  netrc (~> 0.8)
46
46
  rexml (3.2.5)
47
- rspec (3.11.0)
48
- rspec-core (~> 3.11.0)
49
- rspec-expectations (~> 3.11.0)
50
- rspec-mocks (~> 3.11.0)
51
- rspec-core (3.11.0)
52
- rspec-support (~> 3.11.0)
53
- rspec-expectations (3.11.0)
47
+ rspec (3.10.0)
48
+ rspec-core (~> 3.10.0)
49
+ rspec-expectations (~> 3.10.0)
50
+ rspec-mocks (~> 3.10.0)
51
+ rspec-core (3.10.1)
52
+ rspec-support (~> 3.10.0)
53
+ rspec-expectations (3.10.1)
54
54
  diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.11.0)
56
- rspec-mocks (3.11.1)
55
+ rspec-support (~> 3.10.0)
56
+ rspec-mocks (3.10.2)
57
57
  diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.11.0)
59
- rspec-support (3.11.0)
60
- rubocop (1.30.0)
58
+ rspec-support (~> 3.10.0)
59
+ rspec-support (3.10.2)
60
+ rubocop (1.21.0)
61
61
  parallel (~> 1.10)
62
- parser (>= 3.1.0.0)
62
+ parser (>= 3.0.0.0)
63
63
  rainbow (>= 2.2.2, < 4.0)
64
64
  regexp_parser (>= 1.8, < 3.0)
65
- rexml (>= 3.2.5, < 4.0)
66
- rubocop-ast (>= 1.18.0, < 2.0)
65
+ rexml
66
+ rubocop-ast (>= 1.9.1, < 2.0)
67
67
  ruby-progressbar (~> 1.7)
68
68
  unicode-display_width (>= 1.4.0, < 3.0)
69
- rubocop-ast (1.18.0)
70
- parser (>= 3.1.1.0)
69
+ rubocop-ast (1.11.0)
70
+ parser (>= 3.0.1.1)
71
71
  ruby-progressbar (1.11.0)
72
72
  unf (0.1.4)
73
73
  unf_ext
74
- unf_ext (0.0.8.2)
74
+ unf_ext (0.0.8)
75
75
  unicode-display_width (2.1.0)
76
76
  webmock (3.14.0)
77
77
  addressable (>= 2.8.0)
78
78
  crack (>= 0.3.2)
79
79
  hashdiff (>= 0.4.0, < 2.0.0)
80
- yajl-ruby (1.4.3)
80
+ yajl-ruby (1.4.1)
81
81
 
82
82
  PLATFORMS
83
- x86_64-darwin-19
83
+ x86_64-darwin-20
84
+ x86_64-linux
84
85
 
85
86
  DEPENDENCIES
86
87
  bundler (~> 2.2.8)
@@ -92,4 +93,4 @@ DEPENDENCIES
92
93
  webmock
93
94
 
94
95
  BUNDLED WITH
95
- 2.2.33
96
+ 2.2.32
@@ -1,3 +1,3 @@
1
1
  module OreillyApi
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/oreilly_api.rb CHANGED
@@ -27,7 +27,7 @@ module OreillyApi
27
27
  "YM#{OreillyApi.account_number}#{DateTime.now.strftime('%Y%m%d%l%S%M')}}"
28
28
  end
29
29
 
30
- def place_order(po_number, vehicles_with_items, stop_order: false)
30
+ def place_order(po_number, customer_location_id, vehicles_with_items, stop_order: false)
31
31
  payload = {
32
32
  'header' => {
33
33
  'identity' => OreillyApi.identity,
@@ -36,6 +36,7 @@ module OreillyApi
36
36
  },
37
37
  'orderHeader' => {
38
38
  'poNumber' => po_number,
39
+ 'customerLocationId': customer_location_id || '',
39
40
  'accountNumber' => OreillyApi.account_number,
40
41
  'comments' => "test"
41
42
  },
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oreilly_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TruptiHosmani
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-03 00:00:00.000000000 Z
11
+ date: 2023-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  - !ruby/object:Gem::Version
200
200
  version: '0'
201
201
  requirements: []
202
- rubygems_version: 3.0.3
202
+ rubygems_version: 3.0.9
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: Gem to integrate O'Reilly Auto Parts Rest API