smsc 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,5 +20,5 @@ Sending sms:
20
20
 
21
21
  ~~~~ ruby
22
22
  sms = Smsc::Sms.new('login', 'password', 'windows-1251') # encoding is optional - utf-8 by default
23
- sms.message('Some nice message', ['+11111234567', '+12221234567'])
24
- ~~~~~
23
+ sms.message('Some nice message', ['+11111234567', '+12221234567'], sender: "custom sender id") # sender is optional
24
+ ~~~~~
@@ -15,8 +15,17 @@ module Smsc
15
15
  end
16
16
  end
17
17
 
18
- def message(message, phones)
19
- @connection.post '/sys/send.php', { login: @login, psw: @password, phones: phones.join(','), mes: message, charset: @charset }
18
+ def message(message, phones, options = {})
19
+ params = {
20
+ login: @login,
21
+ psw: @password,
22
+ phones: phones.join(','),
23
+ mes: message,
24
+ charset: @charset,
25
+ sender: options[:sender]
26
+ }
27
+
28
+ @connection.post '/sys/send.php', params
20
29
  end
21
30
 
22
31
  end
@@ -1,3 +1,3 @@
1
1
  module Smsc
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  # specify any dependencies here; for example:
22
- s.add_dependency 'faraday', '~> 0.8.6'
22
+ s.add_dependency 'faraday', '~> 0.8.8'
23
23
  end
metadata CHANGED
@@ -1,29 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smsc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Andrey Voronkov
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-03-19 00:00:00.000000000 Z
12
+ date: 2013-11-01 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: faraday
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
19
- version: 0.8.6
21
+ version: 0.8.8
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
26
- version: 0.8.6
29
+ version: 0.8.8
27
30
  description: Simple client for sending SMS via smsc.ru
28
31
  email:
29
32
  - voronkovaa@gmail.com
@@ -40,25 +43,26 @@ files:
40
43
  - smsc.gemspec
41
44
  homepage: http://github.com/Antiarchitect/smsc
42
45
  licenses: []
43
- metadata: {}
44
46
  post_install_message:
45
47
  rdoc_options: []
46
48
  require_paths:
47
49
  - lib
48
50
  required_ruby_version: !ruby/object:Gem::Requirement
51
+ none: false
49
52
  requirements:
50
- - - '>='
53
+ - - ! '>='
51
54
  - !ruby/object:Gem::Version
52
55
  version: '0'
53
56
  required_rubygems_version: !ruby/object:Gem::Requirement
57
+ none: false
54
58
  requirements:
55
- - - '>='
59
+ - - ! '>='
56
60
  - !ruby/object:Gem::Version
57
61
  version: '0'
58
62
  requirements: []
59
63
  rubyforge_project: smsc
60
- rubygems_version: 2.0.0.rc.2
64
+ rubygems_version: 1.8.23
61
65
  signing_key:
62
- specification_version: 4
66
+ specification_version: 3
63
67
  summary: Simple client for sending SMS via smsc.ru
64
68
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 877c3784c035cdc69765be007b2fbb3b4c26b994
4
- data.tar.gz: 21f8d943c4d6e268e6fecfbb9b912592889c4953
5
- SHA512:
6
- metadata.gz: cc3dd36cbfa95ddf3fb79bfe530f96dd67b96c9c0ac5fbdd206b834ce70ca3abbef57f08ea06643b75aeaa4acb9fe2a12df3e323a4a234d6c603d14525fb0036
7
- data.tar.gz: 7fcfb53372a0a98b75797a742eaa4c9beaf5737aa4c2c7568504040ac78ee6562d0e65641d7bc2195557960bb8de5171e39a80c0cf0faff211917ba84ded4f4b