zimdel 0.1.0 → 0.1.1
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/zimdel +0 -3
- data/lib/zimdel/version.rb +1 -1
- data/lib/zimdel.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49c7b9c108bd64b1d93da8ac7640441ec7fc177e
|
4
|
+
data.tar.gz: 64d5deec64dd2684c563b5528a15bf2c19a81980
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74f71d4530229c4371cce7ffb7c38810dc152ff7bdaaa7dfdc3d64d0a4878c4cf7aabbcbc2bc752b6ba8a62fbdd1299e17149773bca3f869f420135bef54662e
|
7
|
+
data.tar.gz: 4d148106c27342af0f957729290dcf5744319292d8c49bb13c6af48c0fdd0841929e2b85c6fc2ecb86be60a922c02d88c7dcf2ff29a74f6439299d87622290c0
|
data/bin/zimdel
CHANGED
@@ -18,9 +18,6 @@ file = options.fetch(:config, 'config.yml')
|
|
18
18
|
config = YAML.load_file(file)
|
19
19
|
|
20
20
|
loop do
|
21
|
-
puts "Logging in with: #{config}"
|
22
21
|
Zimdel.new(config['username'], config['password'], config['message'])
|
23
|
-
puts "Messages sent"
|
24
22
|
sleep config['sleep']
|
25
|
-
puts "Waking up!"
|
26
23
|
end
|
data/lib/zimdel/version.rb
CHANGED
data/lib/zimdel.rb
CHANGED
@@ -7,6 +7,7 @@ module Zimdel
|
|
7
7
|
@client ||= Octokit::Client.new(login: username, password: password)
|
8
8
|
|
9
9
|
@client.notifications.each do |notification|
|
10
|
+
next unless notification[:reason] == 'mention'
|
10
11
|
@client.add_comment(notification[:repository][:full_name], notification[:subject][:url][/[0-9]+$/], message)
|
11
12
|
end
|
12
13
|
|