easyship-rates-ruby-api 0.4.0 → 0.5.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d62955745278b51833230880d7173a6f6b62368
4
- data.tar.gz: e01147341fdd4ec3441f91cc58649b58323a095a
3
+ metadata.gz: e5abfadb23dcb748e5a8172cd5526780390a2035
4
+ data.tar.gz: e9262d8281ff796ddac00e80c113e806e18520e3
5
5
  SHA512:
6
- metadata.gz: 37e0766041acc737021e9b7fb9c4304676caddadb597bba5ab13f93420bcdf0d62dff552b0a7bbc48cf63340d7666e8f93a939d9a631d9d855fe2ff7491e98f4
7
- data.tar.gz: 9cfb1d6bc7829af46edc500f105bb4545eb4579d0f73e0b8c9a229d1fe09e2a4665c3aca08f78a1e053ef4b63a85f77c6754e6300538f73cf95dd2b3a76bb747
6
+ metadata.gz: e37ade804407d62b693dc6597b1affe237fa53417b2b776524179cbd638ff4c8cf8e32750043c13e12ee1abe00242478a0c2889409a97e8f63e8804d934fb75d
7
+ data.tar.gz: 09d71415c216746f2678ecc141375afcd6f91bcb71bafcca6754d34e14ad17b09c75792109d5ac5b1246e3362d548888145dcc9edfc96f4a277ac9d9dece555c
@@ -2,5 +2,6 @@ module EasyshipRatesRubyApi
2
2
  module Api
3
3
  autoload :QueryHelpers, 'easyship/rates/ruby/api/api/query_helpers'
4
4
  autoload :Rates, 'easyship/rates/ruby/api/api/rates'
5
+ autoload :Couriers, 'easyship/rates/ruby/api/api/couriers'
5
6
  end
6
7
  end
@@ -0,0 +1,19 @@
1
+ module EasyshipRatesRubyApi
2
+ module Api
3
+ # Rate API
4
+ #
5
+ # @see https://github.com/easyship/easyship-rates Rate API
6
+ #
7
+ # [(contribute here)](https://github.com/easyship/easyship-rates-ruby-api)
8
+ module Couriers
9
+ # Update/Create Couriers
10
+ # only used by internal service
11
+ # @return [Easyship::Rates::Ruby::Mash]
12
+ def update_courier(options = {})
13
+ path = '/update_courier'
14
+ defaults = {}
15
+ Mash.from_json(post(path, defaults.merge(options)).body)
16
+ end
17
+ end
18
+ end
19
+ end
@@ -6,6 +6,7 @@ module EasyshipRatesRubyApi
6
6
  include Helpers::Authorization
7
7
  include Api::QueryHelpers
8
8
  include Api::Rates
9
+ include Api::Couriers
9
10
 
10
11
  attr_reader :client_token, :client_secret, :client_options
11
12
 
@@ -1,7 +1,7 @@
1
1
  module EasyshipRatesRubyApi
2
2
  module Version #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 4
4
+ MINOR = 5
5
5
  PATCH = 0
6
6
  PRE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easyship-rates-ruby-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - aloha
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-23 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -124,6 +124,7 @@ files:
124
124
  - bin/setup
125
125
  - easyship-rates-ruby-api.gemspec
126
126
  - lib/easyship/rates/ruby/api/api.rb
127
+ - lib/easyship/rates/ruby/api/api/couriers.rb
127
128
  - lib/easyship/rates/ruby/api/api/query_helpers.rb
128
129
  - lib/easyship/rates/ruby/api/api/rates.rb
129
130
  - lib/easyship/rates/ruby/api/client.rb