social_stream-linkser 1.1.2 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/social_stream/link.js +30 -0
  3. data/app/assets/javascripts/social_stream/linkser.timeline.js +6 -0
  4. data/app/assets/javascripts/social_stream/linkser.wall.js +91 -0
  5. data/app/assets/javascripts/social_stream-linkser.js +1 -1
  6. data/app/assets/stylesheets/social_stream/linkser/explore/search/layout/_search-result.css.sass +13 -0
  7. data/app/assets/stylesheets/social_stream/linkser/explore/timeline/layout/_timeline-result.css.sass +15 -0
  8. data/app/assets/stylesheets/social_stream/linkser/repository/_repository.css.sass +15 -0
  9. data/app/assets/stylesheets/social_stream/linkser/repository/layout/_repository.css.sass +27 -0
  10. data/app/assets/stylesheets/social_stream/linkser/timeline/_timeline-link.css.sass +26 -0
  11. data/app/assets/stylesheets/social_stream/linkser/timeline/layout/_timeline-link.css.sass +44 -0
  12. data/app/assets/stylesheets/social_stream-linkser.css.sass +20 -0
  13. data/app/controllers/links_controller.rb +1 -1
  14. data/app/models/link.rb +14 -7
  15. data/app/views/links/_link.html.erb +14 -35
  16. data/app/views/links/_link_preview.html.erb +1 -1
  17. data/app/views/links/_new_activity.html.erb +6 -0
  18. data/app/views/links/_quick_search_result.html.erb +7 -0
  19. data/app/views/links/_search_result.html.erb +1 -0
  20. data/app/views/links/_timeline.html.erb +26 -0
  21. data/app/views/links/create.js.erb +3 -10
  22. data/app/views/links/show.html.erb +5 -3
  23. data/config/locales/en.yml +3 -1
  24. data/config/locales/es.yml +4 -2
  25. data/lib/generators/social_stream/linkser/install_generator.rb +2 -3
  26. data/lib/social_stream/linkser/version.rb +1 -1
  27. data/lib/social_stream-linkser.rb +3 -4
  28. data/lib/tasks/db/populate.rake +20 -0
  29. data/social_stream-linkser.gemspec +1 -1
  30. metadata +21 -89
  31. data/app/assets/javascripts/linkser.js.erb +0 -82
  32. data/app/assets/stylesheets/linkser.css.scss +0 -69
  33. data/app/assets/stylesheets/social_stream-linkser.css +0 -3
  34. data/config/locales/de.yml +0 -14
  35. data/config/locales/fr.yml +0 -14
  36. data/config/locales/hu.yml +0 -14
  37. data/config/locales/nl.yml +0 -14
  38. data/lib/tasks/db/populate_links.rake +0 -16
  39. data/spec/dummy/Rakefile +0 -7
  40. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  41. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  42. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  43. data/spec/dummy/config/application.rb +0 -45
  44. data/spec/dummy/config/boot.rb +0 -10
  45. data/spec/dummy/config/database.yml +0 -22
  46. data/spec/dummy/config/environment.rb +0 -5
  47. data/spec/dummy/config/environments/development.rb +0 -25
  48. data/spec/dummy/config/environments/production.rb +0 -49
  49. data/spec/dummy/config/environments/test.rb +0 -37
  50. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  51. data/spec/dummy/config/initializers/devise.rb +0 -172
  52. data/spec/dummy/config/initializers/inflections.rb +0 -10
  53. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  54. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  55. data/spec/dummy/config/initializers/session_store.rb +0 -8
  56. data/spec/dummy/config/locales/en.yml +0 -5
  57. data/spec/dummy/config/navigation.rb +0 -0
  58. data/spec/dummy/config/relations.yml +0 -39
  59. data/spec/dummy/config/routes.rb +0 -60
  60. data/spec/dummy/config.ru +0 -4
  61. data/spec/dummy/db/.gitkeep +0 -0
  62. data/spec/dummy/documents/documents/000/000/001/original.pdf +0 -157
  63. data/spec/dummy/documents/documents/000/000/002/original.pdf +0 -157
  64. data/spec/dummy/documents/documents/000/000/003/original.pdf +0 -157
  65. data/spec/dummy/documents/documents/000/000/004/original.pdf +0 -157
  66. data/spec/dummy/documents/documents/000/000/005/original.pdf +0 -157
  67. data/spec/dummy/documents/documents/000/000/006/original.pdf +0 -157
  68. data/spec/dummy/documents/documents/000/000/007/original.pdf +0 -157
  69. data/spec/dummy/documents/documents/000/000/008/original.pdf +0 -157
  70. data/spec/dummy/documents/documents/000/000/009/original.pdf +0 -157
  71. data/spec/dummy/documents/documents/000/000/010/original.pdf +0 -157
  72. data/spec/dummy/documents/pictures/000/000/011/original.png +0 -0
  73. data/spec/dummy/documents/pictures/000/000/011/thumb.png +0 -0
  74. data/spec/dummy/documents/pictures/000/000/011/thumb0.png +0 -0
  75. data/spec/dummy/documents/pictures/000/000/012/original.png +0 -0
  76. data/spec/dummy/documents/pictures/000/000/012/thumb.png +0 -0
  77. data/spec/dummy/documents/pictures/000/000/012/thumb0.png +0 -0
  78. data/spec/dummy/documents/pictures/000/000/013/original.png +0 -0
  79. data/spec/dummy/documents/pictures/000/000/013/thumb.png +0 -0
  80. data/spec/dummy/documents/pictures/000/000/013/thumb0.png +0 -0
  81. data/spec/dummy/documents/pictures/000/000/014/original.png +0 -0
  82. data/spec/dummy/documents/pictures/000/000/014/thumb.png +0 -0
  83. data/spec/dummy/documents/pictures/000/000/014/thumb0.png +0 -0
  84. data/spec/dummy/documents/pictures/000/000/015/original.png +0 -0
  85. data/spec/dummy/documents/pictures/000/000/015/thumb.png +0 -0
  86. data/spec/dummy/documents/pictures/000/000/015/thumb0.png +0 -0
  87. data/spec/dummy/documents/pictures/000/000/016/original.png +0 -0
  88. data/spec/dummy/documents/pictures/000/000/016/thumb.png +0 -0
  89. data/spec/dummy/documents/pictures/000/000/016/thumb0.png +0 -0
  90. data/spec/dummy/documents/pictures/000/000/017/original.png +0 -0
  91. data/spec/dummy/documents/pictures/000/000/017/thumb.png +0 -0
  92. data/spec/dummy/documents/pictures/000/000/017/thumb0.png +0 -0
  93. data/spec/dummy/documents/pictures/000/000/018/original.png +0 -0
  94. data/spec/dummy/documents/pictures/000/000/018/thumb.png +0 -0
  95. data/spec/dummy/documents/pictures/000/000/018/thumb0.png +0 -0
  96. data/spec/dummy/documents/pictures/000/000/019/original.png +0 -0
  97. data/spec/dummy/documents/pictures/000/000/019/thumb.png +0 -0
  98. data/spec/dummy/documents/pictures/000/000/019/thumb0.png +0 -0
  99. data/spec/dummy/documents/pictures/000/000/020/original.png +0 -0
  100. data/spec/dummy/documents/pictures/000/000/020/thumb.png +0 -0
  101. data/spec/dummy/documents/pictures/000/000/020/thumb0.png +0 -0
  102. data/spec/dummy/public/404.html +0 -26
  103. data/spec/dummy/public/422.html +0 -26
  104. data/spec/dummy/public/500.html +0 -26
  105. data/spec/dummy/public/favicon.ico +0 -0
  106. data/spec/dummy/public/javascripts/application.js +0 -2
  107. data/spec/dummy/public/javascripts/controls.js +0 -965
  108. data/spec/dummy/public/javascripts/dragdrop.js +0 -974
  109. data/spec/dummy/public/javascripts/effects.js +0 -1123
  110. data/spec/dummy/public/javascripts/prototype.js +0 -6001
  111. data/spec/dummy/public/javascripts/rails.js +0 -191
  112. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  113. data/spec/dummy/script/rails +0 -6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-linkser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 2.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Casanova Cuesta
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-22 00:00:00.000000000 Z
12
+ date: 2013-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: social_stream-base
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: 1.1.11
20
+ version: 2.0.0.beta1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: 1.1.11
27
+ version: 2.0.0.beta1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: linkser
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -122,25 +122,32 @@ files:
122
122
  - MIT-LICENSE
