shipcloud 0.11.0 → 0.12.0

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