social2social 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -7,3 +7,4 @@ spec/dummy/tmp/
7
7
  *.DS_Store
8
8
  **.*swp
9
9
  Gemfile.lock
10
+ .code_swarm
data/Rakefile CHANGED
@@ -12,13 +12,6 @@ end
12
12
  require 'rake'
13
13
  require 'rake/rdoctask'
14
14
 
15
- require 'rspec/core'
16
- require 'rspec/core/rake_task'
17
-
18
- RSpec::Core::RakeTask.new(:spec)
19
-
20
- task :default => :spec
21
-
22
15
  Rake::RDocTask.new(:rdoc) do |rdoc|
23
16
  rdoc.rdoc_dir = 'rdoc'
24
17
  rdoc.title = 'Social2social'
@@ -16,7 +16,7 @@ class RemoteusersController < ApplicationController
16
16
  uri = URI.parse(Social2social.hub)
17
17
  response = Net::HTTP::post_form(uri,{ 'hub.callback' => pshb_callback_url,
18
18
  'hub.mode' => "subscribe",
19
- 'hub.topic' => u.home_feed_url,
19
+ 'hub.topic' => u.public_feed_url,
20
20
  'hub.verify' => 'sync'})
21
21
 
22
22
  end
@@ -27,4 +27,4 @@ class RemoteusersController < ApplicationController
27
27
  end
28
28
  end
29
29
 
30
- end
30
+ end
@@ -17,10 +17,10 @@ class RemoteSubject < ActiveRecord::Base
17
17
  end
18
18
  end
19
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"
20
+ # Public feed url for this RemoteUser
21
+ def public_feed_url
22
+ "http://"+origin_node_url.to_s+"/api/user/"+name.to_s+"/public.atom"
23
23
  end
24
24
 
25
25
 
26
- end
26
+ end
@@ -12,14 +12,14 @@ module Social2social
12
12
 
13
13
  module InstanceMethods
14
14
  def init_feeds_to_hub
15
- publish_or_update_home_feed
15
+ publish_or_update_public_feed
16
16
  #TO-DO: add calls to other public feeds if any
17
17
  end
18
18
 
19
- def publish_or_update_home_feed
19
+ def publish_or_update_public_feed
20
20
  t = Thread.new do
21
21
  hub = Social2social.hub
22
- topic = Social2social.node_base_url+'/api/user/'+self.slug+'/home.atom'
22
+ topic = Social2social.node_base_url+'/api/user/'+self.slug+'/public.atom'
23
23
 
24
24
  uri = URI.parse(hub)
