mollie-sms 1.0.0 → 1.1.0
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 +7 -0
- data/README.rdoc +1 -1
- data/lib/mollie/sms.rb +3 -3
- data/mollie-sms.gemspec +2 -2
- data/spec/functional_sms_deliver_spec.rb +1 -1
- data/spec/sms_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +35 -57
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2289bb39c9870af0891e40d0c90fcc456a04b24c
|
4
|
+
data.tar.gz: 648a39e2fb8b1cf20cce0452b607c022181c8ebe
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 477762aa06ad06f1fd5593db3e47a85360d2a4bba8edb762e4b2aa4ffe40111a16d17397608492c8de2698e24ab76db573fe5bfcc2dca00eb65dec833da41234
|
7
|
+
data.tar.gz: d0cd5477afeaa43d8b4eca45b7a6df31b64efaa2c710b1f41fb6310a7a5c50dc8e428991859e41b51fecb2d34617b6d0c54648ecf569c4763ad7b8cfb5f888ab
|
data/README.rdoc
CHANGED
@@ -99,6 +99,6 @@ Once you've made your great commits:
|
|
99
99
|
|
100
100
|
= Copyright
|
101
101
|
|
102
|
-
Copyright (c) 2010 Eloy Duran, Fingertips <eloy@fngtps.com>
|
102
|
+
Copyright (c) 2010-2014 Eloy Duran, Fingertips <eloy@fngtps.com>
|
103
103
|
|
104
104
|
This software is MIT licensed. See {file:LICENSE} for more info.
|
data/lib/mollie/sms.rb
CHANGED
@@ -6,7 +6,7 @@ begin
|
|
6
6
|
require "rubygems"
|
7
7
|
rescue LoadError
|
8
8
|
end
|
9
|
-
require "active_support"
|
9
|
+
require "active_support/core_ext"
|
10
10
|
|
11
11
|
# The namespace for the Mollie.nl webservices.
|
12
12
|
#
|
@@ -52,7 +52,7 @@ module Mollie
|
|
52
52
|
# The SSL URI to which the parameters of a SMS are posted.
|
53
53
|
#
|
54
54
|
# Note that the certificate is *not* verified.
|
55
|
-
GATEWAY_URI = URI.parse("https://
|
55
|
+
GATEWAY_URI = URI.parse("https://api.messagebird.nl/xml/sms")
|
56
56
|
|
57
57
|
# The possible values that indicate which {SMS.gateway= SMS gateway} should
|
58
58
|
# be used.
|
@@ -210,7 +210,7 @@ module Mollie
|
|
210
210
|
end
|
211
211
|
|
212
212
|
# Posts the {#params parameters} to the gateway, through SSL.
|
213
|
-
#
|
213
|
+
#
|
214
214
|
# The params are validated before attempting to post them.
|
215
215
|
# @see #validate_params!
|
216
216
|
#
|
data/mollie-sms.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mollie-sms}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Eloy Duran"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2014-01-21}
|
13
13
|
s.description = %q{Send SMS text messages via the Mollie.nl SMS gateway.}
|
14
14
|
s.email = ["eloy@fngtps.com"]
|
15
15
|
s.extra_rdoc_files = [
|
@@ -58,7 +58,7 @@ describe "When sending a Mollie::SMS message" do
|
|
58
58
|
request.host.should == Mollie::SMS::GATEWAY_URI.host
|
59
59
|
request.port.should == Mollie::SMS::GATEWAY_URI.port
|
60
60
|
post.path.should == Mollie::SMS::GATEWAY_URI.path
|
61
|
-
post.body.should == "a
|
61
|
+
post.body.should == "a+key=a+value"
|
62
62
|
end
|
63
63
|
|
64
64
|
it "returns a Mollie::SMS::Response object, with the Net::HTTP response" do
|
data/spec/sms_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require "mollie/sms/test_helper"
|
|
3
3
|
|
4
4
|
describe "Mollie::SMS" do
|
5
5
|
it "holds the gateway uri" do
|
6
|
-
Mollie::SMS::GATEWAY_URI.should == URI.parse("https://
|
6
|
+
Mollie::SMS::GATEWAY_URI.should == URI.parse("https://api.messagebird.nl/xml/sms")
|
7
7
|
end
|
8
8
|
|
9
9
|
it "holds the service username" do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,50 +1,38 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mollie-sms
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 1.0.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Eloy Duran
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-01-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: activesupport
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 19
|
30
|
-
segments:
|
31
|
-
- 2
|
32
|
-
- 3
|
33
|
-
- 8
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
34
19
|
version: 2.3.8
|
35
20
|
type: :runtime
|
36
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.3.8
|
37
27
|
description: Send SMS text messages via the Mollie.nl SMS gateway.
|
38
|
-
email:
|
28
|
+
email:
|
39
29
|
- eloy@fngtps.com
|
40
30
|
executables: []
|
41
|
-
|
42
31
|
extensions: []
|
43
|
-
|
44
|
-
extra_rdoc_files:
|
32
|
+
extra_rdoc_files:
|
45
33
|
- LICENSE
|
46
34
|
- README.rdoc
|
47
|
-
files:
|
35
|
+
files:
|
48
36
|
- LICENSE
|
49
37
|
- README.rdoc
|
50
38
|
- Rakefile
|
@@ -57,41 +45,31 @@ files:
|
|
57
45
|
- spec/sms_spec.rb
|
58
46
|
- spec/spec_helper.rb
|
59
47
|
- spec/test_helper_spec.rb
|
60
|
-
has_rdoc: true
|
61
48
|
homepage: http://github.com/Fingertips/Mollie-SMS
|
62
49
|
licenses: []
|
63
|
-
|
50
|
+
metadata: {}
|
64
51
|
post_install_message:
|
65
|
-
rdoc_options:
|
52
|
+
rdoc_options:
|
66
53
|
- --charset=UTF-8
|
67
|
-
require_paths:
|
54
|
+
require_paths:
|
68
55
|
- lib
|
69
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
none: false
|
80
|
-
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
hash: 3
|
84
|
-
segments:
|
85
|
-
- 0
|
86
|
-
version: "0"
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
87
66
|
requirements: []
|
88
|
-
|
89
67
|
rubyforge_project:
|
90
|
-
rubygems_version:
|
68
|
+
rubygems_version: 2.0.14
|
91
69
|
signing_key:
|
92
70
|
specification_version: 3
|
93
71
|
summary: Send SMS text messages via the Mollie.nl SMS gateway.
|
94
|
-
test_files:
|
72
|
+
test_files:
|
95
73
|
- spec/functional_sms_deliver_spec.rb
|
96
74
|
- spec/sms_spec.rb
|
97
75
|
- spec/spec_helper.rb
|