123
123
  - README.rdoc
124
124
  - Rakefile
125
- - app/assets/javascripts/linkser.js.erb
126
125
  - app/assets/javascripts/social_stream-linkser.js
127
- - app/assets/stylesheets/linkser.css.scss
128
- - app/assets/stylesheets/social_stream-linkser.css
126
+ - app/assets/javascripts/social_stream/link.js
127
+ - app/assets/javascripts/social_stream/linkser.timeline.js
128
+ - app/assets/javascripts/social_stream/linkser.wall.js
129
+ - app/assets/stylesheets/social_stream-linkser.css.sass
130
+ - app/assets/stylesheets/social_stream/linkser/explore/search/layout/_search-result.css.sass
131
+ - app/assets/stylesheets/social_stream/linkser/explore/timeline/layout/_timeline-result.css.sass
132
+ - app/assets/stylesheets/social_stream/linkser/repository/_repository.css.sass
133
+ - app/assets/stylesheets/social_stream/linkser/repository/layout/_repository.css.sass
134
+ - app/assets/stylesheets/social_stream/linkser/timeline/_timeline-link.css.sass
135
+ - app/assets/stylesheets/social_stream/linkser/timeline/layout/_timeline-link.css.sass
129
136
  - app/controllers/links_controller.rb
130
137
  - app/controllers/linkser_controller.rb
