sendcloud-ruby 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.rspec +1 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +38 -0
- data/Rakefile +1 -0
- data/lib/sendcloud.rb +5 -0
- data/lib/sendcloud/base.rb +30 -0
- data/lib/sendcloud/parcel_resource.rb +61 -0
- data/lib/sendcloud/shipment_address.rb +5 -0
- data/lib/sendcloud/shipping_method.rb +18 -0
- data/lib/sendcloud/version.rb +3 -0
- data/sendcloud.gemspec +30 -0
- data/spec/lib/sendcloud/base_spec.rb +12 -0
- data/spec/lib/sendcloud/parcel_resource_spec.rb +96 -0
- data/spec/lib/sendcloud/shipping_method_spec.rb +57 -0
- data/spec/spec_helper.rb +30 -0
- data/spec/vcr_cassettes/adjust_parcel.yml +84 -0
- data/spec/vcr_cassettes/adjust_with_wrong_parcel_id.yml +40 -0
- data/spec/vcr_cassettes/create_parcel.yml +43 -0
- data/spec/vcr_cassettes/get_label_for_parcel.yml +122 -0
- data/spec/vcr_cassettes/get_label_for_parcel_with_invalid_id.yml +40 -0
- data/spec/vcr_cassettes/get_parcel_error_with_invalid_pracel_id.yml +38 -0
- data/spec/vcr_cassettes/get_parcel_info.yml +81 -0
- data/spec/vcr_cassettes/get_shipping_method.yml +46 -0
- data/spec/vcr_cassettes/get_shipping_methods.yml +55 -0
- data/spec/vcr_cassettes/get_wrong_shipping_method.yml +44 -0
- data/spec/vcr_cassettes/wrong_create_parcel_without_name.yml +40 -0
- data/wercker.yml +25 -0
- metadata +201 -0
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://D74gAPTNto4N28N:Yb6m0YVBXtWm2zTdk@panel.sendcloud.nl/api/v2/shipping_methods/1
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 23 Jan 2015 09:51:08 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2.4.7 (Ubuntu)
|
25
|
+
X-Powered-By:
|
26
|
+
- PHP/5.5.9-1ubuntu4.5
|
27
|
+
Set-Cookie:
|
28
|
+
- ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22d9e5345842c4ae594f03cf6fa07f615a%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A14%3A%22217.120.18.125%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A4%3A%22Ruby%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A1422006668%3Bs%3A9%3A%22user_data%22%3Bs%3A0%3A%22%22%3B%7D527b87ee889cbbb00b2f13aa91a4f1b5;
|
29
|
+
expires=Fri, 23-Jan-2015 11:51:08 GMT; Max-Age=7200; path=/
|
30
|
+
Status:
|
31
|
+
- '200'
|
32
|
+
Vary:
|
33
|
+
- Accept-Encoding
|
34
|
+
Cache-Control:
|
35
|
+
- max-age=0, no-store
|
36
|
+
Content-Length:
|
37
|
+
- '165'
|
38
|
+
Content-Type:
|
39
|
+
- application/json
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: '{"shipping_method":{"id":1,"name":"Pakket Nederland (PostNL)","countries":[{"id":2,"iso_3":"NLD","iso_2":"NL","name":"Nederland","price":5.8}],"price":5.8,"options":[],"combinations":[{"id":1,"name":"Normaal
|
43
|
+
pakket"}]}}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 23 Jan 2015 09:51:08 GMT
|
46
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://key:secret@panel.sendcloud.nl/api/v2/shipping_methods
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 08 Dec 2014 09:42:04 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2.4.7 (Ubuntu)
|
25
|
+
X-Powered-By:
|
26
|
+
- PHP/5.5.9-1ubuntu4.5
|
27
|
+
Set-Cookie:
|
28
|
+
- ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%220f79b14fd4e7aaf9a50085c7a28e651b%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A14%3A%22217.120.18.125%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A4%3A%22Ruby%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A1418031724%3Bs%3A9%3A%22user_data%22%3Bs%3A0%3A%22%22%3B%7De5ad8e62c89fadfd29c00d0ba1df6b9c;
|
29
|
+
expires=Mon, 08-Dec-2014 11:42:04 GMT; Max-Age=7200; path=/
|
30
|
+
Status:
|
31
|
+
- '200'
|
32
|
+
Vary:
|
33
|
+
- Accept-Encoding
|
34
|
+
Cache-Control:
|
35
|
+
- max-age=0, no-store
|
36
|
+
Content-Length:
|
37
|
+
- '890'
|
38
|
+
Content-Type:
|
39
|
+
- application/json
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: '{"shipping_methods":[{"id":1,"name":"Pakket Nederland (PostNL)","countries":[{"id":2,"iso_3":"NLD","iso_2":"NL","name":"Nederland","price":5.8}],"price":5.8,"options":[],"combinations":[{"id":1,"name":"Normaal
|
43
|
+
pakket"}]},{"id":2,"name":"Pakket met handtekening (PostNL)","countries":[{"id":2,"iso_3":"NLD","iso_2":"NL","name":"Nederland","price":6.2}],"price":6.2,"options":[],"combinations":[{"id":3,"name":"Pakket
|
44
|
+
met handtekening"}]},{"id":3,"name":"Pakket naar buitenland","countries":[{"id":1,"iso_3":"BEL","iso_2":"BE","name":"Belgie","price":9},{"id":3,"iso_3":"DEU","iso_2":"DE","name":"Duitsland","price":9},{"id":4,"iso_3":"BGR","iso_2":"BG","name":"Bulgarije","price":32},{"id":5,"iso_3":"DNK","iso_2":"DK","name":"Denemarken","price":15},{"id":6,"iso_3":"EST","iso_2":"EE","name":"Estland","price":32},{"id":7,"iso_3":"FIN","iso_2":"FI","name":"Finland","price":23},{"id":8,"iso_3":"FRA","iso_2":"FR","name":"Frankrijk","price":15},{"id":9,"iso_3":"GBR","iso_2":"GB","name":"Verenigd
|
45
|
+
Koninkrijk","price":15},{"id":10,"iso_3":"HUN","iso_2":"HU","name":"Hongarije","price":24},{"id":11,"iso_3":"IRL","iso_2":"IE","name":"Ierland","price":37},{"id":12,"iso_3":"ITA","iso_2":"IT","name":"Italie","price":18},{"id":13,"iso_3":"LVA","iso_2":"LV","name":"Letland","price":33},{"id":14,"iso_3":"LTU","iso_2":"LT","name":"Litouwen","price":33},{"id":15,"iso_3":"LUX","iso_2":"LU","name":"Luxemburg","price":13},{"id":16,"iso_3":"AUT","iso_2":"AT","name":"Oostenrijk","price":14},{"id":17,"iso_3":"POL","iso_2":"PL","name":"Polen","price":24},{"id":18,"iso_3":"PRT","iso_2":"PT","name":"Portugal","price":35},{"id":19,"iso_3":"ROU","iso_2":"RO","name":"Roemenie","price":31},{"id":20,"iso_3":"SVN","iso_2":"SI","name":"Slovenie","price":24},{"id":21,"iso_3":"SVK","iso_2":"SK","name":"Slowakije","price":21},{"id":22,"iso_3":"ESP","iso_2":"ES","name":"Spanje","price":21},{"id":23,"iso_3":"CZE","iso_2":"CZ","name":"Tsjechie","price":21},{"id":24,"iso_3":"SWE","iso_2":"SE","name":"Zweden","price":19},{"id":25,"iso_3":"GRC","iso_2":"GR","name":"Griekenland","price":26}],"options":[],"combinations":[{"id":6,"name":"Pakket
|
46
|
+
naar buitenland"}]},{"id":4,"name":"Verzekerd verzenden tot 500 euro (PostNL)","countries":[{"id":2,"iso_3":"NLD","iso_2":"NL","name":"Nederland","price":7.4}],"price":7.4,"options":[],"combinations":[{"id":10,"name":"Verzekerd
|
47
|
+
verzenden"}]},{"id":5,"name":"Handtekening voor ontvangst + alleen huisadres
|
48
|
+
(PostNL)","countries":[{"id":2,"iso_3":"NLD","iso_2":"NL","name":"Nederland","price":6.3}],"price":6.3,"options":[],"combinations":[{"id":11,"name":"Handtekening
|
49
|
+
voor ontvangst + alleen huisadres (PostNL)"}]},{"id":6,"name":"Alleen huisadres
|
50
|
+
(PostNL)","countries":[{"id":2,"iso_3":"NLD","iso_2":"NL","name":"Nederland","price":6.1}],"price":6.1,"options":[],"combinations":[{"id":12,"name":"Alleen
|
51
|
+
huisadres (PostNL)"}]},{"id":7,"name":"PakjeGemak (PostNL)","countries":[{"id":2,"iso_3":"NLD","iso_2":"NL","name":"Nederland","price":6.2}],"price":6.2,"options":[],"combinations":[{"id":7,"name":"Pakjegemak"}]},{"id":8,"name":"Brievenpost","countries":[{"id":1,"iso_3":"BEL","iso_2":"BE","name":"Belgie","price":0},{"id":2,"iso_3":"NLD","iso_2":"NL","name":"Nederland","price":0},{"id":3,"iso_3":"DEU","iso_2":"DE","name":"Duitsland","price":0},{"id":4,"iso_3":"BGR","iso_2":"BG","name":"Bulgarije","price":0},{"id":5,"iso_3":"DNK","iso_2":"DK","name":"Denemarken","price":0},{"id":6,"iso_3":"EST","iso_2":"EE","name":"Estland","price":0},{"id":7,"iso_3":"FIN","iso_2":"FI","name":"Finland","price":0},{"id":8,"iso_3":"FRA","iso_2":"FR","name":"Frankrijk","price":0},{"id":9,"iso_3":"GBR","iso_2":"GB","name":"Verenigd
|
52
|
+
Koninkrijk","price":0},{"id":10,"iso_3":"HUN","iso_2":"HU","name":"Hongarije","price":0},{"id":11,"iso_3":"IRL","iso_2":"IE","name":"Ierland","price":0},{"id":12,"iso_3":"ITA","iso_2":"IT","name":"Italie","price":0},{"id":13,"iso_3":"LVA","iso_2":"LV","name":"Letland","price":0},{"id":14,"iso_3":"LTU","iso_2":"LT","name":"Litouwen","price":0},{"id":15,"iso_3":"LUX","iso_2":"LU","name":"Luxemburg","price":0},{"id":16,"iso_3":"AUT","iso_2":"AT","name":"Oostenrijk","price":0},{"id":17,"iso_3":"POL","iso_2":"PL","name":"Polen","price":0},{"id":18,"iso_3":"PRT","iso_2":"PT","name":"Portugal","price":0},{"id":19,"iso_3":"ROU","iso_2":"RO","name":"Roemenie","price":0},{"id":20,"iso_3":"SVN","iso_2":"SI","name":"Slovenie","price":0},{"id":21,"iso_3":"SVK","iso_2":"SK","name":"Slowakije","price":0},{"id":22,"iso_3":"ESP","iso_2":"ES","name":"Spanje","price":0},{"id":23,"iso_3":"CZE","iso_2":"CZ","name":"Tsjechie","price":0},{"id":24,"iso_3":"SWE","iso_2":"SE","name":"Zweden","price":0},{"id":25,"iso_3":"GRC","iso_2":"GR","name":"Griekenland","price":0}],"price":0,"options":[],"combinations":[{"id":14,"name":"Brievenpost"}]}]}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 08 Dec 2014 09:42:04 GMT
|
55
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://key:secret@panel.sendcloud.nl/api/v2/shipping_methods/99
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 404
|
19
|
+
message: Not Found
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Mon, 08 Dec 2014 10:01:59 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2.4.7 (Ubuntu)
|
25
|
+
X-Powered-By:
|
26
|
+
- PHP/5.5.9-1ubuntu4.5
|
27
|
+
Set-Cookie:
|
28
|
+
- ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%221d421b0c4a1da508feee195b971b364f%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A14%3A%22217.120.18.125%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A4%3A%22Ruby%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A1418032919%3Bs%3A9%3A%22user_data%22%3Bs%3A0%3A%22%22%3B%7Dd8e97b3e925a91fed69a0d77a133dddc;
|
29
|
+
expires=Mon, 08-Dec-2014 12:01:59 GMT; Max-Age=7200; path=/
|
30
|
+
Status:
|
31
|
+
- '404'
|
32
|
+
Content-Length:
|
33
|
+
- '122'
|
34
|
+
Cache-Control:
|
35
|
+
- max-age=0, no-store
|
36
|
+
Content-Type:
|
37
|
+
- application/json
|
38
|
+
body:
|
39
|
+
encoding: UTF-8
|
40
|
+
string: '{"error":{"code":404,"request":"api\/v2\/shipping_methods\/99","message":"Can''t
|
41
|
+
find shipping method with given ID (99)"}}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 08 Dec 2014 10:01:59 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://D74gAPTNto4N28N:Yb6m0YVBXtWm2zTdk@panel.sendcloud.nl/api/v2/parcels
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"parcel":{"name":null,"address":"Torenallee","city":"Eindhoven","postal_code":"5617BC","country":"NL","shipment":{"id":1},"requestShipment":false,"telephone":"","email":"","data":[]}}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 300
|
15
|
+
message: Multiple Choices
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Tue, 27 Jan 2015 12:38:07 GMT
|
19
|
+
Server:
|
20
|
+
- Apache/2.4.7 (Ubuntu)
|
21
|
+
X-Powered-By:
|
22
|
+
- PHP/5.5.9-1ubuntu4.5
|
23
|
+
Set-Cookie:
|
24
|
+
- ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%225ddddf34219be0a013d5beef627b1d62%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22213.184.251.170%22%3Bs%3A10%3A%22user_agent%22%3Bb%3A0%3Bs%3A13%3A%22last_activity%22%3Bi%3A1422362287%3Bs%3A9%3A%22user_data%22%3Bs%3A0%3A%22%22%3B%7D66b6d0d48e074cd95095bd7325112470;
|
25
|
+
expires=Tue, 27-Jan-2015 14:38:07 GMT; Max-Age=7200; path=/
|
26
|
+
Status:
|
27
|
+
- '300'
|
28
|
+
Content-Length:
|
29
|
+
- '80'
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0, no-store
|
32
|
+
Content-Type:
|
33
|
+
- application/json
|
34
|
+
body:
|
35
|
+
encoding: UTF-8
|
36
|
+
string: '{"error":{"code":300,"request":"api\/v2\/parcels","message":"Name is
|
37
|
+
required"}}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Tue, 27 Jan 2015 12:38:07 GMT
|
40
|
+
recorded_with: VCR 2.9.3
|
data/wercker.yml
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
box: wercker/rvm
|
2
|
+
# Build definition
|
3
|
+
build:
|
4
|
+
# The steps that will be executed on build
|
5
|
+
# See the Ruby section on the wercker devcenter:
|
6
|
+
# http://devcenter.wercker.com/articles/languages/ruby.html
|
7
|
+
steps:
|
8
|
+
# Uncomment this to force RVM to use a specific Ruby version
|
9
|
+
# - rvm-use:
|
10
|
+
# version: 2.1.3
|
11
|
+
|
12
|
+
# A step that executes `bundle install` command
|
13
|
+
- bundle-install
|
14
|
+
|
15
|
+
# A custom script step, name value is used in the UI
|
16
|
+
# and the code value contains the command that get executed
|
17
|
+
- script:
|
18
|
+
name: echo ruby information
|
19
|
+
code: |
|
20
|
+
echo "ruby version $(ruby --version) running"
|
21
|
+
echo "from location $(which ruby)"
|
22
|
+
echo -p "gem list: $(gem list)"
|
23
|
+
- script:
|
24
|
+
name: rspec
|
25
|
+
code: bundle exec rspec
|
metadata
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sendcloud-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Peter Berkenbosch
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.5'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
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: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
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: vcr
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
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: webmock
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry
|
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: yard
|
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
|
+
description: ruby client for the sendcloud api
|
126
|
+
email:
|
127
|
+
- peter@pero-ict.nl
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- ".rspec"
|
134
|
+
- Gemfile
|
135
|
+
- LICENSE.txt
|
136
|
+
- README.md
|
137
|
+
- Rakefile
|
138
|
+
- lib/sendcloud.rb
|
139
|
+
- lib/sendcloud/base.rb
|
140
|
+
- lib/sendcloud/parcel_resource.rb
|
141
|
+
- lib/sendcloud/shipment_address.rb
|
142
|
+
- lib/sendcloud/shipping_method.rb
|
143
|
+
- lib/sendcloud/version.rb
|
144
|
+
- sendcloud.gemspec
|
145
|
+
- spec/lib/sendcloud/base_spec.rb
|
146
|
+
- spec/lib/sendcloud/parcel_resource_spec.rb
|
147
|
+
- spec/lib/sendcloud/shipping_method_spec.rb
|
148
|
+
- spec/spec_helper.rb
|
149
|
+
- spec/vcr_cassettes/adjust_parcel.yml
|
150
|
+
- spec/vcr_cassettes/adjust_with_wrong_parcel_id.yml
|
151
|
+
- spec/vcr_cassettes/create_parcel.yml
|
152
|
+
- spec/vcr_cassettes/get_label_for_parcel.yml
|
153
|
+
- spec/vcr_cassettes/get_label_for_parcel_with_invalid_id.yml
|
154
|
+
- spec/vcr_cassettes/get_parcel_error_with_invalid_pracel_id.yml
|
155
|
+
- spec/vcr_cassettes/get_parcel_info.yml
|
156
|
+
- spec/vcr_cassettes/get_shipping_method.yml
|
157
|
+
- spec/vcr_cassettes/get_shipping_methods.yml
|
158
|
+
- spec/vcr_cassettes/get_wrong_shipping_method.yml
|
159
|
+
- spec/vcr_cassettes/wrong_create_parcel_without_name.yml
|
160
|
+
- wercker.yml
|
161
|
+
homepage: ''
|
162
|
+
licenses:
|
163
|
+
- MIT
|
164
|
+
metadata: {}
|
165
|
+
post_install_message:
|
166
|
+
rdoc_options: []
|
167
|
+
require_paths:
|
168
|
+
- lib
|
169
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
179
|
+
requirements: []
|
180
|
+
rubyforge_project:
|
181
|
+
rubygems_version: 2.2.2
|
182
|
+
signing_key:
|
183
|
+
specification_version: 4
|
184
|
+
summary: ruby client for the sendcloud api
|
185
|
+
test_files:
|
186
|
+
- spec/lib/sendcloud/base_spec.rb
|
187
|
+
- spec/lib/sendcloud/parcel_resource_spec.rb
|
188
|
+
- spec/lib/sendcloud/shipping_method_spec.rb
|
189
|
+
- spec/spec_helper.rb
|
190
|
+
- spec/vcr_cassettes/adjust_parcel.yml
|
191
|
+
- spec/vcr_cassettes/adjust_with_wrong_parcel_id.yml
|
192
|
+
- spec/vcr_cassettes/create_parcel.yml
|
193
|
+
- spec/vcr_cassettes/get_label_for_parcel.yml
|
194
|
+
- spec/vcr_cassettes/get_label_for_parcel_with_invalid_id.yml
|
195
|
+
- spec/vcr_cassettes/get_parcel_error_with_invalid_pracel_id.yml
|
196
|
+
- spec/vcr_cassettes/get_parcel_info.yml
|
197
|
+
- spec/vcr_cassettes/get_shipping_method.yml
|
198
|
+
- spec/vcr_cassettes/get_shipping_methods.yml
|
199
|
+
- spec/vcr_cassettes/get_wrong_shipping_method.yml
|
200
|
+
- spec/vcr_cassettes/wrong_create_parcel_without_name.yml
|
201
|
+
has_rdoc:
|