muck-oauth 0.1.7 → 0.1.8
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/README.rdoc +40 -0
- data/VERSION +1 -1
- data/app/views/oauth_consumers/show.html.erb +7 -5
- data/lib/muck_oauth/tasks.rb +2 -2
- data/muck-oauth.gemspec +2 -2
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -14,6 +14,41 @@ Add the following to environment.rb
|
|
14
14
|
|
15
15
|
Add the following to your user model:
|
16
16
|
acts_as_muck_oauth_user
|
17
|
+
|
18
|
+
== Configuration
|
19
|
+
Add the following to global_config.yml. Be sure to get keys from each service that you want to interact with.
|
20
|
+
|
21
|
+
# Oauth
|
22
|
+
# Twitter api access: http://www.twitter.com/apps
|
23
|
+
twitter_oauth_key: ''
|
24
|
+
twitter_oauth_secret: ''
|
25
|
+
|
26
|
+
# Google api access: http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html#register
|
27
|
+
google_oauth_key: ""
|
28
|
+
google_oauth_secret: ""
|
29
|
+
|
30
|
+
# Yahoo api access: http://developer.yahoo.com/flickr/
|
31
|
+
yahoo_oauth_key: ""
|
32
|
+
yahoo_oauth_secret: ""
|
33
|
+
|
34
|
+
# Flick api access: http://www.flickr.com/services/apps/create/apply
|
35
|
+
# flickr_oauth_key:
|
36
|
+
# flickr_oauth_secret:
|
37
|
+
|
38
|
+
# Linked In api access: https://www.linkedin.com/secure/developer
|
39
|
+
# linkedin_oauth_key: ""
|
40
|
+
# linkedin_oauth_secret: ""
|
41
|
+
linkedin_oauth_key: ""
|
42
|
+
linkedin_oauth_secret: ""
|
43
|
+
|
44
|
+
# Friendfeed api access: https://friendfeed.com/account/login?next=%2Fapi%2Fregister
|
45
|
+
# Production
|
46
|
+
friendfeed_oauth_key: ''
|
47
|
+
friendfeed_oauth_secret: ''
|
48
|
+
# Test
|
49
|
+
friendfeed_oauth_key: ''
|
50
|
+
friendfeed_oauth_secret: ''
|
51
|
+
|
17
52
|
|
18
53
|
== Usage
|
19
54
|
Add configuration for services to:
|
@@ -56,4 +91,9 @@ None yet
|
|
56
91
|
Flickr
|
57
92
|
None yet
|
58
93
|
|
94
|
+
== Tips and Help
|
95
|
+
If you get an error like this:
|
96
|
+
uninitialized constant User::TwitterToken
|
97
|
+
it means you need to setup your global_config.yml with the values specified above.
|
98
|
+
|
59
99
|
Copyright (c) 2009 Tatemae.com. See LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
@@ -1,5 +1,7 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
<div id="oauth-service-info">
|
2
|
+
<h1><%=translate('muck.oauth.you_are_already_connected_to', :service => params[:id].humanize) %></h1>
|
3
|
+
<% form_tag oauth_consumer_path(params[:id]),:method=>:delete do %>
|
4
|
+
<%=translate('muck.oauth.disconnect_or_reconnect', :disconnect => submit_tag(translate('muck.oauth.disconnect')),
|
5
|
+
:reconnect => submit_tag(translate('muck.oauth.reconnect'))) %>
|
6
|
+
<% end %>
|
7
|
+
</div>
|
data/lib/muck_oauth/tasks.rb
CHANGED
@@ -18,8 +18,8 @@ module MuckOauth
|
|
18
18
|
path = File.join(File.dirname(__FILE__), *%w[.. ..])
|
19
19
|
system "rsync -ruv #{path}/db ."
|
20
20
|
#system "rsync -ruv #{path}/public ."
|
21
|
-
if !File.exists?('./config/oauth_consumers.rb')
|
22
|
-
system "rsync -ruv #{path}/config/initializers/oauth_consumers.rb ./config/oauth_consumers.rb"
|
21
|
+
if !File.exists?('./config/initializers/oauth_consumers.rb')
|
22
|
+
system "rsync -ruv #{path}/config/initializers/oauth_consumers.rb ./config/initializers/oauth_consumers.rb"
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
data/muck-oauth.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-oauth}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball"]
|
12
|
-
s.date = %q{2010-03-
|
12
|
+
s.date = %q{2010-03-22}
|
13
13
|
s.description = %q{A simple wrapper for the oauth and oauth-plugin gems so that it is faster to include oauth in muck based applications.}
|
14
14
|
s.email = %q{justin@tatemae.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 8
|
9
|
+
version: 0.1.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Justin Ball
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-22 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|