noths 0.2.0 → 0.2.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: 2494e3398ec4ec1bafde2131a86b9f6d304b8dc870017f2781cd61040d01f27f
4
- data.tar.gz: 5a1753685a248dac129f4c1863aa8b84ef0f25ab12495db8601892612d570e10
3
+ metadata.gz: d9fba23956a17ac06c8ec040991102197bcb75ccc26fd4a4a5813c9309a32cdc
4
+ data.tar.gz: 35b8367d4add14a0a38717b112a26d59cd3fc4fa81a7a9b9c09735b879fc6c58
5
5
  SHA512:
6
- metadata.gz: 1069a29d1be38e96c69dbb6db09e5601892538ede59a14d9637b0ad747c6d26dd39469c844f319973eb3afe6caa8ddcfcd202b9cd6ff6a18edaa7f22d8aeca65
7
- data.tar.gz: cad59063a6a33b976bfa2e386d82f99a1835a26ad0c9b9b75bb43f9e06e0418331da89abe54d5fd459e3f8ae4d05eec5ba8f22a52d3a1e9e76e5929156a271a9
6
+ metadata.gz: 461024a4369385e279522ee5e33b18724f52d74cacdebfe83ed0bb0009757779f97291692feeab0e6461f825266e7eadc36e3a7909572c2eff31254475dd2030
7
+ data.tar.gz: 0cb6f7af7882fdef9480c4433a85df6b21244498acc1926537ac30f5842c06c1f1c7b21e5f9f23315f061f514c745b8b47ea84cd3931140b460c8aeb6e286fad
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '~> 12.3.3'
7
7
  end
data/Gemfile.lock CHANGED
@@ -1,49 +1,49 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- noths (0.1.1)
4
+ noths (0.2.1)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ZenTest (4.11.1)
12
- addressable (2.5.2)
13
- public_suffix (>= 2.0.2, < 4.0)
11
+ ZenTest (4.12.0)
12
+ addressable (2.8.0)
13
+ public_suffix (>= 2.0.2, < 5.0)
14
14
  autotest (4.4.6)
15
15
  ZenTest (>= 4.4.1)
16
- autotest-fsevent (0.2.13)
16
+ autotest-fsevent (0.2.18)
17
17
  sys-uname
18
18
  autotest-growl (0.2.16)
19
19
  autotest-rails-pure (4.1.2)
20
- crack (0.4.3)
21
- safe_yaml (~> 1.0.0)
22
- diff-lcs (1.3)
23
- ethon (0.11.0)
24
- ffi (>= 1.3.0)
25
- ffi (1.9.25)
26
- hashdiff (0.3.7)
27
- json (2.1.0)
28
- public_suffix (3.0.2)
29
- rake (12.0.0)
30
- rspec (3.7.0)
31
- rspec-core (~> 3.7.0)
32
- rspec-expectations (~> 3.7.0)
33
- rspec-mocks (~> 3.7.0)
34
- rspec-core (3.7.1)
35
- rspec-support (~> 3.7.0)
36
- rspec-expectations (3.7.0)
20
+ crack (0.4.5)
21
+ rexml
22
+ diff-lcs (1.4.4)
23
+ ethon (0.14.0)
24
+ ffi (>= 1.15.0)
25
+ ffi (1.15.3)
26
+ hashdiff (1.0.1)
27
+ json (2.5.1)
28
+ public_suffix (4.0.6)
29
+ rake (12.3.3)
30
+ rexml (3.2.5)
31
+ rspec (3.10.0)
32
+ rspec-core (~> 3.10.0)
33
+ rspec-expectations (~> 3.10.0)
34
+ rspec-mocks (~> 3.10.0)
35
+ rspec-core (3.10.1)
36
+ rspec-support (~> 3.10.0)
37
+ rspec-expectations (3.10.1)
37
38
  diff-lcs (>= 1.2.0, < 2.0)
38
- rspec-support (~> 3.7.0)
39
- rspec-mocks (3.7.0)
39
+ rspec-support (~> 3.10.0)
40
+ rspec-mocks (3.10.2)
40
41
  diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.7.0)
42
- rspec-support (3.7.1)
43
- safe_yaml (1.0.4)
44
- sys-uname (1.0.3)
45
- ffi (>= 1.0.0)
46
- typhoeus (1.3.0)
42
+ rspec-support (~> 3.10.0)
43
+ rspec-support (3.10.2)
44
+ sys-uname (1.2.2)
45
+ ffi (~> 1.1)
46
+ typhoeus (1.4.0)
47
47
  ethon (>= 0.9.0)
48
48
  vcr (3.0.3)
49
49
  webmock (1.24.6)
@@ -60,10 +60,10 @@ DEPENDENCIES
60
60
  autotest-growl (~> 0.2, >= 0.2.16)
61
61
  autotest-rails-pure (~> 4.1, >= 4.1.2)
62
62
  noths!
63
- rake (~> 12.0.0)
63
+ rake (~> 12.3.3)
64
64
  rspec (~> 3.6, >= 3.6.0)
65
65
  vcr (~> 3.0, >= 3.0.1)
