cm-sms 0.2.1 → 0.2.2
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 +4 -4
- data/Gemfile +1 -0
- data/README.md +6 -0
- data/lib/cm_sms/gem_version.rb +1 -1
- data/lib/cm_sms/message.rb +5 -1
- metadata +1 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bc529d7ae312203bca5bc95ec1955b4e22a86e33
|
|
4
|
+
data.tar.gz: 8b0486b268c1138024a629821e6385e5ae42a528
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 322e041516702e0834bb9c899ad8b31e3f64b0c855c4d89c3d3777ba38d09225c41f74bc54bd010870d2cc911d89cd13450ce174931d1aaa6dfe58573e40c580
|
|
7
|
+
data.tar.gz: c6ff2baa4a67b2aa00179d0100dd88445840f0193d1f24f4fb73a3ef5a0b8ecf48df435b8749fc7444c99cc0b8af79ca623a181be544d6aa86e4878b99bb48cd
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Cm::Sms
|
|
2
2
|
|
|
3
|
+
[](https://travis-ci.org/HitFox/cm-sms)
|
|
4
|
+
[](https://rubygems.org/gems/cm-sms)
|
|
5
|
+
[](https://codeclimate.com/github/HitFox/cm-sms)
|
|
6
|
+
[](https://codeclimate.com/github/HitFox/cm-sms)
|
|
7
|
+
|
|
8
|
+
|
|
3
9
|
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cm/sms`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
10
|
|
|
5
11
|
TODO: Delete this and the text above, and describe your gem
|
data/lib/cm_sms/gem_version.rb
CHANGED
data/lib/cm_sms/message.rb
CHANGED
|
@@ -41,10 +41,14 @@ module CmSms
|
|
|
41
41
|
!from.nil? && !from.empty?
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
def sender_length?
|
|
45
|
+
sender_present? && from.length <= 11
|
|
46
|
+
end
|
|
47
|
+
|
|
44
48
|
def body_present?
|
|
45
49
|
!body.nil? && !body.empty?
|
|
46
50
|
end
|
|
47
|
-
|
|
51
|
+
|
|
48
52
|
def body_correct_length?
|
|
49
53
|
body_present? && body.length <= 160
|
|
50
54
|
end
|
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.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- itschn
|
|
@@ -112,10 +112,6 @@ files:
|
|
|
112
112
|
- Rakefile
|
|
113
113
|
- bin/console
|
|
114
114
|
- bin/setup
|
|
115
|
-
- cm-sms-0.1.0.gem
|
|
116
|
-
- cm-sms-0.1.1.gem
|
|
117
|
-
- cm-sms-0.1.2.gem
|
|
118
|
-
- cm-sms-0.1.4.gem
|
|
119
115
|
- cm-sms.gemspec
|
|
120
116
|
- lib/cm-sms.rb
|
|
121
117
|
- lib/cm_sms.rb
|