mediaburst 1.0 → 1.0.1

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.
data/README.md CHANGED
@@ -32,6 +32,15 @@ Send a long message to several numbers using the [concat option][8]:
32
32
 
33
33
  response = client.send_message(['441234567890', '441234567891', '441234567892', '44'], SOME_LONG_MESSAGE, options)
34
34
 
35
+ Send a long message with a custom from address [from option][9]:
36
+
37
+ options = {
38
+ :concat => 3,
39
+ :from => 'RubyDemo'
40
+ }
41
+
42
+ response = client.send_message(['441234567890', '441234567891', '441234567892', '44'], SOME_LONG_MESSAGE, options)
43
+
35
44
  Check the response for errors:
36
45
 
37
46
  y response
@@ -60,4 +69,5 @@ Copyright © 2011 [Matthew Hall][4], released under the ISC license. All tradema
60
69
  [3]:https://github.com/mediaburst/ruby-mediaburst-sms
61
70
  [4]:http://codebeef.com/portfolio/mediaburst
62
71
  [5]:http://www.mediaburst.co.uk/api/reference/error-codes/
63
- [8]:http://www.mediaburst.co.uk/api/sending-a-message/parameters/#param-concat
72
+ [8]:http://www.mediaburst.co.uk/api/sending-a-message/parameters/#param-concat
73
+ [9]:http://www.mediaburst.co.uk/api/sending-a-message/parameters/#param-from
@@ -41,14 +41,13 @@ module Mediaburst
41
41
  xml.Username @auth[:username]
42
42
  xml.Password @auth[:password]
43
43
 
44
- options.each do |k, v|
45
- xml.send(k.to_s, v)
46
- end
47
-
48
44
  numbers.each do |number|
49
45
  xml.SMS {
50
46
  xml.To number
51
47
  xml.Content content
48
+ options.each do |k, v|
49
+ xml.send(k.to_s, v)
50
+ end
52
51
  }
53
52
  end
54
53
  }
@@ -96,4 +95,4 @@ module Mediaburst
96
95
  responses
97
96
  end
98
97
  end
99
- end
98
+ end
@@ -1,3 +1,3 @@
1
1
  module Mediaburst
2
- VERSION = '1.0'
3
- end
2
+ VERSION = '1.0.1'
3
+ end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediaburst
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- version: "1.0"
9
+ - 1
10
+ version: 1.0.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Matt Hall
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-02-16 00:00:00 +00:00
18
+ date: 2011-02-25 00:00:00 +00:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency