yopass 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gemspec +1 -1
- data/README.md +1 -0
- data/lib/yopass/sms_provider/bulksms.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb83fba27a6f0639662c53d9df1e49bcbe9f3c50
|
4
|
+
data.tar.gz: 8927dbb63e151b2f8d795f2ee8cce01047ef9452
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 525c25c9a42d2605877ce37d34d549bc9e0b2c909e594c3b3aa1ae1704e3bd373ceec11a38e89e0589a52b68e55fa1f60496f938134ca4f44ad3582c4cf5b4ce
|
7
|
+
data.tar.gz: 5435a0d89482b2a378eb941a5cee52e38fa4a44f35bf56d0b5024bc13cf1cc4d5c7ceba837807c515686682085dd26a545422ebdd2674107322b01faddbdfd4b
|
data/.gemspec
CHANGED
data/README.md
CHANGED
@@ -66,6 +66,7 @@ Use the bulksms provider in ```lib/sms_provider/bulksms.rb``` as example
|
|
66
66
|
|
67
67
|
YP_SEND_SMS=1
|
68
68
|
YP_SMS_SETTINGS='{"provider": "bulksms", "settings": {"username": "smsuser", "password": "xxxx"}}'
|
69
|
+
YP_OUTBOUND_PROXY='http://your-proxy:port'
|
69
70
|
|
70
71
|
### Screenshot
|
71
72
|
![YoPass website](http://f.cl.ly/items/1N1C3I1q1i0E343r1v3p/Screenshot%202015-02-07%2018.51.17.png)
|
@@ -11,8 +11,14 @@ class Bulksms
|
|
11
11
|
def send(to, message)
|
12
12
|
url = URI.join(@api_url, "?username=#{@username}&password=#{@password}" \
|
13
13
|
"&message=#{message}&msisdn=#{to}&sender=#{@sender}")
|
14
|
-
result = open(url).read
|
14
|
+
result = open(url, options).read
|
15
15
|
return true if result.include? 'IN_PROGRESS'
|
16
16
|
false
|
17
17
|
end
|
18
|
+
|
19
|
+
def options
|
20
|
+
opts = {}
|
21
|
+
url = ENV['YP_OUTBOUND_PROXY']
|
22
|
+
opts[:proxy] = URI.parse(url) unless url.nil?
|
23
|
+
end
|
18
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yopass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johan Haals
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: encryptor
|