social_stream-linkser 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. data/.gitignore +14 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +5 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.rdoc +6 -0
  6. data/Rakefile +26 -0
  7. data/app/assets/javascripts/linkser.js.erb +0 -0
  8. data/app/assets/javascripts/social_stream-linkser.js +1 -0
  9. data/app/assets/stylesheets/linkser.css.scss +41 -0
  10. data/app/assets/stylesheets/social_stream-linkser.css +3 -0
  11. data/app/controllers/links_controller.rb +3 -0
  12. data/app/controllers/linkser_controller.rb +22 -0
  13. data/app/models/link.rb +34 -0
  14. data/app/views/links/_link.html.erb +24 -0
  15. data/app/views/links/_link_preview.html.erb +25 -0
  16. data/app/views/links/_link_with_details.html.erb +4 -0
  17. data/app/views/links/create.js.erb +15 -0
  18. data/app/views/links/destroy.js.erb +1 -0
  19. data/app/views/links/show.html.erb +10 -0
  20. data/app/views/posts/_new_activity_fields.erb +53 -0
  21. data/config/locales/en.yml +14 -0
  22. data/config/locales/es.yml +14 -0
  23. data/config/routes.rb +3 -0
  24. data/db/migrate/20111129100618_create_social_stream_linkser.rb +21 -0
  25. data/lib/generators/social_stream/linkser/install_generator.rb +24 -0
  26. data/lib/social_stream-linkser.rb +16 -0
  27. data/lib/social_stream/linkser/engine.rb +7 -0
  28. data/lib/social_stream/linkser/version.rb +5 -0
  29. data/lib/social_stream/migrations/linkser.rb +9 -0
  30. data/social_stream-linkser.gemspec +26 -0
  31. data/spec/dummy/Rakefile +7 -0
  32. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  33. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  34. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  35. data/spec/dummy/config.ru +4 -0
  36. data/spec/dummy/config/application.rb +45 -0
  37. data/spec/dummy/config/boot.rb +10 -0
  38. data/spec/dummy/config/database.yml +22 -0
  39. data/spec/dummy/config/environment.rb +5 -0
  40. data/spec/dummy/config/environments/development.rb +25 -0
  41. data/spec/dummy/config/environments/production.rb +49 -0
  42. data/spec/dummy/config/environments/test.rb +37 -0
  43. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  44. data/spec/dummy/config/initializers/devise.rb +176 -0
  45. data/spec/dummy/config/initializers/inflections.rb +10 -0
  46. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  47. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  48. data/spec/dummy/config/initializers/session_store.rb +8 -0
  49. data/spec/dummy/config/locales/en.yml +5 -0
  50. data/spec/dummy/config/navigation.rb +0 -0
  51. data/spec/dummy/config/relations.yml +39 -0
  52. data/spec/dummy/config/routes.rb +60 -0
  53. data/spec/dummy/db/.gitkeep +0 -0
  54. data/spec/dummy/documents/documents/000/000/001/original.pdf +157 -0
  55. data/spec/dummy/documents/documents/000/000/002/original.pdf +157 -0
  56. data/spec/dummy/documents/documents/000/000/003/original.pdf +157 -0
  57. data/spec/dummy/documents/documents/000/000/004/original.pdf +157 -0
  58. data/spec/dummy/documents/documents/000/000/005/original.pdf +157 -0
  59. data/spec/dummy/documents/documents/000/000/006/original.pdf +157 -0
  60. data/spec/dummy/documents/documents/000/000/007/original.pdf +157 -0
  61. data/spec/dummy/documents/documents/000/000/008/original.pdf +157 -0
  62. data/spec/dummy/documents/documents/000/000/009/original.pdf +157 -0
  63. data/spec/dummy/documents/documents/000/000/010/original.pdf +157 -0
  64. data/spec/dummy/documents/pictures/000/000/011/original.png +0 -0
  65. data/spec/dummy/documents/pictures/000/000/011/thumb.png +0 -0
  66. data/spec/dummy/documents/pictures/000/000/011/thumb0.png +0 -0
  67. data/spec/dummy/documents/pictures/000/000/012/original.png +0 -0
  68. data/spec/dummy/documents/pictures/000/000/012/thumb.png +0 -0
  69. data/spec/dummy/documents/pictures/000/000/012/thumb0.png +0 -0
  70. data/spec/dummy/documents/pictures/000/000/013/original.png +0 -0
  71. data/spec/dummy/documents/pictures/000/000/013/thumb.png +0 -0
  72. data/spec/dummy/documents/pictures/000/000/013/thumb0.png +0 -0
  73. data/spec/dummy/documents/pictures/000/000/014/original.png +0 -0
  74. data/spec/dummy/documents/pictures/000/000/014/thumb.png +0 -0
  75. data/spec/dummy/documents/pictures/000/000/014/thumb0.png +0 -0
  76. data/spec/dummy/documents/pictures/000/000/015/original.png +0 -0
  77. data/spec/dummy/documents/pictures/000/000/015/thumb.png +0 -0
  78. data/spec/dummy/documents/pictures/000/000/015/thumb0.png +0 -0
  79. data/spec/dummy/documents/pictures/000/000/016/original.png +0 -0
  80. data/spec/dummy/documents/pictures/000/000/016/thumb.png +0 -0
  81. data/spec/dummy/documents/pictures/000/000/016/thumb0.png +0 -0
  82. data/spec/dummy/documents/pictures/000/000/017/original.png +0 -0
  83. data/spec/dummy/documents/pictures/000/000/017/thumb.png +0 -0
  84. data/spec/dummy/documents/pictures/000/000/017/thumb0.png +0 -0
  85. data/spec/dummy/documents/pictures/000/000/018/original.png +0 -0
  86. data/spec/dummy/documents/pictures/000/000/018/thumb.png +0 -0
  87. data/spec/dummy/documents/pictures/000/000/018/thumb0.png +0 -0
  88. data/spec/dummy/documents/pictures/000/000/019/original.png +0 -0
  89. data/spec/dummy/documents/pictures/000/000/019/thumb.png +0 -0
  90. data/spec/dummy/documents/pictures/000/000/019/thumb0.png +0 -0
  91. data/spec/dummy/documents/pictures/000/000/020/original.png +0 -0
  92. data/spec/dummy/documents/pictures/000/000/020/thumb.png +0 -0
  93. data/spec/dummy/documents/pictures/000/000/020/thumb0.png +0 -0
  94. data/spec/dummy/public/404.html +26 -0
  95. data/spec/dummy/public/422.html +26 -0
  96. data/spec/dummy/public/500.html +26 -0
  97. data/spec/dummy/public/favicon.ico +0 -0
  98. data/spec/dummy/public/javascripts/application.js +2 -0
  99. data/spec/dummy/public/javascripts/controls.js +965 -0
  100. data/spec/dummy/public/javascripts/dragdrop.js +974 -0
  101. data/spec/dummy/public/javascripts/effects.js +1123 -0
  102. data/spec/dummy/public/javascripts/prototype.js +6001 -0
  103. data/spec/dummy/public/javascripts/rails.js +191 -0
  104. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  105. data/spec/dummy/script/rails +6 -0
  106. data/spec/integration/navigation_spec.rb +9 -0
  107. data/spec/socialstream_linkser_spec.rb +7 -0
  108. data/spec/spec_helper.rb +48 -0
  109. data/spec/support/cancan.rb +1 -0
  110. data/spec/support/db.rb +8 -0
  111. data/spec/support/devise.rb +4 -0
  112. data/spec/support/mock.rb +4 -0
  113. data/vendor/assets/javascripts/jquery.jplayer.js +78 -0
  114. data/vendor/assets/stylesheets/jplayer.blue.monday.css +448 -0
  115. data/vendor/assets/stylesheets/jplayer.blue.monday.jpg +0 -0
  116. data/vendor/assets/stylesheets/jplayer.blue.monday.video.play.hover.png +0 -0
  117. data/vendor/assets/stylesheets/jplayer.blue.monday.video.play.png +0 -0
  118. data/vendor/assets/stylesheets/jquery.lightbox.css +101 -0
  119. data/vendor/assets/stylesheets/pbar-ani.gif +0 -0
  120. metadata +311 -0
@@ -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
@@ -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
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>