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 CHANGED
@@ -1,3 +1,5 @@
1
+ v0.3.0 Updated to work with Sinatra 0.9.x and facebooker 1.0.2, thanks to mjfreshyfresh
2
+
1
3
  v0.2.5. Bugfix for fb_url_for helper method
2
4
 
3
5
  v0.2.4. Add fb_url_for helper method to create link URL's that have proper Facebook application reference included
@@ -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:
@@ -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.2.5"
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(">= 0") if s.respond_to? :required_rubygems_version=
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{2008-04-22}
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.1.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.add_dependency(%q<sinatra>, [">= 0.2.2"])
31
- s.add_dependency(%q<facebooker>, [">= 0.9.5"])
32
- end
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
- # # Original Rakefile source (requires the Echoe gem):
36
- #
37
- # require 'rubygems'
38
- # require 'rake/testtask'
39
- # require 'rake/rdoctask'
40
- # require 'echoe'
41
- #
42
- # task :default => :test
43
- #
44
- # Rake::RDocTask.new do |rd|
45
- # rd.main = "README.rdoc"
46
- # rd.rdoc_files += ["README.rdoc"]
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
@@ -28,7 +28,9 @@ module Frankie
28
28
 
29
29
  module EventContext
30
30
 
31
- require "facebooker"
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::EventContext.send(:include, Frankie::EventContext)
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
@@ -1,6 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/helper'
2
2
 
3
3
  context "frankie" do
4
- it "should be a placeholder for a real test"
4
+ it "should be a placeholder for a real test" do
5
+ end
5
6
  end
6
7
 
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.5
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: 2008-04-22 00:00:00 -07:00
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: "0"
80
+ version: "1.2"
79
81
  version:
80
82
  requirements: []
81
83
 
82
84
  rubyforge_project: frankie
83
- rubygems_version: 1.1.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.