cm-sms 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/cm_sms/gem_version.rb +1 -1
- data/lib/cm_sms/webhook/response.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e052fd8b6961f720ed39625f742c64d4e2eaefdc
|
4
|
+
data.tar.gz: 3c644a3da6cf7f9163a6c127478948769ad3b006
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93e5bf1880a3c5dc30c9790aebaceef370ed67e788cdc249d81dc5cbfb91e4cd74738c3aae2e5a7149d4b96a5ab8bd356c04bbd9d44ca7acb28cce7447fd79c8
|
7
|
+
data.tar.gz: 2557110c83e61632dd70bc0bc86fd10d5add9561c1a2dbaccf3efa26bf4505b73dcc440cb55d97e931add3a52c83770a5a50c3db19a932ae797c83df65f00573
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[![Build Status](https://img.shields.io/travis/HitFox/cm-sms.svg?style=flat-square)](https://travis-ci.org/HitFox/cm-sms)
|
4
4
|
[![Gem](https://img.shields.io/gem/dt/cm-sms.svg?style=flat-square)](https://rubygems.org/gems/cm-sms)
|
5
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/
|
6
|
+
[![Coverage](https://img.shields.io/coveralls/HitFox/cm-sms.svg?style=flat-square)](https://coveralls.io/github/HitFox/cm-sms)
|
7
7
|
|
8
8
|
|
9
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.
|
data/lib/cm_sms/gem_version.rb
CHANGED
@@ -4,9 +4,11 @@ module CmSms
|
|
4
4
|
|
5
5
|
ATTRIBUTE_NAMES = %w(sent received to reference statuscode errorcode errordescription)
|
6
6
|
|
7
|
-
attr_reader *ATTRIBUTE_NAMES
|
7
|
+
attr_reader *ATTRIBUTE_NAMES, :attributes
|
8
8
|
|
9
9
|
def initialize(attributes = {})
|
10
|
+
@attributes = attributes
|
11
|
+
|
10
12
|
attributes.each { |attr, value| instance_variable_set("@#{attr}", value) } if attributes
|
11
13
|
end
|
12
14
|
|
@@ -53,6 +55,10 @@ module CmSms
|
|
53
55
|
def error?
|
54
56
|
errorcode? || rejected? || failed?
|
55
57
|
end
|
58
|
+
|
59
|
+
def to_yaml
|
60
|
+
(@attributes || {}).to_yaml
|
61
|
+
end
|
56
62
|
|
57
63
|
end
|
58
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- itschn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|