social2social 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ pkg/
4
4
  spec/dummy/db/*.sqlite3
5
5
  spec/dummy/log/*.log
6
6
  spec/dummy/tmp/
7
+ *.DS_Store
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gemspec
3
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,42 +1,45 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- social2social (0.0.1)
5
- social_stream (~> 0.4.2)
4
+ social2social (0.0.2)
5
+ nokogiri (~> 1.4.4)
6
+ social_stream (~> 0.4.4)
6
7
 
7
8
  GEM
8
9
  remote: http://rubygems.org/
9
10
  specs:
10
11
  abstract (1.0.0)
11
- actionmailer (3.0.5)
12
- actionpack (= 3.0.5)
12
+ actionmailer (3.0.7)
13
+ actionpack (= 3.0.7)
13
14
  mail (~> 2.2.15)
14
- actionpack (3.0.5)
15
- activemodel (= 3.0.5)
16
- activesupport (= 3.0.5)
15
+ actionpack (3.0.7)
16
+ activemodel (= 3.0.7)
17
+ activesupport (= 3.0.7)
17
18
  builder (~> 2.1.2)
18
19
  erubis (~> 2.6.6)
19
- i18n (~> 0.4)
20
+ i18n (~> 0.5.0)
20
21
  rack (~> 1.2.1)
21
- rack-mount (~> 0.6.13)
22
+ rack-mount (~> 0.6.14)
22
23
  rack-test (~> 0.5.7)
23
24
  tzinfo (~> 0.3.23)
24
- activemodel (3.0.5)
25
- activesupport (= 3.0.5)
25
+ activemodel (3.0.7)
26
+ activesupport (= 3.0.7)
26
27
  builder (~> 2.1.2)
27
- i18n (~> 0.4)
28
- activerecord (3.0.5)
29
- activemodel (= 3.0.5)
30
- activesupport (= 3.0.5)
28
+ i18n (~> 0.5.0)
29
+ activerecord (3.0.7)
30
+ activemodel (= 3.0.7)
31
+ activesupport (= 3.0.7)
31
32
  arel (~> 2.0.2)
32
33
  tzinfo (~> 0.3.23)
33
- activeresource (3.0.5)
34
- activemodel (= 3.0.5)
35
- activesupport (= 3.0.5)
36
- activesupport (3.0.5)
37
- addressable (2.2.4)
34
+ activeresource (3.0.7)
35
+ activemodel (= 3.0.7)
36
+ activesupport (= 3.0.7)
37
+ activesupport (3.0.7)
38
+ acts-as-taggable-on (2.0.6)
39
+ addressable (2.2.5)
40
+ ancestry (1.2.3)
41
+ activerecord (>= 2.2.2)
38
42
  arel (2.0.9)
39
- atd-ancestry (1.3.0)
40
43
  bcrypt-ruby (2.1.4)
41
44
  builder (2.1.2)
42
45
  cancan (1.6.4)
@@ -51,7 +54,7 @@ GEM
51
54
  ffi (~> 1.0.6)
52
55
  columnize (0.3.2)
53
56
  culerity (0.2.15)
54
- devise (1.2.1)
57
+ devise (1.3.1)
55
58
  bcrypt-ruby (~> 2.1.2)
56
59
  orm_adapter (~> 0.0.3)
57
60
  warden (~> 1.0.3)
@@ -59,13 +62,13 @@ GEM
59
62
  erubis (2.6.6)
60
63
  abstract (>= 1.0.0)
61
64
  factory_girl (1.3.3)
62
- faraday (0.5.7)
65
+ faraday (0.6.1)
63
66
  addressable (~> 2.2.4)
64
67
  multipart-post (~> 1.1.0)
65
68
  rack (>= 1.1.0, < 2)
66
69
  ffi (1.0.7)
67
70
  rake (>= 0.8.7)
68
- foreigner (0.9.1)
71
+ foreigner (0.9.2)
69
72
  forgery (0.3.7)
70
73
  nokogiri (~> 1.4)
71
74
  has_scope (0.5.0)
@@ -78,65 +81,63 @@ GEM
78
81
  thor (~> 0.14.4)
79
82
  json_pure (1.5.1)
80
83
  linecache (0.43)
81
- mail (2.2.15)
84
+ mail (2.2.17)
82
85
  activesupport (>= 2.3.6)
83
86
  i18n (>= 0.4.0)
84
87
  mime-types (~> 1.16)
85
88
  treetop (~> 1.4.8)
86
- mailboxer (0.0.14)
89
+ mailboxer (0.0.16)
87
90
  foreigner (~> 0.9.1)
88
91
  mime-types (1.16)
89
92
  multi_json (0.0.5)
90
93
  multipart-post (1.1.0)
91
- nested_set (1.5.4)
92
- activerecord (>= 3.0.0)
93
- railties (>= 3.0.0)
94
94
  net-ldap (0.1.1)
95
95
  nokogiri (1.4.4)
96
- oa-basic (0.2.0)
96
+ oa-basic (0.2.2)
97
97
  multi_json (~> 0.0.2)
98
98
  nokogiri (~> 1.4.2)
99
- oa-core (= 0.2.0)
99
+ oa-core (= 0.2.2)
100
100
  rest-client (~> 1.6.0)
101
- oa-core (0.2.0)
101
+ oa-core (0.2.2)
102
102
  rack (~> 1.1)
103
- oa-enterprise (0.2.0)
103
+ oa-enterprise (0.2.2)
104
104
  net-ldap (~> 0.1.1)
105
105
  nokogiri (~> 1.4.2)
106
- oa-core (= 0.2.0)
106
+ oa-core (= 0.2.2)
107
107
  pyu-ruby-sasl (~> 0.0.3.1)
108
108
  rubyntlm (~> 0.1.1)
109
- oa-more (0.2.0)
109
+ oa-more (0.2.2)
110
110
  multi_json (~> 0.0.2)
111
- oa-core (= 0.2.0)
111
+ oa-core (= 0.2.2)
112
112
  rest-client (~> 1.6.0)
113
- oa-oauth (0.2.0)
113
+ oa-oauth (0.2.2)
114
+ faraday (~> 0.6.1)
114
115
  multi_json (~> 0.0.2)
115
116
  nokogiri (~> 1.4.2)
116
- oa-core (= 0.2.0)
117
+ oa-core (= 0.2.2)
117
118
  oauth (~> 0.4.0)
118
- oauth2 (~> 0.1.1)
119
- oa-openid (0.2.0)
120
- oa-core (= 0.2.0)
119
+ oauth2 (~> 0.3.0)
120
+ oa-openid (0.2.2)
121
+ oa-core (= 0.2.2)
121
122
  rack-openid (~> 1.2.0)
122
123
  ruby-openid-apps-discovery
123
124
  oauth (0.4.4)
124
125
  oauth-plugin (0.4.0.pre4)
125
126
  oauth (>= 0.4.4)
126
- oauth2 (0.1.1)
127
- faraday (~> 0.5.0)
127
+ oauth2 (0.3.0)
128
+ faraday (~> 0.6.0)
128
129
  multi_json (~> 0.0.4)
129
- omniauth (0.2.0)
130
- oa-basic (= 0.2.0)
131
- oa-core (= 0.2.0)
132
- oa-enterprise (= 0.2.0)
133
- oa-more (= 0.2.0)
134
- oa-oauth (= 0.2.0)
135
- oa-openid (= 0.2.0)
130
+ omniauth (0.2.2)
131
+ oa-basic (= 0.2.2)
132
+ oa-core (= 0.2.2)
133
+ oa-enterprise (= 0.2.2)
134
+ oa-more (= 0.2.2)
135
+ oa-oauth (= 0.2.2)
136
+ oa-openid (= 0.2.2)
136
137
  orm_adapter (0.0.4)
137
- paperclip (2.3.8)
138
- activerecord
139
- activesupport
138
+ paperclip (2.3.11)
139
+ activerecord (>= 2.3.0)
140
+ activesupport (>= 2.3.2)
140
141
  polyglot (0.3.1)
141
142
  pyu-ruby-sasl (0.0.3.2)
142
143
  rack (1.2.2)
@@ -147,18 +148,18 @@ GEM
147
148
  ruby-openid (>= 2.1.8)
148
149
  rack-test (0.5.7)
149
150
  rack (>= 1.0)
150
- rails (3.0.5)
151
- actionmailer (= 3.0.5)
152
- actionpack (= 3.0.5)
153
- activerecord (= 3.0.5)
154
- activeresource (= 3.0.5)
155
- activesupport (= 3.0.5)
151
+ rails (3.0.7)
152
+ actionmailer (= 3.0.7)
153
+ actionpack (= 3.0.7)
154
+ activerecord (= 3.0.7)
155
+ activeresource (= 3.0.7)
156
+ activesupport (= 3.0.7)
156
157
  bundler (~> 1.0)
157
- railties (= 3.0.5)
158
+ railties (= 3.0.7)
158
159
  rails_css_themes (1.0.0)
159
- railties (3.0.5)
160
- actionpack (= 3.0.5)
161
- activesupport (= 3.0.5)
160
+ railties (3.0.7)
161
+ actionpack (= 3.0.7)
162
+ activesupport (= 3.0.7)
162
163
  rake (>= 0.8.7)
163
164
  thor (~> 0.14.4)
164
165
  rake (0.8.7)
@@ -194,15 +195,15 @@ GEM
194
195
  ffi (>= 1.0.7)
195
196
  json_pure
196
197
  rubyzip
197
- social_stream (0.4.2)
198
- atd-ancestry (= 1.3.0)
199
- cancan (~> 1.6.2)
198
+ social_stream (0.4.4)
199
+ acts-as-taggable-on (~> 2.0.6)
200
+ ancestry (~> 1.2.3)
201
+ cancan (~> 1.6.4)
200
202
  devise (~> 1.2.rc)
201
203
  foreigner (~> 0.9.1)
202
204
  inherited_resources (~> 1.1.2)
203
205
  jquery-rails (~> 0.2.5)
204
- mailboxer (~> 0.0.14)
205
- nested_set (~> 1.5.3)
206
+ mailboxer (~> 0.0.16)
206
207
  oauth-plugin (~> 0.4.0.pre1)
207
208
  omniauth (~> 0.2.0.beta5)
208
209
  paperclip (~> 2.3.4)
@@ -217,7 +218,7 @@ GEM
217
218
  thor (0.14.6)
218
219
  treetop (1.4.9)
219
220
  polyglot (>= 0.3.1)
220
- tzinfo (0.3.25)
221
+ tzinfo (0.3.26)
221
222
  warden (1.0.3)
222
223
  rack (>= 1.0.0)
223
224
  will_paginate (3.0.pre2)
@@ -229,7 +230,7 @@ DEPENDENCIES
229
230
  capybara (~> 0.3.9)
230
231
  factory_girl (~> 1.3.2)
231
232
  forgery (~> 0.3.6)
232
- rails (~> 3.0.5)
233
+ rails (~> 3.0.7)
233
234
  rspec-rails (~> 2.5.0)
234
235
  ruby-debug (~> 0.10.3)
235
236
  social2social!
data/README.rdoc CHANGED
@@ -1,5 +1,5 @@
1
1
  = Social2social
2
-
2
+
3
3
  #TO-DO: Say something amazing about social2social
4
4
 
5
5
  = Installation
@@ -6,6 +6,7 @@ class PshbController < ApplicationController
6
6
  render :text => params['hub.challenge'], :status => 200
7
7
  # TO-DO: confirm that params['hub.topic'] is a real
8
8
  # requested subscription by someone in this node
9
+ return
9
10
  end
10
11
 
11
12
  #sync unsubscription verification
@@ -14,28 +15,20 @@ class PshbController < ApplicationController
14
15
  # TO-DO: confirm that params['hub.topic'] is a real
15
16
  # requested unsubscription by someone in this node
16
17
  # and delete permissions/remote actor if necessary
18
+ return
17
19
  end
18
20
 
19
- logger.debug request.body.read
21
+ #If we got here we are receiving an XML Activity Feed
22
+ doc = Nokogiri::XML(request.body.read)
23
+ origin = doc.xpath("//xmlns:link[@rel='self']").first['href'].split('/')
24
+ webfinger_slug = origin[5]+"@"+origin[2]
25
+
26
+ activity_texts = doc.xpath("//xmlns:content")
27
+ activity_texts.each do |activity_text|
28
+ r_user = RemoteSubject.find_by_webfinger_slug(webfinger_slug)
29
+ if r_user != nil
30
+ Post.create!(:text => activity_text.content, :_activity_tie_id => r_user.public_tie)
31
+ end
32
+ end
20
33
  end
21
-
22
- #require "net/http"
23
- #require "uri"
24
-
25
- #def pshb_subscription_request#(topic,hub,mode)
26
- # t = Thread.new do
27
- # #test
28
- # hub = 'http://138.4.7.113:4567/' # last '/' is mandatory!
29
- # topic = 'http://138.4.7.69:3000/api/user/demo/home.atom'
30
- # mode = 'subscribe'
31
- # #
32
- # uri = URI.parse(hub)
33
- # response = Net::HTTP::post_form(uri,{ 'hub.callback' => pshb_callback_url,
34
- # 'hub.mode' => mode,
35
- # 'hub.topic' => topic,
36
- # 'hub.verify' => 'sync'})
37
- #puts response.body
38
- # #TO-DO: process 4XX response.status
39
- # end
40
- #end
41
34
  end
@@ -3,14 +3,23 @@ class RemoteusersController < ApplicationController
3
3
 
4
4
  def index
5
5
  if params[:slug].present?
6
- wfslug = params[:slug].split('@')
7
- a = RemoteUser.create!(:name => wfslug[0],
8
- :webfinger_slug => params[:slug],
9
- :origin_node_url => wfslug[1],
10
- :hub_url => Social2social.hub)
11
- home_feed = 'http://'+a.origin_node_url+'/api/user/'+a.name+'/home/'
12
- puts home_feed
13
- #TO-DO: I'M WORKING HERE
6
+ #Selecting the remote subject
7
+ u = RemoteSubject.find_or_create_using_wslug(params[:slug])
8
+
9
+ #Creating the tie between me and the remote subject
10
+ t = Tie.create!(:sender => current_user.actor,
11
+ :receiver => u.actor,
12
+ :relation_name => "friend")
13
+
14
+ #Requesting a subscription to the hub
15
+ t = Thread.new do
16
+ uri = URI.parse(Social2social.hub)
17
+ response = Net::HTTP::post_form(uri,{ 'hub.callback' => pshb_callback_url,
18
+ 'hub.mode' => "subscribe",
19
+ 'hub.topic' => u.home_feed_url,
20
+ 'hub.verify' => 'sync'})
21
+
22
+ end
14
23
  end
15
24
 
16
25
  respond_to do |format|
@@ -0,0 +1,26 @@
1
+ class RemoteSubject < ActiveRecord::Base
2
+ attr_accessible :name, :webfinger_slug, :hub_url, :origin_node_url
3
+
4
+ #validates_format_of :webfinger_slug, :with => Devise.email_regexp, :allow_blank => true
5
+
6
+ class << self
7
+ def find_or_create_using_wslug(slug)
8
+ r_user = RemoteSubject.find_by_webfinger_slug(slug)
9
+ if r_user == nil
10
+ wfslug = slug.split('@')
11
+ r_user = RemoteSubject.create!(:name => wfslug[0],
12
+ :webfinger_slug => slug,
13
+ :origin_node_url => wfslug[1],
14
+ :hub_url => Social2social.hub)
15
+ end
16
+ r_user
17
+ end
18
+ end
19
+
20
+ #Home feed url for this RemoteUser
21
+ def home_feed_url
22
+ "http://"+origin_node_url.to_s+"/api/user/"+name.to_s+"/home.atom"
23
+ end
24
+
25
+
26
+ end
@@ -19,8 +19,16 @@ class Social2social::InstallGenerator < Rails::Generators::Base
19
19
 
20
20
  def inject_remote_user_relation
21
21
  append_file 'config/relations.yml',
22
- "\nremote_user:\n friend:\n name: friend\n permissions:\n - [ follow ]\n"+
23
- " public:\n name: public\n permissions:\n - [ read, tie, star_tie ]"
22
+ "\nremote_subject:\n friend:\n name: friend\n permissions:\n - [ follow ]\n sphere: personal\n"+
23
+ " public:\n name: public\n permissions:\n - [ read, tie, star_tie ]\n sphere: personal"
24
+ end
25
+
26
+ def inject_translations
27
+ copy_file 'en.yml', 'config/locales/s2s.en.yml'
28
+ end
29
+
30
+ def copy_public
31
+ directory "public"
24
32
  end
25
33
 
26
34
  require 'rails/generators/active_record'
@@ -0,0 +1,34 @@
1
+ en:
2
+ activity:
3
+ verb:
4
+ follow:
5
+ RemoteSubject:
6
+ title: "%{subject} added %{contact} as contact."
7
+ message: "%{name} added you as contact."
8
+ notification:
9
+ subject: "%{name} added you as contact."
10
+ body: "%{name} added you as contact."
11
+ like:
12
+ RemoteSubject:
13
+ title: "%{subject} is a fan of %{contact}."
14
+ message: "%{name} is now your fan."
15
+ notification:
16
+ subject: "%{name} is now your fan."
17
+ body: "%{name} is now your fan."
18
+ make-friend:
19
+ RemoteSubject:
20
+ title: "%{subject} and %{contact} are now connected."
21
+ message: "%{name} also added you as contact."
22
+ notification:
23
+ subject: "%{name} also added you as contact."
24
+ body: "%{name} also added you as contact."
25
+ post:
26
+ RemoteSubject:
27
+ notification:
28
+ subject: "%{name} has posted something(%{direct_object}) in your wall"
29
+ body: "%{name} has posted something(%{direct_object}) in your wall"
30
+ update:
31
+ RemoteSubject:
32
+ notification:
33
+ subject: "%{name} has updated %{direct_object} in your wall"
34
+ body: "%{name} has updated something(%{direct_object}) in your wall"
@@ -1,4 +1,4 @@
1
1
  Social2social.setup do |config|
2
- config.hub = 'http://192.168.211.1:4567/'
3
- config.node_base_url = 'http://192.168.211.167:3000'
2
+ config.hub = 'http://localhost:4567/'
3
+ config.node_base_url = 'http://localhost:3000'
4
4
  end
@@ -1,7 +1,7 @@
1
1
  class CreateSocial2social < ActiveRecord::Migration
2
2
 
3
3
  def self.up
4
- create_table :remote_users, :force => true do |t|
4
+ create_table :remote_subjects, :force => true do |t|
5
5
  t.integer :actor_id
6
6
  t.string :webfinger_slug
7
7
  t.string :hub_url
@@ -9,13 +9,13 @@ class CreateSocial2social < ActiveRecord::Migration
9
9
  t.timestamps
10
10
  end
11
11
 
12
- add_index "remote_users", "actor_id"
13
- add_foreign_key "remote_users", "actors", :name => "remote_users_on_actor_id"
12
+ add_index "remote_subjects", "actor_id"
13
+ add_foreign_key "remote_subjects", "actors", :name => "remote_subjects_on_actor_id"
14
14
  end
15
15
 
16
16
  def self.down
17
- remove_foreign_key "remote_users", :name => "remote_users_on_actor_id"
18
- drop_table :remote_users
17
+ remove_foreign_key "remote_subjects", :name => "remote_subjects_on_actor_id"
18
+ drop_table :remote_subjects
19
19
  end
20
20
 
21
21
  end
@@ -3,19 +3,19 @@ module Social2social
3
3
  config.app_generators.social_stream :social_stream
4
4
 
5
5
  config.to_prepare do
6
- SocialStream.subjects << :remote_user
7
- ::Actor.load_subtype_features
8
-
9
- class ::Actor
6
+ #Patching Actor
7
+ Actor.class_eval do
10
8
  include Social2social::Models::Shareable
11
9
  end
12
10
 
13
- TieActivity
14
-
15
- class ::TieActivity
11
+ #Patching TieAct
12
+ TieActivity.class_eval do
16
13
  include Social2social::Models::UpdateTriggerable
17
14
  end
18
15
  end
19
-
16
+
17
+ initializer "social2social.remote_subject_in_social_stream_subjects" do
18
+ SocialStream.subjects << :remote_subject unless SocialStream.subjects.include?(:remote_subject)
19
+ end
20
20
  end
21
- end
21
+ end
@@ -27,7 +27,7 @@ module Social2social
27
27
  #TO-DO: process 4XX look at: response.status
28
28
  end
29
29
  end
30
-
30
+
31
31
  end
32
32
 
33
33
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "social2social"
3
- s.version = "0.0.2"
3
+ s.version = "0.0.3"
4
4
  s.authors = ["Víctor Sánchez Belmar"]
5
5
  s.summary = "Provides a social stream node able to decentralize contents with the OStatus protocol"
6
6
  s.description = "This gem allow you to connect several social stream nodes using PSHB hubs, also allows to follow, and share streams with social stream users in any node."
@@ -9,9 +9,11 @@ Gem::Specification.new do |s|
9
9
  s.files = `git ls-files`.split("\n")
10
10
 
11
11
  # Gem dependencies
12
- s.add_runtime_dependency('social_stream','~> 0.4.3')
12
+ s.add_runtime_dependency('social_stream','~> 0.4.4')
13
+ s.add_runtime_dependency('nokogiri','~> 1.4.4')
14
+
13
15
  # Development Gem dependencies
14
- s.add_development_dependency('rails', '~> 3.0.5')
16
+ s.add_development_dependency('rails', '~> 3.0.7')
15
17
  s.add_development_dependency('sqlite3-ruby')
16
18
  if RUBY_VERSION < '1.9'
17
19
  s.add_development_dependency('ruby-debug', '~> 0.10.3')
File without changes
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social2social
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - "V\xC3\xADctor S\xC3\xA1nchez Belmar"
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-16 00:00:00 Z
18
+ date: 2011-04-27 00:00:00 +02:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: social_stream
@@ -25,34 +26,50 @@ dependencies:
25
26
  requirements:
26
27
  - - ~>
27
28
  - !ruby/object:Gem::Version
28
- hash: 9
29
+ hash: 7
29
30
  segments:
30
31
  - 0
31
32
  - 4
32
- - 3
33
- version: 0.4.3
33
+ - 4
34
+ version: 0.4.4
34
35
  type: :runtime
35
36
  version_requirements: *id001
36
37
  - !ruby/object:Gem::Dependency
37
- name: rails
38
+ name: nokogiri
38
39
  prerelease: false
39
40
  requirement: &id002 !ruby/object:Gem::Requirement
40
41
  none: false
41
42
  requirements:
42
43
  - - ~>
43
44
  - !ruby/object:Gem::Version
44
- hash: 13
45
+ hash: 15
46
+ segments:
47
+ - 1
48
+ - 4
49
+ - 4
50
+ version: 1.4.4
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: rails
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ hash: 9
45
62
  segments:
46
63
  - 3
47
64
  - 0
48
- - 5
49
- version: 3.0.5
65
+ - 7
66
+ version: 3.0.7
50
67
  type: :development
51
- version_requirements: *id002
68
+ version_requirements: *id003
52
69
  - !ruby/object:Gem::Dependency
53
70
  name: sqlite3-ruby
54
71
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
72
+ requirement: &id004 !ruby/object:Gem::Requirement
56
73
  none: false
57
74
  requirements:
58
75
  - - ">="
@@ -62,11 +79,11 @@ dependencies:
62
79
  - 0
63
80
  version: "0"
64
81
  type: :development
65
- version_requirements: *id003
82
+ version_requirements: *id004
66
83
  - !ruby/object:Gem::Dependency
67
84
  name: ruby-debug
68
85
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
86
+ requirement: &id005 !ruby/object:Gem::Requirement
70
87
  none: false
71
88
  requirements:
72
89
  - - ~>
@@ -78,11 +95,11 @@ dependencies:
78
95
  - 3
79
96
  version: 0.10.3
80
97
  type: :development
81
- version_requirements: *id004
98
+ version_requirements: *id005
82
99
  - !ruby/object:Gem::Dependency
83
100
  name: rspec-rails
84
101
  prerelease: false
85
- requirement: &id005 !ruby/object:Gem::Requirement
102
+ requirement: &id006 !ruby/object:Gem::Requirement
86
103
  none: false
87
104
  requirements:
88
105
  - - ~>
@@ -94,11 +111,11 @@ dependencies:
94
111
  - 0
95
112
  version: 2.5.0
96
113
  type: :development
97
- version_requirements: *id005
114
+ version_requirements: *id006
98
115
  - !ruby/object:Gem::Dependency
99
116
  name: factory_girl
100
117
  prerelease: false
101
- requirement: &id006 !ruby/object:Gem::Requirement
118
+ requirement: &id007 !ruby/object:Gem::Requirement
102
119
  none: false
103
120
  requirements:
104
121
  - - ~>
@@ -110,11 +127,11 @@ dependencies:
110
127
  - 2
111
128
  version: 1.3.2
112
129
  type: :development
113
- version_requirements: *id006
130
+ version_requirements: *id007
114
131
  - !ruby/object:Gem::Dependency
115
132
  name: forgery
116
133
  prerelease: false
117
- requirement: &id007 !ruby/object:Gem::Requirement
134
+ requirement: &id008 !ruby/object:Gem::Requirement
118
135
  none: false
119
136
  requirements:
120
137
  - - ~>
@@ -126,11 +143,11 @@ dependencies:
126
143
  - 6
127
144
  version: 0.3.6
128
145
  type: :development
129
- version_requirements: *id007
146
+ version_requirements: *id008
130
147
  - !ruby/object:Gem::Dependency
131
148
  name: capybara
132
149
  prerelease: false
133
- requirement: &id008 !ruby/object:Gem::Requirement
150
+ requirement: &id009 !ruby/object:Gem::Requirement
134
151
  none: false
135
152
  requirements:
136
153
  - - ~>
@@ -142,7 +159,7 @@ dependencies:
142
159
  - 9
143
160
  version: 0.3.9
144
161
  type: :development
145
- version_requirements: *id008
162
+ version_requirements: *id009
146
163
  description: This gem allow you to connect several social stream nodes using PSHB hubs, also allows to follow, and share streams with social stream users in any node.
147
164
  email: v.sanchezbelmar@gmail.com
148
165
  executables: []
@@ -161,16 +178,17 @@ files:
161
178
  - Rakefile
162
179
  - app/controllers/pshb_controller.rb
163
180
  - app/controllers/remoteusers_controller.rb
164
- - app/models/remote_user.rb
181
+ - app/models/remote_subject.rb
165
182
  - app/views/remoteusers/index.html.erb
166
183
  - lib/generators/social2social/install_generator.rb
184
+ - lib/generators/social2social/templates/en.yml
167
185
  - lib/generators/social2social/templates/initializer.rb
168
186
  - lib/generators/social2social/templates/migration.rb
187
+ - lib/generators/social2social/templates/public/images/logos/actor/remote_user.png
169
188
  - lib/social2social.rb
170
189
  - lib/social2social/engine.rb
171
190
  - lib/social2social/models/shareable.rb
172
191
  - lib/social2social/models/updatetriggerable.rb
173
- - social2social-0.0.1.gem
174
192
  - social2social.gemspec
175
193
  - spec/dummy/Rakefile
176
194
  - spec/dummy/app/controllers/application_controller.rb
@@ -206,6 +224,7 @@ files:
206
224
  - spec/integration/navigation_spec.rb
207
225
  - spec/social2social_spec.rb
208
226
  - spec/spec_helper.rb
227
+ has_rdoc: true
209
228
  homepage: http://github.com/ging/social2social
210
229
  licenses: []
211
230
 
@@ -235,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
254
  requirements: []
236
255
 
237
256
  rubyforge_project:
238
- rubygems_version: 1.7.2
257
+ rubygems_version: 1.5.2
239
258
  signing_key:
240
259
  specification_version: 3
241
260
  summary: Provides a social stream node able to decentralize contents with the OStatus protocol
@@ -1,6 +0,0 @@
1
- class RemoteUser < ActiveRecord::Base
2
- attr_accessible :name, :webfinger_slug, :hub_url, :origin_node_url
3
-
4
- validates_format_of :webfinger_slug, :with => Devise.email_regexp, :allow_blank => true
5
-
6
- end
Binary file