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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11602e04c8cf75a6458f6bf92df0139acb515c09
4
- data.tar.gz: 020f86afb09bbb9cfde78504f917a94a54c56eb1
3
+ metadata.gz: cb83fba27a6f0639662c53d9df1e49bcbe9f3c50
4
+ data.tar.gz: 8927dbb63e151b2f8d795f2ee8cce01047ef9452
5
5
  SHA512:
6
- metadata.gz: 5abee030af7221a51ecf928ac62db5c3296aa4461e2f6cf85a4949018b90abed89539c282f7fd05c99f38051d4e48a800b19af27d476d18bc8c19ff2c675b451
7
- data.tar.gz: 6b3e4b8e94addc1d767f8ebe01d39333eb3ac40d13d68b81117e97d4ce8fa5bc56c3f9ffcb1245e249452325058ca14d61e92aaf321dc88f1010d95128693034
6
+ metadata.gz: 525c25c9a42d2605877ce37d34d549bc9e0b2c909e594c3b3aa1ae1704e3bd373ceec11a38e89e0589a52b68e55fa1f60496f938134ca4f44ad3582c4cf5b4ce
7
+ data.tar.gz: 5435a0d89482b2a378eb941a5cee52e38fa4a44f35bf56d0b5024bc13cf1cc4d5c7ceba837807c515686682085dd26a545422ebdd2674107322b01faddbdfd4b
data/.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'yopass'
4
- s.version = '3.0.4'
4
+ s.version = '3.0.5'
5
5
  s.author = 'Johan Haals'
6
6
  s.email = 'johan@haals.se'
7
7
  s.homepage = 'https://github.com/jhaals/yopass'
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
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-20 00:00:00.000000000 Z
11
+ date: 2015-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: encryptor