131
138
  - app/models/link.rb
132
139
  - app/views/links/_error.html.erb
133
140
  - app/views/links/_link.html.erb
134
141
  - app/views/links/_link_preview.html.erb
142
+ - app/views/links/_new_activity.html.erb
143
+ - app/views/links/_quick_search_result.html.erb
144
+ - app/views/links/_search_result.html.erb
145
+ - app/views/links/_timeline.html.erb
135
146
  - app/views/links/create.js.erb
136
147
  - app/views/links/destroy.js.erb
137
148
  - app/views/links/show.html.erb
138
- - config/locales/de.yml
139
149
  - config/locales/en.yml
140
150
  - config/locales/es.yml
141
- - config/locales/fr.yml
142
- - config/locales/hu.yml
143
- - config/locales/nl.yml
144
151
  - config/routes.rb
145
152
  - db/migrate/20120208143739_create_social_stream_linkser.rb
146
153
  - lib/generators/social_stream/linkser/install_generator.rb
@@ -148,83 +155,8 @@ files:
148
155
  - lib/social_stream/linkser/engine.rb
149
156
  - lib/social_stream/linkser/version.rb
150
157
  - lib/social_stream/migrations/linkser.rb
151
- - lib/tasks/db/populate_links.rake
158
+ - lib/tasks/db/populate.rake
152
159
  - social_stream-linkser.gemspec
