muck-oauth 0.1.6 → 0.1.7

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -1,5 +1,14 @@
1
1
  module MuckOauthHelper
2
2
 
3
+ # Generates a javascript array of emails from gmail. Values will be
4
+ # put into a variable named 'gmail_contacts'
5
+ def gmail_contacts_for_auto_complete
6
+ contacts = current_user.google.portable_contacts.all.collect do |contact|
7
+ contact["emails"].collect{ |email| "'#{email['value']}'" }
8
+ end.flatten
9
+ "var gmail_contacts = [#{contacts.join(',')}];"
10
+ end
11
+
3
12
  # Renders fancybox javascript for oauth services
4
13
  def oauth_fancybox_scripts
5
14
  render :partial => 'oauth_consumers/oauth_fancybox_scripts'
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.6"
8
+ s.version = "0.1.7"
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-05}
12
+ s.date = %q{2010-03-21}
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
- - 6
9
- version: 0.1.6
8
+ - 7
9
+ version: 0.1.7
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-05 00:00:00 -07:00
17
+ date: 2010-03-21 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency