sendle-api 0.0.12 → 0.0.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 939e17d825cb0f844980e6bc3ca323966e16f79b
4
- data.tar.gz: 97c59b2cfe9d7f602abcb864d96726150d9cf3c9
3
+ metadata.gz: 52dc7fb23449f822d8d6cf72dbb58af845d7bf58
4
+ data.tar.gz: 1e587d7a2a6d4a0a6eec28997b3e80bf59894166
5
5
  SHA512:
6
- metadata.gz: 770c10b0e3cc0bcfd6c1882984d10124460bd85226de85791345a4769a892924ccbf20c87c7817aa91c2ae5e2b21361ae66e6f4e9e1695e61aac2a76be99ce03
7
- data.tar.gz: 23ee31806fed88dccb02f27427c6bdb9150b2299e83f02d079ac5a07d6744e13ced10b06479987542caa0017cc2f59e153ec3ad3c725c9592b7c30f637423032
6
+ metadata.gz: e889ebf3692faf8268278a558e5dd9683a2dbccb51a08d328128d23c23ff7b2ad7e7ba844f826355800f9e254d280d083bcaea1bcf7650fa0db97e99496718d0
7
+ data.tar.gz: 083668c86c956b80e1c675a9d8ec1df9c7cb4f0a2f173132b06d541e65d9d0b0352e46a1bff45d1e913ccdbadc9c00fa9320c76f58f340a18baa4ec97552738f
@@ -1,5 +1,9 @@
1
1
  # Sendle::Api Changes
2
2
 
3
+ ## 0.0.13
4
+
5
+ * Capitalized the plan name constants since Sendle's API is case sensitive
6
+
3
7
  ## 0.0.12
4
8
 
5
9
  * Wrap constants defined in constants.rb inside module namespaces
@@ -1,8 +1,8 @@
1
1
  module Sendle
2
2
  module Api
3
- PLAN_EASY = 'easy'
4
- PLAN_PREMIUM = 'premium'
5
- PLAN_PRO = 'pro'
3
+ PLAN_EASY = 'Easy'
4
+ PLAN_PREMIUM = 'Premium'
5
+ PLAN_PRO = 'Pro'
6
6
  PLANS = [ PLAN_EASY, PLAN_PREMIUM, PLAN_PRO ]
7
7
 
8
8
  ORDER_STATUS_PAYMENT = 'Payment'
@@ -1,5 +1,5 @@
1
1
  module Sendle
2
2
  module Api
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
@@ -54,7 +54,7 @@ describe Sendle::Api::Quote do
54
54
 
55
55
  expect {
56
56
  Sendle::Api::Quote.execute(params)
57
- }.to raise_error(Sendle::Api::Errors::InvalidPlan, "invalid-plan is not in the list of valid plans: easy, premium, pro")
57
+ }.to raise_error(Sendle::Api::Errors::InvalidPlan, "invalid-plan is not in the list of valid plans: Easy, Premium, Pro")
58
58
  end
59
59
 
60
60
  it "respects the plan_name param" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendle-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bobby Lei