boxtal_lite 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 76ff27162b2bf75af8b3255be81ad754e8d4d0b460d3337523482398c406041e
4
+ data.tar.gz: 4543d7fa469f241381e8da37ba976cfee8e53b8e0813201b6d6196a3c72a0177
5
+ SHA512:
6
+ metadata.gz: cd1c5f4414402c1d468c9d0b4f562f0448bc883a1d7aa829d7e63bdf526ca6ca115601d38ec758f5b0cefaa1499690e608036c1673a006786d80d74f56610269
7
+ data.tar.gz: 0ed2aa6218de8c63e192491e7bee895a9fe06cebe49805ff2774a27df910a1b8edd05c484508eb1a0db9a5567555bcbc503b8bb61a0717f93d86107e5cb19416
data/Dockerfile ADDED
@@ -0,0 +1,33 @@
1
+ FROM ruby:2.7.2
2
+
3
+ RUN apt-get update -yq \
4
+ && apt-get upgrade -yq \
5
+ #ESSENTIALS
6
+ && apt-get install -y -qq --no-install-recommends build-essential curl git-core vim passwd unzip cron gcc wget netcat \
7
+ # RAILS PACKAGES NEEDED
8
+ && apt-get update
9
+
10
+ RUN apt-get clean -qy \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN mkdir /app
14
+ WORKDIR /app
15
+
16
+
17
+ # install specific version of bundler
18
+ RUN gem install bundler -v 2.1.4
19
+
20
+ ENV BUNDLE_GEMFILE=/app/Gemfile \
21
+ BUNDLE_JOBS=20 \
22
+ BUNDLE_PATH=/bundle \
23
+ BUNDLE_BIN=/bundle/bin \
24
+ GEM_HOME=/bundle
25
+ ENV PATH="${BUNDLE_BIN}:${PATH}"
26
+
27
+ COPY Gemfile ./
28
+ RUN rm -rf Gemfile.lock
29
+ COPY . .
30
+ RUN bundle install
31
+
32
+
33
+ CMD ["bash"]
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in boxtal_lite.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,96 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ boxtal_lite (0.0.2)
5
+ activesupport
6
+ builder
7
+ faraday (~> 1.0)
8
+ faraday_middleware (~> 1.1)
9
+ multi_xml
10
+ nokogiri (~> 1.6)
11
+
12
+ GEM
13
+ remote: https://rubygems.org/
14
+ specs:
15
+ activesupport (6.1.4.1)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (>= 1.6, < 2)
18
+ minitest (>= 5.1)
19
+ tzinfo (~> 2.0)
20
+ zeitwerk (~> 2.3)
21
+ addressable (2.8.0)
22
+ public_suffix (>= 2.0.2, < 5.0)
23
+ builder (3.2.4)
24
+ concurrent-ruby (1.1.9)
25
+ crack (0.4.5)
26
+ rexml
27
+ diff-lcs (1.4.4)
28
+ dotenv (2.7.6)
29
+ faraday (1.8.0)
30
+ faraday-em_http (~> 1.0)
31
+ faraday-em_synchrony (~> 1.0)
32
+ faraday-excon (~> 1.1)
33
+ faraday-httpclient (~> 1.0.1)
34
+ faraday-net_http (~> 1.0)
35
+ faraday-net_http_persistent (~> 1.1)
36
+ faraday-patron (~> 1.0)
37
+ faraday-rack (~> 1.0)
38
+ multipart-post (>= 1.2, < 3)
39
+ ruby2_keywords (>= 0.0.4)
40
+ faraday-em_http (1.0.0)
41
+ faraday-em_synchrony (1.0.0)
42
+ faraday-excon (1.1.0)
43
+ faraday-httpclient (1.0.1)
44
+ faraday-net_http (1.0.1)
45
+ faraday-net_http_persistent (1.2.0)
46
+ faraday-patron (1.0.0)
47
+ faraday-rack (1.0.0)
48
+ faraday_middleware (1.2.0)
49
+ faraday (~> 1.0)
50
+ hashdiff (1.0.1)
51
+ i18n (1.8.10)
52
+ concurrent-ruby (~> 1.0)
53
+ minitest (5.14.4)
54
+ multi_xml (0.6.0)
55
+ multipart-post (2.1.1)
56
+ nokogiri (1.12.5-x86_64-linux)
57
+ racc (~> 1.4)
58
+ public_suffix (4.0.6)
59
+ racc (1.5.2)
60
+ rake (13.0.6)
61
+ rexml (3.2.5)
62
+ rspec (3.10.0)
63
+ rspec-core (~> 3.10.0)
64
+ rspec-expectations (~> 3.10.0)
65
+ rspec-mocks (~> 3.10.0)
66
+ rspec-core (3.10.1)
67
+ rspec-support (~> 3.10.0)
68
+ rspec-expectations (3.10.1)
69
+ diff-lcs (>= 1.2.0, < 2.0)
70
+ rspec-support (~> 3.10.0)
71
+ rspec-mocks (3.10.2)
72
+ diff-lcs (>= 1.2.0, < 2.0)
73
+ rspec-support (~> 3.10.0)
74
+ rspec-support (3.10.2)
75
+ ruby2_keywords (0.0.5)
76
+ tzinfo (2.0.4)
77
+ concurrent-ruby (~> 1.0)
78
+ webmock (3.14.0)
79
+ addressable (>= 2.8.0)
80
+ crack (>= 0.3.2)
81
+ hashdiff (>= 0.4.0, < 2.0.0)
82
+ zeitwerk (2.4.2)
83
+
84
+ PLATFORMS
85
+ ruby
86
+
87
+ DEPENDENCIES
88
+ boxtal_lite!
89
+ bundler
90
+ dotenv
91
+ rake
92
+ rspec
93
+ webmock
94
+
95
+ BUNDLED WITH
96
+ 2.1.4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Mancef Abdat
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,88 @@
1
+ # BoxtalLite
2
+
3
+ Boxtal.com API client
4
+ Boxtal has got two coexisting APIs: v3 and v1.
5
+ This gem makes use of both these APIs, as follows:
6
+ - Authentication via API v3 and v1
7
+ - Service via API v1
8
+ - Order via API v3
9
+ - Subscribe via API v3
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'boxtal_lite'
17
+ ```
18
+
19
+ ## Configuration
20
+
21
+ ```ruby
22
+ #API v3
23
+ BoxtalLite.configure do |config|
24
+ config.api_key = ENV['BOXTAL_API_KEY']
25
+ config.testing = true
26
+ end
27
+ #API v1
28
+ BoxtalLite.configure do |config|
29
+ config.v1_api_key = ENV['BOXTAL_V1_API_KEY']
30
+ config.v1_creds = ENV['BOXTAL_V1_CREDS']
31
+ config.testing = true
32
+ end
33
+ ```
34
+
35
+ API key can be passed via options too:
36
+
37
+ ```ruby
38
+ BoxtalLite::Service.all(query, api_key: 'mykey')
39
+ ```
40
+
41
+ Boxtal's V1 API (only V1) uses HTTP Basic authentication. User's credentials (base64) can be passed via options too:
42
+
43
+ ```ruby
44
+ BoxtalLite::Service.all(query, creds: 'mycreds')
45
+ ```
46
+
47
+
48
+ ## Usage
49
+
50
+ ### Fetch services list
51
+
52
+ ```ruby
53
+ services = BoxtalLite::Service.all(
54
+ { 'shipper.country': 'FR', 'shipper.zipcode': '75009', 'shipper.type': 'company', #from
55
+ 'recipient.country': 'FR', 'recipient.zipcode': '69100', 'recipient.type': 'individual', #to
56
+ 'colis_0.largeur': 10 ,'colis_0.hauteur': 10, 'colis_0.longueur': 10, 'colis_0.poids': 0.5, 'colis.valeur': 15, #dimensions
57
+ 'collection_date': '2021-10-18', 'content_code': '40120'
58
+ })
59
+ ```
60
+ To understand the params, please refer to : https://www.boxtal.com/fr/fr/api
61
+
62
+ ### Create order
63
+
64
+ ```ruby
65
+ order = BoxtalLite::Order.create(order_hash)
66
+ ```
67
+
68
+ ### Subscribe to webhooks and set callback urls
69
+
70
+ Subcribe to Boxtal's webhooks for Label/Document creation or for shipment tracking information
71
+ ```ruby
72
+ BoxtalLite::Subscription.create(
73
+ {
74
+ 'eventType': 'DOCUMENT_CREATED', #Or TRACKING_CHANGED
75
+ 'callbackUrl': '<your-callback-url>'
76
+ }
77
+ )
78
+ ```
79
+
80
+ ## Contributing
81
+
82
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Kubical-DevOps/BoxtalLite
83
+
84
+
85
+ ## License
86
+
87
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
88
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
8
+ task :version do |t|
9
+ puts BoxtalLite::VERSION
10
+ end
data/bin/console ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "boxtal_lite"
5
+
6
+ # (If you use this, don't forget to add pry to your Gemfile!)
7
+ # require "pry"
8
+ # Pry.start
9
+
10
+ require "irb"
11
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,34 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'boxtal_lite/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'boxtal_lite'
8
+ spec.version = BoxtalLite::VERSION
9
+ spec.authors = ['Moncef Abdat']
10
+ spec.email = ['abdatmoncef9@gmail.com']
11
+
12
+ spec.summary = %q{Boxtal.com API client}
13
+ spec.description = %q{Client to access boxtal.com shipment API}
14
+ spec.homepage = 'https://github.com/Kubical-DevOps/BoxtalLite'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = 'exe'
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ['lib']
21
+
22
+ spec.add_dependency 'faraday', '~> 1.0'
23
+ spec.add_dependency 'faraday_middleware', '~> 1.1'
24
+ spec.add_dependency 'multi_xml'
25
+ spec.add_dependency 'activesupport'
26
+ spec.add_dependency 'builder'
27
+ spec.add_dependency 'nokogiri', '~> 1.6'
28
+
29
+ spec.add_development_dependency 'bundler'
30
+ spec.add_development_dependency 'rake'
31
+ spec.add_development_dependency 'rspec'
32
+ spec.add_development_dependency 'dotenv'
33
+ spec.add_development_dependency 'webmock'
34
+ end
@@ -0,0 +1,122 @@
1
+ require 'faraday'
2
+ require 'faraday_middleware'
3
+ require 'nokogiri'
4
+
5
+ module BoxtalLite
6
+ class Client
7
+ def get(path, params = nil, options = {})
8
+ with_error_handling do
9
+ response = connection(options[:api_key]).get(path, params)
10
+ response.body
11
+ end
12
+ end
13
+
14
+ def v1_get(path, params = nil, options = {})
15
+ with_v1_error_handling do
16
+ response = v1_connection(options[:api_key], options[:creds]).get(path, params)
17
+ response.body
18
+ end
19
+ end
20
+
21
+ def post(path, payload, options = {})
22
+ begin
23
+ response = connection(options[:creds]).post(path, payload)
24
+ rescue => e
25
+ raise e.inspect
26
+ end
27
+ response.body
28
+ end
29
+
30
+ def delete(path, options = {})
31
+ with_error_handling do
32
+ response = connection(options[:creds]).delete(path)
33
+ response.body
34
+ end
35
+ end
36
+
37
+
38
+ def with_error_handling
39
+ yield
40
+ rescue Faraday::ClientError => e
41
+ message = extract_error_message(e.response[:body]) if e.response
42
+ message ||= e.message
43
+
44
+ raise(Error, message)
45
+ end
46
+
47
+ def with_v1_error_handling
48
+ yield
49
+ rescue Faraday::ClientError => e
50
+ message = extract_v1_error_message(e.response[:body]) if e.response
51
+ message ||= e.message
52
+
53
+ raise(Error, message)
54
+ end
55
+
56
+ def connection(api_key)
57
+ token = api_key || BoxtalLite.config.api_key
58
+ raise(Error, 'v3 API key is not set') unless token
59
+ @connection = build_connection
60
+ @connection.headers['Authorization'] = "Basic #{token}"
61
+ @connection.headers['Content-Type'] = 'application/json'
62
+ @connection
63
+ end
64
+
65
+ def v1_connection(api_key, creds)
66
+ token = api_key || BoxtalLite.config.v1_api_key
67
+ creds = creds || BoxtalLite.config.v1_creds
68
+ raise(Error, 'v1 API key is not set') unless token
69
+ raise(Error, 'v1 Creds are not set') unless creds
70
+ @connection = build_v1_connection
71
+ @connection.headers['Access_key'] = token
72
+ @connection.headers['Authorization'] = "Basic #{creds}"
73
+ @connection
74
+ end
75
+
76
+ def build_connection
77
+ Faraday.new(url: BoxtalLite.url) do |builder|
78
+ builder.options[:timeout] = config.timeout
79
+ builder.options[:open_timeout] = config.timeout
80
+
81
+ builder.request :json
82
+
83
+ builder.headers['Accept'] = 'application/json'
84
+ builder.response :json, content_type: /\bjson$/
85
+ builder.response :raise_error
86
+
87
+ builder.adapter Faraday.default_adapter
88
+ end
89
+ end
90
+
91
+ def build_v1_connection
92
+ Faraday.new(url: BoxtalLite.v1_url) do |builder|
93
+ builder.options[:timeout] = config.timeout
94
+ builder.options[:open_timeout] = config.timeout
95
+ #builder.request :xml
96
+ builder.headers['Accept'] = 'application/xml'
97
+
98
+ builder.response :xml, content_type: /\bxml$/
99
+ builder.response :raise_error
100
+
101
+ builder.adapter Faraday.default_adapter
102
+ end
103
+ end
104
+
105
+ def extract_error_message(response_body)
106
+ result = JSON.parse(response_body)
107
+ result['message'] || result['messages']
108
+ rescue JSON::ParserError
109
+ end
110
+
111
+ def extract_v1_error_message(response_body)
112
+ result = Nokogiri::XML(response_body)
113
+ result.xpath('//error/message').text || result.xpath('//error/messages').text
114
+ rescue Nokogiri::XML::SyntaxError
115
+ end
116
+
117
+ def config
118
+ BoxtalLite.config
119
+ end
120
+ end
121
+ end
122
+
@@ -0,0 +1,12 @@
1
+
2
+ module BoxtalLite
3
+ class Configuration
4
+ attr_accessor :api_key, :v1_api_key, :v1_creds, :testing, :timeout
5
+ alias testing? testing
6
+
7
+ def timeout
8
+ @timeout || 30
9
+ end
10
+ end
11
+ end
12
+
@@ -0,0 +1,27 @@
1
+
2
+ module BoxtalLite
3
+ class Error < StandardError
4
+ attr_reader :http_body, :http_code
5
+
6
+ def initialize(message, http_body = nil, http_code = nil)
7
+ @message = message
8
+ @http_body = http_body
9
+ @http_code = http_code
10
+ end
11
+
12
+ def inspect
13
+ "#{message}: #{http_body}"
14
+ end
15
+
16
+ def message
17
+ @message || self.class.to_s
18
+ end
19
+
20
+ def to_s
21
+ inspect
22
+ end
23
+ end
24
+
25
+ class ResponseError < Error; end
26
+ end
27
+
@@ -0,0 +1,11 @@
1
+
2
+ module BoxtalLite
3
+ class Order
4
+ PATH = 'shipping-order'
5
+
6
+ def self.create(payload, options = {})
7
+ BoxtalLite.client.post(PATH, payload, options)
8
+ end
9
+ end
10
+ end
11
+
@@ -0,0 +1,10 @@
1
+
2
+ module BoxtalLite
3
+ class Service
4
+ PATH = 'cotation'
5
+ def self.all(query, options = {})
6
+ BoxtalLite.client.v1_get(PATH, query, options)
7
+ end
8
+ end
9
+ end
10
+
@@ -0,0 +1,10 @@
1
+
2
+ module BoxtalLite
3
+ class Subscription
4
+ PATH = 'subscription'
5
+
6
+ def self.create(payload, options = {})
7
+ BoxtalLite.client.post(PATH, payload, options)
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ module BoxtalLite
2
+ VERSION = '0.0.2'
3
+ end
@@ -0,0 +1,36 @@
1
+ require 'boxtal_lite/version'
2
+ require 'boxtal_lite/configuration'
3
+ require 'boxtal_lite/errors'
4
+ require 'boxtal_lite/client'
5
+ require 'boxtal_lite/service'
6
+ require 'boxtal_lite/order'
7
+ require 'boxtal_lite/subscription'
8
+
9
+ module BoxtalLite
10
+ PRODUCTION_URL = 'https://api.boxtal.com/shipping/v3/'
11
+ SANDBOX_URL = 'https://api.boxtal.build/shipping/v3/'
12
+ V1_PRODUCTION_URL = 'https://www.envoimoinscher.com/api/v1/'
13
+ V1_SANDBOX_URL = 'https://test.envoimoinscher.com/api/v1/'
14
+
15
+ module_function
16
+
17
+ def configure
18
+ yield(config)
19
+ end
20
+
21
+ def config
22
+ @configuration ||= Configuration.new
23
+ end
24
+
25
+ def client
26
+ @client ||= Client.new
27
+ end
28
+
29
+ def url
30
+ config.testing? ? SANDBOX_URL : PRODUCTION_URL
31
+ end
32
+
33
+ def v1_url
34
+ config.testing? ? V1_SANDBOX_URL : V1_PRODUCTION_URL
35
+ end
36
+ end
metadata ADDED
@@ -0,0 +1,214 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: boxtal_lite
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Moncef Abdat
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-10-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday_middleware
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: multi_xml
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: activesupport
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: builder
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: nokogiri
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.6'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.6'
97
+ - !ruby/object:Gem::Dependency
98
+ name: bundler
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: dotenv
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: webmock
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ description: Client to access boxtal.com shipment API
168
+ email:
169
+ - abdatmoncef9@gmail.com
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - Dockerfile
175
+ - Gemfile
176
+ - Gemfile.lock
177
+ - LICENSE.txt
178
+ - README.md
179
+ - Rakefile
180
+ - bin/console
181
+ - bin/setup
182
+ - boxtal_lite.gemspec
183
+ - lib/boxtal_lite.rb
184
+ - lib/boxtal_lite/client.rb
185
+ - lib/boxtal_lite/configuration.rb
186
+ - lib/boxtal_lite/errors.rb
187
+ - lib/boxtal_lite/order.rb
188
+ - lib/boxtal_lite/service.rb
189
+ - lib/boxtal_lite/subscription.rb
190
+ - lib/boxtal_lite/version.rb
191
+ homepage: https://github.com/Kubical-DevOps/BoxtalLite
192
+ licenses:
193
+ - MIT
194
+ metadata: {}
195
+ post_install_message:
196
+ rdoc_options: []
197
+ require_paths:
198
+ - lib
199
+ required_ruby_version: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ required_rubygems_version: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ requirements: []
210
+ rubygems_version: 3.1.4
211
+ signing_key:
212
+ specification_version: 4
213
+ summary: Boxtal.com API client
214
+ test_files: []