sandmanapp 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Rakefile +2 -0
- data/lib/sandmanapp.rb +15 -0
- data/lib/sandmanapp/version.rb +3 -0
- data/sandmanapp.gemspec +21 -0
- metadata +15 -10
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
data/lib/sandmanapp.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'CGI'
|
2
|
+
require 'net/http'
|
3
|
+
|
4
|
+
module Sandmanapp
|
5
|
+
|
6
|
+
def Sandmanapp.setApplicationId applicationId
|
7
|
+
@@applicationId = applicationId
|
8
|
+
end
|
9
|
+
|
10
|
+
def Sandmanapp.notify message, tags
|
11
|
+
path = "/v1/?application_id=" + @@applicationId + "&content=" + CGI::escape(message) + "&tags=" + tags.join("|")
|
12
|
+
resp, data = Net::HTTP.new('sandmanapp.com', 3333).get2(path)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
data/sandmanapp.gemspec
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "sandmanapp/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "sandmanapp"
|
7
|
+
s.version = Sandmanapp::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Florian Herlings"]
|
10
|
+
s.email = ["hello@sandmanapp.com"]
|
11
|
+
s.homepage = "http://sandmanapp.com/"
|
12
|
+
s.summary = %q{Gem for the sandmanapp.com service.}
|
13
|
+
s.description = %q{Use this gem to connect to the sandmanapp service. Look at the homepage to find more information.}
|
14
|
+
|
15
|
+
s.rubyforge_project = "sandmanapp"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
end
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sandmanapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: "0.
|
8
|
+
- 3
|
9
|
+
version: "0.3"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Florian Herlings
|
@@ -18,7 +18,7 @@ date: 2011-03-01 00:00:00 +01:00
|
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
21
|
-
description:
|
21
|
+
description: Use this gem to connect to the sandmanapp service. Look at the homepage to find more information.
|
22
22
|
email:
|
23
23
|
- hello@sandmanapp.com
|
24
24
|
executables: []
|
@@ -27,10 +27,15 @@ extensions: []
|
|
27
27
|
|
28
28
|
extra_rdoc_files: []
|
29
29
|
|
30
|
-
files:
|
31
|
-
|
30
|
+
files:
|
31
|
+
- .gitignore
|
32
|
+
- Gemfile
|
33
|
+
- Rakefile
|
34
|
+
- lib/sandmanapp.rb
|
35
|
+
- lib/sandmanapp/version.rb
|
36
|
+
- sandmanapp.gemspec
|
32
37
|
has_rdoc: true
|
33
|
-
homepage: http://sandmanapp.com
|
38
|
+
homepage: http://sandmanapp.com/
|
34
39
|
licenses: []
|
35
40
|
|
36
41
|
post_install_message:
|
@@ -58,10 +63,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
63
|
version: "0"
|
59
64
|
requirements: []
|
60
65
|
|
61
|
-
rubyforge_project:
|
62
|
-
rubygems_version: 1.5.
|
66
|
+
rubyforge_project: sandmanapp
|
67
|
+
rubygems_version: 1.5.3
|
63
68
|
signing_key:
|
64
69
|
specification_version: 3
|
65
|
-
summary: Gem
|
70
|
+
summary: Gem for the sandmanapp.com service.
|
66
71
|
test_files: []
|
67
72
|
|