smsapi-client 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -2
- data/lib/smsapi/smsapi.rb +1 -1
- data/smsapi-client.gemspec +4 -4
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c55110559a4a4905d5a629153b6cc50b6fe14282
|
4
|
+
data.tar.gz: f6a7fb52d82838bbb46e45ad0442425717659c68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5a5c0491be19dfc9c54040f6f86bc6a85ff7e8fe2f3248953d24d3fa118ea8ec766a86b9027d231a29251eb9c3389d96f04dfe86625077087b721fb22022a4d
|
7
|
+
data.tar.gz: d95ac9866a45870e51a668cc75f1030dc0f0cdc358bad40b5a6b75fd01b07a15658150b053259d13f8ca8c3ec2f37e12914c3e43cc7bf3d15f76558ee6467129
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Smsapi::Client
|
2
2
|
|
3
|
+
Smsapi::Client is a Ruby implementation for SMSAPI.pl gateway created by [Ruby Logic](http://rubylogic.pl)
|
4
|
+
|
3
5
|
## Installation
|
4
6
|
|
5
7
|
Add this line to your application's Gemfile:
|
@@ -18,8 +20,14 @@ Or install it yourself as:
|
|
18
20
|
|
19
21
|
## Usage
|
20
22
|
|
23
|
+
Be sure you have a username and a password. You can obtain your credentials on [SMSAPI.pl](http://smsapi.pl)
|
24
|
+
|
21
25
|
```ruby
|
26
|
+
# Include the library
|
27
|
+
require 'smsapi/smsapi'
|
28
|
+
|
22
29
|
# Create the client
|
30
|
+
|
23
31
|
client = Smsapi::Client.new('username', 'password')
|
24
32
|
|
25
33
|
# Get credits (account details)
|
@@ -47,6 +55,9 @@ sms.error_message # => 'Bad Credentials'
|
|
47
55
|
# Any additional options can be passed as last argument
|
48
56
|
sms = client.send_single 500500500, 'Text Message', test: '1'
|
49
57
|
|
58
|
+
# Sending a single PRO message. Remember to get authorisation for the name here: https://ssl.smsapi.pl/sms_settings/sendernames
|
59
|
+
sms = client.send_single 500500500, 'Text Message', from: 'Ruby Logic'
|
60
|
+
|
50
61
|
# Schedule a single message to be sent in the future
|
51
62
|
when = DateTime.new(2015, 10, 10)
|
52
63
|
sms = client.schedule_single 500500500, 'Text Message', when
|
@@ -67,11 +78,11 @@ bulk.sent.count # => 2
|
|
67
78
|
|
68
79
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
69
80
|
|
70
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `
|
81
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `smsapi.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
71
82
|
|
72
83
|
## Contributing
|
73
84
|
|
74
|
-
1. Fork it ( https://github.com/
|
85
|
+
1. Fork it ( https://github.com/ruby-logic/smsapi-client/fork )
|
75
86
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
76
87
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
77
88
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/smsapi/smsapi.rb
CHANGED
data/smsapi-client.gemspec
CHANGED
@@ -6,12 +6,12 @@ require 'smsapi/smsapi'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "smsapi-client"
|
8
8
|
spec.version = Smsapi::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Alek Niemczyk', 'Michal Musialik', 'Marek Machula']
|
10
|
+
spec.email = ['info@rubylogic.pl']
|
11
11
|
|
12
12
|
spec.summary = 'SMSAPI.pl Ruby client'
|
13
|
-
spec.description = 'SMSAPI.pl Ruby client'
|
14
|
-
spec.homepage = 'https://github.com/
|
13
|
+
spec.description = 'SMSAPI.pl Ruby client created by Ruby Logic S.C.'
|
14
|
+
spec.homepage = 'https://github.com/ruby-logic/smsapi-client'
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
metadata
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smsapi-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alek Niemczyk
|
8
|
-
- Marek Machula
|
9
|
-
- Marcin Drozd
|
10
8
|
- Michal Musialik
|
9
|
+
- Marek Machula
|
11
10
|
autorequire:
|
12
11
|
bindir: exe
|
13
12
|
cert_chain: []
|
14
|
-
date:
|
13
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: bundler
|
@@ -41,7 +40,7 @@ dependencies:
|
|
41
40
|
- - "~>"
|
42
41
|
- !ruby/object:Gem::Version
|
43
42
|
version: '10.0'
|
44
|
-
description: SMSAPI.pl Ruby client
|
43
|
+
description: SMSAPI.pl Ruby client created by Ruby Logic S.C.
|
45
44
|
email:
|
46
45
|
- info@rubylogic.pl
|
47
46
|
executables: []
|
@@ -67,7 +66,7 @@ files:
|
|
67
66
|
- lib/smsapi/sms.rb
|
68
67
|
- lib/smsapi/smsapi.rb
|
69
68
|
- smsapi-client.gemspec
|
70
|
-
homepage: https://github.com/
|
69
|
+
homepage: https://github.com/ruby-logic/smsapi-client
|
71
70
|
licenses:
|
72
71
|
- MIT
|
73
72
|
metadata: {}
|
@@ -87,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
86
|
version: '0'
|
88
87
|
requirements: []
|
89
88
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.
|
89
|
+
rubygems_version: 2.5.2.3
|
91
90
|
signing_key:
|
92
91
|
specification_version: 4
|
93
92
|
summary: SMSAPI.pl Ruby client
|