voicecom_sms 4.1.0 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +5 -0
- data/VERSION +1 -1
- data/lib/voicecom_sms/provider.rb +2 -2
- data/spec/voicecom_sms/provider_spec.rb +1 -1
- data/voicecom_sms.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZWZiNGMxNjEzMzdiMThkYzM4MTBiMDJhYzZmZDdlZTI0NWY5NmZhNA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YjgwMGJjZTRiZDNhZTkzNzhhNmExMzFiOWIyZTg5OWFhYjU3Yjc4Nw==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MzE1MjcxNTA0ODk5MWIyYWJiNjZlYjM0NzdkZWQ4ZmI0MWI5MDdhOWFjZTVm
|
|
10
|
+
ZjdkZTQxOGU0ZDcxYTViZTBmN2MwNmE5MjUyOTI3MDQ1Y2VkNzQwMDU2OWMx
|
|
11
|
+
NzhmZWQzZjIzMGIxMTQwZTYzMmRhZTViMjAwNjQzMzhhYjgwMzk=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZjBiOGVhOTZiOTVjZDljY2ZkZDMxNjA1MjU4YTBjM2NlYjhlM2M4NGQxMDcw
|
|
14
|
+
MTJmMzJhNTc0NjYzYjBkODk2ZDdjYzE3YmVlMzFkMTkyMjE3NDg4NDAwNGY5
|
|
15
|
+
MmQxM2VkMjFkYjhiZjg2OWQzNTYyNWNiMDZmYjk5NWUwYTFkZDA=
|
data/README.md
CHANGED
|
@@ -35,6 +35,11 @@ rails c
|
|
|
35
35
|
@provider = VoicecomSms::Provider.new
|
|
36
36
|
@provider.send_sms('359888889204', "Vashiyat kod e: 1234")
|
|
37
37
|
|
|
38
|
+
or if you want to provide your id of the message
|
|
39
|
+
|
|
40
|
+
message = @provider.send_sms('359888889204', "hi") do |voicom_table_id|
|
|
41
|
+
"#{Rails.env}-#{voicom_table_id}-#{SecureRandom.urlsafe_base64(128)}"
|
|
42
|
+
end
|
|
38
43
|
|
|
39
44
|
|
|
40
45
|
### irb example
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.1.
|
|
1
|
+
4.1.2
|
|
@@ -34,9 +34,9 @@ module VoicecomSms
|
|
|
34
34
|
message = VoicecomSms::Message.create({text: text, number: normalize_number(number), status: STATUS[:undefined]})
|
|
35
35
|
|
|
36
36
|
message_id = if block_given?
|
|
37
|
-
yield
|
|
37
|
+
yield(message.id)
|
|
38
38
|
else
|
|
39
|
-
|
|
39
|
+
message.id
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
make_request(message, number, text, message_id)
|
|
@@ -23,7 +23,7 @@ describe VoicecomSms::Provider do
|
|
|
23
23
|
describe "#send_sms" do
|
|
24
24
|
before(:each) do
|
|
25
25
|
@provider = VoicecomSms::Provider.new
|
|
26
|
-
stub_request(:get, "https://localhost:8443/smsapi/bsms/index.php?id&msisdn=359899947329&sid=#{VoicecomSms.config.client_id}&text=some%20message").
|
|
26
|
+
stub_request(:get, "https://localhost:8443/smsapi/bsms/index.php?id=1&msisdn=359899947329&sid=#{VoicecomSms.config.client_id}&text=some%20message").
|
|
27
27
|
to_return(lambda { |request| File.new("request_stubs/success.curl")})
|
|
28
28
|
end
|
|
29
29
|
|
data/voicecom_sms.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "voicecom_sms"
|
|
8
|
-
s.version = "4.1.
|
|
8
|
+
s.version = "4.1.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Empowerunited", "Evgenia Manolova", "Gudata"]
|