shipcloud 0.10.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +62 -0
- data/.rubocop.yml +310 -313
- data/CHANGELOG.md +32 -0
- data/Gemfile +2 -1
- data/README.md +3 -1
- data/Rakefile +5 -4
- data/bin/setup +7 -0
- data/lib/shipcloud/address.rb +3 -1
- data/lib/shipcloud/base.rb +5 -5
- data/lib/shipcloud/carrier.rb +2 -0
- data/lib/shipcloud/operations/all.rb +2 -0
- data/lib/shipcloud/operations/create.rb +3 -1
- data/lib/shipcloud/operations/delete.rb +2 -0
- data/lib/shipcloud/operations/find.rb +3 -1
- data/lib/shipcloud/operations/update.rb +19 -13
- data/lib/shipcloud/order.rb +15 -0
- data/lib/shipcloud/pickup_request.rb +2 -0
- data/lib/shipcloud/request/base.rb +2 -0
- data/lib/shipcloud/request/connection.rb +11 -3
- data/lib/shipcloud/request/info.rb +6 -5
- data/lib/shipcloud/shipcloud_error.rb +7 -0
- data/lib/shipcloud/shipment.rb +5 -2
- data/lib/shipcloud/shipment_quote.rb +2 -0
- data/lib/shipcloud/tracker.rb +1 -0
- data/lib/shipcloud/version.rb +3 -1
- data/lib/shipcloud/webhook.rb +2 -0
- data/lib/shipcloud.rb +1 -0
- data/shipcloud.gemspec +7 -6
- data/spec/shipcloud/address_spec.rb +66 -40
- data/spec/shipcloud/carrier_spec.rb +53 -52
- data/spec/shipcloud/order_spec.rb +188 -0
- data/spec/shipcloud/pickup_request_spec.rb +14 -13
- data/spec/shipcloud/request/base_spec.rb +3 -2
- data/spec/shipcloud/request/connection_spec.rb +1 -0
- data/spec/shipcloud/shipcloud_error_spec.rb +8 -7
- data/spec/shipcloud/shipment_quote_spec.rb +5 -4
- data/spec/shipcloud/shipment_spec.rb +146 -62
- data/spec/shipcloud/webhooks_spec.rb +5 -4
- data/spec/shipcloud_spec.rb +5 -2
- data/spec/spec_helper.rb +3 -2
- metadata +25 -24
- data/.hound.yml +0 -12
- data/.travis.yml +0 -27
- data/install-cc-test-reporter.sh +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bff6313caf5e87200436364121328763a2c0a8180466240a71d3d5da2599d1f5
|
4
|
+
data.tar.gz: d694f680b033963cbb7839c589fe1a1eb8959cf73d7f08199d1434ab2fcb5b0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e84b784b3c81a269709212d628a2b9caaef903a88472aa2b9128c74d7ab370cc502a33129585053255455883925a59e145695786aef689a4d95d050555a54e3
|
7
|
+
data.tar.gz: ae6c31729daece909de96cb4849324d4a6ee6052454bde83402ff02113424127c29671dff2fc5af68faa58e3fe97b4ae472ff66f2e642964630d7d6a6a1595ea
|
@@ -0,0 +1,62 @@
|
|
1
|
+
version: 2.1
|
2
|
+
jobs:
|
3
|
+
build:
|
4
|
+
parameters:
|
5
|
+
image-tag:
|
6
|
+
description: The target docker image
|
7
|
+
type: string
|
8
|
+
check-code-quality:
|
9
|
+
description: Execute style checks in build workflow
|
10
|
+
type: boolean
|
11
|
+
default: true
|
12
|
+
docker:
|
13
|
+
- image: circleci/<< parameters.image-tag >>
|
14
|
+
environment:
|
15
|
+
LANG: en_US.UTF-8
|
16
|
+
BUNDLE_DISABLE_VERSION_CHECK: 1
|
17
|
+
steps:
|
18
|
+
- checkout
|
19
|
+
- run:
|
20
|
+
name: Install ruby dependencies
|
21
|
+
command: gem update --system; bin/setup
|
22
|
+
- when:
|
23
|
+
condition: << parameters.check-code-quality >>
|
24
|
+
steps:
|
25
|
+
- run:
|
26
|
+
name: Install Code Climate test-reporter
|
27
|
+
command: |
|
28
|
+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
29
|
+
chmod +x ./cc-test-reporter
|
30
|
+
- run:
|
31
|
+
name: Prepare Code Climate test-reporter
|
32
|
+
command: ./cc-test-reporter before-build
|
33
|
+
- run:
|
34
|
+
name: Execute specs
|
35
|
+
command: bundle exec rake
|
36
|
+
- when:
|
37
|
+
condition: << parameters.check-code-quality >>
|
38
|
+
steps:
|
39
|
+
- run:
|
40
|
+
name: Report coverage
|
41
|
+
command: ./cc-test-reporter after-build --exit-code $?
|
42
|
+
|
43
|
+
workflows:
|
44
|
+
build:
|
45
|
+
jobs:
|
46
|
+
- build:
|
47
|
+
matrix:
|
48
|
+
parameters:
|
49
|
+
image-tag:
|
50
|
+
- "ruby:2.6"
|
51
|
+
version-check:
|
52
|
+
jobs:
|
53
|
+
- build:
|
54
|
+
matrix:
|
55
|
+
parameters:
|
56
|
+
image-tag:
|
57
|
+
- "ruby:2.7"
|
58
|
+
- "ruby:3.0"
|
59
|
+
- "ruby:latest"
|
60
|
+
- "jruby:latest"
|
61
|
+
check-code-quality:
|
62
|
+
- false
|