filiptepper-oauth-plugin 0.3.11 → 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 9/26/2009
2
+ 0.3.11
3
+ - Moved twitter tokens dependency back to regular twitter gem
1
4
  7/29/2009
2
5
  0.3.10
3
6
  - Closed blocks in erb template (jcrosby) while pelle is hiding under his desk
@@ -330,7 +330,7 @@ Before creating the FireEagleToken model the plugin checks if a class already ex
330
330
  Currently we provide the following semi tested tokens wrappers:
331
331
 
332
332
  * FireEagle
333
- * Twitter (requires Paul Singh's version of twitter gem until main gem is updated to 0.3.5 - sudo gem install paulsingh-twitter)
333
+ * Twitter
334
334
  * Agree2
335
335
 
336
336
  These can be found in lib/oauth/models/consulers/services. Contributions will be warmly accepted for your favorite OAuth service.
data/Rakefile CHANGED
@@ -24,15 +24,16 @@ end
24
24
  begin
25
25
  require 'jeweler'
26
26
  Jeweler::Tasks.new do |gemspec|
27
- gemspec.name = "oauth-plugin"
27
+ gemspec.name = "filiptepper-oauth-plugin"
28
28
  gemspec.summary = "Ruby on Rails Plugin for OAuth Provider and Consumer"
29
29
  gemspec.description = "Rails plugin for implementing an OAuth Provider or Consumer"
30
30
  gemspec.email = "oauth-ruby@googlegroups.com"
31
- gemspec.homepage = "http://github.com/pelle/oauth-plugin/tree/master"
32
- gemspec.authors = ["Pelle Braendgaard"]
31
+ gemspec.homepage = "http://github.com/filiptepper/oauth-plugin/tree/master"
32
+ gemspec.authors = ["Pelle Braendgaard", "Filip Tepper"]
33
33
  gemspec.add_dependency('oauth', '>= 0.3.5')
34
34
  gemspec.rubyforge_project = 'oauth'
35
35
  end
36
+ Jeweler::GemcutterTasks.new
36
37
  rescue LoadError
37
38
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
38
39
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.10
1
+ 0.3.12
@@ -53,10 +53,12 @@ module OAuth
53
53
  end
54
54
 
55
55
  if @redirect_url
56
+ redirect_params_glue = @redirect_url.index("?").nil? ? "?" : "&"
57
+
56
58
  if @token.oauth10?
57
- redirect_to "#{@redirect_url}?oauth_token=#{@token.token}"
59
+ redirect_to "#{@redirect_url}#{redirect_params_glue}oauth_token=#{@token.token}"
58
60
  else
59
- redirect_to "#{@redirect_url}?oauth_token=#{@token.token}&oauth_verifier=#{@token.verifier}"
61
+ redirect_to "#{@redirect_url}#{redirect_params_glue}oauth_token=#{@token.token}&oauth_verifier=#{@token.verifier}"
60
62
  end
61
63
  else
62
64
  render :action => "authorize_success"
@@ -1,4 +1,3 @@
1
- gem 'paulsingh-twitter' # go back to regular twitter gem when it is bumped to oauth 0.3.5
2
1
  require 'twitter'
3
2
  class TwitterToken < ConsumerToken
4
3
  TWITTER_SETTINGS={:site=>"http://twitter.com"}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filiptepper-oauth-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pelle Braendgaard
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-09-21 00:00:00 -07:00
13
+ date: 2009-09-30 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -101,13 +101,13 @@ files:
101
101
  - lib/oauth/models/consumers/services/fireeagle_token.rb
102
102
  - lib/oauth/models/consumers/services/twitter_token.rb
103
103
  - lib/oauth/models/consumers/token.rb
104
- - oauth-plugin.gemspec
105
104
  - rails/init.rb
106
105
  - tasks/oauth_tasks.rake
107
106
  - uninstall.rb
108
- has_rdoc: false
109
- homepage: http://github.com/pelle/oauth-plugin/tree/master
110
- licenses:
107
+ has_rdoc: true
108
+ homepage: http://github.com/filiptepper/oauth-plugin/tree/master
109
+ licenses: []
110
+
111
111
  post_install_message:
112
112
  rdoc_options:
113
113
  - --charset=UTF-8
@@ -1,112 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{oauth-plugin}
8
- s.version = "0.3.11"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Pelle Braendgaard", "Filip Tepper"]
12
- s.date = %q{2009-09-21}
13
- s.description = %q{Rails plugin for implementing an OAuth Provider or Consumer}
14
- s.email = %q{oauth-ruby@googlegroups.com}
15
- s.extra_rdoc_files = [
16
- "README.rdoc"
17
- ]
18
- s.files = [
19
- ".gitignore",
20
- "CHANGELOG",
21
- "MIT-LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION",
25
- "generators/oauth_consumer/USAGE",
26
- "generators/oauth_consumer/oauth_consumer_generator.rb",
27
- "generators/oauth_consumer/templates/consumer_token.rb",
28
- "generators/oauth_consumer/templates/controller.rb",
29
- "generators/oauth_consumer/templates/index.html.erb",
30
- "generators/oauth_consumer/templates/index.html.haml",
31
- "generators/oauth_consumer/templates/migration.rb",
32
- "generators/oauth_consumer/templates/oauth_config.rb",
33
- "generators/oauth_consumer/templates/show.html.erb",
34
- "generators/oauth_consumer/templates/show.html.haml",
35
- "generators/oauth_provider/USAGE",
36
- "generators/oauth_provider/lib/insert_routes.rb",
37
- "generators/oauth_provider/oauth_provider_generator.rb",
38
- "generators/oauth_provider/templates/_form.html.erb",
39
- "generators/oauth_provider/templates/_form.html.haml",
40
- "generators/oauth_provider/templates/access_token.rb",
41
- "generators/oauth_provider/templates/authorize.html.erb",
42
- "generators/oauth_provider/templates/authorize.html.haml",
43
- "generators/oauth_provider/templates/authorize_failure.html.erb",
44
- "generators/oauth_provider/templates/authorize_failure.html.haml",
45
- "generators/oauth_provider/templates/authorize_success.html.erb",
46
- "generators/oauth_provider/templates/authorize_success.html.haml",
47
- "generators/oauth_provider/templates/client_application.rb",
48
- "generators/oauth_provider/templates/client_application_spec.rb",
49
- "generators/oauth_provider/templates/client_application_test.rb",
50
- "generators/oauth_provider/templates/client_applications.yml",
51
- "generators/oauth_provider/templates/clients_controller.rb",
52
- "generators/oauth_provider/templates/clients_controller_spec.rb",
53
- "generators/oauth_provider/templates/clients_controller_test.rb",
54
- "generators/oauth_provider/templates/controller.rb",
55
- "generators/oauth_provider/templates/controller_spec.rb",
56
- "generators/oauth_provider/templates/controller_spec_helper.rb",
57
- "generators/oauth_provider/templates/controller_test.rb",
58
- "generators/oauth_provider/templates/controller_test_helper.rb",
59
- "generators/oauth_provider/templates/edit.html.erb",
60
- "generators/oauth_provider/templates/edit.html.haml",
61
- "generators/oauth_provider/templates/index.html.erb",
62
- "generators/oauth_provider/templates/index.html.haml",
63
- "generators/oauth_provider/templates/migration.rb",
64
- "generators/oauth_provider/templates/new.html.erb",
65
- "generators/oauth_provider/templates/new.html.haml",
66
- "generators/oauth_provider/templates/oauth_nonce.rb",
67
- "generators/oauth_provider/templates/oauth_nonce_spec.rb",
68
- "generators/oauth_provider/templates/oauth_nonce_test.rb",
69
- "generators/oauth_provider/templates/oauth_nonces.yml",
70
- "generators/oauth_provider/templates/oauth_token.rb",
71
- "generators/oauth_provider/templates/oauth_token_spec.rb",
72
- "generators/oauth_provider/templates/oauth_token_test.rb",
73
- "generators/oauth_provider/templates/oauth_tokens.yml",
74
- "generators/oauth_provider/templates/request_token.rb",
75
- "generators/oauth_provider/templates/show.html.erb",
76
- "generators/oauth_provider/templates/show.html.haml",
77
- "init.rb",
78
- "install.rb",
79
- "lib/oauth-plugin.rb",
80
- "lib/oauth/controllers/application_controller_methods.rb",
81
- "lib/oauth/controllers/consumer_controller.rb",
82
- "lib/oauth/controllers/provider_controller.rb",
83
- "lib/oauth/models/consumers/service_loader.rb",
84
- "lib/oauth/models/consumers/services/agree2_token.rb",
85
- "lib/oauth/models/consumers/services/fireeagle_token.rb",
86
- "lib/oauth/models/consumers/services/twitter_token.rb",
87
- "lib/oauth/models/consumers/token.rb",
88
- "oauth-plugin.gemspec",
89
- "rails/init.rb",
90
- "tasks/oauth_tasks.rake",
91
- "uninstall.rb"
92
- ]
93
- s.homepage = %q{http://github.com/pelle/oauth-plugin/tree/master}
94
- s.rdoc_options = ["--charset=UTF-8"]
95
- s.require_paths = ["lib"]
96
- s.rubyforge_project = %q{oauth}
97
- s.rubygems_version = %q{1.3.5}
98
- s.summary = %q{Ruby on Rails Plugin for OAuth Provider and Consumer}
99
-
100
- if s.respond_to? :specification_version then
101
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
102
- s.specification_version = 3
103
-
104
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
105
- s.add_runtime_dependency(%q<oauth>, [">= 0.3.5"])
106
- else
107
- s.add_dependency(%q<oauth>, [">= 0.3.5"])
108
- end
109
- else
110
- s.add_dependency(%q<oauth>, [">= 0.3.5"])
111
- end
112
- end