muck-services 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/models/service.rb +17 -8
- data/locales/en.yml +1 -0
- data/muck-services.gemspec +2 -2
- data/test/rails_root/config/environments/development.rb +17 -16
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.28
|
data/app/models/service.rb
CHANGED
@@ -111,15 +111,24 @@ class Service < ActiveRecord::Base
|
|
111
111
|
if self.name == 'Facebook'
|
112
112
|
# Facebook can't just use feeds like everyone else.
|
113
113
|
params = {}
|
114
|
-
pairs = uri.split('?')[1].split('&')
|
115
|
-
pairs.each do |pair|
|
116
|
-
p = pair.split('=')
|
117
|
-
params[p[0].to_sym] = p[1]
|
118
|
-
end
|
119
114
|
uris = []
|
120
|
-
|
121
|
-
|
122
|
-
|
115
|
+
uri = "http://#{uri}" unless uri.starts_with?("http://")
|
116
|
+
parsed_uri = URI.parse(uri)
|
117
|
+
if parsed_uri.host == 'facebook.com' # check to make sure that the url provided really comes from Facebook
|
118
|
+
if parsed_uri.query.blank?
|
119
|
+
# Assume that they provided their Facebook Identity Uri (no feeds)
|
120
|
+
uris << OpenStruct.new(:url => uri, :display_uri => uri, :title => I18n.t('muck.services.facebook'))
|
121
|
+
else
|
122
|
+
pairs = uri.split('?')[1].split('&')
|
123
|
+
pairs.each do |pair|
|
124
|
+
p = pair.split('=')
|
125
|
+
params[p[0].to_sym] = p[1]
|
126
|
+
end
|
127
|
+
uris << OpenStruct.new(:url => "http://www.facebook.com/feeds/notifications.php?id=#{params[:id]}&viewer=#{params[:id]}&key=#{params[:key]}&format=rss20", :title => I18n.t('muck.services.facebook_notifications'))
|
128
|
+
uris << OpenStruct.new(:url => "http://www.facebook.com/feeds/share_posts.php?id=#{params[:id]}&viewer=#{params[:id]}&key=#{params[:key]}&format=rss20", :title => I18n.t('muck.services.facebook_shares'))
|
129
|
+
uris << OpenStruct.new(:url => "http://www.facebook.com/feeds/notes.php?id=#{params[:id]}&viewer=#{params[:id]}&key=#{params[:key]}&format=rss20", :title => I18n.t('muck.services.facebook_notes'))
|
130
|
+
end
|
131
|
+
end
|
123
132
|
uris
|
124
133
|
elsif self.name == 'Amazon'
|
125
134
|
return [] if username.blank?
|
data/locales/en.yml
CHANGED
@@ -63,6 +63,7 @@ en:
|
|
63
63
|
polyvore_prompt: Polyvore profile URL
|
64
64
|
login_or_signup_prompt: "{{signup}} or {{login}} to discuss and share resources."
|
65
65
|
facebook_shares: Facebook Shared Links
|
66
|
+
facebook: Facebook
|
66
67
|
for: for
|
67
68
|
zotero_group_prompt: Zotero group URL
|
68
69
|
download_opml: Download OPML file for {{terms}}
|
data/muck-services.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-services}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.28"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Joel Duffin", "Justin Ball"]
|
12
|
-
s.date = %q{2010-01-
|
12
|
+
s.date = %q{2010-01-11}
|
13
13
|
s.description = %q{This gem contains the rails specific code for dealing with feeds, aggregations and recommendations. It is meant to work with the muck-raker gem.}
|
14
14
|
s.email = %q{justin@tatemae.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -18,19 +18,20 @@ config.action_mailer.raise_delivery_errors = false
|
|
18
18
|
|
19
19
|
HOST = "localhost"
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
end
|
36
|
-
|
21
|
+
# Enable bullet to get an understanding of which sql queries are causing problems.
|
22
|
+
# config.gem 'bullet'
|
23
|
+
#
|
24
|
+
# config.after_initialize do
|
25
|
+
# Bullet.enable = true
|
26
|
+
# Bullet.alert = true
|
27
|
+
# Bullet.bullet_logger = true
|
28
|
+
# Bullet.console = true
|
29
|
+
# Bullet.rails_logger = true
|
30
|
+
# Bullet.disable_browser_cache = true
|
31
|
+
# begin
|
32
|
+
# require 'ruby-growl'
|
33
|
+
# Bullet.growl = true
|
34
|
+
# rescue MissingSourceFile
|
35
|
+
# end
|
36
|
+
# end
|
37
|
+
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Duffin
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2010-01-
|
13
|
+
date: 2010-01-11 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|