delhivery 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b02ae1b12f046203229bd9bc30093b896a36a9a254bd0a52fb53b044ca2f6cab
4
+ data.tar.gz: 15311a86f04120856b47b0b91ffc6c263b694637963cf8296deaaeac2567c825
5
+ SHA512:
6
+ metadata.gz: ef4445e4cf2f33d8d79976e90581f26a35fc0dcf04b9168d95ac733039bd88a7f4a484bd59b1a37c6df7b75b605adcab431d689d34ec4eb93bb567710dcb09ce
7
+ data.tar.gz: c54ce60122a9199d586c8754df85cd0a3ad9ae9e64f15c61d29917b202056747206b807656bd451aaab8eb61ca888290a6a463c2172beb8e3475d8ef3711cf7e
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.0
5
+ before_install: gem install bundler -v 1.14.6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at findspidergears@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in delhivery.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Spidergears
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.
@@ -0,0 +1,41 @@
1
+ # Delhivery
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/delhivery`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'delhivery'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install delhivery
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/delhivery. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "delhivery"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -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,46 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'delhivery/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "delhivery"
8
+ spec.version = Delhivery::VERSION
9
+ spec.authors = ["Spidergears"]
10
+ spec.email = ["findspidergears@gmail.com"]
11
+
12
+ spec.summary = %q{Ruby gem for Delhivery REST API}
13
+ spec.description = %q{Ruby gem for Delhivery REST API}
14
+ spec.homepage = "https://github.com/spidergears/delhivery"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_dependency 'faraday', '~> 0.9'
34
+ spec.add_dependency 'faraday_middleware'
35
+ spec.add_dependency 'multi_json'
36
+ spec.add_dependency 'null_logger'
37
+ spec.add_dependency "hashie"
38
+
39
+ spec.add_development_dependency "bundler", "~> 1.14"
40
+ spec.add_development_dependency "rake", "~> 10.0"
41
+ spec.add_development_dependency "rspec", "~> 3.0"
42
+ spec.add_development_dependency "vcr", '~> 3.0', '>= 3.0.3'
43
+ spec.add_development_dependency "pry", "~> 0.10.3"
44
+ spec.add_development_dependency "pry-nav", "~> 0.2.4"
45
+ spec.add_development_dependency "coveralls", "~> 0.8.19"
46
+ end
@@ -0,0 +1,31 @@
1
+ require "faraday"
2
+ require "multi_json"
3
+ require "json"
4
+ require "yaml"
5
+ require 'pry'
6
+ require 'pry-nav'
7
+
8
+ require "delhivery/errors"
9
+ require "delhivery/configuration"
10
+ require "delhivery/connection"
11
+ require "delhivery/version"
12
+ require "delhivery/services/base_service"
13
+ require "delhivery/services/invoice_service"
14
+ require "delhivery/services/package_service"
15
+ require "delhivery/services/packing_slip_service"
16
+ require "delhivery/services/pickup_service"
17
+ require "delhivery/services/pin_code_service"
18
+ require "delhivery/services/warehouse_service"
19
+ require "delhivery/services/way_bill_service"
20
+
21
+ module Delhivery
22
+ def self.configuration
23
+ @configuration ||= Configuration.new
24
+ end
25
+
26
+ def self.configure(opts = {}, &block)
27
+ @configuration = Configuration.new(opts)
28
+ yield(configuration) if block_given?
29
+ @configuration.validate
30
+ end
31
+ end
@@ -0,0 +1,18 @@
1
+ module Delhivery
2
+ class Configuration
3
+ attr_accessor :api_key, :production
4
+
5
+ def initialize(opts = {})
6
+ @api_key = opts[:api_key]
7
+ @production = opts[:production] || false
8
+ end
9
+
10
+ def validate
11
+ errors = []
12
+ errors << "Invalid API Key" if @api_key.nil? || @api_key.empty?
13
+ unless errors.empty?
14
+ raise ArgumentError, "#{errors.join(', ')}"
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,62 @@
1
+ require 'faraday_middleware'
2
+ require 'delhivery/faraday/raise_http_errors'
3
+ require 'logger'
4
+ require 'null_logger'
5
+
6
+ module Delhivery
7
+ class Connection
8
+ def initialize(opts)
9
+ @token = opts[:api_key]
10
+ base_url = opts[:production] ? "https://track.delhivery.com/" : "https://test.delhivery.com"
11
+ @logger = ::Logger.new(STDOUT)
12
+ #@logger = opts[:logger] || NullLogger.instance
13
+ @connection = ::Faraday.new(base_url) do |conn|
14
+ conn.response :logger, @logger, bodies: true
15
+ conn.request :json
16
+ conn.request :url_encoded
17
+ conn.response :mashify
18
+ conn.response :json, :content_type => /\bjson$/
19
+ conn.use Delhivery::Faraday::Response::RaiseHttpError
20
+ conn.adapter ::Faraday.default_adapter
21
+ end
22
+ end
23
+
24
+ def log
25
+ @logger
26
+ end
27
+
28
+ def get(route, params={}, headers={})
29
+ params = params.delete_if {|key, value| value.nil? }
30
+ run_request(:get, build_url(route, params), nil, headers)
31
+ end
32
+
33
+ def build_url(route, params)
34
+ @connection.build_url(route, params)
35
+ end
36
+
37
+ def post(route, body=nil, headers={})
38
+ run_request(:post, route, body, headers)
39
+ end
40
+
41
+ def put(route, body=nil, headers={})
42
+ run_request(:put, route, body, headers)
43
+ end
44
+
45
+ def delete(route, body=nil, headers={})
46
+ run_request(:delete, route, body, headers)
47
+ end
48
+
49
+ def run_request(method, route, body, headers)
50
+ default_headers = { 'Authorization' => "Token #{@token}", 'Accept' => 'application/json', 'Content-Type': 'application/json'}.freeze
51
+ response = {}
52
+ response = @connection.run_request(
53
+ method,
54
+ route,
55
+ body,
56
+ default_headers.merge(headers)
57
+ )
58
+ log.debug(response.body)
59
+ response
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,15 @@
1
+ module Delhivery
2
+ class Error < StandardError; end
3
+ class BadRequest < Error; end
4
+ class Unauthorized < Error; end
5
+ class Forbidden < Error; end
6
+ class NotFound < Error; end
7
+ class NotAcceptable < Error; end
8
+ class UnprocessableEntity < Error; end
9
+ class InternalServerError < Error; end
10
+ class NotImplemented < Error; end
11
+ class BadGateway < Error; end
12
+ class ServiceUnavailable < Error; end
13
+ class InvalidJson < Error; end
14
+ class Timeout < Error; end
15
+ end
@@ -0,0 +1,41 @@
1
+ module Delhivery
2
+ module Faraday
3
+ module Response
4
+ class RaiseHttpError < ::Faraday::Response::Middleware
5
+ def on_complete(response)
6
+ case response[:status].to_i
7
+ when 400
8
+ raise Delhivery::BadRequest, error_message(response)
9
+ when 401
10
+ raise Delhivery::Unauthorized, error_message(response)
11
+ when 403
12
+ raise Delhivery::Forbidden, error_message(response)
13
+ when 404
14
+ raise Delhivery::NotFound, error_message(response)
15
+ when 406
16
+ raise Delhivery::NotAcceptable, error_message(response)
17
+ when 422
18
+ raise Delhivery::UnprocessableEntity, error_message(response)
19
+ when 500
20
+ raise Delhivery::InternalServerError, error_message(response)
21
+ when 501
22
+ raise Delhivery::NotImplemented, error_message(response)
23
+ when 502
24
+ raise Delhivery::BadGateway, error_message(response)
25
+ when 503
26
+ raise Delhivery::ServiceUnavailable, error_message(response)
27
+ end
28
+ end
29
+
30
+ def error_message(response)
31
+ msg = "#{response[:method].to_s.upcase} #{response[:url].to_s}: #{response[:status]}"
32
+ if errors = response[:body] && response[:body]["detail"]
33
+ msg << "\n"
34
+ msg << errors.join("\n")
35
+ end
36
+ msg
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,14 @@
1
+ module Delhivery
2
+ class BaseService
3
+ class << self
4
+ private
5
+ def connection
6
+ @connection ||
7
+ Delhivery::Connection.new(
8
+ api_key: Delhivery.configuration.api_key,
9
+ production: Delhivery.configuration.production
10
+ )
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ module Delhivery
2
+ class InvoiceService < BaseService
3
+ class << self
4
+ def generate_invoice(params)
5
+ connection.get(path, params)
6
+ end
7
+
8
+ private
9
+ def path
10
+ "/kinko/api/invoice/charges/json/"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,39 @@
1
+ module Delhivery
2
+ class PackageService < BaseService
3
+ class << self
4
+ def create(params)
5
+ formatted_param = {format: 'json', data: params.to_json}
6
+ connection.post(create_path, formatted_param, {'Content-Type': 'application/x-www-form-urlencoded'})
7
+ end
8
+
9
+ def track_with_waybill_numbers(*waybill_numbers, verbose: 2)
10
+ connection.get(track_path, {waybill: waybill_numbers.join(','), verbose: verbose})
11
+ end
12
+
13
+ def track_with_ref_numbers(*ref_numbers)
14
+ connection.get(track_path, ref_nos: ref_numbers.join(','))
15
+ end
16
+
17
+ def edit(params)
18
+ connection.post(edit_path, params)
19
+ end
20
+
21
+ def cancel(*waybill_numbers)
22
+ connection.post(edit_path, {waybill: waybill_numbers.join(','), cancellation: "true"})
23
+ end
24
+
25
+ private
26
+ def create_path
27
+ "/api/cmu/create.json"
28
+ end
29
+
30
+ def track_path
31
+ "/api/packages/json/"
32
+ end
33
+
34
+ def edit_path
35
+ "/api/p/edit"
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,14 @@
1
+ module Delhivery
2
+ class PackingSlipService < BaseService
3
+ class << self
4
+ def generate_slip(*waybill_numbers)
5
+ connection.get(path, wbns: waybill_numbers.join(','))
6
+ end
7
+
8
+ private
9
+ def path
10
+ "/api/p/packing_slip"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,20 @@
1
+ module Delhivery
2
+ class PickUpService < BaseService
3
+ class << self
4
+ def request_pickup(dateTime, location, count)
5
+ connection.post(path, {
6
+ pickup_time: dateTime.strftime("%H:%M:%S"),
7
+ pickup_date: dateTime.strftime("%Y%m%d"),
8
+ pickup_location: location,
9
+ expected_package_count: count
10
+ }
11
+ )
12
+ end
13
+
14
+ private
15
+ def path
16
+ "/fm/request/new/"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,22 @@
1
+ module Delhivery
2
+ class PinCodeService < BaseService
3
+ class << self
4
+ def filter(*pin_codes)
5
+ connection.get(path, filter_codes: pin_codes.join(','))
6
+ end
7
+
8
+ def active_after(date)
9
+ connection.get(path, dt: date.strftime("%Y-%m-%d"))
10
+ end
11
+
12
+ def for_state(state_code)
13
+ connection.get(path, st: state_code)
14
+ end
15
+
16
+ private
17
+ def path
18
+ "/c/api/pin-codes/json/"
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,30 @@
1
+ module Delhivery
2
+ class WarehouseService < BaseService
3
+ class << self
4
+ def create(params)
5
+ connection.post(create_path, params)
6
+ end
7
+
8
+ def check_status(warehouse_name)
9
+ connection.post(status_path, name: warehouse_name)
10
+ end
11
+
12
+ def edit(params)
13
+ connection.post(edit_path, params)
14
+ end
15
+
16
+ private
17
+ def create_path
18
+ "/api/backend/clientwarehouse/create/"
19
+ end
20
+
21
+ def status_path
22
+ "/api/backend/clientwarehouse/status/"
23
+ end
24
+
25
+ def edit_path
26
+ "/api/backend/clientwarehouse/edit/"
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,18 @@
1
+ module Delhivery
2
+ class WayBillService < BaseService
3
+ class << self
4
+ def bulk_fetch(count=1)
5
+ connection.get(path('bulk'), { count: count } )
6
+ end
7
+
8
+ def fetch
9
+ connection.get(path('fetch'))
10
+ end
11
+
12
+ private
13
+ def path(action)
14
+ "/waybill/api/#{action}/json/"
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ module Delhivery
2
+ VERSION = "0.1.1"
3
+ end
@@ -0,0 +1,57 @@
1
+ require 'date'
2
+ Delhivery.configure(api_key: '--api-key-here--', production: false)
3
+ dsh = {
4
+ "dispatch_date": DateTime.now,
5
+ "dispatch_id": 'CDId#146',
6
+ "pickup_location":{
7
+ "add": "113 Barthal, Dundahera",
8
+ "city": "New Delhi",
9
+ "country": "India",
10
+ "name": "FCDEL1",
11
+ "phone": "xxxxxxxxxx",
12
+ "pin": "110074"
13
+ },
14
+ "shipments": [
15
+ {
16
+ "waybill": "",
17
+ "client": "XYZ Online",
18
+ "name": "John Kapoor",
19
+ "order": "3002199824",
20
+ "products_desc": "Sony PS3 Super Slim(Black)",
21
+ "order_date": DateTime.now.iso8601,
22
+ "payment_mode": "Pre­paid",
23
+ "total_amount": 21841.0,
24
+ "cod_amount": 0.0,
25
+ "add": "M25, Nelson Marg, GBP City Phase 1",
26
+ "city": "Gurgaon",
27
+ "state": "Haryana",
28
+ "country": "India",
29
+ "phone": "xxxxxxxxxx",
30
+ "pin": "122002",
31
+ "return_add": "",
32
+ "return_city": "",
33
+ "return_country": "",
34
+ "return_name": "",
35
+ "return_phone": "",
36
+ "return_pin": "",
37
+ "return_state": "",
38
+ "supplier": "Kangaroo (India) Pvt Ltd",
39
+ "extra_parameters": "",
40
+ "shipment_width": "",
41
+ "shipment_height": "",
42
+ "weight": "650.0 gm",
43
+ "quantity": 1,
44
+ "seller_inv": "invoice number",
45
+ "seller_inv_date": DateTime.now.iso8601,
46
+ "seller_name": "seller name",
47
+ "seller_add": "seller add",
48
+ "seller_cst": "seller cst",
49
+ "seller_tin": "seller tin",
50
+ "consignee_tin": "consignee tin",
51
+ "commodity_value": "commodity value",
52
+ "tax_value": "tax value",
53
+ "sales_tax_form_ack_no":"",
54
+ "category_of_goods":""
55
+ }
56
+ ]
57
+ }
metadata ADDED
@@ -0,0 +1,245 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: delhivery
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Spidergears
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-12-31 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: '0.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.9'
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: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: multi_json
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: null_logger
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: hashie
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: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.14'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.14'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '10.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '10.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: vcr
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.0'
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 3.0.3
135
+ type: :development
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: '3.0'
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: 3.0.3
145
+ - !ruby/object:Gem::Dependency
146
+ name: pry
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: 0.10.3
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: 0.10.3
159
+ - !ruby/object:Gem::Dependency
160
+ name: pry-nav
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: 0.2.4
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: 0.2.4
173
+ - !ruby/object:Gem::Dependency
174
+ name: coveralls
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: 0.8.19
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - "~>"
185
+ - !ruby/object:Gem::Version
186
+ version: 0.8.19
187
+ description: Ruby gem for Delhivery REST API
188
+ email:
189
+ - findspidergears@gmail.com
190
+ executables: []
191
+ extensions: []
192
+ extra_rdoc_files: []
193
+ files:
194
+ - ".gitignore"
195
+ - ".rspec"
196
+ - ".travis.yml"
197
+ - CODE_OF_CONDUCT.md
198
+ - Gemfile
199
+ - LICENSE.txt
200
+ - README.md
201
+ - Rakefile
202
+ - bin/console
203
+ - bin/setup
204
+ - delhivery.gemspec
205
+ - lib/delhivery.rb
206
+ - lib/delhivery/configuration.rb
207
+ - lib/delhivery/connection.rb
208
+ - lib/delhivery/errors.rb
209
+ - lib/delhivery/faraday/raise_http_errors.rb
210
+ - lib/delhivery/services/base_service.rb
211
+ - lib/delhivery/services/invoice_service.rb
212
+ - lib/delhivery/services/package_service.rb
213
+ - lib/delhivery/services/packing_slip_service.rb
214
+ - lib/delhivery/services/pickup_service.rb
215
+ - lib/delhivery/services/pin_code_service.rb
216
+ - lib/delhivery/services/warehouse_service.rb
217
+ - lib/delhivery/services/way_bill_service.rb
218
+ - lib/delhivery/version.rb
219
+ - test_data.rb
220
+ homepage: https://github.com/spidergears/delhivery
221
+ licenses:
222
+ - MIT
223
+ metadata:
224
+ allowed_push_host: https://rubygems.org
225
+ post_install_message:
226
+ rdoc_options: []
227
+ require_paths:
228
+ - lib
229
+ required_ruby_version: !ruby/object:Gem::Requirement
230
+ requirements:
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ version: '0'
234
+ required_rubygems_version: !ruby/object:Gem::Requirement
235
+ requirements:
236
+ - - ">="
237
+ - !ruby/object:Gem::Version
238
+ version: '0'
239
+ requirements: []
240
+ rubyforge_project:
241
+ rubygems_version: 2.7.3
242
+ signing_key:
243
+ specification_version: 4
244
+ summary: Ruby gem for Delhivery REST API
245
+ test_files: []