153
- - spec/dummy/Rakefile
154
- - spec/dummy/app/controllers/application_controller.rb
155
- - spec/dummy/app/helpers/application_helper.rb
156
- - spec/dummy/app/views/layouts/application.html.erb
157
- - spec/dummy/config.ru
158
- - spec/dummy/config/application.rb
159
- - spec/dummy/config/boot.rb
160
- - spec/dummy/config/database.yml
161
- - spec/dummy/config/environment.rb
162
- - spec/dummy/config/environments/development.rb
163
- - spec/dummy/config/environments/production.rb
164
- - spec/dummy/config/environments/test.rb
165
- - spec/dummy/config/initializers/backtrace_silencers.rb
166
- - spec/dummy/config/initializers/devise.rb
167
- - spec/dummy/config/initializers/inflections.rb
168
- - spec/dummy/config/initializers/mime_types.rb
169
- - spec/dummy/config/initializers/secret_token.rb
170
- - spec/dummy/config/initializers/session_store.rb
171
- - spec/dummy/config/locales/en.yml
172
- - spec/dummy/config/navigation.rb
173
- - spec/dummy/config/relations.yml
174
- - spec/dummy/config/routes.rb
175
- - spec/dummy/db/.gitkeep
176
- - spec/dummy/documents/documents/000/000/001/original.pdf
177
- - spec/dummy/documents/documents/000/000/002/original.pdf
178
- - spec/dummy/documents/documents/000/000/003/original.pdf
179
- - spec/dummy/documents/documents/000/000/004/original.pdf
180
- - spec/dummy/documents/documents/000/000/005/original.pdf
181
- - spec/dummy/documents/documents/000/000/006/original.pdf
182
- - spec/dummy/documents/documents/000/000/007/original.pdf
183
- - spec/dummy/documents/documents/000/000/008/original.pdf
184
- - spec/dummy/documents/documents/000/000/009/original.pdf
185
- - spec/dummy/documents/documents/000/000/010/original.pdf
186
- - spec/dummy/documents/pictures/000/000/011/original.png
187
- - spec/dummy/documents/pictures/000/000/011/thumb.png
188
- - spec/dummy/documents/pictures/000/000/011/thumb0.png
189
- - spec/dummy/documents/pictures/000/000/012/original.png
190
- - spec/dummy/documents/pictures/000/000/012/thumb.png
191
- - spec/dummy/documents/pictures/000/000/012/thumb0.png
192
- - spec/dummy/documents/pictures/000/000/013/original.png
193
- - spec/dummy/documents/pictures/000/000/013/thumb.png
194
- - spec/dummy/documents/pictures/000/000/013/thumb0.png
195
- - spec/dummy/documents/pictures/000/000/014/original.png
196
- - spec/dummy/documents/pictures/000/000/014/thumb.png
197
- - spec/dummy/documents/pictures/000/000/014/thumb0.png
198
- - spec/dummy/documents/pictures/000/000/015/original.png
199
- - spec/dummy/documents/pictures/000/000/015/thumb.png
200
- - spec/dummy/documents/pictures/000/000/015/thumb0.png
201
- - spec/dummy/documents/pictures/000/000/016/original.png
202
- - spec/dummy/documents/pictures/000/000/016/thumb.png
203
- - spec/dummy/documents/pictures/000/000/016/thumb0.png
204
- - spec/dummy/documents/pictures/000/000/017/original.png
205
- - spec/dummy/documents/pictures/000/000/017/thumb.png
206
- - spec/dummy/documents/pictures/000/000/017/thumb0.png
207
- - spec/dummy/documents/pictures/000/000/018/original.png
208
- - spec/dummy/documents/pictures/000/000/018/thumb.png
209
- - spec/dummy/documents/pictures/000/000/018/thumb0.png
210
- - spec/dummy/documents/pictures/000/000/019/original.png
211
- - spec/dummy/documents/pictures/000/000/019/thumb.png
212
- - spec/dummy/documents/pictures/000/000/019/thumb0.png
213
- - spec/dummy/documents/pictures/000/000/020/original.png
214
- - spec/dummy/documents/pictures/000/000/020/thumb.png
215
- - spec/dummy/documents/pictures/000/000/020/thumb0.png
216
- - spec/dummy/public/404.html
217
- - spec/dummy/public/422.html
218
- - spec/dummy/public/500.html
219
- - spec/dummy/public/favicon.ico
220
- - spec/dummy/public/javascripts/application.js
221
- - spec/dummy/public/javascripts/controls.js
222
- - spec/dummy/public/javascripts/dragdrop.js
223
- - spec/dummy/public/javascripts/effects.js
224
- - spec/dummy/public/javascripts/prototype.js
225
- - spec/dummy/public/javascripts/rails.js
226
- - spec/dummy/public/stylesheets/.gitkeep
227
- - spec/dummy/script/rails
228
160
  - spec/integration/navigation_spec.rb
229
161
  - spec/socialstream_linkser_spec.rb
230
162
  - spec/spec_helper.rb
@@ -253,9 +185,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
185
  version: '0'
254
186
  required_rubygems_version: !ruby/object:Gem::Requirement
255
187
  requirements:
256
- - - '>='
188
+ - - '>'
257
189
  - !ruby/object:Gem::Version
