roost 0.0.1 → 0.0.2
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/README.md +13 -12
- data/lib/roost/version.rb +1 -1
- data/roost.gemspec +3 -3
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3435183de140fbf7856cb3e9cb4ccdcf41a107dc
|
|
4
|
+
data.tar.gz: bd2ac38e4d6ec339ac2bfb34a56c79ec0d758b9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e3c5caffd6980a72d1eed3e5cb5654e3224a2a5895096e7b8ade023415dcb9a7f0ec84513f777ac31682a87115f30381f3bdffe2ee53a1786a6e936f62dcd54
|
|
7
|
+
data.tar.gz: 03571ee0241d252f253d443ed0b6b38049e295ef88a245556969921a082d896af4304ccefaade2b3b18cbff44cffca2691abaefb6a380ba14e0928f1f07eb23b
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Roost
|
|
2
2
|
|
|
3
|
-
This is the official Ruby
|
|
3
|
+
This is the official Ruby Gem for the Roost API.
|
|
4
4
|
|
|
5
5
|
Roost is the easy way to send Safari Push Notifications to your website visitors.
|
|
6
6
|
Desktop Push Notifications provide a new marketing channel to drive visitors back to your site.
|
|
@@ -24,24 +24,25 @@ Or install it yourself as:
|
|
|
24
24
|
|
|
25
25
|
## Usage
|
|
26
26
|
|
|
27
|
-
To send notifications you first need to create an account on roost.me.
|
|
27
|
+
To send notifications you first need to create an account on http://roost.me.
|
|
28
28
|
|
|
29
|
-
Then make sure you have ENV["ROOST_APPKEY"] and ENV["ROOST_APPSECRET"] set.
|
|
29
|
+
Then make sure you have ENV["ROOST_APPKEY"] and ENV["ROOST_APPSECRET"] set.
|
|
30
|
+
These can be found in the http://roost.me dashboard under settings.
|
|
30
31
|
If you are using the Heroku Add-On these are already configured for you.
|
|
31
32
|
|
|
32
33
|
Once you have some registered Safari visitors on your site you can use the following code to send them a message.
|
|
33
|
-
|
|
34
|
-
response = Roost::API.send({alert:'Welcome to Roost',url:'http://roost.me'})
|
|
35
|
-
if response['success'] == true
|
|
36
|
-
|
|
37
|
-
else
|
|
38
|
-
|
|
39
|
-
end
|
|
40
|
-
|
|
34
|
+
```
|
|
35
|
+
response = Roost::API.send({alert:'Welcome to Roost',url:'http://roost.me'})
|
|
36
|
+
if response['success'] == true
|
|
37
|
+
..success..
|
|
38
|
+
else
|
|
39
|
+
..failure..
|
|
40
|
+
end
|
|
41
|
+
```
|
|
41
42
|
|
|
42
43
|
## Contributing
|
|
43
44
|
|
|
44
|
-
1. Fork it ( http://github.com
|
|
45
|
+
1. Fork it ( http://github.com/rickbyington/roost/fork )
|
|
45
46
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
46
47
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
47
48
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/roost/version.rb
CHANGED
data/roost.gemspec
CHANGED
|
@@ -6,9 +6,9 @@ require 'roost/version'
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "roost"
|
|
8
8
|
spec.version = Roost::VERSION
|
|
9
|
-
spec.authors = ["Rick Byington"]
|
|
10
|
-
spec.email = ["
|
|
11
|
-
spec.summary = %q{Roost.me Ruby API library.}
|
|
9
|
+
spec.authors = ["Notice Software","Rick Byington"]
|
|
10
|
+
spec.email = ["support@noticesoftware.com"]
|
|
11
|
+
spec.summary = %q{Official Roost.me Ruby API library.}
|
|
12
12
|
spec.description = %q{}
|
|
13
13
|
spec.homepage = ""
|
|
14
14
|
spec.license = "MIT"
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: roost
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
+
- Notice Software
|
|
7
8
|
- Rick Byington
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2014-04-
|
|
12
|
+
date: 2014-04-02 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: bundler
|
|
@@ -54,7 +55,7 @@ dependencies:
|
|
|
54
55
|
version: '2.6'
|
|
55
56
|
description: ''
|
|
56
57
|
email:
|
|
57
|
-
-
|
|
58
|
+
- support@noticesoftware.com
|
|
58
59
|
executables: []
|
|
59
60
|
extensions: []
|
|
60
61
|
extra_rdoc_files: []
|
|
@@ -90,5 +91,5 @@ rubyforge_project:
|
|
|
90
91
|
rubygems_version: 2.2.1
|
|
91
92
|
signing_key:
|
|
92
93
|
specification_version: 4
|
|
93
|
-
summary: Roost.me Ruby API library.
|
|
94
|
+
summary: Official Roost.me Ruby API library.
|
|
94
95
|
test_files: []
|