social2social 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -5,3 +5,5 @@ spec/dummy/db/*.sqlite3
5
5
  spec/dummy/log/*.log
6
6
  spec/dummy/tmp/
7
7
  *.DS_Store
8
+ **.*swp
9
+ Gemfile.lock
data/Rakefile CHANGED
@@ -25,3 +25,5 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
25
25
  rdoc.rdoc_files.include('README*')
26
26
  rdoc.rdoc_files.include('lib/**/*.rb')
27
27
  end
28
+
29
+ Bundler::GemHelper.install_tasks
data/config/routes.rb ADDED
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+ match 'pshb/callback' => 'pshb#callback', :as => :pshb_callback
3
+ match 'remoteuser/' => 'remoteusers#index', :as => :add_remote_user
4
+ end
@@ -1,18 +1,8 @@
1
1
  class Social2social::InstallGenerator < Rails::Generators::Base
2
2
  include Rails::Generators::Migration
3
3
 
4
- hook_for :social_stream
5
-
6
4
  source_root File.expand_path('../templates', __FILE__)
7
5
 
8
- def route_pshb
9
- route "match 'pshb/callback' => 'pshb#callback', :as => :pshb_callback"
10
- end
11
-
12
- def route_ru
13
- route "match 'remoteuser/' => 'remoteusers#index', :as => :add_remote_user"
14
- end
15
-
16
6
  def config_initializer
17
7
  copy_file 'initializer.rb', 'config/initializers/social2social.rb'
18
8
  end
@@ -22,11 +12,7 @@ class Social2social::InstallGenerator < Rails::Generators::Base
22
12
  "\nremote_subject:\n friend:\n name: friend\n permissions:\n - [ follow ]\n sphere: personal\n"+
23
13
  " public:\n name: public\n permissions:\n - [ read, tie, star_tie ]\n sphere: personal"
24
14
  end
25
-
26
- def inject_translations
27
- copy_file 'en.yml', 'config/locales/s2s.en.yml'
28
- end
29
-
15
+
30
16
  def copy_public
31
17
  directory "public"
32
18
  end
@@ -1,7 +1,5 @@
1
1
  module Social2social
2
2
  class Engine < Rails::Engine
3
- config.app_generators.social_stream :social_stream
4
-
5
3
  config.to_prepare do
6
4
  #Patching Actor
7
5
  Actor.class_eval do
data/lib/social2social.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'social_stream'
1
+ require 'social_stream-base'
2
2
 
3
3
  module Social2social
4
4
 
@@ -1,25 +1,25 @@
1
1
  Gem::Specification.new do |s|
2
- s.name = "social2social"
3
- s.version = "0.0.3"
4
- s.authors = ["Víctor Sánchez Belmar"]
5
- s.summary = "Provides a social stream node able to decentralize contents with the OStatus protocol"
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
- s.email = "v.sanchezbelmar@gmail.com"
8
- s.homepage = "http://github.com/ging/social2social"
9
- s.files = `git ls-files`.split("\n")
2
+ s.name = "social2social"
3
+ s.version = "0.0.4"
4
+ s.authors = ["Víctor Sánchez Belmar"]
5
+ s.summary = "Provides a Social Stream node able to decentralize contents with the OStatus protocol"
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
+ s.email = "v.sanchezbelmar@gmail.com"
8
+ s.homepage = "http://github.com/ging/social2social"
9
+ s.files = `git ls-files`.split("\n")
10
10
 
11
- # Gem dependencies
12
- s.add_runtime_dependency('social_stream','~> 0.4.4')
11
+ # Gem dependencies
12
+ s.add_runtime_dependency('social_stream-base','~> 0.5.1')
13
13
  s.add_runtime_dependency('nokogiri','~> 1.4.4')
14
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')
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')
25
25
  end
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: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - "V\xC3\xADctor S\xC3\xA1nchez Belmar"
@@ -15,28 +15,28 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-27 00:00:00 +02:00
18
+ date: 2011-06-02 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: social_stream
23
22
  prerelease: false
23
+ type: :runtime
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 7
29
+ hash: 9
30
30
  segments:
31
31
  - 0
32
- - 4
33
- - 4
34
- version: 0.4.4
35
- type: :runtime
32
+ - 5
33
+ - 1
34
+ version: 0.5.1
35
+ name: social_stream-base
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- name: nokogiri
39
38
  prerelease: false
39
+ type: :runtime
40
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
@@ -48,11 +48,11 @@ dependencies:
48
48
  - 4
