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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 167a6b5186242479bd6e91ebeaeb82eceac9197b
4
- data.tar.gz: 680cebc82276f82f412d3fb314cc70339107a5d3
3
+ metadata.gz: bc529d7ae312203bca5bc95ec1955b4e22a86e33
4
+ data.tar.gz: 8b0486b268c1138024a629821e6385e5ae42a528
5
5
  SHA512:
6
- metadata.gz: 6bf4dea337323e8cd42b80bcbef2271d5ad314dbfdcf17729d494e61354a2c32e6818d90dc3611a75794b03cddfa201a55a642e01912d8e23a1d9c57c59c5da5
7
- data.tar.gz: 754e2f334eb8aab600e5b1c767ab331fa09589401c120eb25201e538af5e9e104af2bbdf905a342d2be65680b133a3801c4e689f49c1725d6d128d32a41dc048
6
+ metadata.gz: 322e041516702e0834bb9c899ad8b31e3f64b0c855c4d89c3d3777ba38d09225c41f74bc54bd010870d2cc911d89cd13450ce174931d1aaa6dfe58573e40c580
7
+ data.tar.gz: c6ff2baa4a67b2aa00179d0100dd88445840f0193d1f24f4fb73a3ef5a0b8ecf48df435b8749fc7444c99cc0b8af79ca623a181be544d6aa86e4878b99bb48cd
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem 'simplecov', require: false, group: :test
7
+ gem 'codeclimate-test-reporter', require: nil, group: :test
data/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Cm::Sms
2
2
 
3
+ [![Build Status](https://img.shields.io/travis/HitFox/cm-sms.svg?style=flat-square)](https://travis-ci.org/HitFox/cm-sms)
4
+ [![Gem](https://img.shields.io/gem/dt/cm-sms.svg?style=flat-square)](https://rubygems.org/gems/cm-sms)
5
+ [![Code Climate](https://img.shields.io/codeclimate/github/HitFox/cm-sms.svg?style=flat-square)](https://codeclimate.com/github/HitFox/cm-sms)
6
+ [![Coverage](https://img.shields.io/codeclimate/coverage/github/HitFox/cm-sms.svg?style=flat-square)](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
@@ -7,7 +7,7 @@ module CmSms
7
7
  module VERSION
8
8
  MAJOR = 0
9
9
  MINOR = 2
10
- TINY = 1
10
+ TINY = 2
11
11
  PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -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.1
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