25
25
  response = Net::HTTP::post_form(uri,{ 'hub.mode' => 'publish',
@@ -9,8 +9,10 @@ module Social2social
9
9
 
10
10
  module InstanceMethods
11
11
  def update_feed_to_hub
12
- if self.original
13
- self.tie.sender.publish_or_update_home_feed
12
+ if original?
13
+ if tie.relation.is_a?(Relation::Public)
14
+ tie.sender.publish_or_update_public_feed
15
+ end
14
16
  end
15
17
  end
16
18
  end
@@ -1,25 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "social2social"
3
- s.version = "0.0.4"
3
+ s.version = "0.0.5"
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."
7
7
  s.email = "v.sanchezbelmar@gmail.com"
8
- s.homepage = "http://github.com/ging/social2social"
8
+ s.homepage = "http://github.com/ging/social_stream"
9
9
  s.files = `git ls-files`.split("\n")
10
10
 
11
11
  # Gem dependencies
12
- s.add_runtime_dependency('social_stream-base','~> 0.5.1')
13
- s.add_runtime_dependency('nokogiri','~> 1.4.4')
14
-
15
- # Development Gem dependencies
16
- s.add_development_dependency('rails', '~> 3.0.7')
17
- s.add_development_dependency('sqlite3-ruby')
18
- if RUBY_VERSION < '1.9'
19
- s.add_development_dependency('ruby-debug', '~> 0.10.3')
20
- end
21
- s.add_development_dependency('rspec-rails', '~> 2.5.0')
22
- s.add_development_dependency('factory_girl', '~> 1.3.2')
23
- s.add_development_dependency('forgery', '~> 0.3.6')
24
- s.add_development_dependency('capybara', '~> 0.3.9')
12
+ s.add_runtime_dependency('social_stream-ostatus')
25
13
  end
metadata CHANGED
@@ -1,174 +1,39 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: social2social
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 4
10
- version: 0.0.4
11
6
  platform: ruby
12
- authors:
13
- - "V\xC3\xADctor S\xC3\xA1nchez Belmar"
7
+ authors:
8
+ - Víctor Sánchez Belmar
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-06-02 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- type: :runtime
24
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-10-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: social_stream-ostatus
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 9
30
- segments:
31
- - 0
32
- - 5
33
- - 1
34
- version: 0.5.1
35
- name: social_stream-base
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- prerelease: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
39
22
  type: :runtime
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 1
48
- - 4
49
- - 4
50
- version: 1.4.4
51
- name: nokogiri
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- prerelease: false
55
- type: :development
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 9
62
- segments:
63
- - 3
64
- - 0
65
- - 7
66
- version: 3.0.7
67
- name: rails
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- prerelease: false
71
- type: :development
72
- requirement: &id004 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
- version: "0"
81
- name: sqlite3-ruby
82
- version_requirements: *id004
83
- - !ruby/object:Gem::Dependency
84
- prerelease: false
85
- type: :development
86
- requirement: &id005 !ruby/object:Gem::Requirement
87
- none: false
88
- requirements:
89
- - - ~>
90
- - !ruby/object:Gem::Version
91
- hash: 49
92
- segments:
93
- - 0
94
- - 10
95
- - 3
96
- version: 0.10.3
97
- name: ruby-debug
98
- version_requirements: *id005
99
- - !ruby/object:Gem::Dependency
100
- prerelease: false
101
- type: :development
102
- requirement: &id006 !ruby/object:Gem::Requirement
103
- none: false
104
- requirements:
105
- - - ~>
106
- - !ruby/object:Gem::Version
107
- hash: 27
108
- segments:
109
- - 2
110
- - 5
111
- - 0
112
- version: 2.5.0
113
- name: rspec-rails
114
- version_requirements: *id006
115
- - !ruby/object:Gem::Dependency
116
- prerelease: false
117
- type: :development
118
- requirement: &id007 !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
121
- - - ~>
122
- - !ruby/object:Gem::Version
123
- hash: 31
124
- segments:
125
- - 1
126
- - 3
127
- - 2
128
- version: 1.3.2
129
- name: factory_girl
130
- version_requirements: *id007
131
- - !ruby/object:Gem::Dependency
132
- prerelease: false
133
- type: :development
134
- requirement: &id008 !ruby/object:Gem::Requirement
135
- none: false
136
- requirements:
137
- - - ~>
138
- - !ruby/object:Gem::Version
139
- hash: 31
140
- segments:
141
- - 0
142
- - 3
143
- - 6
144
- version: 0.3.6
145
- name: forgery
146
- version_requirements: *id008
147
- - !ruby/object:Gem::Dependency
148
23
  prerelease: false
149
- type: :development
150
- requirement: &id009 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
151
25
  none: false
152
- requirements:
153
- - - ~>
154
- - !ruby/object:Gem::Version
155
- hash: 1
156
- segments:
157
- - 0
158
- - 3
159
- - 9
160
- version: 0.3.9
161
- name: capybara
162
- version_requirements: *id009
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.
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: This gem allow you to connect several social stream nodes using PSHB
31
+ hubs, also allows to follow, and share streams with social stream users in any node.
164
32
  email: v.sanchezbelmar@gmail.com
165
33
  executables: []
166
-
167
34
  extensions: []
168
-
169
35
  extra_rdoc_files: []
170
-
171
- files:
36
+ files:
172
37
  - .gitignore
173
38
  - .rspec
174
39
  - Gemfile
@@ -224,39 +89,35 @@ files:
224
89
  - spec/integration/navigation_spec.rb
225
90
  - spec/social2social_spec.rb
226
91
  - spec/spec_helper.rb
227
- has_rdoc: true
228
- homepage: http://github.com/ging/social2social
92
+ homepage: http://github.com/ging/social_stream
229
93
  licenses: []
230
-
231
94
  post_install_message:
232
95
  rdoc_options: []
233
-
234
- require_paths:
96
+ require_paths:
235
97
  - lib
236
- required_ruby_version: !ruby/object:Gem::Requirement
98
+ required_ruby_version: !ruby/object:Gem::Requirement
237
99
  none: false
238
- requirements:
239
- - - ">="
240
- - !ruby/object:Gem::Version
241
- hash: 3
242
- segments:
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ segments:
243
105
  - 0
244
- version: "0"
245
- required_rubygems_version: !ruby/object:Gem::Requirement
106
+ hash: 641005011
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
246
108
  none: false
247
- requirements:
248
- - - ">="
249
- - !ruby/object:Gem::Version
250
- hash: 3
251
- segments:
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ segments:
252
114
  - 0
253
- version: "0"
115
+ hash: 641005011
254
116
  requirements: []
255
-
256
117
  rubyforge_project:
257
- rubygems_version: 1.6.2
118
+ rubygems_version: 1.8.24
258
119
  signing_key:
259
120
  specification_version: 3
260
- summary: Provides a Social Stream node able to decentralize contents with the OStatus protocol
121
+ summary: Provides a Social Stream node able to decentralize contents with the OStatus
122
+ protocol
261
123
  test_files: []
262
-