multiinfo 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +2 -1
- data/VERSION +1 -1
- data/lib/multiinfo/api/command.rb +1 -2
- data/multiinfo.gemspec +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.11
|
@@ -2,7 +2,6 @@ require "cgi"
|
|
2
2
|
module MultiInfo
|
3
3
|
class API
|
4
4
|
API_SERVICE_HOST = 'https://api1.multiinfo.plus.pl/'
|
5
|
-
API_NAME = 'smsapi4'
|
6
5
|
API_SCRIPT_TYPE = 'aspx'
|
7
6
|
|
8
7
|
class Command
|
@@ -13,7 +12,7 @@ module MultiInfo
|
|
13
12
|
|
14
13
|
def with_params(param_hash)
|
15
14
|
param_string = '?' + param_hash.map { |key, value| "#{::CGI.escape(key.to_s.camelize(false))}=#{::CGI.escape(value.to_s)}" }.sort.join('&')
|
16
|
-
URI.parse(File.join("#{API_SERVICE_HOST}
|
15
|
+
URI.parse(File.join("#{API_SERVICE_HOST}", "#{@command_name}.#{API_SCRIPT_TYPE}" + param_string))
|
17
16
|
end
|
18
17
|
|
19
18
|
end
|
data/multiinfo.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{multiinfo}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.11"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["\305\201ukasz \305\201uczak", "Piotr Barczuk"]
|