shipcloud 0.10.0 → 0.12.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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +62 -0
  3. data/.rubocop.yml +310 -313
  4. data/CHANGELOG.md +32 -0
  5. data/Gemfile +2 -1
  6. data/README.md +3 -1
  7. data/Rakefile +5 -4
  8. data/bin/setup +7 -0
  9. data/lib/shipcloud/address.rb +3 -1
  10. data/lib/shipcloud/base.rb +5 -5
  11. data/lib/shipcloud/carrier.rb +2 -0
  12. data/lib/shipcloud/operations/all.rb +2 -0
  13. data/lib/shipcloud/operations/create.rb +3 -1
  14. data/lib/shipcloud/operations/delete.rb +2 -0
  15. data/lib/shipcloud/operations/find.rb +3 -1
  16. data/lib/shipcloud/operations/update.rb +19 -13
  17. data/lib/shipcloud/order.rb +15 -0
  18. data/lib/shipcloud/pickup_request.rb +2 -0
  19. data/lib/shipcloud/request/base.rb +2 -0
  20. data/lib/shipcloud/request/connection.rb +11 -3
  21. data/lib/shipcloud/request/info.rb +6 -5
  22. data/lib/shipcloud/shipcloud_error.rb +7 -0
  23. data/lib/shipcloud/shipment.rb +5 -2
  24. data/lib/shipcloud/shipment_quote.rb +2 -0
  25. data/lib/shipcloud/tracker.rb +1 -0
  26. data/lib/shipcloud/version.rb +3 -1
  27. data/lib/shipcloud/webhook.rb +2 -0
  28. data/lib/shipcloud.rb +1 -0
  29. data/shipcloud.gemspec +7 -6
  30. data/spec/shipcloud/address_spec.rb +66 -40
  31. data/spec/shipcloud/carrier_spec.rb +53 -52
  32. data/spec/shipcloud/order_spec.rb +188 -0
  33. data/spec/shipcloud/pickup_request_spec.rb +14 -13
  34. data/spec/shipcloud/request/base_spec.rb +3 -2
  35. data/spec/shipcloud/request/connection_spec.rb +1 -0
  36. data/spec/shipcloud/shipcloud_error_spec.rb +8 -7
  37. data/spec/shipcloud/shipment_quote_spec.rb +5 -4
  38. data/spec/shipcloud/shipment_spec.rb +146 -62
  39. data/spec/shipcloud/webhooks_spec.rb +5 -4
  40. data/spec/shipcloud_spec.rb +5 -2
  41. data/spec/spec_helper.rb +3 -2
  42. metadata +25 -24
  43. data/.hound.yml +0 -12
  44. data/.travis.yml +0 -27
  45. data/install-cc-test-reporter.sh +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f3bf2ce4eed19aeb58efbeb8f94eec7e530564c8a576ef027a7c6d86f6e0317
4
- data.tar.gz: e8c7ee9e7f832462d45889310890b38919d0edbde40c06d6c6837aafe0fc4d56
3
+ metadata.gz: bff6313caf5e87200436364121328763a2c0a8180466240a71d3d5da2599d1f5
4
+ data.tar.gz: d694f680b033963cbb7839c589fe1a1eb8959cf73d7f08199d1434ab2fcb5b0a
5
5
  SHA512:
6
- metadata.gz: e488aa7992b5fd65a6b267d29e9b638d3256f453b16236e99195a85dd17fd5437ca5c03ec81a2ad0332ae593f8fb816da889d3dddcffbe7807fcdec2336c178c
7
- data.tar.gz: 840df4369680ec64f38cbaeb5e5df4c223f641d7b1145a74fafba5f8ee40e6b6713d99599dd881781550690482a50debe1535c2edde3342d8ec9af3c8e7c35d0
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