66
66
  webmock (~> 1.24, >= 1.24.3)
67
67
 
68
68
  BUNDLED WITH
69
- 1.16.3
69
+ 2.2.24
@@ -253,7 +253,7 @@ module Noths
253
253
  def build_request_url(path)
254
254
  # Add leading and trailing slashes to path
255
255
  path = "/#{path}".gsub(/\/+/, '/')
256
- URI.encode(@config.base_url + path)
256
+ URI::DEFAULT_PARSER.escape(@config.base_url + path)
257
257
  end
258
258
 
259
259
  # Builds the HTTP request body
@@ -165,7 +165,7 @@ module Noths
165
165
 
166
166
  def base_url
167
167
  url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
168
- URI.encode(url)
168
+ URI::DEFAULT_PARSER.escape(url)
169
169
  end
170
170
 
171
171
  # Gets API key (with prefix if set).
data/lib/noths/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Noths
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -256,7 +256,7 @@ module {{moduleName}}
256
256
  def build_request_url(path)
257
257
  # Add leading and trailing slashes to path
258
258
  path = "/#{path}".gsub(/\/+/, '/')
259
- URI.encode(@config.base_url + path)
259
+ URI::DEFAULT_PARSER.escape(@config.base_url + path)
260
260
  end
261
261
 
262
262
  # Builds the HTTP request body
@@ -165,7 +165,7 @@ module {{moduleName}}
165
165
 
166
166
  def base_url
167
167
  url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
168
- URI.encode(url)
168
+ URI::DEFAULT_PARSER.escape(url)
169
169
  end
170
170
 
171
171
  # Gets API key (with prefix if set).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noths
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Sharshenov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-03 00:00:00.000000000 Z
11
+ date: 2021-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -355,43 +355,42 @@ required_rubygems_version: !ruby/object:Gem::Requirement
355
355
  - !ruby/object:Gem::Version
356
356
  version: '0'
357
357
  requirements: []
358
- rubyforge_project:
359
- rubygems_version: 2.7.7
358
+ rubygems_version: 3.2.15
360
359
  signing_key:
361
360
  specification_version: 4
362
361
  summary: Swagger client for https://www.notonthehighstreet.com/
363
362
  test_files:
364
- - spec/api/refunds_api_spec.rb
365
363
  - spec/api/orders_api_spec.rb
364
+ - spec/api/refunds_api_spec.rb
366
365
  - spec/api_client_spec.rb
367
366
  - spec/configuration_spec.rb
368
367
  - spec/models/error_spec.rb
369
- - spec/models/search_result_meta_spec.rb
370
- - spec/models/item_financials_spec.rb
368
+ - spec/models/item_spec.rb
369
+ - spec/models/delivery_address_spec.rb
370
+ - spec/models/dispatch_bulk_model_spec.rb
371
+ - spec/models/decline_bulk_model_spec.rb
371
372
  - spec/models/delivery_service_spec.rb
372
- - spec/models/product_spec.rb
373
373
  - spec/models/order_refund_spec.rb
374
- - spec/models/order_detail_spec.rb
375
- - spec/models/manual_payment_spec.rb
376
- - spec/models/acceptance_bulk_model_spec.rb
377
- - spec/models/decline_bulk_model_spec.rb
378
- - spec/models/delivery_address_spec.rb
379
- - spec/models/image_url_spec.rb
374
+ - spec/models/financials_details_spec.rb
380
375
  - spec/models/enquiry_spec.rb
381
- - spec/models/item_spec.rb
376
+ - spec/models/financials_spec.rb
382
377
  - spec/models/money_spec.rb
383
- - spec/models/order_details_bulk_model_spec.rb
378
+ - spec/models/order_index_spec.rb
379
+ - spec/models/user_spec.rb
380
+ - spec/models/item_financials_spec.rb
384
381
  - spec/models/currency_spec.rb
385
- - spec/models/enquiry_message_spec.rb
386
382
  - spec/models/dispatch_notes_bulk_model_spec.rb
383
+ - spec/models/delivery_zone_spec.rb
384
+ - spec/models/image_url_spec.rb
385
+ - spec/models/manual_payment_spec.rb
386
+ - spec/models/enquiry_message_spec.rb
387
+ - spec/models/link_spec.rb
387
388
  - spec/models/product_option_spec.rb
388
389
  - spec/models/order_spec.rb
389
- - spec/models/financials_spec.rb
390
+ - spec/models/acceptance_bulk_model_spec.rb
391
+ - spec/models/order_details_bulk_model_spec.rb
392
+ - spec/models/order_detail_spec.rb
390
393
  - spec/models/refund_response_spec.rb
391
- - spec/models/delivery_zone_spec.rb
392
- - spec/models/user_spec.rb
393
- - spec/models/financials_details_spec.rb
394
- - spec/models/dispatch_bulk_model_spec.rb
395
- - spec/models/order_index_spec.rb
396
- - spec/models/link_spec.rb
394
+ - spec/models/product_spec.rb
395
+ - spec/models/search_result_meta_spec.rb
397
396
  - spec/spec_helper.rb