social_stream-documents 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- $('.attachment_tile a').live("click",function(e){
1
+ $('.attachment_tile a, .picture_link a').live("click",function(e){
2
2
  if(this.type ==""){
3
3
  return true;
4
4
  }
@@ -6,15 +6,17 @@ $('.attachment_tile a').live("click",function(e){
6
6
 
7
7
  var download_link = this;
8
8
 
9
+ /*
9
10
  if($('.player').length > 0 && $('.attachment_tile.selected').length==1){
10
11
  removePlayers();
11
12
  return;
12
13
  }
14
+ */
13
15
  if(this.type == "Audio"){
14
16
  removePlayers();
15
17
  $(this).parent().parent().addClass("selected");
16
18
  $('body').append("<audio class='player' autoplay='autoplay' id='audio_player' src='"+this+"' controls='controls'></audio>");
17
- $('body').append("<a href='"+download_link+"'><img id='downloadButton' src='<%= asset_path "formats/default.png" %>' /></a>");
19
+ $('body').append("<a href='"+download_link+"'><img id='downloadButton' src='<%= asset_path "16/default.png" %>' /></a>");
18
20
  return;
19
21
  }
20
22
  if(this.type == "Video"){
@@ -23,14 +25,14 @@ $('.attachment_tile a').live("click",function(e){
23
25
  var show = (this+"").split('/download')[0];
24
26
  show = show.replace("documents","videos");
25
27
  $('body').append("<video class='player' autoplay='autoplay' id='video_player' src='"+show+"?style=webm' controls='controls'></video>");
26
- $('body').append("<a href='"+download_link+"'><img id='downloadButton' src='<%= asset_path "formats/default.png" %>' /></a>");
28
+ $('body').append("<a href='"+download_link+"'><img id='downloadButton' src='<%= asset_path "16/default.png" %>' /></a>");
27
29
  return;
28
30
  }
29
31
  if(this.type == "Picture"){
30
32
  removePlayers();
31
33
  $(this).parent().parent().addClass("selected");
32
34
  $('body').append("<img class='player' id='picture_player' src='"+download_link+"' />");
33
- $('body').append("<a href='" + download_link + "'><img id='downloadButton' src='<%= asset_path "formats/default.png" %>' /></a>");
35
+ $('body').append("<a href='" + download_link + "'><img id='downloadButton' src='<%= asset_path "16/default.png" %>' /></a>");
34
36
  }
35
37
  });
36
38
 
@@ -88,7 +88,7 @@
88
88
  }
89
89
 
90
90
  .player{
91
- position: absolute;
91
+ position: fixed;
92
92
  border-left: 24px solid #2A3890;
93
93
  border-right: 24px solid #2A3890;
94
94
  background-color: #e0edf2;
@@ -98,7 +98,7 @@
98
98
  }
99
99
 
100
100
  #downloadButton{
101
- position: absolute;
101
+ position: fixed;
102
102
  bottom: 5px;
103
103
  right: 0px;
104
104
  width: 24px;
@@ -11,7 +11,9 @@ class Picture < Document
11
11
  when 16
12
12
  "#{ size.to_s }/photo.png"
13
13
  when 48
14
- helper.picture_path self, :format => format, :style => 'thumb'
14
+ helper.picture_path self, :format => format, :style => 'thumb'
15
+ when 130
16
+ helper.picture_path self, :format => format, :style => 'thumb0'
15
17
  end
16
18
  end
17
19
 
@@ -1,15 +1,27 @@
1
1
  <%= div_for picture, :class => 'content_size' do %>
2
2
 
3
- <div class="attachment_thumb">
3
+ <div class="attachment_thumb picture_link">
4
4
  <%= link_to thumb_for(picture, 16),
5
5
  {:controller => "documents", :action => "download", :id => picture},
6
- :class => "" %>
6
+ :type => picture.type,
7
+ :title => picture.file_file_name,
8
+ :path => document_path(picture) %>
7
9
  </div>
8
10
 
9
- <div class="attachment_text picture_summary_class">
11
+ <div class="attachment_text picture_summary_class picture_link">
10
12
  <%= t('picture.msg') %><%= link_to "\""+picture.file_file_name+"\"",
11
13
  {:controller => "documents", :action => "download", :id => picture},
14
+ :alt => picture.file_file_name,
15
+ :type => picture.type,
16
+ :path => document_path(picture),
12
17
  :class => "attachment_text_link" %>
13
18
  </div>
14
-
19
+
20
+ <div class="picture_link">
21
+ <%= link_to thumb_for(picture, 130),
22
+ {:controller => "documents", :action => "download", :id => picture},
23
+ :type => picture.type,
24
+ :title => picture.file_file_name,
25
+ :path => document_path(picture) %>
26
+ </div>
15
27
  <% end %>
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "social_stream-documents"
3
- s.version = "0.2.4"
3
+ s.version = "0.2.5"
4
4
  s.authors = ["Víctor Sánchez Belmar", "GING - DIT - UPM"]
5
5
  s.summary = "File capabilities for Social Stream, the core for building social network websites"
6
6
  s.description = "Social Stream is a Ruby on Rails engine providing your application with social networking features and activity streams.\n\nThis gem allow you upload almost any kind of file as new social stream activity."
@@ -9,7 +9,7 @@ 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-base','~> 0.7.10')
12
+ s.add_runtime_dependency('social_stream-base','>= 0.8.0')
13
13
  s.add_runtime_dependency('paperclip-ffmpeg', '~> 0.7.0')
14
14
  s.add_runtime_dependency('paperclip','2.3.11')
15
15
  # Development Gem dependencies
@@ -0,0 +1,80 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+
3
+ describe DocumentsController do
4
+ render_views
5
+
6
+ context "with public document" do
7
+ before do
8
+ @public_document = Factory(:public_document)
9
+ end
10
+
11
+ describe "when not authenticated" do
12
+ it "should redirect to login" do
13
+ get :index
14
+ response.should redirect_to(:new_user_session)
15
+ end
16
+
17
+ it "should render receiver's index with public document included" do
18
+ get :index, :user_id => @public_document.post_activity.receiver.to_param
19
+ response.should be_success
20
+ response.body.should =~ /attachment_tile/
21
+ response.body.should =~ /small.pdf/
22
+ end
23
+
24
+ it "should render receiver's show" do
25
+ get :show, :id => @public_document.to_param
26
+ response.should be_success
27
+ response.headers["Content-Type"].should include('application/pdf')
28
+ end
29
+ end
30
+
31
+ describe "when authenticated" do
32
+ before do
33
+ sign_in Factory(:user)
34
+ end
35
+
36
+ it "should render index" do
37
+ get :index, :user_id => @public_document.post_activity.receiver.to_param
38
+ response.should be_success
39
+ response.body.should =~ /attachment_tile/
40
+ response.body.should =~ /small.pdf/
41
+ end
42
+
43
+ it "should render show" do
44
+ get :show, :id => @public_document.to_param
45
+ response.should be_success
46
+ response.headers["Content-Type"].should include('application/pdf')
47
+ end
48
+ end
49
+ end #end of the context
50
+
51
+ context "with private document" do
52
+ before do
53
+ @private_document = Factory(:private_document)
54
+ end
55
+ describe "when not authenticated" do
56
+ it "should render receiver's index without private document" do
57
+ get :index, :user_id => @private_document.post_activity.receiver.to_param
58
+ response.should be_success
59
+ response.body.should_not =~ /attachment_tile/
60
+ response.body.should_not =~ /small.pdf/
61
+ end
62
+ end
63
+
64
+ describe "when authenticated" do
65
+ before do
66
+ sign_in Factory(:user)
67
+ end
68
+ it "should render index" do
69
+ get :index, :user_id => @private_document.post_activity.receiver.to_param
70
+ response.should be_success
71
+ response.body.should_not =~ /attachment_tile/
72
+ response.body.should_not =~ /small.pdf/
73
+ end
74
+
75
+ it "should render show" do
76
+ lambda {get :show, :id => @private_document.to_param}.should raise_error(CanCan::AccessDenied)
77
+ end
78
+ end
79
+ end
80
+ end
@@ -5,19 +5,76 @@ describe PicturesController do
5
5
 
6
6
  context "with public picture" do
7
7
  before do
8
- @picture = Factory(:public_picture)
8
+ @public_picture = Factory(:public_picture)
9
9
  end
10
10
 
11
- it "should render index" do
12
- get :index
13
-
14
- response.should redirect_to(:new_user_session)
11
+ describe "when not authenticated" do
12
+ it "should redirect to login" do
13
+ get :index
14
+ response.should redirect_to(:new_user_session)
15
+ end
16
+
17
+ it "should render receiver's index with public picture included" do
18
+ get :index, :user_id => @public_picture.post_activity.receiver.to_param
19
+ response.should be_success
20
+ response.body.should =~ /attachment_tile/
21
+ response.body.should =~ /rails.png/
22
+ end
23
+
24
+ it "should render receiver's show" do
25
+ get :show, :id => @public_picture.to_param
26
+ response.should be_success
27
+ response.headers["Content-Type"].should include('image/png')
28
+ end
15
29
  end
30
+
31
+ describe "when authenticated" do
32
+ before do
33
+ sign_in Factory(:user)
34
+ end
16
35
 
17
- it "should render receiver's index" do
18
- get :index, :user_id => @picture.post_activity.receiver.to_param
19
-
20
- response.should be_success
36
+ it "should render index" do
37
+ get :index, :user_id => @public_picture.post_activity.receiver.to_param
38
+ response.should be_success
39
+ response.body.should =~ /attachment_tile/
40
+ response.body.should =~ /rails.png/
41
+ end
42
+
43
+ it "should render show" do
44
+ get :show, :id => @public_picture.to_param
45
+ response.should be_success
46
+ response.headers["Content-Type"].should include('image/png')
47
+ end
48
+ end
49
+ end #end of the context
50
+
51
+ context "with private picture" do
52
+ before do
53
+ @private_picture = Factory(:private_picture)
54
+ end
55
+ describe "when not authenticated" do
56
+ it "should render receiver's index without private picture" do
57
+ get :index, :user_id => @private_picture.post_activity.receiver.to_param
58
+ response.should be_success
59
+ response.body.should_not =~ /attachment_tile/
60
+ response.body.should_not =~ /privado.png/
61
+ end
62
+ end
63
+
64
+ describe "when authenticated" do
65
+ before do
66
+ sign_in Factory(:user)
67
+ end
68
+ it "should render index" do
69
+ get :index, :user_id => @private_picture.post_activity.receiver.to_param
70
+ response.should be_success
71
+ response.body.should_not =~ /attachment_tile/
72
+ response.body.should_not =~ /privado.png/
73
+ end
74
+
75
+ it "should render show" do
76
+ lambda {get :show, :id => @private_picture.to_param}.should raise_error(CanCan::AccessDenied)
77
+ end
21
78
  end
22
79
  end
23
80
  end
@@ -0,0 +1,19 @@
1
+ Factory.define :document do |d|
2
+ d.file { Rack::Test::UploadedFile.new(File.join(File.dirname(__FILE__), 'files', 'small.pdf'),
3
+ 'application/pdf') }
4
+
5
+ d._contact_id { Factory(:friend).contact_id }
6
+ d._relation_ids { |q| Array(Contact.find(q._contact_id).sender.relation_customs.sort.first.id) }
7
+ end
8
+
9
+ Factory.define :public_document, :parent => :document do |d|
10
+ d._contact_id { Factory(:self_contact).id }
11
+ d._relation_ids { |q| Array(Contact.find(q._contact_id).sender.relation_public.id) }
12
+ end
13
+
14
+ Factory.define :private_document, :parent => :document do |d|
15
+ d.file { Rack::Test::UploadedFile.new(File.join(File.dirname(__FILE__), 'files', 'small.pdf'),
16
+ 'application/pdf') }
17
+ d._contact_id { Factory(:self_contact).id }
18
+ d._relation_ids { |q| Array(Contact.find(q._contact_id).sender.relation_customs.sort.first.id) }
19
+ end
Binary file
@@ -0,0 +1,157 @@
1
+ %PDF-1.2
2
+ %����
3
+
4
+ 9 0 obj
5
+ <<
6
+ /Length 10 0 R
7
+ /Filter /FlateDecode
8
+ >>
9
+ stream
10
+ H�͐�J�0�� ��{��f�$M��n�-���[&je���ۤ �~�$���}�Ʌ�Ij���s����~�X�-],��$Y���)�'N�u�1!���V�?��?
11
+ �b1Rbb�҉�H�[��TD:#�&ح��X���i�$qnf�����]������a��{��أ���q|J�Ls]�Q�I��j�%��9��`�঺��U�ite�z�$����OeB�Ēү�R��@zܗ���g���<���
12
+ endstream
13
+ endobj
14
+ 10 0 obj
15
+ 246
16
+ endobj
17
+ 4 0 obj
18
+ <<
19
+ /Type /Page
20
+ /Parent 5 0 R
21
+ /Resources <<
22
+ /Font <<
23
+ /F0 6 0 R
24
+ /F1 7 0 R
25
+ >>
26
+ /ProcSet 2 0 R
27
+ >>
28
+ /Contents 9 0 R
29
+ >>
30
+ endobj
31
+ 6 0 obj
32
+ <<
33
+ /Type /Font
34
+ /Subtype /TrueType
35
+ /Name /F0
36
+ /BaseFont /Arial
37
+ /Encoding /WinAnsiEncoding
38
+ >>
39
+ endobj
40
+ 7 0 obj
41
+ <<
42
+ /Type /Font
43
+ /Subtype /TrueType
44
+ /Name /F1
45
+ /BaseFont /BookAntiqua,Bold
46
+ /FirstChar 31
47
+ /LastChar 255
48
+ /Widths [ 750 250 278 402 606 500 889 833 227 333 333 444 606 250 333 250
49
+ 296 500 500 500 500 500 500 500 500 500 500 250 250 606 606 606
50
+ 444 747 778 667 722 833 611 556 833 833 389 389 778 611 1000 833
51
+ 833 611 833 722 611 667 778 778 1000 667 667 667 333 606 333 606
52
+ 500 333 500 611 444 611 500 389 556 611 333 333 611 333 889 611
53
+ 556 611 611 389 444 333 611 556 833 500 556 500 310 606 310 606
54
+ 750 500 750 333 500 500 1000 500 500 333 1000 611 389 1000 750 750
55
+ 750 750 278 278 500 500 606 500 1000 333 998 444 389 833 750 750
56
+ 667 250 278 500 500 606 500 606 500 333 747 438 500 606 333 747
57
+ 500 400 549 361 361 333 576 641 250 333 361 488 500 889 890 889
58
+ 444 778 778 778 778 778 778 1000 722 611 611 611 611 389 389 389
59
+ 389 833 833 833 833 833 833 833 606 833 778 778 778 778 667 611
60
+ 611 500 500 500 500 500 500 778 444 500 500 500 500 333 333 333
61
+ 333 556 611 556 556 556 556 556 549 556 611 611 611 611 556 611
62
+ 556 ]
63
+ /Encoding /WinAnsiEncoding
64
+ /FontDescriptor 8 0 R
65
+ >>
66
+ endobj
67
+ 8 0 obj
68
+ <<
69
+ /Type /FontDescriptor
70
+ /FontName /BookAntiqua,Bold
71
+ /Flags 16418
72
+ /FontBBox [ -250 -260 1236 930 ]
73
+ /MissingWidth 750
74
+ /StemV 146
75
+ /StemH 146
76
+ /ItalicAngle 0
77
+ /CapHeight 930
78
+ /XHeight 651
79
+ /Ascent 930
80
+ /Descent 260
81
+ /Leading 210
82
+ /MaxWidth 1030
83
+ /AvgWidth 460
84
+ >>
85
+ endobj
86
+ 2 0 obj
87
+ [ /PDF /Text ]
88
+ endobj
89
+ 5 0 obj
90
+ <<
91
+ /Kids [4 0 R ]
92
+ /Count 1
93
+ /Type /Pages
94
+ /MediaBox [ 0 0 612 792 ]
95
+ >>
96
+ endobj
97
+ 1 0 obj
98
+ <<
99
+ /Creator (1725.fm)
100
+ /CreationDate (1-Jan-3 18:15PM)
101
+ /Title (1725.PDF)
102
+ /Author (Unknown)
103
+ /Producer (Acrobat PDFWriter 3.02 for Windows)
104
+ /Keywords ()
105
+ /Subject ()
106
+ >>
107
+ endobj
108
+ 3 0 obj
109
+ <<
110
+ /Pages 5 0 R
111
+ /Type /Catalog
112
+ /DefaultGray 11 0 R
113
+ /DefaultRGB 12 0 R
114
+ >>
115
+ endobj
116
+ 11 0 obj
117
+ [/CalGray
118
+ <<
119
+ /WhitePoint [0.9505 1 1.0891 ]
120
+ /Gamma 0.2468
121
+ >>
122
+ ]
123
+ endobj
124
+ 12 0 obj
125
+ [/CalRGB
126
+ <<
127
+ /WhitePoint [0.9505 1 1.0891 ]
128
+ /Gamma [0.2468 0.2468 0.2468 ]
129
+ /Matrix [0.4361 0.2225 0.0139 0.3851 0.7169 0.0971 0.1431 0.0606 0.7141 ]
130
+ >>
131
+ ]
132
+ endobj
133
+ xref
134
+ 0 13
135
+ 0000000000 65535 f
136
+ 0000002172 00000 n
137
+ 0000002046 00000 n
138
+ 0000002363 00000 n
139
+ 0000000375 00000 n
140
+ 0000002080 00000 n
141
+ 0000000518 00000 n
142
+ 0000000633 00000 n
143
+ 0000001760 00000 n
144
+ 0000000021 00000 n
145
+ 0000000352 00000 n
146
+ 0000002460 00000 n
147
+ 0000002548 00000 n
148
+ trailer
149
+ <<
150
+ /Size 13
151
+ /Root 3 0 R
152
+ /Info 1 0 R
153
+ /ID [<47149510433dd4882f05f8c124223734><47149510433dd4882f05f8c124223734>]
154
+ >>
155
+ startxref
156
+ 2726
157
+ %%EOF
@@ -10,3 +10,11 @@ Factory.define :public_picture, :parent => :picture do |p|
10
10
  p._contact_id { Factory(:self_contact).id }
11
11
  p._relation_ids { |q| Array(Contact.find(q._contact_id).sender.relation_public.id) }
12
12
  end
13
+
14
+ Factory.define :private_picture, :parent => :picture do |p|
15
+ p.file { Rack::Test::UploadedFile.new(File.join(File.dirname(__FILE__), 'files', 'privado.png'),
16
+ 'image/png') }
17
+ p._contact_id { Factory(:self_contact).id }
18
+ p._relation_ids { |q| Array(Contact.find(q._contact_id).sender.relation_customs.sort.first.id) }
19
+ end
20
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-documents
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - "V\xC3\xADctor S\xC3\xA1nchez Belmar"
@@ -16,28 +16,29 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-08-04 00:00:00 Z
19
+ date: 2011-09-06 00:00:00 +02:00
20
+ default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
- name: social_stream-base
23
23
  prerelease: false
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
24
+ type: :runtime
25
+ requirement: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
- - - ~>
28
+ - - ">="
28
29
  - !ruby/object:Gem::Version
29
- hash: 23
30
+ hash: 63
30
31
  segments:
31
32
  - 0
32
- - 7
33
- - 10
34
- version: 0.7.10
35
- type: :runtime
36
- requirement: *id001
33
+ - 8
34
+ - 0
35
+ version: 0.8.0
36
+ name: social_stream-base
37
+ version_requirements: *id001
37
38
  - !ruby/object:Gem::Dependency
38
- name: paperclip-ffmpeg
39
39
  prerelease: false
40
- version_requirements: &id002 !ruby/object:Gem::Requirement
40
+ type: :runtime
41
+ requirement: &id002 !ruby/object:Gem::Requirement
41
42
  none: false
42
43
  requirements:
43
44
  - - ~>
@@ -48,12 +49,12 @@ dependencies:
48
49
  - 7
49
50
  - 0
50
51
  version: 0.7.0
51
- type: :runtime
52
- requirement: *id002
52
+ name: paperclip-ffmpeg
53
+ version_requirements: *id002
53
54
  - !ruby/object:Gem::Dependency
54
- name: paperclip
55
55
  prerelease: false
56
- version_requirements: &id003 !ruby/object:Gem::Requirement
56
+ type: :runtime
57
+ requirement: &id003 !ruby/object:Gem::Requirement
57
58
  none: false
58
59
  requirements:
59
60
  - - "="
@@ -64,12 +65,12 @@ dependencies:
64
65
  - 3
65
66
  - 11
66
67
  version: 2.3.11
67
- type: :runtime
68
- requirement: *id003
68
+ name: paperclip
69
+ version_requirements: *id003
69
70
  - !ruby/object:Gem::Dependency
70
- name: sqlite3-ruby
71
71
  prerelease: false
72
- version_requirements: &id004 !ruby/object:Gem::Requirement
72
+ type: :development
73
+ requirement: &id004 !ruby/object:Gem::Requirement
73
74
  none: false
74
75
  requirements:
75
76
  - - ">="
@@ -78,12 +79,12 @@ dependencies:
78
79
  segments:
79
80
  - 0
80
81
  version: "0"
81
- type: :development
82
- requirement: *id004
82
+ name: sqlite3-ruby
83
+ version_requirements: *id004
83
84
  - !ruby/object:Gem::Dependency
84
- name: ruby-debug
85
85
  prerelease: false
86
- version_requirements: &id005 !ruby/object:Gem::Requirement
86
+ type: :development
87
+ requirement: &id005 !ruby/object:Gem::Requirement
87
88
  none: false
88
89
  requirements:
89
90
  - - ~>
@@ -94,12 +95,12 @@ dependencies:
94
95
  - 10
95
96
  - 3
96
97
  version: 0.10.3
97
- type: :development
98
- requirement: *id005
98
+ name: ruby-debug
99
+ version_requirements: *id005
99
100
  - !ruby/object:Gem::Dependency
100
- name: rspec-rails
101
101
  prerelease: false
102
- version_requirements: &id006 !ruby/object:Gem::Requirement
102
+ type: :development
103
+ requirement: &id006 !ruby/object:Gem::Requirement
103
104
  none: false
104
105
  requirements:
105
106
  - - ~>
@@ -110,12 +111,12 @@ dependencies:
110
111
  - 6
111
112
  - 0
112
113
  version: 2.6.0
113
- type: :development
114
- requirement: *id006
114
+ name: rspec-rails
115
+ version_requirements: *id006
115
116
  - !ruby/object:Gem::Dependency
116
- name: factory_girl
117
117
  prerelease: false
118
- version_requirements: &id007 !ruby/object:Gem::Requirement
118
+ type: :development
119
+ requirement: &id007 !ruby/object:Gem::Requirement
119
120
  none: false
120
121
  requirements:
121
122
  - - ~>
@@ -126,12 +127,12 @@ dependencies:
126
127
  - 3
127
128
  - 2
128
129
  version: 1.3.2
129
- type: :development
130
- requirement: *id007
130
+ name: factory_girl
131
+ version_requirements: *id007
131
132
  - !ruby/object:Gem::Dependency
132
- name: forgery
133
133
  prerelease: false
134
- version_requirements: &id008 !ruby/object:Gem::Requirement
134
+ type: :development
135
+ requirement: &id008 !ruby/object:Gem::Requirement
135
136
  none: false
136
137
  requirements:
137
138
  - - ~>
@@ -142,12 +143,12 @@ dependencies:
142
143
  - 3
143
144
  - 6
144
145
  version: 0.3.6
145
- type: :development
146
- requirement: *id008
146
+ name: forgery
147
+ version_requirements: *id008
147
148
  - !ruby/object:Gem::Dependency
148
- name: capybara
149
149
  prerelease: false
150
- version_requirements: &id009 !ruby/object:Gem::Requirement
150
+ type: :development
151
+ requirement: &id009 !ruby/object:Gem::Requirement
151
152
  none: false
152
153
  requirements:
153
154
  - - ~>
@@ -158,8 +159,8 @@ dependencies:
158
159
  - 3
159
160
  - 9
160
161
  version: 0.3.9
161
- type: :development
162
- requirement: *id009
162
+ name: capybara
163
+ version_requirements: *id009
163
164
  description: |-
164
165
  Social Stream is a Ruby on Rails engine providing your application with social networking features and activity streams.
165
166
 
@@ -265,6 +266,7 @@ files:
265
266
  - lib/social_stream/documents/engine.rb
266
267
  - lib/social_stream/migrations/documents.rb
267
268
  - social_stream-documents.gemspec
269
+ - spec/controllers/documents_controller_spec.rb
268
270
  - spec/controllers/pictures_controller_spec.rb
269
271
  - spec/dummy/.gitignore
270
272
  - spec/dummy/Rakefile
@@ -302,7 +304,10 @@ files:
302
304
  - spec/dummy/public/javascripts/rails.js
303
305
  - spec/dummy/public/stylesheets/.gitkeep
304
306
  - spec/dummy/script/rails
307
+ - spec/factories/document.rb
308
+ - spec/factories/files/privado.png
305
309
  - spec/factories/files/rails.png
310
+ - spec/factories/files/small.pdf
306
311
  - spec/factories/picture.rb
307
312
  - spec/integration/navigation_spec.rb
308
313
  - spec/models/video_spec.rb
@@ -318,6 +323,7 @@ files:
318
323
  - vendor/assets/stylesheets/jplayer.blue.monday.video.play.hover.png
319
324
  - vendor/assets/stylesheets/jplayer.blue.monday.video.play.png
320
325
  - vendor/assets/stylesheets/pbar-ani.gif
326
+ has_rdoc: true
321
327
  homepage: http://github.com/ging/social_stream-documents
322
328
  licenses: []
323
329
 
@@ -347,7 +353,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
347
353
  requirements: []
348
354
 
349
355
  rubyforge_project:
350
- rubygems_version: 1.8.6
356
+ rubygems_version: 1.6.2
351
357
  signing_key:
352
358
  specification_version: 3
353
359
  summary: File capabilities for Social Stream, the core for building social network websites