talkypi 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +7 -0
- data/bin/talkypi +5 -0
- data/lib/talkypi.rb +54 -0
- data/talkypi.gemspec +38 -0
- metadata +62 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4d029cdfa1ed4ed7dbdf10898e1df85fd4091f23
|
4
|
+
data.tar.gz: 8dc26dc119f23c7ba77912ff991692d2439ac97a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f85ccd5d4f21b7ac663100ebb129b5a4dd2490074cbbce322857a1429b3b352884937779336a2fbec04b902b56116642b38ced12d340c2fc1b29cc91fc5ed59f
|
7
|
+
data.tar.gz: f21038436a1a293547b596df728820e7da23f08859de42b7090f3d92015a2cfe8544fbb404df759813f683d8c4ed2b9af41252faa704391190919a15ddd9d24e
|
data/LICENSE
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright (c) 2013 Marc Ransome <marc.ransome@fidgetbox.co.uk>
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/bin/talkypi
ADDED
data/lib/talkypi.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
#
|
2
|
+
# talkypi
|
3
|
+
#
|
4
|
+
# Copyright (c) 2013 Marc Ransome <marc.ransome@fidgetbox.co.uk>
|
5
|
+
#
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
# of this software and associated documentation files (the "Software"), to
|
8
|
+
# deal in the Software without restriction, including without limitation the
|
9
|
+
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
10
|
+
# sell copies of the Software, and to permit persons to whom the Software is
|
11
|
+
# furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
14
|
+
# all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
23
|
+
#
|
24
|
+
|
25
|
+
require 'prowl'
|
26
|
+
|
27
|
+
class Talkypi
|
28
|
+
|
29
|
+
def self.run
|
30
|
+
config_file = "~/.talkypi"
|
31
|
+
|
32
|
+
begin
|
33
|
+
userkey = File.read(File.expand_path(config_file))
|
34
|
+
rescue
|
35
|
+
puts "Unable to read configuration file #{config_file}"
|
36
|
+
exit 1
|
37
|
+
end
|
38
|
+
|
39
|
+
if not ARGV.count == 2 then
|
40
|
+
puts "Usage: #{File.basename($0)} [EVENT][DESCRIPTION]"
|
41
|
+
exit
|
42
|
+
end
|
43
|
+
|
44
|
+
event = ARGV[0]
|
45
|
+
description = ARGV[1]
|
46
|
+
|
47
|
+
Prowl.add(
|
48
|
+
:apikey => userkey.chomp,
|
49
|
+
:application => "talkypi",
|
50
|
+
:event => event,
|
51
|
+
:description => description
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
data/talkypi.gemspec
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
#
|
2
|
+
# talkypi
|
3
|
+
#
|
4
|
+
# Copyright (c) 2013 Marc Ransome <marc.ransome@fidgetbox.co.uk>
|
5
|
+
#
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
# of this software and associated documentation files (the "Software"), to
|
8
|
+
# deal in the Software without restriction, including without limitation the
|
9
|
+
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
10
|
+
# sell copies of the Software, and to permit persons to whom the Software is
|
11
|
+
# furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
14
|
+
# all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
23
|
+
#
|
24
|
+
|
25
|
+
Gem::Specification.new do |s|
|
26
|
+
s.name = 'talkypi'
|
27
|
+
s.version = '1.0.0'
|
28
|
+
s.date = '2013-07-06'
|
29
|
+
s.summary = 'Command-line Prowl noticiations'
|
30
|
+
s.description = 'A simple command-line tool for delivering Prowl notifications.'
|
31
|
+
s.authors = ["Marc Ransome"]
|
32
|
+
s.email = 'marc.ransome@fidgetbox.co.uk'
|
33
|
+
s.files = `git ls-files`.split("\n")
|
34
|
+
s.executables << 'talkypi'
|
35
|
+
s.add_runtime_dependency 'prowl', '>= 0.1.3'
|
36
|
+
s.homepage = 'http://github.com/marcransome/talkypi'
|
37
|
+
s.license = 'MIT'
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: talkypi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marc Ransome
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-07-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: prowl
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.1.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.1.3
|
27
|
+
description: A simple command-line tool for delivering Prowl notifications.
|
28
|
+
email: marc.ransome@fidgetbox.co.uk
|
29
|
+
executables:
|
30
|
+
- talkypi
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- LICENSE
|
35
|
+
- bin/talkypi
|
36
|
+
- lib/talkypi.rb
|
37
|
+
- talkypi.gemspec
|
38
|
+
homepage: http://github.com/marcransome/talkypi
|
39
|
+
licenses:
|
40
|
+
- MIT
|
41
|
+
metadata: {}
|
42
|
+
post_install_message:
|
43
|
+
rdoc_options: []
|
44
|
+
require_paths:
|
45
|
+
- lib
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - '>='
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements: []
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 2.0.3
|
59
|
+
signing_key:
|
60
|
+
specification_version: 4
|
61
|
+
summary: Command-line Prowl noticiations
|
62
|
+
test_files: []
|