mojodna-switchboard 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -9,11 +9,22 @@ Install it:
9
9
 
10
10
  $ sudo gem install mojodna-switchboard -s http://gems.github.com
11
11
 
12
- Install optional dependencies for additional functionality:
12
+ Install optional dependencies for additional functionality.
13
13
 
14
- $ sudo gem install oauth # (for OAuth PubSub support)
15
- $ sudo gem install fire-hydrant # (for User Location support)
16
- $ sudo gem install rb-appscript # (for User Tune support)
14
+ OAuth PubSub support:
15
+
16
+ $ sudo gem install oauth
17
+
18
+ User Location (XEP-0080) support via Fire Eagle:
19
+
20
+ $ sudo gem install mojodna-fire-hydrant -s http://gems.github.com
21
+
22
+ _Note: you will need to set up a PubSub subscription to your location via Fire
23
+ Eagle for this to work._
24
+
25
+ User Tune (XEP-0118) support via iTunes (on Mac OS X):
26
+
27
+ $ sudo gem install rb-appscript
17
28
 
18
29
  Configure it:
19
30
 
@@ -41,7 +52,7 @@ Subscribe to a node using OAuth, overriding default settings:
41
52
  --node "/api/0.1/user/<token>" \
42
53
  subscribe
43
54
 
44
- Publish iTunes' current track using UserTune (XEP-0118):
55
+ Publish iTunes' current track using User Tune (XEP-0118):
45
56
 
46
57
  $ switchboard --resource switchtunes pep tune
47
58
 
@@ -16,6 +16,9 @@ module Switchboard
16
16
  exit 1
17
17
  end
18
18
 
19
+ # TODO check for at least one Fire Eagle subscription, otherwise this
20
+ # will never broadcast anything.
21
+
19
22
  switchboard = Switchboard::Client.new
20
23
  switchboard.plug!(AutoAcceptJack, FireEagleJack)
21
24
 
@@ -18,6 +18,7 @@ module Switchboard
18
18
  opts.on("--oauth-token =oken", String, "Specifies the OAuth token to use.") { |v| OPTIONS["oauth.token"] = v }
19
19
  opts.on("--oauth-token-secret=secret", String, "Specifies the OAuth token secret to use.") { |v| OPTIONS["oauth.token_secret"] = v }
20
20
  end
21
+ opts
21
22
  end
22
23
  end
23
24
  end
@@ -4,6 +4,7 @@ begin
4
4
  rescue LoadError => e
5
5
  gem = e.message.split("--").last.strip
6
6
  puts "The #{gem} gem is required."
7
+ exit 1
7
8
  end
8
9
 
9
10
  require 'switchboard/helpers/pubsub'
@@ -1,3 +1,9 @@
1
+ require 'rubygems'
2
+ begin
3
+ require 'oauth'
4
+ rescue LoadError => e
5
+ end
6
+
1
7
  require 'switchboard/core'
2
8
  require 'switchboard/client'
3
9
  require 'switchboard/component'
@@ -1,3 +1,3 @@
1
1
  module Switchboard
2
- VERSION = [0, 0, 7]
2
+ VERSION = [0, 0, 8]
3
3
  end
data/switchboard.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # this file is automatically generated
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "switchboard"
4
- s.version = "0.0.7"
4
+ s.version = "0.0.8"
5
5
  s.summary = "XMPP toolkit."
6
6
  s.description = "A toolkit for assembling XMPP clients and interacting with XMPP servers."
7
7
  s.authors = ["Seth Fitzsimmons"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mojodna-switchboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Fitzsimmons