258
- version: '0'
190
+ version: 1.3.1
259
191
  requirements: []
260
192
  rubyforge_project:
261
193
  rubygems_version: 2.0.0
@@ -1,82 +0,0 @@
1
- //= require social_stream.wall
2
-
3
- SocialStream.Linkser.Wall = (function(SS, $) {
4
- var regexp = /^(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&;:\/~+#-]*[\w@?^=%&;\/~+#-])?$/
5
-
6
- var urlDetect = function() {
7
- this.currentValue = $("#input_activities").val();
8
-
9
- if(this.lastValue == null)
10
- this.lastValue = "";
11
-
12
- if(regexp.test($("#input_activities").val())) {
13
- $("#link_url").val($("#input_activities").val());
14
- $("#link_loaded").val(false);
15
- $("#new_post").attr("action", "/links");
16
-
17
- if(this.currentValue != this.lastValue) {
18
- $("#link_preview").html($('<img>').attr('src', '<%= asset_path('loading.gif') %>').addClass('loading'));
19
-
20
- this.lastValue = this.currentValue;
21
- var url = this.currentValue;
22
- var urlDetect = this;
23
-
24
- $.ajax({
25
- type : "GET",
26
- url : "/linkser_parse?url=" + url,
27
- dataType: 'html',
28
- success : function(html) {
29
- if($("#input_activities").val() == url) {//Only show if input value is still the same
30
- $("#link_preview").html(html);
31
- $("#link_loaded").val(true);
32
- }
33
- },
34
- error : function(xhr, ajaxOptions, thrownError) {
35
- if($("#input_activities").val() == url) {//Only show if input value is still the same
36
- $("#link_preview").html($('<div>').addClass('loading').html(I18n.t('link.errors.loading') + " " + url));
37
- }
38
- }
39
- });
40
- }
41
-
42
- $("#link_preview").show();
43
- } else {
44
- $("#new_post").attr("action", "/posts");
45
- $("#link_preview").hide();
46
- $("#link_preview").html("");
47
- $("#link_url").val("");
48
- }
49
- }
50
-
51
- var init = function(){
52
- $.preloadImages("<%= asset_path('loading.gif') %>");
53
-
54
- if($("#new_post").length) {
55
- $("#input_activities").change(urlDetect).keyup(urlDetect);
56
-
57
- $("#new_post").append($('<input>').attr('type', 'hidden').attr('name', 'link[owner_id]').attr('id', 'link_owner_id').val($("#post_owner_id").val()));
58
- $("#new_post").append($('<input>').attr('type', 'hidden').attr('name', 'link[url]').attr('id', 'link_url'));
59
- $("#new_post").append($('<input>').attr('type', 'hidden').attr('name', 'link[loaded]').attr('id', 'link_loaded').val(false));
60
- $("#new_post").append($('<div>').attr('id', 'link_preview').css('display', 'none'));
61
- }
62
- }
63
-
64
- var openCallback = function(id,url,w,h){
65
- var height='353';
66
-
67
- if(w>0 && h>0) {
68
- height=470*h/w;
69
- }
70
-
71
- $("#" + id).html($('<iframe>').attr('src',url).attr('width','470').attr('height',height));
72
- }
73
-
74
- SocialStream.Wall.addInitCallback(init);
75
-
76
- return {
77
- openCallback: openCallback
78
- }
79
-
80
- })(SocialStream, jQuery);
81
-
82
-
@@ -1,69 +0,0 @@
1
- @import "colors";
2
-
3
- #link_preview {
4
- width: 510px;
5
- height: 120px;
6
- border: 1px solid $auxiliar-color;
7
- margin: 5px auto;
8
- }
9
-
10
- #link_preview img.loading{
11
- margin: auto;
12
- margin-top: 40px;
13
- }
14
- #link_preview div.loading{
15
- margin: auto;
16
- margin-top: 50px;
17
- }
18
- #link_preview img.link_error{
19
- margin: auto;
20
- margin-top: 40px;
21
- }
22
- #link_preview div.link_error{
23
- margin: auto;
24
- margin-top: 5px;
25
- }
26
- .link {
27
- position: relative;
28
- padding: 10px;
29
- }
30
- .link .thumbnail, .link .thumbnail img{
31
- position: relative;
32
- float: left;
33
- max-height: 97px;
34
- max-width: 130px;
35
- margin-right:10px;
36
- }
37
- .link .thumbnail img.play_button{
38
- position: absolute;
39
- bottom: 2px;
40
- left: 2px;
41
- opacity:0.6;
42
- filter:alpha(opacity=60); /* For IE8 and earlier */
43
- }
44
- .link .thumbnail img.play_button:hover{
45
- opacity:0.8;
46
- filter:alpha(opacity=80); /* For IE8 and earlier */
47
- }
48
- .link .info{
49
- float: left;
50
- width: 350px;
51
- text-align: left;
52
- }
53
- .activity_objects .link .info{
54
- width: 310px;
55
- }
56
- .link .info .title{
57
- font-weight: bold;
58
- margin-bottom: 3px;
59
- }
60
- .link .info .url{
61
- text-decoration: underline;
62
- margin-bottom: 5px;
63
- }
64
- .link .info .description textarea {
65
- height: 60px;
66
- }
67
- .link iframe{
68
- border: 0;
69
- }
@@ -1,3 +0,0 @@
1
- /*
2
- *= require_tree .
3
- */
@@ -1,14 +0,0 @@
1
- de:
2
- linkser:
3
- title: "Linkser"
4
- link:
5
- confirm_delete: "Link löschen?"
6
- errors:
7
- loading: "Fehler beim Laden"
8
- only_webs: "Nur Webseiten werden unterstützt"
9
- form:
10
- title: "Link"
11
- input: "Gib die Web Addresse ein"
12
- name: "Link"
13
- one: "Ein Link"
14
- title: "Links"
@@ -1,14 +0,0 @@
1
- fr:
2
- linkser:
3
- title: "Linkser"
4
- link:
5
- confirm_delete: "Supprimer le lien ?"
6
- errors:
7
- loading: "Erreur de chargement"
8
- only_webs: "Seules les pages Web sont prises en charge"
9
- form:
10
- title: "Lien"
11
- input: "Saisir l'adresse Web"
12
- name: "lien"
13
- one: "un lien"
14
- title: "Liens"
@@ -1,14 +0,0 @@
1
- hu:
2
- linkser:
3
- title: "Hivatkozás megosztása"
4
- link:
5
- confirm_delete: "Törlöd a linket?"
6
- errors:
7
- loading: "Töltési hiba"
8
- only_webs: "Csak a weboldalak támogatottak"
9
- form:
10
- title: "Link"
11
- input: "Írd be a web címet"
12
- name: "link"
13
- one: "egy link"
14
- title: "Linkek"
@@ -1,14 +0,0 @@
1
- nl:
2
- linkser:
3
- title: "Linkser"
4
- link:
5
- confirm_delete: "Link verwijderen?"
6
- errors:
7
- loading: "Fout bij het laden"
8
- only_webs: "Alleen webpagina’s worden ondersteund"
9
- form:
10
- title: "Link"
11
- input: "Het webadres schrijven"
12
- name: "link"
13
- one: "een link"
14
- title: "Links"
@@ -1,16 +0,0 @@
1
- namespace :db do
2
- namespace :populate do
3
-
4
- desc "Create populate data with documents"
5
- task :create => :create_links
6
-
7
- desc "Add links to populate data"
8
- task :create_links => :read_environment do
9
- SocialStream::Population::ActivityObject.new Link do |l|
10
- l.title = Forgery::LoremIpsum.words(1+rand(4),:random => true)
11
- l.description = Forgery::LoremIpsum.sentences(1+rand(4), :random => true)
12
- l.url = "http://#{ Forgery::Internet.domain_name }"
13
- end
14
- end
15
- end
16
- end
data/spec/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
- require 'rake'
6
-
7
- Dummy::Application.load_tasks
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag :all %>
6
- <%= javascript_include_tag :defaults %>
7
- <%= csrf_meta_tag %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,45 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require "active_model/railtie"
4
- require "active_record/railtie"
5
- require "action_controller/railtie"
6
- require "action_view/railtie"
7
- require "action_mailer/railtie"
8
-
9
- Bundler.require
10
- require "social_stream-linkser"
11
-
12
- module Dummy
13
- class Application < Rails::Application
14
- # Settings in config/environments/* take precedence over those specified here.
15
- # Application configuration should go into files in config/initializers
16
- # -- all .rb files in that directory are automatically loaded.
17
-
18
- # Custom directories with classes and modules you want to be autoloadable.
19
- # config.autoload_paths += %W(#{config.root}/extras)
20
-
21
- # Only load the plugins named here, in the order given (default is alphabetical).
22
- # :all can be used as a placeholder for all plugins not explicitly named.
23
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
24
-
25
- # Activate observers that should always be running.
26
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
27
-
28
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
29
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
30
- # config.time_zone = 'Central Time (US & Canada)'
31
-
32
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
33
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34
- # config.i18n.default_locale = :de
35
-
36
- # JavaScript files you want as :defaults (application.js is always included).
37
- # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
38
-
39
- # Configure the default encoding used in templates for Ruby 1.9.
40
- config.encoding = "utf-8"
41
-
42
- # Configure sensitive parameters which will be filtered from the log file.
43
- config.filter_parameters += [:password]
44
- end
45
- end
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
6
- require 'bundler'
7
- Bundler.setup
8
- end
9
-
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,22 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- development:
4
- adapter: sqlite3
5
- database: db/development.sqlite3
6
- pool: 5
7
- timeout: 5000
8
-
9
- # Warning: The database defined as "test" will be erased and
10
- # re-generated from your development database when you run "rake".
11
- # Do not set this db to the same as development or production.
12
- test:
13
- adapter: sqlite3
14
- database: db/test.sqlite3
15
- pool: 5
16
- timeout: 5000
17
-
18
- production:
19
- adapter: sqlite3
20
- database: db/production.sqlite3
21
- pool: 5
22
- timeout: 5000
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
@@ -1,25 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the webserver when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger
20
- config.active_support.deprecation = :log
21
-
22
- # Only use best-standards-support built into browsers
23
- config.action_dispatch.best_standards_support = :builtin
24
- end
25
-
@@ -1,49 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The production environment is meant for finished, "live" apps.
5
- # Code is not reloaded between requests
6
- config.cache_classes = true
7
-
8
- # Full error reports are disabled and caching is turned on
9
- config.consider_all_requests_local = false
10
- config.action_controller.perform_caching = true
11
-
12
- # Specifies the header that your server uses for sending files
13
- config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
-
15
- # For nginx:
16
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
-
18
- # If you have no front-end server that supports something like X-Sendfile,
19
- # just comment this out and Rails will serve the files
20
-
21
- # See everything in the log (default is :info)
22
- # config.log_level = :debug
23
-
24
- # Use a different logger for distributed setups
25
- # config.logger = SyslogLogger.new
26
-
27
- # Use a different cache store in production
28
- # config.cache_store = :mem_cache_store
29
-
30
- # Disable Rails's static asset server
31
- # In production, Apache or nginx will already do this
32
- config.serve_static_assets = false
33
-
34
- # Enable serving of images, stylesheets, and javascripts from an asset server
35
- # config.action_controller.asset_host = "http://assets.example.com"
36
-
37
- # Disable delivery errors, bad email addresses will be ignored
38
- # config.action_mailer.raise_delivery_errors = false
39
-
40
- # Enable threaded mode
41
- # config.threadsafe!
42
-
43
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
- # the I18n.default_locale when a translation can not be found)
45
- config.i18n.fallbacks = true
46
-
47
- # Send deprecation notices to registered listeners
48
- config.active_support.deprecation = :notify
49
- end
@@ -1,37 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Log error messages when you accidentally call methods on nil.
11
- config.whiny_nils = true
12
-
13
- # Show full error reports and disable caching
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Raise exceptions instead of rendering exception templates
18
- config.action_dispatch.show_exceptions = false
19
-
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
22
-
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
- config.action_mailer.delivery_method = :test
27
-
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
32
-
33
- # Print deprecation notices to the stderr
34
- config.active_support.deprecation = :stderr
35
-
36
- config.assets.enabled = true
37
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!