mollie 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/mollie.rb +12 -1
- data/mollie.gemspec +58 -0
- metadata +33 -9
data/Rakefile
CHANGED
@@ -11,6 +11,7 @@ begin
|
|
11
11
|
gem.homepage = "http://github.com/arie/mollie"
|
12
12
|
gem.authors = ["Arie", "iain"]
|
13
13
|
gem.add_development_dependency "rspec", ">= 1.2.9"
|
14
|
+
gem.add_dependency "nokogiri"
|
14
15
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
16
|
end
|
16
17
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/mollie.rb
CHANGED
@@ -69,6 +69,11 @@ module Mollie
|
|
69
69
|
$1.to_i if response.body =~ /<resultcode>(.*)<\/resultcode>/m
|
70
70
|
end
|
71
71
|
|
72
|
+
def credits
|
73
|
+
$1.to_i if response.body =~ /<credits>(.*)<\/credits>/m
|
74
|
+
end
|
75
|
+
|
76
|
+
|
72
77
|
def response
|
73
78
|
@response ||= Net::HTTP.get_response(query.request_uri)
|
74
79
|
end
|
@@ -99,7 +104,9 @@ module Mollie
|
|
99
104
|
end
|
100
105
|
|
101
106
|
def recipients
|
102
|
-
sms.recipients
|
107
|
+
if sms.recipients
|
108
|
+
sms.recipients.join(',')
|
109
|
+
end
|
103
110
|
end
|
104
111
|
|
105
112
|
private
|
@@ -138,6 +145,10 @@ module Mollie
|
|
138
145
|
@response = response
|
139
146
|
end
|
140
147
|
|
148
|
+
def credits
|
149
|
+
response.credits
|
150
|
+
end
|
151
|
+
|
141
152
|
def resultcode
|
142
153
|
response.resultcode
|
143
154
|
end
|
data/mollie.gemspec
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{mollie}
|
8
|
+
s.version = "0.2.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Arie", "iain"]
|
12
|
+
s.date = %q{2010-05-03}
|
13
|
+
s.description = %q{Interface to SMS gateway Mollie.nl}
|
14
|
+
s.email = %q{github@ariekanarie.nl}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"lib/mollie.rb",
|
27
|
+
"mollie.gemspec",
|
28
|
+
"spec/mollie_spec.rb",
|
29
|
+
"spec/spec.opts",
|
30
|
+
"spec/spec_helper.rb"
|
31
|
+
]
|
32
|
+
s.homepage = %q{http://github.com/arie/mollie}
|
33
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
34
|
+
s.require_paths = ["lib"]
|
35
|
+
s.rubygems_version = %q{1.3.6}
|
36
|
+
s.summary = %q{Interface to SMS gateway Mollie.nl}
|
37
|
+
s.test_files = [
|
38
|
+
"spec/mollie_spec.rb",
|
39
|
+
"spec/spec_helper.rb"
|
40
|
+
]
|
41
|
+
|
42
|
+
if s.respond_to? :specification_version then
|
43
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
44
|
+
s.specification_version = 3
|
45
|
+
|
46
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
47
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
48
|
+
s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
|
49
|
+
else
|
50
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
51
|
+
s.add_dependency(%q<nokogiri>, [">= 0"])
|
52
|
+
end
|
53
|
+
else
|
54
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
55
|
+
s.add_dependency(%q<nokogiri>, [">= 0"])
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mollie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Arie
|
@@ -10,19 +15,35 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date:
|
18
|
+
date: 2010-05-03 00:00:00 +02:00
|
14
19
|
default_executable:
|
15
20
|
dependencies:
|
16
21
|
- !ruby/object:Gem::Dependency
|
17
22
|
name: rspec
|
18
|
-
|
19
|
-
|
20
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
21
25
|
requirements:
|
22
26
|
- - ">="
|
23
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 2
|
31
|
+
- 9
|
24
32
|
version: 1.2.9
|
25
|
-
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: nokogiri
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
version: "0"
|
45
|
+
type: :runtime
|
46
|
+
version_requirements: *id002
|
26
47
|
description: Interface to SMS gateway Mollie.nl
|
27
48
|
email: github@ariekanarie.nl
|
28
49
|
executables: []
|
@@ -40,6 +61,7 @@ files:
|
|
40
61
|
- Rakefile
|
41
62
|
- VERSION
|
42
63
|
- lib/mollie.rb
|
64
|
+
- mollie.gemspec
|
43
65
|
- spec/mollie_spec.rb
|
44
66
|
- spec/spec.opts
|
45
67
|
- spec/spec_helper.rb
|
@@ -56,18 +78,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
78
|
requirements:
|
57
79
|
- - ">="
|
58
80
|
- !ruby/object:Gem::Version
|
81
|
+
segments:
|
82
|
+
- 0
|
59
83
|
version: "0"
|
60
|
-
version:
|
61
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
85
|
requirements:
|
63
86
|
- - ">="
|
64
87
|
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
65
90
|
version: "0"
|
66
|
-
version:
|
67
91
|
requirements: []
|
68
92
|
|
69
93
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.3.
|
94
|
+
rubygems_version: 1.3.6
|
71
95
|
signing_key:
|
72
96
|
specification_version: 3
|
73
97
|
summary: Interface to SMS gateway Mollie.nl
|