49
49
  - 4
50
50
  version: 1.4.4
51
- type: :runtime
51
+ name: nokogiri
52
52
  version_requirements: *id002
53
53
  - !ruby/object:Gem::Dependency
54
- name: rails
55
54
  prerelease: false
55
+ type: :development
56
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
@@ -64,11 +64,11 @@ dependencies:
64
64
  - 0
65
65
  - 7
66
66
  version: 3.0.7
67
- type: :development
67
+ name: rails
68
68
  version_requirements: *id003
69
69
  - !ruby/object:Gem::Dependency
70
- name: sqlite3-ruby
71
70
  prerelease: false
71
+ type: :development
72
72
  requirement: &id004 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
@@ -78,11 +78,11 @@ dependencies:
78
78
  segments:
79
79
  - 0
80
80
  version: "0"
81
- type: :development
81
+ name: sqlite3-ruby
82
82
  version_requirements: *id004
83
83
  - !ruby/object:Gem::Dependency
84
- name: ruby-debug
85
84
  prerelease: false
85
+ type: :development
86
86
  requirement: &id005 !ruby/object:Gem::Requirement
87
87
  none: false
88
88
  requirements:
@@ -94,11 +94,11 @@ dependencies:
94
94
  - 10
95
95
  - 3
96
96
  version: 0.10.3
97
- type: :development
97
+ name: ruby-debug
98
98
  version_requirements: *id005
99
99
  - !ruby/object:Gem::Dependency
100
- name: rspec-rails
101
100
  prerelease: false
101
+ type: :development
102
102
  requirement: &id006 !ruby/object:Gem::Requirement
103
103
  none: false
104
104
  requirements:
@@ -110,11 +110,11 @@ dependencies:
110
110
  - 5
111
111
  - 0
112
112
  version: 2.5.0
113
- type: :development
113
+ name: rspec-rails
114
114
  version_requirements: *id006
115
115
  - !ruby/object:Gem::Dependency
116
- name: factory_girl
117
116
  prerelease: false
117
+ type: :development
118
118
  requirement: &id007 !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements:
@@ -126,11 +126,11 @@ dependencies:
126
126
  - 3
127
127
  - 2
128
128
  version: 1.3.2
129
- type: :development
129
+ name: factory_girl
130
130
  version_requirements: *id007
131
131
  - !ruby/object:Gem::Dependency
132
- name: forgery
133
132
  prerelease: false
133
+ type: :development
134
134
  requirement: &id008 !ruby/object:Gem::Requirement
135
135
  none: false
136
136
  requirements:
@@ -142,11 +142,11 @@ dependencies:
142
142
  - 3
143
143
  - 6
144
144
  version: 0.3.6
145
- type: :development
145
+ name: forgery
146
146
  version_requirements: *id008
147
147
  - !ruby/object:Gem::Dependency
148
- name: capybara
149
148
  prerelease: false
149
+ type: :development
150
150
  requirement: &id009 !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
@@ -158,7 +158,7 @@ dependencies:
158
158
  - 3
159
159
  - 9
160
160
  version: 0.3.9
161
- type: :development
161
+ name: capybara
162
162
  version_requirements: *id009
163
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.
164
164
  email: v.sanchezbelmar@gmail.com
@@ -172,7 +172,6 @@ files:
172
172
  - .gitignore
173
173
  - .rspec
174
174
  - Gemfile
175
- - Gemfile.lock
176
175
  - MIT-LICENSE
177
176
  - README.rdoc
178
177
  - Rakefile
@@ -180,8 +179,9 @@ files:
180
179
  - app/controllers/remoteusers_controller.rb
181
180
  - app/models/remote_subject.rb
182
181
  - app/views/remoteusers/index.html.erb
182
+ - config/locales/en.yml
183
+ - config/routes.rb
183
184
  - lib/generators/social2social/install_generator.rb
184
- - lib/generators/social2social/templates/en.yml
185
185
  - lib/generators/social2social/templates/initializer.rb
186
186
  - lib/generators/social2social/templates/migration.rb
187
187
  - lib/generators/social2social/templates/public/images/logos/actor/remote_user.png
@@ -254,9 +254,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  requirements: []
255
255
 
256
256
  rubyforge_project:
257
- rubygems_version: 1.5.2
257
+ rubygems_version: 1.6.2
258
258
  signing_key:
259
259
  specification_version: 3
260
- summary: Provides a social stream node able to decentralize contents with the OStatus protocol
260
+ summary: Provides a Social Stream node able to decentralize contents with the OStatus protocol
261
261
  test_files: []
