smscru 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smscru.rb +8 -0
- data/lib/smscru/client.rb +1 -1
- data/lib/smscru/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d9f784e611fed9289ba0f244ebb83b4d595f490
|
4
|
+
data.tar.gz: a3b700d4868493e5a70d2b75a91ac856b6080824
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a8975cb7a6c4154fd6207b727fcfd0b8941279eac1afe1695cd11d105f0d1843c4a92cc44a78e3aa2b585576bd8ba51ff7a769ec1844c2340d73a0be82f8ccb
|
7
|
+
data.tar.gz: 9852f112ee172aed2c6a6eee5212c3fba98ff5109b78e57c8f2dafbdba0da680510c6c35e9fc9d154cadc7bff837d5e40377edfc8bc0030034a888087d1ff835
|
data/lib/smscru.rb
CHANGED
@@ -4,6 +4,10 @@ require 'smscru/client'
|
|
4
4
|
require 'smscru/callback'
|
5
5
|
|
6
6
|
module Smscru
|
7
|
+
extend SingleForwardable
|
8
|
+
|
9
|
+
def_delegators :client, :send_message
|
10
|
+
|
7
11
|
class << self
|
8
12
|
attr_reader :config
|
9
13
|
|
@@ -12,6 +16,10 @@ module Smscru
|
|
12
16
|
@config.update(options)
|
13
17
|
yield @config if block_given?
|
14
18
|
end
|
19
|
+
|
20
|
+
def client
|
21
|
+
@client ||= Client.new
|
22
|
+
end
|
15
23
|
end
|
16
24
|
|
17
25
|
configure
|
data/lib/smscru/client.rb
CHANGED
data/lib/smscru/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smscru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Nartimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.2.
|
97
|
+
rubygems_version: 2.2.2
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Ruby interface to the smsc.ru SMS gateway service.
|