frankie 0.2.5 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/README.rdoc +2 -0
- data/frankie.gemspec +19 -44
- data/lib/frankie.rb +6 -4
- data/test/frankie_test.rb +2 -1
- metadata +6 -4
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -7,6 +7,8 @@ Written by Ron Evans (http://www.deadprogrammersociety.com)
|
|
7
7
|
Based on merb_facebooker (http://github.com/vanpelt/merb_facebooker) by Chris Van Pelt, which was based on
|
8
8
|
the Rails classes in Facebooker (http://facebooker.rubyforge.org/) by Mike Mangino, Shane Vitarana, & Chad Fowler
|
9
9
|
|
10
|
+
2/20/2009 - Now updated to Sinatra 0.9 and facebooker thanks to mjfreshyfresh.
|
11
|
+
|
10
12
|
Thanks, everyone!
|
11
13
|
|
12
14
|
= Here is a very simple example application:
|
data/frankie.gemspec
CHANGED
@@ -1,16 +1,10 @@
|
|
1
|
-
|
2
|
-
# Gem::Specification for Frankie-0.2.5
|
3
|
-
# Originally generated by Echoe
|
4
|
-
|
5
1
|
Gem::Specification.new do |s|
|
6
2
|
s.name = %q{frankie}
|
7
|
-
s.version = "0.
|
8
|
-
|
9
|
-
s.specification_version = 2 if s.respond_to? :specification_version=
|
3
|
+
s.version = "0.3.0"
|
10
4
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">=
|
5
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
12
6
|
s.authors = ["Ron Evans"]
|
13
|
-
s.date = %q{
|
7
|
+
s.date = %q{2009-02-20}
|
14
8
|
s.default_executable = %q{tunnel}
|
15
9
|
s.description = %q{Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem.}
|
16
10
|
s.email = %q{}
|
@@ -23,42 +17,23 @@ Gem::Specification.new do |s|
|
|
23
17
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Frankie", "--main", "README.rdoc"]
|
24
18
|
s.require_paths = ["lib"]
|
25
19
|
s.rubyforge_project = %q{frankie}
|
26
|
-
s.rubygems_version = %q{1.
|
20
|
+
s.rubygems_version = %q{1.2.0}
|
27
21
|
s.summary = %q{Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem.}
|
28
22
|
s.test_files = ["test/frankie_test.rb"]
|
29
23
|
|
30
|
-
s.
|
31
|
-
|
32
|
-
|
33
|
-
|
24
|
+
if s.respond_to? :specification_version then
|
25
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
26
|
+
s.specification_version = 2
|
34
27
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
# rd.rdoc_files += Dir.glob("lib/**/*.rb")
|
48
|
-
# rd.rdoc_dir = 'doc'
|
49
|
-
# end
|
50
|
-
#
|
51
|
-
# Rake::TestTask.new do |t|
|
52
|
-
# ENV['SINATRA_ENV'] = 'test'
|
53
|
-
# t.pattern = File.dirname(__FILE__) + "/test/*_test.rb"
|
54
|
-
# end
|
55
|
-
#
|
56
|
-
# Echoe.new("frankie") do |p|
|
57
|
-
# p.author = "Ron Evans"
|
58
|
-
# p.summary = "Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem."
|
59
|
-
# p.url = "http://facethesinatra.com/"
|
60
|
-
# p.dependencies = ["sinatra >=0.2.2", "facebooker >=0.9.5"]
|
61
|
-
# p.install_message = "*** Frankie was installed ***"
|
62
|
-
# p.include_rakefile = true
|
63
|
-
# end
|
64
|
-
#
|
28
|
+
if current_version >= 3 then
|
29
|
+
s.add_runtime_dependency(%q<sinatra>, [">= 0.2.2"])
|
30
|
+
s.add_runtime_dependency(%q<facebooker>, [">= 0.9.5"])
|
31
|
+
else
|
32
|
+
s.add_dependency(%q<sinatra>, [">= 0.2.2"])
|
33
|
+
s.add_dependency(%q<facebooker>, [">= 0.9.5"])
|
34
|
+
end
|
35
|
+
else
|
36
|
+
s.add_dependency(%q<sinatra>, [">= 0.2.2"])
|
37
|
+
s.add_dependency(%q<facebooker>, [">= 0.9.5"])
|
38
|
+
end
|
39
|
+
end
|
data/lib/frankie.rb
CHANGED
@@ -28,7 +28,9 @@ module Frankie
|
|
28
28
|
|
29
29
|
module EventContext
|
30
30
|
|
31
|
-
|
31
|
+
# pin it to newer version of Facebooker
|
32
|
+
gem 'mmangino-facebooker', '>=1.0.2'
|
33
|
+
require 'facebooker'
|
32
34
|
|
33
35
|
def facebook_session
|
34
36
|
@facebook_session
|
@@ -188,6 +190,6 @@ module Frankie
|
|
188
190
|
|
189
191
|
end
|
190
192
|
|
191
|
-
# extend sinatra with frankie methods
|
192
|
-
Sinatra::
|
193
|
-
include Frankie::Loader
|
193
|
+
# extend sinatra with frankie methods, changed to work with Sinatra 0.9.x
|
194
|
+
Sinatra::Default.send(:include, Frankie::EventContext)
|
195
|
+
include Frankie::Loader
|
data/test/frankie_test.rb
CHANGED
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ron Evans
|
@@ -9,11 +9,12 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-02-20 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sinatra
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
@@ -23,6 +24,7 @@ dependencies:
|
|
23
24
|
version:
|
24
25
|
- !ruby/object:Gem::Dependency
|
25
26
|
name: facebooker
|
27
|
+
type: :runtime
|
26
28
|
version_requirement:
|
27
29
|
version_requirements: !ruby/object:Gem::Requirement
|
28
30
|
requirements:
|
@@ -75,12 +77,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
77
|
requirements:
|
76
78
|
- - ">="
|
77
79
|
- !ruby/object:Gem::Version
|
78
|
-
version: "
|
80
|
+
version: "1.2"
|
79
81
|
version:
|
80
82
|
requirements: []
|
81
83
|
|
82
84
|
rubyforge_project: frankie
|
83
|
-
rubygems_version: 1.
|
85
|
+
rubygems_version: 1.2.0
|
84
86
|
signing_key:
|
85
87
|
specification_version: 2
|
86
88
|
summary: Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem.
|