luka-multiinfo 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
File without changes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -10,10 +10,6 @@ module MultiInfo
10
10
  end
11
11
 
12
12
  # Creates a new Error from a MultiInfo HTTP response string
13
- # e.g.:
14
- #
15
- # Error.parse("ERR: 001, Authentication error")
16
- # # => #<MultiInfo::API::Error code='001' message='Authentication error'>
17
13
  def self.parse(error_arr)
18
14
  code, message = error_arr
19
15
  self.new(code, message)
@@ -58,7 +58,6 @@ module MultiInfo
58
58
  ]
59
59
  }
60
60
 
61
-
62
61
  end
63
62
 
64
63
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{multiinfo}
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
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"]
@@ -10,14 +10,13 @@ Gem::Specification.new do |s|
10
10
  s.description = %q{This gem is Ruby interface to the Polkomtel's MultiInfo SMS gateway service, based on Luke Redpath's clickatel library. To use this gem, you will need an access to Polkomtel's MultiInfo service. You need user, password, sercvice_id and certificate for ssl connection. Contact Polkomtel sales reps for info how to obtain acces to MultiInfo service.}
11
11
  s.email = %q{luka@weblify.pl}
12
12
  s.extra_rdoc_files = [
13
- "README.txt"
13
+ "README.rdoc"
14
14
  ]
15
15
  s.files = [
16
16
  ".gitignore",
17
17
  "History.txt",
18
18
  "License.txt",
19
- "RDOC_README.txt",
20
- "README.txt",
19
+ "README.rdoc",
21
20
  "VERSION",
22
21
  "config_example.yml",
23
22
  "lib/core-ext/hash.rb",
@@ -28,7 +27,6 @@ Gem::Specification.new do |s|
28
27
  "lib/multiinfo/api/error.rb",
29
28
  "lib/multiinfo/api/executor.rb",
30
29
  "lib/multiinfo/api/response.rb",
31
- "lib/multiinfo/version.rb",
32
30
  "multiinfo.gemspec",
33
31
  "rakefile.rb"
34
32
  ]
@@ -1,10 +1,8 @@
1
1
  begin
2
2
  require 'jeweler'
3
- require File.join(File.dirname(__FILE__), *%w[lib/multiinfo/version])
4
3
 
5
4
  Jeweler::Tasks.new do |gemspec|
6
5
  gemspec.name = "multiinfo"
7
- gemspec.version = MultiInfo::VERSION.to_s
8
6
  gemspec.summary = "Ruby interface to the Polkomtel's MultiInfo SMS gateway service, based on Luke Redpath's clickatel library"
9
7
  gemspec.description = "This gem is Ruby interface to the Polkomtel's MultiInfo SMS gateway service, based on Luke Redpath's clickatel library.
10
8
  To use this gem, you will need an access to Polkomtel's MultiInfo service. You need user, password, sercvice_id and certificate for ssl connection.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luka-multiinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "\xC5\x81ukasz \xC5\x81uczak"
@@ -29,13 +29,12 @@ executables: []
29
29
  extensions: []
30
30
 
31
31
  extra_rdoc_files:
32
- - README.txt
32
+ - README.rdoc
33
33
  files:
34
34
  - .gitignore
35
35
  - History.txt
36
36
  - License.txt
37
- - RDOC_README.txt
38
- - README.txt
37
+ - README.rdoc
39
38
  - VERSION
40
39
  - config_example.yml
41
40
  - lib/core-ext/hash.rb
@@ -46,7 +45,6 @@ files:
46
45
  - lib/multiinfo/api/error.rb
47
46
  - lib/multiinfo/api/executor.rb
48
47
  - lib/multiinfo/api/response.rb
49
- - lib/multiinfo/version.rb
50
48
  - multiinfo.gemspec
51
49
  - rakefile.rb
52
50
  has_rdoc: true
data/README.txt DELETED
@@ -1,49 +0,0 @@
1
- == Polkomtel MultiInfo HTTPS API wrapped into Ruby library
2
-
3
- This gem is Ruby interface to the Polkomtel's MultiInfo SMS gateway service, based on Luke Redpath's clickatel library
4
- To use this gem, you will need an access to Polkomtel's MultiInfo service. You need user, password, sercvice_id and certificate for ssl connection.
5
- Contact Polkomtel sales reps for info how to obtain acces to MultiInfo service.
6
-
7
- == Basic Usage
8
-
9
- You will need your Mutliinfo credentials and SSL certificate to use this library.
10
-
11
- require 'rubygems'
12
- require 'multiinfo'
13
-
14
- api = MultiInfo::API.new
15
-
16
- # Example api calls
17
- api.send_message('48661351024', 'Hello') # sends sms 'Hello' to 48 661 351 024 and returns message id
18
- api.message_info('22') # gets info about message with id 22
19
-
20
-
21
- == Conifguration options
22
-
23
- Default path for config file and certificate files is $HOME/multiinfo. You should place following files in that directory:
24
- multiinfo.yml # config file
25
- multiinfo.crt # certificate
26
- multiinfo.pem # RSA key
27
-
28
- In multiinfo.yml you should specify at least:
29
- login
30
- password
31
- service_id
32
-
33
- If you want to use different names for certificate files speciify them with FULL PATH in config file under:
34
-
35
- client_cert
36
- client_key
37
-
38
- See example in config_example.yml
39
-
40
-
41
- To load your custom config file use following code
42
- require 'rubygems'
43
- require 'multiinfo'
44
-
45
- config = MultiInfo::API.load_auth_options(CONFIG_FILE_FULL_PATH)
46
- api = MultiInfo::API.new(config)
47
-
48
-
49
-
@@ -1,13 +0,0 @@
1
- module MultiInfo #:nodoc:
2
- module VERSION #:nodoc:
3
- MAJOR = 0
4
- MINOR = 0
5
- TINY = 1
6
-
7
- STRING = [MAJOR, MINOR, TINY].join('.')
8
-
9
- def self.to_s
10
- STRING
11
- end
12
- end
13
- end