cm-sms 0.2.6 → 0.2.7

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: 3c44a53341281a1deec904ea3750484434a17781
4
- data.tar.gz: f5c1741fa67b5525e980641cac5036e5e9e8922f
3
+ metadata.gz: 264589e20031771ae99c172b25f781893395a3ca
4
+ data.tar.gz: a375e75c644de9589dc05aa50a19081e633db0a7
5
5
  SHA512:
6
- metadata.gz: 1e6879ca66d130761d58f9511c19125ba74b7568a4b59b51f148959609346d1b01e15a8a9a4551ab2b231d7f419fc25824741f34b10d35386adf88a042a2c385
7
- data.tar.gz: 4762eb4ddd7734630a7836bc7653d25fa4403683ee0caffd8de2b71f3198d0728098bcbaa711833413db9b816649c8bc7b16376cccc81508d4ff84e9a3612837
6
+ metadata.gz: 4fac8c38cff00e77d9fdda76257902aaefc208597ade87118ed9c95e8e15e9be5296a672ec9ac16987c573ebdfb7ab67213ced3a9514aad0fe9d9595730fdecd
7
+ data.tar.gz: 2bcb26b0fa9dc1e546a3bda460f3199d6e0106690f22c17951e96c0920aad14d12d47eb1f55c34fc2edd5ffc3a144652d6877fce3b0d205231000ac324d615bf
@@ -7,7 +7,7 @@ module CmSms
7
7
  module VERSION
8
8
  MAJOR = 0
9
9
  MINOR = 2
10
- TINY = 6
10
+ TINY = 7
11
11
  PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -4,7 +4,7 @@ require 'cm_sms/request'
4
4
 
5
5
  module CmSms
6
6
  class Message
7
- class SenderTooLong < ArgumentError; end
7
+ class FromTooLong < ArgumentError; end
8
8
  class FromMissing < ArgumentError; end
9
9
  class ToMissing < ArgumentError; end
10
10
  class BodyMissing < ArgumentError; end
@@ -69,8 +69,8 @@ module CmSms
69
69
  end
70
70
 
71
71
  def deliver!
72
- raise SenderTooLong.new('The value for the sender attribute must contain 1..11 characters.') unless sender_length?
73
72
  raise FromMissing.new('The value for the from attribute is missing.') unless sender_present?
73
+ raise FromTooLong.new('The value for the sender attribute must contain 1..11 characters.') unless sender_length?
74
74
  raise ToMissing.new('The value for the to attribute is missing.') unless receiver_present?
75
75
  raise BodyMissing.new('The body of the message is missing.') unless body_present?
76
76
  raise BodyTooLong.new('The body of the message has a length greater than 160.') unless body_correct_length?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-sms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - itschn