262
262
 
data/Gemfile.lock DELETED
@@ -1,237 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- social2social (0.0.2)
5
- nokogiri (~> 1.4.4)
6
- social_stream (~> 0.4.4)
7
-
8
- GEM
9
- remote: http://rubygems.org/
10
- specs:
11
- abstract (1.0.0)
12
- actionmailer (3.0.7)
13
- actionpack (= 3.0.7)
14
- mail (~> 2.2.15)
15
- actionpack (3.0.7)
16
- activemodel (= 3.0.7)
17
- activesupport (= 3.0.7)
18
- builder (~> 2.1.2)
19
- erubis (~> 2.6.6)
20
- i18n (~> 0.5.0)
21
- rack (~> 1.2.1)
22
- rack-mount (~> 0.6.14)
23
- rack-test (~> 0.5.7)
24
- tzinfo (~> 0.3.23)
25
- activemodel (3.0.7)
26
- activesupport (= 3.0.7)
27
- builder (~> 2.1.2)
28
- i18n (~> 0.5.0)
29
- activerecord (3.0.7)
30
- activemodel (= 3.0.7)
31
- activesupport (= 3.0.7)
32
- arel (~> 2.0.2)
33
- tzinfo (~> 0.3.23)
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)
42
- arel (2.0.9)
43
- bcrypt-ruby (2.1.4)
44
- builder (2.1.2)
45
- cancan (1.6.4)
46
- capybara (0.3.9)
47
- culerity (>= 0.2.4)
48
- mime-types (>= 1.16)
49
- nokogiri (>= 1.3.3)
50
- rack (>= 1.0.0)
51
- rack-test (>= 0.5.4)
52
- selenium-webdriver (>= 0.0.3)
53
- childprocess (0.1.8)
54
- ffi (~> 1.0.6)
55
- columnize (0.3.2)
56
- culerity (0.2.15)
57
- devise (1.3.1)
58
- bcrypt-ruby (~> 2.1.2)
59
- orm_adapter (~> 0.0.3)
60
- warden (~> 1.0.3)
61
- diff-lcs (1.1.2)
62
- erubis (2.6.6)
63
- abstract (>= 1.0.0)
64
- factory_girl (1.3.3)
65
- faraday (0.6.1)
66
- addressable (~> 2.2.4)
67
- multipart-post (~> 1.1.0)
68
- rack (>= 1.1.0, < 2)
69
- ffi (1.0.7)
70
- rake (>= 0.8.7)
71
- foreigner (0.9.2)
72
- forgery (0.3.7)
73
- nokogiri (~> 1.4)
74
- has_scope (0.5.0)
75
- i18n (0.5.0)
76
- inherited_resources (1.1.2)
77
- has_scope (~> 0.5.0)
78
- responders (~> 0.6.0)
79
- jquery-rails (0.2.7)
80
- rails (~> 3.0)
81
- thor (~> 0.14.4)
82
- json_pure (1.5.1)
83
- linecache (0.43)
84
- mail (2.2.17)
85
- activesupport (>= 2.3.6)
86
- i18n (>= 0.4.0)
87
- mime-types (~> 1.16)
88
- treetop (~> 1.4.8)
89
- mailboxer (0.0.16)
90
- foreigner (~> 0.9.1)
91
- mime-types (1.16)
92
- multi_json (0.0.5)
93
- multipart-post (1.1.0)
94
- net-ldap (0.1.1)
95
- nokogiri (1.4.4)
96
- oa-basic (0.2.2)
97
- multi_json (~> 0.0.2)
98
- nokogiri (~> 1.4.2)
99
- oa-core (= 0.2.2)
100
- rest-client (~> 1.6.0)
101
- oa-core (0.2.2)
102
- rack (~> 1.1)
103
- oa-enterprise (0.2.2)
104
- net-ldap (~> 0.1.1)
105
- nokogiri (~> 1.4.2)
106
- oa-core (= 0.2.2)
107
- pyu-ruby-sasl (~> 0.0.3.1)
108
- rubyntlm (~> 0.1.1)
109
- oa-more (0.2.2)
110
- multi_json (~> 0.0.2)
111
- oa-core (= 0.2.2)
112
- rest-client (~> 1.6.0)
113
- oa-oauth (0.2.2)
114
- faraday (~> 0.6.1)
115
- multi_json (~> 0.0.2)
116
- nokogiri (~> 1.4.2)
117
- oa-core (= 0.2.2)
118
- oauth (~> 0.4.0)
119
- oauth2 (~> 0.3.0)
120
- oa-openid (0.2.2)
121
- oa-core (= 0.2.2)
122
- rack-openid (~> 1.2.0)
123
- ruby-openid-apps-discovery
124
- oauth (0.4.4)
125
- oauth-plugin (0.4.0.pre4)
126
- oauth (>= 0.4.4)
127
- oauth2 (0.3.0)
128
- faraday (~> 0.6.0)
129
- multi_json (~> 0.0.4)
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)
137
- orm_adapter (0.0.4)
138
- paperclip (2.3.11)
139
- activerecord (>= 2.3.0)
140
- activesupport (>= 2.3.2)
141
- polyglot (0.3.1)
142
- pyu-ruby-sasl (0.0.3.2)
143
- rack (1.2.2)
144
- rack-mount (0.6.14)
145
- rack (>= 1.0.0)
146
- rack-openid (1.2.0)
147
- rack (>= 1.1.0)
148
- ruby-openid (>= 2.1.8)
149
- rack-test (0.5.7)
150
- rack (>= 1.0)
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)
157
- bundler (~> 1.0)
158
- railties (= 3.0.7)
159
- rails_css_themes (1.0.0)
160
- railties (3.0.7)
161
- actionpack (= 3.0.7)
162
- activesupport (= 3.0.7)
163
- rake (>= 0.8.7)
164
- thor (~> 0.14.4)
165
- rake (0.8.7)
166
- responders (0.6.2)
167
- rest-client (1.6.1)
168
- mime-types (>= 1.16)
169
- rmagick (2.13.1)
170
- rspec (2.5.0)
171
- rspec-core (~> 2.5.0)
172
- rspec-expectations (~> 2.5.0)
173
- rspec-mocks (~> 2.5.0)
174
- rspec-core (2.5.1)
175
- rspec-expectations (2.5.0)
176
- diff-lcs (~> 1.1.2)
177
- rspec-mocks (2.5.0)
178
- rspec-rails (2.5.0)
179
- actionpack (~> 3.0)
180
- activesupport (~> 3.0)
181
- railties (~> 3.0)
182
- rspec (~> 2.5.0)
183
- ruby-debug (0.10.4)
184
- columnize (>= 0.1)
185
- ruby-debug-base (~> 0.10.4.0)
186
- ruby-debug-base (0.10.4)
187
- linecache (>= 0.3)
188
- ruby-openid (2.1.8)
189
- ruby-openid-apps-discovery (1.2.0)
190
- ruby-openid (>= 2.1.7)
191
- rubyntlm (0.1.1)
192
- rubyzip (0.9.4)
193
- selenium-webdriver (0.1.4)
194
- childprocess (>= 0.1.7)
195
- ffi (>= 1.0.7)
196
- json_pure
197
- rubyzip
198
- social_stream (0.4.4)
199
- acts-as-taggable-on (~> 2.0.6)
200
- ancestry (~> 1.2.3)
201
- cancan (~> 1.6.4)
202
- devise (~> 1.2.rc)
203
- foreigner (~> 0.9.1)
204
- inherited_resources (~> 1.1.2)
205
- jquery-rails (~> 0.2.5)
206
- mailboxer (~> 0.0.16)
207
- oauth-plugin (~> 0.4.0.pre1)
208
- omniauth (~> 0.2.0.beta5)
209
- paperclip (~> 2.3.4)
210
- rails_css_themes (~> 1.0.0)
211
- rmagick (~> 2.13.1)
212
- stringex (~> 1.2.0)
213
- will_paginate (~> 3.0.pre2)
214
- sqlite3 (1.3.3)
215
- sqlite3-ruby (1.3.3)
216
- sqlite3 (>= 1.3.3)
217
- stringex (1.2.1)
218
- thor (0.14.6)
219
- treetop (1.4.9)
220
- polyglot (>= 0.3.1)
221
- tzinfo (0.3.26)
222
- warden (1.0.3)
223
- rack (>= 1.0.0)
224
- will_paginate (3.0.pre2)
225
-
226
- PLATFORMS
227
- ruby
228
-
229
- DEPENDENCIES
230
- capybara (~> 0.3.9)
231
- factory_girl (~> 1.3.2)
232
- forgery (~> 0.3.6)
233
- rails (~> 3.0.7)
234
- rspec-rails (~> 2.5.0)
235
- ruby-debug (~> 0.10.3)
236
- social2social!
237
- sqlite3-ruby