easyship-rates-ruby-api 0.6.4 → 0.6.5

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
  SHA1:
3
- metadata.gz: bb99ee129b5dacf9409b142ae7528e6ab267f1fd
4
- data.tar.gz: 582e8b715a2c06859b20a715b3d8d8ebfd1ad83e
3
+ metadata.gz: 6a033979dcab160f9a39964c3093fe9937536cd1
4
+ data.tar.gz: 2fef77edc56e741bf63ace543e09f5c6801d5109
5
5
  SHA512:
6
- metadata.gz: c51be17f4fc5064a50d5508667ac8f3692828695ef9229a3efbf07354d56f7a478d5662a18bc5920aac55e29000b9e27c5506e0833045318374e3f2da3aaf648
7
- data.tar.gz: 0671f4a2660ab9bf3ee4f7b54a18086bfe2f7366797fc6bb48b41353a6087da59db294d3b8bbece3c6b6cebdd114a853605baeb43d101f4475a35a3cc4ab05ae
6
+ metadata.gz: 123d79389687ae53cc7af62cec13d0fb0ed9b5d4dbaaf1bb51b7c68c0516dd0753e3b5091d71b0c511c49dd1691508fae69a54a842f2174743828a48389b59d3
7
+ data.tar.gz: 4569c203536360885dc2f1b51ffa54044b1bd3701fcc5049889b0dcd5d15cc7447a31b7addc5c3fcf72584050b2dbd486f01bc670fdd1043126522b4d88bb724
@@ -1,7 +1,8 @@
1
1
  module EasyshipRatesRubyApi
2
2
  module Api
3
3
  autoload :QueryHelpers, 'easyship/rates/ruby/api/api/query_helpers'
4
- autoload :Rates, 'easyship/rates/ruby/api/api/rates'
5
- autoload :Couriers, 'easyship/rates/ruby/api/api/couriers'
4
+ autoload :Rates, 'easyship/rates/ruby/api/api/rates'
5
+ autoload :Couriers, 'easyship/rates/ruby/api/api/couriers'
6
+ autoload :Users, 'easyship/rates/ruby/api/api/users'
6
7
  end
7
8
  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 Users
9
+ # Update Users
10
+ # only used by internal service
11
+ # @return [Easyship::Rates::Ruby::Mash]
12
+ def update_user(options = {})
13
+ path = '/users/update'
14
+ defaults = {}
15
+ Mash.from_json(post(path, defaults.merge(options)).body)
16
+ end
17
+ end
18
+ end
19
+ end
@@ -7,6 +7,7 @@ module EasyshipRatesRubyApi
7
7
  include Api::QueryHelpers
8
8
  include Api::Rates
9
9
  include Api::Couriers
10
+ include Api::Users
10
11
 
11
12
  attr_reader :client_token, :client_secret, :client_options
12
13
 
@@ -2,7 +2,7 @@ module EasyshipRatesRubyApi
2
2
  module Version #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 6
5
- PATCH = 4
5
+ PATCH = 5
6
6
  PRE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
8
8
  end
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.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - aloha
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-28 00:00:00.000000000 Z
11
+ date: 2017-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -127,6 +127,7 @@ files:
127
127
  - lib/easyship/rates/ruby/api/api/couriers.rb
128
128
  - lib/easyship/rates/ruby/api/api/query_helpers.rb
129
129
  - lib/easyship/rates/ruby/api/api/rates.rb
130
+ - lib/easyship/rates/ruby/api/api/users.rb
130
131
  - lib/easyship/rates/ruby/api/client.rb
131
132
  - lib/easyship/rates/ruby/api/errors.rb
132
133
  - lib/easyship/rates/ruby/api/helpers.rb