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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9dd10c8bb66293b6e3f2b6cfb9a36c6b89d2088b
4
- data.tar.gz: b16b79d87e50ee8d714b383bde190eea35363fc9
3
+ metadata.gz: 3d9f784e611fed9289ba0f244ebb83b4d595f490
4
+ data.tar.gz: a3b700d4868493e5a70d2b75a91ac856b6080824
5
5
  SHA512:
6
- metadata.gz: 44eebbbc1981b698a484760ca2d2a173984beed14cab30f179f8b8863d312e66f41819f2e285b51f82cd720e2d3ad0143014b3a4ae38fdbb83b96d8741e47ea7
7
- data.tar.gz: c54463849993494e4012fa0ee5b9386e857a11f8bf2fae3845894b808feaf42f90a13cab1f67d0ae3dada599f6012cbd32cd5ee50a767de9fc27cb553f8af207
6
+ metadata.gz: 5a8975cb7a6c4154fd6207b727fcfd0b8941279eac1afe1695cd11d105f0d1843c4a92cc44a78e3aa2b585576bd8ba51ff7a769ec1844c2340d73a0be82f8ccb
7
+ data.tar.gz: 9852f112ee172aed2c6a6eee5212c3fba98ff5109b78e57c8f2dafbdba0da680510c6c35e9fc9d154cadc7bff837d5e40377edfc8bc0030034a888087d1ff835
@@ -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
@@ -5,7 +5,7 @@ module Smscru
5
5
  class Client
6
6
  attr_reader :config
7
7
 
8
- def initialize(options)
8
+ def initialize(options={})
9
9
  @config = Smscru.config.dup
10
10
  @config.update(options)
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Smscru
2
- VERSION = "0.0.2"
2
+ VERSION = '0.0.3'
3
3
  end
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.2
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-03-06 00:00:00.000000000 Z
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.0
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.