frankie 0.2.2 → 0.2.3
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/CHANGELOG +2 -0
- data/README.rdoc +10 -2
- data/Rakefile +1 -2
- data/frankie.gemspec +4 -5
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -27,7 +27,7 @@ Thanks, everyone!
|
|
27
27
|
|
28
28
|
## the site
|
29
29
|
get '/' do
|
30
|
-
body "<h1>Hello #{session[
|
30
|
+
body "<h1>Hello #{session[:facebook_session].user.name} and welcome to frankie!</h1>"
|
31
31
|
end
|
32
32
|
|
33
33
|
|
@@ -59,7 +59,15 @@ Thanks, everyone!
|
|
59
59
|
callback_url: http://yourrealserver.com
|
60
60
|
|
61
61
|
|
62
|
-
- Make sure you have setup your Facebook application on the facebook site. Google "setup new facebook application" if you are unsure how to do this. I recommend starting with an IFrame application. A more advanced and cooler approach uses a tunneling script
|
62
|
+
- Make sure you have setup your Facebook application on the facebook site. Google "setup new facebook application" if you are unsure how to do this. I recommend starting with an IFrame application. A more advanced and cooler approach uses a tunneling script, which is included with Frankie. You do need to have "autossh" installed in order to use it, as well as a publicly addressable server. From a command prompt type tunnel <host> <remote_port> <local_port> like this:
|
63
|
+
|
64
|
+
tunnel app.myhost.com 10000 4567
|
65
|
+
|
66
|
+
You will also need to make sure your server's /etc/ssh/sshd_config contains the following line:
|
67
|
+
|
68
|
+
GatewayPorts clientspecified
|
69
|
+
|
70
|
+
Thanks to the many people like Evan Weaver, Blake Mizerany, and whoever else that have provided the code used in this tunneling script.
|
63
71
|
|
64
72
|
- Create your application, based on the sample above, and then run it:
|
65
73
|
ruby sample.rb
|
data/Rakefile
CHANGED
@@ -21,8 +21,7 @@ Echoe.new("frankie") do |p|
|
|
21
21
|
p.author = "Ron Evans"
|
22
22
|
p.summary = "Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem."
|
23
23
|
p.url = "http://facethesinatra.com/"
|
24
|
-
|
25
|
-
p.dependencies = ["sinatra >=0.2.0", "facebooker >=0.9.5"]
|
24
|
+
p.dependencies = ["sinatra >=0.2.2", "facebooker >=0.9.5"]
|
26
25
|
p.install_message = "*** Frankie was installed ***"
|
27
26
|
p.include_rakefile = true
|
28
27
|
end
|
data/frankie.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Frankie-0.2.
|
2
|
+
# Gem::Specification for Frankie-0.2.3
|
3
3
|
# Originally generated by Echoe
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = %q{frankie}
|
7
|
-
s.version = "0.2.
|
7
|
+
s.version = "0.2.3"
|
8
8
|
|
9
9
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
10
10
|
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.summary = %q{Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem.}
|
28
28
|
s.test_files = ["test/frankie_test.rb"]
|
29
29
|
|
30
|
-
s.add_dependency(%q<sinatra>, [">= 0.2.
|
30
|
+
s.add_dependency(%q<sinatra>, [">= 0.2.2"])
|
31
31
|
s.add_dependency(%q<facebooker>, [">= 0.9.5"])
|
32
32
|
end
|
33
33
|
|
@@ -57,8 +57,7 @@ end
|
|
57
57
|
# p.author = "Ron Evans"
|
58
58
|
# p.summary = "Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem."
|
59
59
|
# p.url = "http://facethesinatra.com/"
|
60
|
-
#
|
61
|
-
# p.dependencies = ["sinatra >=0.2.0", "facebooker >=0.9.5"]
|
60
|
+
# p.dependencies = ["sinatra >=0.2.2", "facebooker >=0.9.5"]
|
62
61
|
# p.install_message = "*** Frankie was installed ***"
|
63
62
|
# p.include_rakefile = true
|
64
63
|
# end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frankie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ron Evans
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.2.
|
22
|
+
version: 0.2.2
|
23
23
|
version:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
25
|
name: facebooker
|