presbeus 0.0.7 → 0.0.8
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 +4 -4
- data/bin/presbeus +3 -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: 74f0004f5c1430734c0668030f85dfc003b1e47b
|
4
|
+
data.tar.gz: db51e6982f8e8d90cb1c59e33ae4fcca04c61f5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 714b68c1fe30daa587fb08e9d44a9c3763e3f39437624cde305f8d1b3c0f01a69086587a7020d681590e4c63782a4774af51ace354a9e563c029ba49fafa5497
|
7
|
+
data.tar.gz: 026d5aa1ade124037965efe38efd3a9f247cb28357f039af96865dae4f46e078b13bdabacdc3449c6dab59bd76bc306b3a00ac7d0d9b904fd32ba6cad3bb2cfd
|
data/bin/presbeus
CHANGED
@@ -46,10 +46,12 @@ class Presbeus
|
|
46
46
|
initialize_arguments
|
47
47
|
configuration_path = "#{ENV['HOME']}/.config/presbeus.yml"
|
48
48
|
configuration = YAML.load_file configuration_path
|
49
|
+
api_server = 'https://api.pushbullet.com'
|
50
|
+
api_server = configuration["api_server"] if configuration.include? "api_server"
|
49
51
|
@token = `#{configuration['password_command']}`.chomp
|
50
52
|
@notify_command = configuration['notify_command']
|
51
53
|
@headers = {"Access-Token" => @token, "Content-Type" => "json"}
|
52
|
-
@api_prefix = '
|
54
|
+
@api_prefix = api_server + '/v2/'
|
53
55
|
end
|
54
56
|
|
55
57
|
def realtime_no_reconnect
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: presbeus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Abdesselam
|
@@ -102,7 +102,7 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
104
|
- bin/presbeus
|
105
|
-
homepage: http://
|
105
|
+
homepage: http://github.com/yazgoo/presbeus
|
106
106
|
licenses:
|
107
107
|
- MIT
|
108
108
|
metadata: {}
|