pixeltrix-prowler 1.0.0 → 1.0.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.
- data/Rakefile +14 -0
- data/VERSION +1 -0
- data/lib/prowler.rb +41 -0
- data/prowler.gemspec +41 -25
- metadata +13 -12
data/Rakefile
CHANGED
@@ -20,3 +20,17 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
20
20
|
rdoc.rdoc_files.include('README')
|
21
21
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
22
22
|
end
|
23
|
+
|
24
|
+
begin
|
25
|
+
require 'jeweler'
|
26
|
+
Jeweler::Tasks.new do |gemspec|
|
27
|
+
gemspec.name = "prowler"
|
28
|
+
gemspec.summary = "Provides access to the Prowl API."
|
29
|
+
gemspec.email = "andyw@pixeltrix.co.uk"
|
30
|
+
gemspec.homepage = "http://github.com/pixeltrix/prowler/"
|
31
|
+
gemspec.description = "A simple wrapper class that provides basic access to the Prowl API."
|
32
|
+
gemspec.authors = ["Andrew White"]
|
33
|
+
end
|
34
|
+
rescue LoadError
|
35
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
36
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.1
|
data/lib/prowler.rb
CHANGED
@@ -1,3 +1,44 @@
|
|
1
|
+
# Prowler is a plugin for integrating apps with the Prowl iPhone application.
|
2
|
+
#
|
3
|
+
# === Installation
|
4
|
+
#
|
5
|
+
# From your project's RAILS_ROOT, run:
|
6
|
+
#
|
7
|
+
# script/plugin install git://github.com/pixeltrix/prowler.git
|
8
|
+
#
|
9
|
+
# === Configuration
|
10
|
+
#
|
11
|
+
# You should have something like this in config/initializers/prowler.rb.
|
12
|
+
#
|
13
|
+
# Prowler.configure do |config|
|
14
|
+
# config.username = 'username'
|
15
|
+
# config.password = 'password'
|
16
|
+
# config.application = 'www.example.com'
|
17
|
+
# end
|
18
|
+
#
|
19
|
+
# You can test that Prowler is working in your production environment by using
|
20
|
+
# this rake task (from RAILS_ROOT):
|
21
|
+
#
|
22
|
+
# rake prowler:test
|
23
|
+
#
|
24
|
+
# If everything is configured properly the task will send a request to
|
25
|
+
# prowl.weks.net which will be appear on your iPhone after a short delay.
|
26
|
+
#
|
27
|
+
# === Usage
|
28
|
+
#
|
29
|
+
# To use Prowler within your application just call the notify method, e.g.
|
30
|
+
#
|
31
|
+
# Prowler.notify "Event", "Description"
|
32
|
+
#
|
33
|
+
# === About
|
34
|
+
#
|
35
|
+
# Prowler relies upon the Prowl iPhone application which is advertised as
|
36
|
+
# a Growl notification forwarder from your Mac. However they provide an API
|
37
|
+
# which can be called by a generic script which allows you to use the
|
38
|
+
# application as a general push notification application for your iPhone.
|
39
|
+
#
|
40
|
+
# For more about the Prowl application see: http://prowl.weks.net/
|
41
|
+
|
1
42
|
require 'logger'
|
2
43
|
require 'net/http'
|
3
44
|
require 'net/https'
|
data/prowler.gemspec
CHANGED
@@ -1,30 +1,46 @@
|
|
1
|
-
|
2
|
-
s.platform = Gem::Platform::RUBY
|
3
|
-
s.name = 'prowler'
|
4
|
-
s.version = "1.0.0"
|
5
|
-
s.summary = 'Provides access to the Prowl API.'
|
6
|
-
s.description = <<-EOF
|
7
|
-
A simple wrapper class that provides basic access to the Prowl API.
|
8
|
-
EOF
|
9
|
-
s.author = 'Andrew White'
|
10
|
-
s.email = 'andyw@pixeltrix.co.uk'
|
11
|
-
s.homepage = 'http://github.com/pixeltrix/prowler/'
|
12
|
-
s.has_rdoc = true
|
1
|
+
# -*- encoding: utf-8 -*-
|
13
2
|
|
14
|
-
|
15
|
-
s.
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{prowler}
|
5
|
+
s.version = "1.0.1"
|
16
6
|
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Andrew White"]
|
9
|
+
s.date = %q{2009-07-07}
|
10
|
+
s.description = %q{A simple wrapper class that provides basic access to the Prowl API.}
|
11
|
+
s.email = %q{andyw@pixeltrix.co.uk}
|
12
|
+
s.extra_rdoc_files = [
|
13
|
+
"README"
|
14
|
+
]
|
17
15
|
s.files = [
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
16
|
+
"INSTALL",
|
17
|
+
"MIT-LICENSE",
|
18
|
+
"README",
|
19
|
+
"Rakefile",
|
20
|
+
"VERSION",
|
21
|
+
"install.rb",
|
22
|
+
"lib/prowler.rb",
|
23
|
+
"prowler.gemspec",
|
24
|
+
"tasks/prowler.rake",
|
25
|
+
"test/prowler_test.rb"
|
26
|
+
]
|
27
|
+
s.has_rdoc = true
|
28
|
+
s.homepage = %q{http://github.com/pixeltrix/prowler/}
|
29
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
30
|
+
s.require_paths = ["lib"]
|
31
|
+
s.rubygems_version = %q{1.3.1}
|
32
|
+
s.summary = %q{Provides access to the Prowl API.}
|
33
|
+
s.test_files = [
|
34
|
+
"test/prowler_test.rb"
|
35
|
+
]
|
36
|
+
|
37
|
+
if s.respond_to? :specification_version then
|
38
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
39
|
+
s.specification_version = 2
|
28
40
|
|
29
|
-
|
41
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
42
|
+
else
|
43
|
+
end
|
44
|
+
else
|
45
|
+
end
|
30
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pixeltrix-prowler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew White
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-07-07 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -19,23 +19,24 @@ executables: []
|
|
19
19
|
|
20
20
|
extensions: []
|
21
21
|
|
22
|
-
extra_rdoc_files:
|
23
|
-
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README
|
24
24
|
files:
|
25
|
-
- prowler.gemspec
|
26
25
|
- INSTALL
|
27
|
-
- install.rb
|
28
|
-
- lib/prowler.rb
|
29
26
|
- MIT-LICENSE
|
30
|
-
- Rakefile
|
31
27
|
- README
|
28
|
+
- Rakefile
|
29
|
+
- VERSION
|
30
|
+
- install.rb
|
31
|
+
- lib/prowler.rb
|
32
|
+
- prowler.gemspec
|
32
33
|
- tasks/prowler.rake
|
33
34
|
- test/prowler_test.rb
|
34
35
|
has_rdoc: true
|
35
36
|
homepage: http://github.com/pixeltrix/prowler/
|
36
37
|
post_install_message:
|
37
|
-
rdoc_options:
|
38
|
-
|
38
|
+
rdoc_options:
|
39
|
+
- --charset=UTF-8
|
39
40
|
require_paths:
|
40
41
|
- lib
|
41
42
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -50,8 +51,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
51
|
- !ruby/object:Gem::Version
|
51
52
|
version: "0"
|
52
53
|
version:
|
53
|
-
requirements:
|
54
|
-
|
54
|
+
requirements: []
|
55
|
+
|
55
56
|
rubyforge_project:
|
56
57
|
rubygems_version: 1.2.0
|
57
58
|
signing_key:
|