dynmark 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,72 @@
1
1
  = Dynmark
2
2
 
3
- This project rocks and uses MIT-LICENSE.
3
+ Dynmark is a simple gem which allows one to use Dynmark SMS services from
4
+ within a Ruby on Rails application.
5
+
6
+ View the pricing information here if one would wish to use their services:
7
+
8
+ http://www.dynmark.com/pricing.aspx
9
+
10
+ It has been built on Rails 3.1.
11
+
12
+ In order to use the gem work through the following steps:
13
+
14
+ 1. Add gem 'dynmark' to the project Gemfile.
15
+ 2. Execute bundle install from the command line at the root of the project.
16
+ 3. Execute the following command in order to bring the migration file into the project.
17
+
18
+ rails generate dynmark:install -s
19
+
20
+ 4. Execute "rake db:migrate" in order to create the "sms_queues" table within the project's
21
+ database.
22
+ 5. Finally execute "rake setup_dynmark" to copy up the dynmark.yml file to the project.
23
+
24
+ The dynmark.yml simply stores the account username and password credentials provided by
25
+ Dynmark to access their services.
26
+
27
+ This gem provides the form (currently styleless) to send adhoc SMS messages.
28
+
29
+ Simply follow: app_root/sms_queues/new to access the form.
30
+
31
+ The gem also makes it possible to create new SMS messages using the following route
32
+ and providing the username and password in the parameters.
33
+
34
+ For example:
35
+
36
+ Scenario could be a background service polling a table for messages to send. It will
37
+ pick up the details and send a new message using the "send_sms_message" method
38
+ on the SmsQueue model within the gem (this is the primary purpose of the gem for now):
39
+
40
+ queue = Hash.new
41
+ queue[:name] = "username"
42
+ queue[:password] = "password"
43
+ queue[:originator] = "Torex"
44
+ queue[:text] = "message"
45
+ queue[:recipient] = "mobile number"
46
+ response = SmsQueue.send_sms_message(queue)
47
+
48
+ The main intention is to use this gem in conjunction with the "whenever" gem.
49
+
50
+ More changes are required to this gem. Details of which will be provided shortly.
51
+
52
+
53
+ Copyright 2012 Torex Retail Holdings Limited.
54
+
55
+ Permission is hereby granted, free of charge, to any person obtaining
56
+ a copy of this software and associated documentation files (the
57
+ "Software"), to deal in the Software without restriction, including
58
+ without limitation the rights to use, copy, modify, merge, publish,
59
+ distribute, sublicense, and/or sell copies of the Software, and to
60
+ permit persons to whom the Software is furnished to do so, subject to
61
+ the following conditions:
62
+
63
+ The above copyright notice and this permission notice shall be
64
+ included in all copies or substantial portions of the Software.
65
+
66
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
67
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
68
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
69
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
70
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
71
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
72
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -32,7 +32,7 @@
32
32
  <div class="input">
33
33
  <%= f.text_field :recipient %>
34
34
  <span class="help-block">
35
- Please enter the mobile number eg. +44 07967034429 should be 447967034429.
35
+ Please enter the mobile number eg. +44 07000000000 should be 447000000000.
36
36
  </span>
37
37
  </div>
38
38
  </div>
@@ -1,3 +1,3 @@
1
1
  module Dynmark
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-21 00:00:00.000000000Z
12
+ date: 2012-01-22 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70280318063180 !ruby/object:Gem::Requirement
16
+ requirement: &70098063358900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70280318063180
24
+ version_requirements: *70098063358900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: savon
27
- requirement: &70280318062640 !ruby/object:Gem::Requirement
27
+ requirement: &70098063358040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 0.9.5
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70280318062640
35
+ version_requirements: *70098063358040
36
36
  description: Dynmark SMS Service gem. Comes with generator to copy over migration
37
37
  file. Execute dynmark:install. Rake task to copy up dynmark.yml for credentials.
38
38
  rake setup_dynmark.
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  segments:
106
106
  - 0
107
- hash: 526936771770638668
107
+ hash: 439474616959927833
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  none: false
110
110
  requirements:
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  segments:
115
115
  - 0
116
- hash: 526936771770638668
116
+ hash: 439474616959927833
117
117
  requirements: []
118
118
  rubyforge_project:
119
119
  rubygems_version: 1.8.10