inkwell_timelines 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +187 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/images/inkwell_timelines/checkbox-checked.png +0 -0
  5. data/app/assets/images/inkwell_timelines/checkbox-unchecked.png +0 -0
  6. data/app/assets/images/inkwell_timelines/minus.png +0 -0
  7. data/app/assets/images/inkwell_timelines/plus.png +0 -0
  8. data/app/assets/images/inkwell_timelines/radiobutton_no.png +0 -0
  9. data/app/assets/images/inkwell_timelines/radiobutton_yes.png +0 -0
  10. data/app/assets/images/inkwell_timelines/up-down.png +0 -0
  11. data/app/assets/images/inkwell_timelines/wi-comment-hover.png +0 -0
  12. data/app/assets/images/inkwell_timelines/wi-comment.png +0 -0
  13. data/app/assets/images/inkwell_timelines/wi-favorite-active.png +0 -0
  14. data/app/assets/images/inkwell_timelines/wi-favorite-hover.png +0 -0
  15. data/app/assets/images/inkwell_timelines/wi-favorite.png +0 -0
  16. data/app/assets/images/inkwell_timelines/wi-reblog-active.png +0 -0
  17. data/app/assets/images/inkwell_timelines/wi-reblog-hover.png +0 -0
  18. data/app/assets/images/inkwell_timelines/wi-reblog.png +0 -0
  19. data/app/assets/javascripts/inkwell_timelines/index.js.erb +17 -0
  20. data/app/assets/javascripts/inkwell_timelines/inkwell_multi_selector.js +216 -0
  21. data/app/assets/javascripts/inkwell_timelines/inkwell_timeline.js.erb +149 -0
  22. data/app/assets/stylesheets/inkwell_timelines/index.css +30 -0
  23. data/app/assets/stylesheets/inkwell_timelines/multi_selector.css.erb +112 -0
  24. data/app/assets/stylesheets/inkwell_timelines/tab-menu.css +26 -0
  25. data/app/assets/stylesheets/inkwell_timelines/wall_item.css.erb +106 -0
  26. data/app/controllers/inkwell_timelines/application_controller.rb +4 -0
  27. data/app/helpers/inkwell_timelines/application_helper.rb +4 -0
  28. data/app/views/default_partials/_comment.html.erb +21 -0
  29. data/app/views/default_partials/_multi_selector.html.erb +15 -0
  30. data/app/views/default_partials/_multi_selector_items.html.erb +8 -0
  31. data/app/views/default_partials/_post.html.erb +22 -0
  32. data/app/views/default_partials/_tab_menu.html.erb +9 -0
  33. data/app/views/layouts/inkwell_timelines/application.html.erb +14 -0
  34. data/config/routes.rb +2 -0
  35. data/lib/inkwell_timelines.rb +6 -0
  36. data/lib/inkwell_timelines/engine.rb +5 -0
  37. data/lib/inkwell_timelines/version.rb +3 -0
  38. data/lib/main/to_controller.rb +22 -0
  39. data/lib/main/to_helpers.rb +93 -0
  40. data/lib/tasks/inkwell_timelines_tasks.rake +4 -0
  41. data/test/dummy/Rakefile +7 -0
  42. data/test/dummy/app/assets/javascripts/application.js +16 -0
  43. data/test/dummy/app/assets/javascripts/test.js +2 -0
  44. data/test/dummy/app/assets/stylesheets/application.css +14 -0
  45. data/test/dummy/app/assets/stylesheets/test.css +4 -0
  46. data/test/dummy/app/controllers/application_controller.rb +9 -0
  47. data/test/dummy/app/controllers/test_controller.rb +5 -0
  48. data/test/dummy/app/controllers/timeline_controller.rb +11 -0
  49. data/test/dummy/app/helpers/application_helper.rb +2 -0
  50. data/test/dummy/app/helpers/test_helper.rb +2 -0
  51. data/test/dummy/app/models/blogline.rb +3 -0
  52. data/test/dummy/app/models/bloglines_categories.rb +3 -0
  53. data/test/dummy/app/models/category.rb +7 -0
  54. data/test/dummy/app/models/comment.rb +16 -0
  55. data/test/dummy/app/models/favoriteline.rb +3 -0
  56. data/test/dummy/app/models/post.rb +16 -0
  57. data/test/dummy/app/models/user.rb +109 -0
  58. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  59. data/test/dummy/app/views/test/show.html.erb +1 -0
  60. data/test/dummy/app/views/timeline/show.html.erb +1 -0
  61. data/test/dummy/config.ru +4 -0
  62. data/test/dummy/config/application.rb +59 -0
  63. data/test/dummy/config/boot.rb +10 -0
  64. data/test/dummy/config/database.yml +25 -0
  65. data/test/dummy/config/environment.rb +5 -0
  66. data/test/dummy/config/environments/development.rb +37 -0
  67. data/test/dummy/config/environments/production.rb +67 -0
  68. data/test/dummy/config/environments/test.rb +37 -0
  69. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  70. data/test/dummy/config/initializers/inflections.rb +15 -0
  71. data/test/dummy/config/initializers/inkwell_timelines.rb +42 -0
  72. data/test/dummy/config/initializers/mime_types.rb +5 -0
  73. data/test/dummy/config/initializers/secret_token.rb +7 -0
  74. data/test/dummy/config/initializers/session_store.rb +8 -0
  75. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  76. data/test/dummy/config/locales/en.yml +5 -0
  77. data/test/dummy/config/routes.rb +5 -0
  78. data/test/dummy/db/development.sqlite3 +0 -0
  79. data/test/dummy/db/migrate/20130422111954_create_posts.rb +16 -0
  80. data/test/dummy/db/migrate/20130422112200_create_users.rb +10 -0
  81. data/test/dummy/db/migrate/20130422112350_create_comments.rb +16 -0
  82. data/test/dummy/db/migrate/20130422112504_create_bloglines.rb +13 -0
  83. data/test/dummy/db/migrate/20130422112804_create_favoritelines.rb +11 -0
  84. data/test/dummy/db/migrate/20130422112954_create_categories.rb +14 -0
  85. data/test/dummy/db/migrate/20130422113135_create_bloglines_categories.rb +12 -0
  86. data/test/dummy/db/schema.rb +92 -0
  87. data/test/dummy/db/seeds.rb +625 -0
  88. data/test/dummy/db/test.sqlite3 +0 -0
  89. data/test/dummy/log/development.log +104306 -0
  90. data/test/dummy/log/test.log +815 -0
  91. data/test/dummy/public/404.html +26 -0
  92. data/test/dummy/public/422.html +26 -0
  93. data/test/dummy/public/500.html +25 -0
  94. data/test/dummy/public/favicon.ico +0 -0
  95. data/test/dummy/script/rails +6 -0
  96. data/test/dummy/spec/helpers/test_helper_spec.rb +8 -0
  97. data/test/dummy/spec/spec_helper.rb +52 -0
  98. data/test/dummy/spec/watir/autoload_spec.rb +33 -0
  99. data/test/dummy/spec/watir/main_spec.rb +80 -0
  100. data/test/dummy/spec/watir/selector_spec.rb +103 -0
  101. data/test/dummy/spec/watir/tab_menu_spec.rb +36 -0
  102. data/test/dummy/tmp/cache/assets/C56/8F0/sprockets%2F1ad046fb9937420d5382984483fc8401 +0 -0
  103. data/test/dummy/tmp/cache/assets/C63/420/sprockets%2F5daa64d9601a1dd14726112003d08364 +0 -0
  104. data/test/dummy/tmp/cache/assets/C65/790/sprockets%2Feacce513669090988829f66e61634451 +0 -0
  105. data/test/dummy/tmp/cache/assets/C77/DD0/sprockets%2F055f9cd12326c5150492b8c584314fa3 +0 -0
  106. data/test/dummy/tmp/cache/assets/C84/E70/sprockets%2F0530f24346bbf970634035b6e55f886e +0 -0
  107. data/test/dummy/tmp/cache/assets/C85/420/sprockets%2F4734da42d41574596ab532629d0867ec +0 -0
  108. data/test/dummy/tmp/cache/assets/C87/A50/sprockets%2F667342f892546b573c52d11f814ae4f3 +0 -0
  109. data/test/dummy/tmp/cache/assets/CA1/750/sprockets%2Fa8471b3ea18986e7368e8273a95865e8 +0 -0
  110. data/test/dummy/tmp/cache/assets/CAC/DB0/sprockets%2Fc424393ee4e4f66aa4014619048753cb +0 -0
  111. data/test/dummy/tmp/cache/assets/CB2/170/sprockets%2F4479eb189646408ec3130b45153ebf7b +0 -0
  112. data/test/dummy/tmp/cache/assets/CB9/630/sprockets%2Fe5952cc2ece61727517547af4232892e +0 -0
  113. data/test/dummy/tmp/cache/assets/CBD/960/sprockets%2F5a35c922c979e889b0338374a9b3f4b0 +0 -0
  114. data/test/dummy/tmp/cache/assets/CC4/730/sprockets%2F78d0941e0543313bbb0a9f0cf630030d +0 -0
  115. data/test/dummy/tmp/cache/assets/CD1/F50/sprockets%2Fbf2261613d1c32c54a6e38a7673531fa +0 -0
  116. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  117. data/test/dummy/tmp/cache/assets/CD9/1E0/sprockets%2F293460f7bea2aea456231b769212f36f +0 -0
  118. data/test/dummy/tmp/cache/assets/CDC/EC0/sprockets%2Ff9a21d40846491577ab5ebe00de07077 +0 -0
  119. data/test/dummy/tmp/cache/assets/CE6/8D0/sprockets%2F9e823d2b49662dbb4389f2841a23e8c1 +0 -0
  120. data/test/dummy/tmp/cache/assets/CEE/110/sprockets%2Faf0654ff711843e082592cd70cf89a88 +0 -0
  121. data/test/dummy/tmp/cache/assets/CEE/490/sprockets%2F97139dc7ad35759531fc7fa572f0c761 +0 -0
  122. data/test/dummy/tmp/cache/assets/CF9/6F0/sprockets%2F952426cea414c6c2a04cc1216a1f36f5 +0 -0
  123. data/test/dummy/tmp/cache/assets/CFA/DE0/sprockets%2F25bf1e7766a300a4c37195df0cbb1107 +0 -0
  124. data/test/dummy/tmp/cache/assets/CFB/A10/sprockets%2F72699e3ed6f9c3984a718b62932ba66e +0 -0
  125. data/test/dummy/tmp/cache/assets/CFC/640/sprockets%2Fc7f89943cb904e76b2437e59348cc5c9 +0 -0
  126. data/test/dummy/tmp/cache/assets/D13/0C0/sprockets%2F218a6e24bfe5005a8a86798baa2585c8 +0 -0
  127. data/test/dummy/tmp/cache/assets/D13/3B0/sprockets%2F00cf5d507582a705af9694cde93ba186 +0 -0
  128. data/test/dummy/tmp/cache/assets/D13/6A0/sprockets%2F4819aa020210496ecf49ee70b78e8be6 +0 -0
  129. data/test/dummy/tmp/cache/assets/D15/560/sprockets%2Ff0007939832a29a27abe3a9579eed81c +0 -0
  130. data/test/dummy/tmp/cache/assets/D16/860/sprockets%2Fb45890d98668c132fee5cae4b15320d9 +0 -0
  131. data/test/dummy/tmp/cache/assets/D1A/150/sprockets%2F49ad9f8620b7712e6f2d4fc2e354e545 +0 -0
  132. data/test/dummy/tmp/cache/assets/D20/4F0/sprockets%2Fb15d3257899ad89007d1348eb9a5f5fe +0 -0
  133. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  134. data/test/dummy/tmp/cache/assets/D36/810/sprockets%2Fb84416b6a4f5a39b0bc23ab72ad94279 +0 -0
  135. data/test/dummy/tmp/cache/assets/D39/390/sprockets%2F3c87a321da4296312f18efc704cd6d2f +0 -0
  136. data/test/dummy/tmp/cache/assets/D3A/260/sprockets%2F69551919ec05c0eb11e55bb59dc143ec +0 -0
  137. data/test/dummy/tmp/cache/assets/D41/350/sprockets%2F2111b16bc0081c14b803cfd350eb4baa +0 -0
  138. data/test/dummy/tmp/cache/assets/D43/D20/sprockets%2Fbcbf2f35591e507593ec6116eac6e924 +0 -0
  139. data/test/dummy/tmp/cache/assets/D48/3C0/sprockets%2F41be77d9f6b62168967ca14ccc6b51d6 +0 -0
  140. data/test/dummy/tmp/cache/assets/D4D/7C0/sprockets%2F5f4f24c2540cffe8b3c5e835756c35f7 +0 -0
  141. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  142. data/test/dummy/tmp/cache/assets/D51/6A0/sprockets%2F80b05d6f75c78bdb1e450c898e47d97a +0 -0
  143. data/test/dummy/tmp/cache/assets/D56/4C0/sprockets%2F66059379b6c72ffe570f4ae394a89eda +0 -0
  144. data/test/dummy/tmp/cache/assets/D56/D30/sprockets%2Fe910c76d93fd4da6984d82e469f62f0c +0 -0
  145. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  146. data/test/dummy/tmp/cache/assets/D65/600/sprockets%2Fdaa0e3c217673cb0ebb89d97438a1b80 +0 -0
  147. data/test/dummy/tmp/cache/assets/D66/6C0/sprockets%2Fa06355ade2a095c01afd8c6f5e67019d +0 -0
  148. data/test/dummy/tmp/cache/assets/D6A/E70/sprockets%2Fc9f71142e4d4a807cb6be80451f74adb +0 -0
  149. data/test/dummy/tmp/cache/assets/D76/E50/sprockets%2F6289e3eb865565eab3fdfb4fae810702 +0 -0
  150. data/test/dummy/tmp/cache/assets/D86/6A0/sprockets%2Fac97d7e4e37faa819a833c7c52c9e687 +0 -0
  151. data/test/dummy/tmp/cache/assets/D91/C00/sprockets%2Fb1cf6c48f161db0a058d10817ddd5e5b +0 -0
  152. data/test/dummy/tmp/cache/assets/D9C/C90/sprockets%2Fa903431f8703bbaafcae42e4f4692ff8 +0 -0
  153. data/test/dummy/tmp/cache/assets/DA0/C60/sprockets%2F90d8e40e6baa19d6556ab9c6ac891a2e +0 -0
  154. data/test/dummy/tmp/cache/assets/DA1/F90/sprockets%2F3bd196480867f8e3c74b10dbcbbe1f9b +0 -0
  155. data/test/dummy/tmp/cache/assets/DA7/EE0/sprockets%2Ffced4a1e089dc82bf773475da4e53c46 +0 -0
  156. data/test/dummy/tmp/cache/assets/DA9/4D0/sprockets%2F3d68828b990fbfa9cdf51daa76c242d5 +0 -0
  157. data/test/dummy/tmp/cache/assets/DB5/4C0/sprockets%2F5e815df4827231fe949b2f9bffd0d9de +0 -0
  158. data/test/dummy/tmp/cache/assets/DB6/910/sprockets%2F3c19b64141a5ceeccf3a3baf4c452a06 +0 -0
  159. data/test/dummy/tmp/cache/assets/DC4/8D0/sprockets%2Fd8daccd2ece841a83a2a584c50e352d5 +0 -0
  160. data/test/dummy/tmp/cache/assets/DCC/6A0/sprockets%2Fa92fb625cc83fe72fc4115e2fb2ed61e +0 -0
  161. data/test/dummy/tmp/cache/assets/DCC/940/sprockets%2Fe7f0ee8bf122b8b72b8e3c7cd13a5d81 +0 -0
  162. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  163. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  164. data/test/dummy/tmp/cache/assets/E08/E50/sprockets%2F22c72aded517c5cdf8cce6f4b58c76b8 +0 -0
  165. data/test/dummy/tmp/cache/assets/E24/740/sprockets%2F2ecee9c0ae221af87da9c5d034c8dd0c +0 -0
  166. data/test/dummy/tmp/cache/assets/E2D/160/sprockets%2Fdb479da69eeed6322f3b8dab3bf91bb0 +0 -0
  167. data/test/dummy/tmp/cache/assets/E4C/810/sprockets%2Fdaf244418a8cfda1aca3e32dbdf17fd2 +0 -0
  168. data/test/dummy/tmp/pids/server.pid +1 -0
  169. data/test/screen/main.png +0 -0
  170. data/test/test_helper.rb +15 -0
  171. metadata +413 -0
@@ -0,0 +1,13 @@
1
+ class CreateBloglines < ActiveRecord::Migration
2
+ def change
3
+ create_table :bloglines do |t|
4
+ t.integer "item_id"
5
+ t.boolean "is_reblog"
6
+ t.integer "owner_id"
7
+ t.string "item_type"
8
+ t.string "owner_type"
9
+ t.text "category_ids", :default => "[]"
10
+ t.timestamps
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ class CreateFavoritelines < ActiveRecord::Migration
2
+ def change
3
+ create_table :favoritelines do |t|
4
+ t.integer "item_id"
5
+ t.integer "owner_id"
6
+ t.string "item_type"
7
+ t.string "owner_type"
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,14 @@
1
+ class CreateCategories < ActiveRecord::Migration
2
+ def change
3
+ create_table :categories do |t|
4
+ t.string "name"
5
+ t.text "parent_ids", :default => "[]"
6
+ t.text "child_ids", :default => "[]"
7
+ t.integer "owner_id"
8
+ t.string "owner_type"
9
+ t.integer "parent_category_id"
10
+
11
+ t.timestamps
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ class CreateBloglinesCategories < ActiveRecord::Migration
2
+ def change
3
+ create_table :bloglines_categories do |t|
4
+ t.integer "blog_item_id"
5
+ t.integer "category_id"
6
+ t.integer "item_id"
7
+ t.string "item_type"
8
+ t.datetime "blog_item_created_at"
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,92 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20130422113135) do
15
+
16
+ create_table "bloglines", :force => true do |t|
17
+ t.integer "item_id"
18
+ t.boolean "is_reblog"
19
+ t.integer "owner_id"
20
+ t.string "item_type"
21
+ t.string "owner_type"
22
+ t.text "category_ids", :default => "[]"
23
+ t.datetime "created_at", :null => false
24
+ t.datetime "updated_at", :null => false
25
+ end
26
+
27
+ create_table "bloglines_categories", :force => true do |t|
28
+ t.integer "blog_item_id"
29
+ t.integer "category_id"
30
+ t.integer "item_id"
31
+ t.string "item_type"
32
+ t.datetime "blog_item_created_at"
33
+ t.datetime "created_at", :null => false
34
+ t.datetime "updated_at", :null => false
35
+ end
36
+
37
+ create_table "categories", :force => true do |t|
38
+ t.string "name"
39
+ t.text "parent_ids", :default => "[]"
40
+ t.text "child_ids", :default => "[]"
41
+ t.integer "owner_id"
42
+ t.string "owner_type"
43
+ t.integer "parent_category_id"
44
+ t.datetime "created_at", :null => false
45
+ t.datetime "updated_at", :null => false
46
+ end
47
+
48
+ create_table "comments", :force => true do |t|
49
+ t.integer "user_id"
50
+ t.text "body"
51
+ t.integer "parent_comment_id"
52
+ t.integer "topmost_obj_id"
53
+ t.text "upper_comments_tree"
54
+ t.text "users_ids_who_favorite_it", :default => "[]"
55
+ t.text "users_ids_who_comment_it", :default => "[]"
56
+ t.text "users_ids_who_reblog_it", :default => "[]"
57
+ t.string "topmost_obj_type"
58
+ t.datetime "created_at", :null => false
59
+ t.datetime "updated_at", :null => false
60
+ end
61
+
62
+ create_table "favoritelines", :force => true do |t|
63
+ t.integer "item_id"
64
+ t.integer "owner_id"
65
+ t.string "item_type"
66
+ t.string "owner_type"
67
+ t.datetime "created_at", :null => false
68
+ t.datetime "updated_at", :null => false
69
+ end
70
+
71
+ create_table "posts", :force => true do |t|
72
+ t.string "title"
73
+ t.string "preview_image"
74
+ t.text "body"
75
+ t.integer "user_id"
76
+ t.text "users_ids_who_favorite_it", :default => "[]"
77
+ t.text "users_ids_who_comment_it", :default => "[]"
78
+ t.text "users_ids_who_reblog_it", :default => "[]"
79
+ t.text "communities_ids", :default => "[]"
80
+ t.datetime "created_at", :null => false
81
+ t.datetime "updated_at", :null => false
82
+ end
83
+
84
+ create_table "users", :force => true do |t|
85
+ t.string "nick"
86
+ t.string "name"
87
+ t.string "avatar"
88
+ t.datetime "created_at", :null => false
89
+ t.datetime "updated_at", :null => false
90
+ end
91
+
92
+ end
@@ -0,0 +1,625 @@
1
+ #encoding: UTF-8
2
+ pushkin = User.create :nick => "Pushkin", :name => "Alexander Pushkin", :avatar => "http://cs11012.vk.me/g30230765/d_e060adf3.jpg"
3
+ lermontov = User.create :nick => "Lermontov", :name => "Mikhail Lermontov", :avatar => "http://cs11012.vk.me/g30231806/d_76564929.jpg"
4
+ yesenin = User.create :nick => "Yesenin", :name => "Sergey Yesenin", :avatar => "http://cs5326.vk.me/g24263942/d_e91d2798.jpg"
5
+
6
+ pushkin_post_0 = Post.create :title => "A wish",
7
+ :body => "My days still linger, slow and rough
8
+ Each moment multiplies the sadness
9
+ Within the heart of hapless love
10
+ Disturbing all the hopes of madness
11
+ I'm silent; not a word I breathe.
12
+ I weep, my tears -- my consolation
13
+ My soul, held captive by the grief
14
+ Still finds delight in this sensation.
15
+ No longer do I care if life goes by,
16
+ O, hollow phantom into darkness flee;
17
+ The sorrow of my love is dear to me--
18
+ If I die loving, then I pray let die!",
19
+ :preview_image => "http://thumbs.dreamstime.com/thumbimg_402/12432758188IXZbQ.jpg",
20
+ :user_id => pushkin.id
21
+ pushkin_post_1 = Post.create :title => "To ***",
22
+ :body => "I still remember that amazing moment
23
+ You have appeared before my sight
24
+ As though a brief and fleeting omen,
25
+ Pure phantom in enchanting light.
26
+
27
+ Locked in depression's hopeless captive,
28
+ In haste of clamorous processions,
29
+ I heard your voice-- soft and attractive.
30
+ And dreamt of your beloved expressions.
31
+
32
+ Time passed. In gusts, rebellious and active,
33
+ A tempest scattered my affections
34
+ And I forgot your voice attractive,
35
+ Your sacred and divine expressions.
36
+
37
+ Detained in darkness, isolation,
38
+ My days would slowly drag in strife.
39
+ With lack of faith and inspiration,
40
+ With lack of tears, and love and life.
41
+
42
+ My soul attained its waking moment:
43
+ You re-appeared before my sight,
44
+ As though a brief and fleeting omen,
45
+ Pure phantom in enchanting light.
46
+
47
+ And now, my heart, in fascination
48
+ Beats rapidly and finds revived:
49
+ Devout faith and inspiration,
50
+ And tender tears and love and life.",
51
+ :preview_image => "http://thumbs.dreamstime.com/thumbimg_555/1289349125WGtmdw.jpg",
52
+ :user_id => pushkin.id
53
+ pushkin_post_2 = Post.create :title => "I loved you...",
54
+ :body => "I loved you and this love by chance,
55
+ Inside my soul has never fully vanished;
56
+ No longer shall it ever make you tense;
57
+ I wouldn't want to sadden you with anguish.
58
+ I loved you speechlessly and wildly,
59
+ By modesty and jealousy was stressed;
60
+ I loved you so sincerely and so mildly,
61
+ As, God permit, may love you someone else.",
62
+ :preview_image => "http://thumbs.dreamstime.com/thumbimg_655/13252228518VaQ2Q.jpg",
63
+ :user_id => pushkin.id
64
+ pushkin_post_3 = Post.create :title => "To ***",
65
+ :body => "Don't ask me why alone in dismal thought
66
+ In times of mirth, I'm often filled with strife,
67
+ And why my weary stare is so distraught,
68
+ And why I don't enjoy the dream of life;
69
+
70
+ Don't ask me why my soul has slowly perished
71
+ And ceased to love the love that pleased me then
72
+ No longer can I call someone \"my cherished\"--
73
+ Who once has loved will never love again;
74
+
75
+ Who once felt bliss will never feel its essence,
76
+ A moment's happiness is all that we receive:
77
+ From youth, prosperity and joyful pleasance
78
+ All that is left is apathy and grief...",
79
+ :user_id => pushkin.id
80
+ pushkin_post_4 = Post.create :title => "***",
81
+ :body => "My friend, forgotten are the fleeting era's prints
82
+ Forgotten is my youth's uprising flow
83
+ Don't question me on what I'm lacking since,
84
+ On what I felt in the times of joy and woe,
85
+ On what I loved, on how I was forlorn
86
+ I've yet to taste true joy, -- that is inborn;
87
+ But you are innocent! conceived for only bliss
88
+ Believe in it and seize each moment's portion
89
+ Your soul was made for friendship and devotion,
90
+ A passionate and loving kiss.
91
+ Your soul is pure and unexposed to sadness
92
+ Your conscience is as bright as any day
93
+ Why then perceive the lunacy and madness
94
+ Of the uninteresting hearsay?
95
+ It will replace your peace with aggravation
96
+ You'll tremble with your heart and cry in bed
97
+ Your soul will lose its trust in agitation
98
+ And you, perhaps... my love may grow to dread
99
+ Who knows? perhaps forever... No, my dear
100
+ I fear to cast the only joy away
101
+ Don't ask for dangerous confessions here
102
+ Today I love, I'm happy for today.",
103
+ :preview_image => "http://thumbs.dreamstime.com/thumbimg_490/1269734684o72ihn.jpg",
104
+ :user_id => pushkin.id
105
+ pushkin_post_5 = Post.create :title => "***",
106
+ :body => "I've lived to see desire vanish,
107
+ With hope I've slowly grown to part,
108
+ And I am left with only anguish,
109
+ The fruit of emptiness at heart.
110
+
111
+ Under the storms of merciless fate
112
+ My thriving garland withered lies--
113
+ In sadness, lonesome, I await:
114
+ How far away is my demise?
115
+
116
+ Thus, conquered by a tardy frost,
117
+ Through gale's whistling and shimmer,
118
+ Late, on a naked limb exposed
119
+ A lonesome leaf is left to quiver...",
120
+ :user_id => pushkin.id
121
+ pushkin_post_6 = Post.create :title => "The Tenth Commandment",
122
+ :body => "Don't covet goods of other beings --
123
+ My Goodness, You've commanded so;
124
+ The limits of my will You know --
125
+ Am I to manage tender feelings?!
126
+ I wish not to offend my friend,
127
+ His village I do not desire,
128
+ And for his steer I don't aspire,
129
+ I'm gazing at it with content:
130
+ His men, his house and his cattle,
131
+ I'm tempted not, though all is great.
132
+ But let's imagine that his maid
133
+ Is beautiful... I've lost the battle!
134
+ And if by chance his lady's pretty
135
+ And gifted with an angel's skin
136
+ Then God forgive me for my sin
137
+ Of being envious and greedy!
138
+ Who can command a heart like this?
139
+ Who is a slave to feeble effort?
140
+ Not love a person who is revered?--
141
+ Who can resist the heaven's bliss?
142
+ I sigh from sadness and perceive,
143
+ But I must honor my conviction,
144
+ Afraid to flatter heart's ambition,
145
+ I'm silent... and alone I grieve.",
146
+ :user_id => pushkin.id
147
+ pushkin_comment_0 = Comment.create :body => "Alas! How come she's glimmering
148
+ With temporary, charming vibe?
149
+ It's evident that she is withering
150
+ While youth is blossoming with life...
151
+ Soon she will fade! Life of delight
152
+ Not very long she has to treasure;
153
+ And not for long will she provide
154
+ Her happy family with pleasure.
155
+ Her mellow wit will not abide
156
+ To energize our conversations
157
+ And with her soul, she won't subside
158
+ The sufferer's lamentations.
159
+ I hurry, still distraught in thought,
160
+ Concealing all of my dejection,
161
+ To catch her every cheerful word
162
+ And to delight in her perfection.
163
+ I watch her move, with admiration,
164
+ Perceive each sound from her soul
165
+ From every moment's separation
166
+ My tender heart becomes appalled.",
167
+ :user_id => pushkin.id,
168
+ :topmost_obj_id => pushkin_post_0.id,
169
+ :topmost_obj_type => 'p'
170
+ pushkin_comment_1 = Comment.create :body => "I can't sleep, the light is out;
171
+ Chasing senseless dreams in gloom.
172
+ Clocks at once, inside my room,
173
+ Somewhere next to me, resound.
174
+ Parcae's soft and mild chatter,
175
+ Sleeping twilight's noisy flutter,
176
+ Life's commotion -- so insane..
177
+ Why am I to feel this pain?
178
+ What's your meaning, boring mumble?
179
+ Disapproving, do you grumble
180
+ Of the day I spent in vain?
181
+ What has made you so compelling?
182
+ Are you calling or foretelling?
183
+ I just want to understand,
184
+ Thus I'm seeking your intent...",
185
+ :user_id => pushkin.id,
186
+ :topmost_obj_id => pushkin_post_1.id,
187
+ :topmost_obj_type => 'p'
188
+ pushkin_comment_2 = Comment.create :body => "If by life you were deceived,
189
+ Don't be dismal, don't be wild!
190
+ In the day of grief, be mild
191
+ Merry days will come, believe.
192
+
193
+ Heart is living in tomorrow;
194
+ Present is dejected here;
195
+ In a moment, passes sorrow;
196
+ That which passes will be dear.",
197
+ :user_id => pushkin.id,
198
+ :topmost_obj_id => pushkin_post_2.id,
199
+ :topmost_obj_type => 'p'
200
+
201
+ lermontov_post_0 = Post.create :title => "Clouds",
202
+ :body => "Clouds of the air, ye perennial wanderers!
203
+ High in the steppe of blue, stretched like a string of pearls,
204
+ You scud away from the North over yonder, as
205
+ Though you are exiles like me whom the grimness hurls.
206
+
207
+ Who keeps you flitting: a verdict of destiny?
208
+ Secretive envy? Or naked malignancy?
209
+ Or you’re tormented so hard by a felony?
210
+ Or by your friends’ poisoned slander and flippancy?
211
+
212
+ Nay, barren fields are what made you undoting...
213
+ Nothing to you ever passion or anguish meant;
214
+ Frigid forever, for always free-floating,
215
+ You have no motherland, you have no banishment.",
216
+ :user_id => lermontov.id
217
+ lermontov_post_1 = Post.create :title => "Testament",
218
+ :body => "I want to take you to one side,
219
+ If you don’t mind, my friend;
220
+ They say there’s not much time to bide
221
+ Until I meet my end!
222
+ You’re going home to see your wife,
223
+ So, look... But why? about my life,
224
+ To tell the truth, not many
225
+ Would give a straw, if any.
226
+
227
+ And if some have an interest...
228
+ No matter who they are,
229
+ Say I’d been shot right through my chest
230
+ Defending here our tsar,
231
+ And died for him the way one should,
232
+ And that our leeches are no good,
233
+ And that I bow in honour
234
+ Before my native corner.
235
+
236
+ It’s quite unlikely that you’ll find
237
+ My folks alive up there...
238
+ And frankly, it’d have been unkind
239
+ To drive them to despair;
240
+ But then if either’s still all right,
241
+ Just say that I’m too lax to write,
242
+ That the platoon keeps raiding;
243
+ So let them stop awaiting.
244
+
245
+ There used to live a girl next door...
246
+ How far it was from now!..
247
+ About me she won’t ask... it’s more
248
+ Than certain, anyhow;
249
+ So go and tell her all the truth;
250
+ An empty heart deserves no ruth;
251
+ Just let her weep a little...
252
+ She doesn’t care a tittle!",
253
+ :user_id => lermontov.id
254
+ lermontov_post_2 = Post.create :title => "A Cossack Lullaby",
255
+ :body => "Sleep, my baby, sleep, my dear,
256
+ Hush-a-hushaby.
257
+ In your crib the full moon peers
258
+ Softly from the sky.
259
+ I will tell you some good stories,
260
+ Sing a lullaby;
261
+ Close your eyes, it’s time for snories,
262
+ Hush-a-hushaby.
263
+
264
+ In the rocks, there streams the Terek;
265
+ Muddy billows bang;
266
+ Chechen whets his knife Tartaric,
267
+ Crawling up the bank;
268
+ But your father is a warrior
269
+ With an eagle eye —
270
+ Sleep, my baby, do not worry,
271
+ Hush-a-hushaby.
272
+
273
+ Time will come; you’ll know the battle
274
+ Life, my little one;
275
+ I’ll embroider then your saddle;
276
+ You will take your gun.
277
+ Many enemies you’ll hit hard
278
+ As the time goes by...
279
+ Sleep, my darling, sleep, my sweetheart,
280
+ Hush-a-hushaby.
281
+
282
+ You will grow a stalwart cossack
283
+ Looking brave and grand;
284
+ When I see you off — from horseback
285
+ You’ll just wave your hand...
286
+ On that night, God knows, how many
287
+ Bitter tears I’ll cry!..
288
+ Sleep, my angel, sleep, my honey,
289
+ Hush-a-hushaby.
290
+
291
+ I’ll be waiting through despair’s
292
+ Never-ending blight;
293
+ I’ll repeat my heartfelt prayers
294
+ Through the day and night;
295
+ I will dread that you do languish
296
+ Far from homeland, ay...
297
+ Sleep before you are in anguish,
298
+ Hush-a-hushaby.
299
+
300
+ To remind you of the bygone
301
+ Happy days at home,
302
+ I will give the holy icon —
303
+ Keep it when you roam;
304
+ Think of me before severe
305
+ Fighting flames up high...
306
+ Sleep, my baby, sleep, my dear,
307
+ Hush-a-hushaby.",
308
+ :user_id => lermontov.id
309
+ lermontov_post_3 = Post.create :title => "The Crag",
310
+ :body => "Once upon a night, a golden cloudlet
311
+ Snuggled to the chest of crag the giant;
312
+ In the morn, she left her rest behind
313
+ Frolicking against the azure proudly;
314
+
315
+ But a dew mark lingered in a weathered
316
+ Furrow of the crag. In desolation,
317
+ He is standing, deep in contemplation,
318
+ And he’s softly weeping in the desert.",
319
+ :user_id => lermontov.id
320
+ lermontov_post_4 = Post.create :title => "Prayer",
321
+ :body => "Heavenly Mother, it’s me, and this time I pray
322
+ Before thy icon, thy luminous radiance,
323
+ Not for salvation, and not “fore a tighter fray,
324
+ Not with thanksgiving, and not out of penitence;
325
+
326
+ Not for my ravaged soul prayers to thee I send,
327
+ That of a wanderer, humble and commonplace;
328
+ But I commend a young maid e’er so innocent
329
+ Into thy soothing hands and to thy saving grace.
330
+
331
+ Lavish thy bliss on the soul filled with purity;
332
+ Give her companions, all paying her great regard;
333
+ Unclouded youth and untroubled maturity;
334
+ Light myriad hopes up in front of the gracious heart.
335
+
336
+ Whether the time tolls its final and fatal bell,
337
+ Be it a noisy morn, be it a solemn night —
338
+ Send to the bed of the last tearful farewell
339
+ Thy sweetest angel to take up the soul benign.",
340
+ :user_id => lermontov.id
341
+ lermontov_post_5 = Post.create :title => "The Angel",
342
+ :body => "The angel was flying through sky in midnight,
343
+ And softly he sang in his flight;
344
+ And clouds, and stars, and the moon in a throng
345
+ Hearkened to that holy song.
346
+ He sang of the garden of God's paradise,
347
+ Of innocent ghosts in its shade;
348
+ He sang of the God, and his vivacious praise
349
+ Was glories and unfeigned.
350
+ The juvenile soul he carried in arms
351
+ For worlds of distress and alarms;
352
+ The tune of his charming and heavenly song
353
+ Was left in the soul for long.
354
+ It roamed on earth many long nights and days,
355
+ Filled with a wonderful thirst,
356
+ And earth's boring songs could not ever replace
357
+ The sounds of heaven it lost.",
358
+ :user_id => lermontov.id
359
+ lermontov_post_6 = Post.create :title => "The Beggar",
360
+ :body => "By gates of an abode, blessed,
361
+ A man stood, asking for donation,
362
+ A beggar, cruelly oppressed
363
+ By hunger, thirst and deprivation.
364
+
365
+ He asked just for a piece of bread,
366
+ And all his looks were full of anguish,
367
+ And was a cold stone laid
368
+ Into his stretched arm, thin and languished.
369
+
370
+ Thus I prayed vainly for your love,
371
+ With bitter tears, pine and fervor,
372
+ Thus my best senses, that have thrived,
373
+ Were victimized by you forever!",
374
+ :user_id => lermontov.id
375
+
376
+ yesenin_post_0 = Post.create :title => "Cleared the cornfield, bare the boughs are...",
377
+ :body => "Cleared the cornfield, bare the boughs are,
378
+ From still waters mist is rolling,
379
+ Like a wheel beyond the mountains
380
+ Has the silent sun gone rolling.
381
+
382
+ Dozing is the cart track yonder.
383
+ In a day dream it was thinking
384
+ One won't have to wait much longer
385
+ For the coming of grey winter.
386
+
387
+ Yesterday as mist came creeping
388
+ Did not I see in the darkness
389
+ Like a foal the bay moon leaping
390
+ Into our snow sledge's harness? ",
391
+ :user_id => yesenin.id
392
+ yesenin_post_1 = Post.create :title => "I'll no more go roaming, no more seeking...",
393
+ :body => "I'll no more go roaming, no more seeking,
394
+ No more crushing goosefoot in the wood.
395
+ With those oatsheaf locks you tossed when speaking
396
+ You have vanished from my dreams for good.
397
+
398
+
399
+ With red berry juice on fair skin glowing,
400
+ Beautiful and gentle, you were like
401
+ Pink skies when the sun to rest is going
402
+ And, like new snow, you were sparkling bright.
403
+
404
+
405
+ Now the seed grain of your eyes has scattered, shrivelled,
406
+ Your rare name has melted like a sound,
407
+ Though the scent of blameless hands still lingers,
408
+ In the folds of a creased shawl is found.
409
+
410
+
411
+ In the still hour when the early sunrise
412
+ On the rooftop licks her kitten nose
413
+ I hear gentle comment on you coming
414
+ From the wind that sings in honeycombs.
415
+
416
+
417
+ What if blue dusk on occasion soulfully
418
+ Whisper that you were a song, a dream -
419
+ He who shaped your supple figure and smooth shoulders
420
+ Truly kissed a mystery supreme.
421
+
422
+
423
+ I'll no more go roaming, no more seeking,
424
+ No more crushing goosefoot in the wood.
425
+ With those oatsheaf locks you tossed when speaking
426
+ You have vanished from my dreams for good. ",
427
+ :user_id => yesenin.id
428
+ yesenin_post_2 = Post.create :title => "I've quit my father's home...",
429
+ :body => "I've quit my father's home
430
+ And left blue Russ. With three
431
+ Bright stars the birch-tree grove
432
+ Consoles my mother's grief.
433
+
434
+ The moon has, like a frog,
435
+ Upon the pond appeared.
436
+ Like apple blossom, locks
437
+ Of grey fleck father's beard.
438
+
439
+ I shall not soon come back!
440
+ Long shall snow blow in the yard.
441
+ Our one-legged maple shall
442
+ Over blue Russ stand guard.
443
+
444
+ To kiss its raining leaves
445
+ Is joy, and none so fine -
446
+ The head of the maple-tree
447
+ So closely resembles mine. ",
448
+ :user_id => yesenin.id
449
+ yesenin_post_3 = Post.create :title => "No sorrow, no calls, no tears...",
450
+ :body => "No sorrow, no calls, no tears.
451
+ Now it's gone, white foam from apple-tree.
452
+ Faded, seized by tarnished golden flares,
453
+ I will not feel youthful. Never me.
454
+
455
+ Now you slow down, that's the matter,
456
+ You, my heart, that suffered a cold jet.
457
+ And the land of calico birch pattern
458
+ Hardly tempts my feet to walk o'er that.
459
+
460
+ Hobo spirit! You're so rare, rare,
461
+ Waking flame in mouth. It's now tense.
462
+ Oh, my freshness, that I couldn't spare.
463
+ Brawling eyes and overflowing sence!
464
+
465
+ I've become too greedy for desires.
466
+ Life of mine? Perhaps, it was a dream?
467
+ Me, alone, in early vernal hours
468
+ Riding a pink horse, as it cood seem.
469
+
470
+ We are mortal. In this world none's ever.
471
+ Copper leaves are floating. Let them fly.
472
+ Be you blest, you beautiful forever
473
+ That has come to blossom and to die.",
474
+ :user_id => yesenin.id
475
+ yesenin_post_4 = Post.create :title => "So it happened and please don't swear...",
476
+ :body => "So it happened and please don't swear.
477
+ I'm a not a word dealer now.
478
+ My poor head - it's too hard to bear
479
+ And bent-down is my golden brow.
480
+
481
+ No love for no country, no town.
482
+ How could I feel it that time?
483
+ I will leave. With a beard grown
484
+ I will tramp o'er the land of mine.
485
+
486
+ I'll forget my books and my poems,
487
+ Hang a bag on shoulders, well trimmed.
488
+ 'Cause a vagabond on his roads
489
+ Hears much better songs of the wind.
490
+
491
+ I will stink like onion and turnip
492
+ And abusing the dusk as it goes
493
+ I will fool around, staying fornent,
494
+ Sniffling loudly with my nose.
495
+
496
+ And I don't need a fortune better
497
+ Just to listen how a blizzard roars.
498
+ 'Cause without freaks like the latter
499
+ I'm unable to live on earth.",
500
+ :user_id => yesenin.id
501
+ yesenin_post_5 = Post.create :title => "Through fields of virgin snow I roam...",
502
+ :body => "Through fields of virgin snow I roam,
503
+ Fresh lilies bursting in my heart.
504
+ The dusk to guide my footsteps home
505
+ Has lit a bright blue candle-star.
506
+
507
+ Is it light or dark? I cannot say.
508
+ Is that a cock sings, or the breeze?
509
+ Perhaps not winter came today
510
+ But white swans settled in the fields
511
+
512
+ How smooth the snow is and how white!
513
+ Blood tingles in the frosty air!
514
+ Close to my body how I'd like
515
+ To press the birch-tree's bosom bare.
516
+
517
+ What sadness does the forest hold!
518
+ The snowbound field what glad surprise!:
519
+ O how I'd love now to enfold
520
+ Within my arms the willow's thighs. ",
521
+ :user_id => yesenin.id
522
+ yesenin_post_6 = Post.create :title => "Waken me early tomorrow...",
523
+ :body => "Waken me early tomorrow,
524
+ Dear mother, patient and kind!
525
+ I'll go past the boundary barrow
526
+ To welcome a friend of mine.
527
+
528
+ In the forest today I noticed
529
+ Wheel-tracks where a cart had rolled.
530
+ The breeze below dark cloud blowing
531
+ Is ruffling the arch of gold.
532
+
533
+ It will race by tomorrow at daybreak,
534
+ With moon-cap ducking under a bush,
535
+ And her red tail playfully waving
536
+ The mare through the meadow will rush.
537
+
538
+ Waken me early tomorrow,
539
+ Turn the light on in our neat room.
540
+ They say I'll become an illustrious
541
+ Poet of Russia soon.
542
+
543
+ I shall laud you and the visitor,
544
+ Our stove, cock and humble home…
545
+ And the milk that your russet cows give
546
+ Shall over my verses flow. ",
547
+ :user_id => yesenin.id
548
+
549
+ cat = Category.create :name => 'Without category', :owner_id => pushkin.id, :owner_type => 'u'
550
+ cat_0 = Category.create :name => 'Category_0', :owner_id => pushkin.id, :owner_type => 'u'
551
+ cat_0_0 =Category.create :name => 'Category_0_0', :owner_id => pushkin.id, :owner_type => 'u', :parent_category_id => cat_0.id
552
+ cat_0_0_0 = Category.create :name => 'Category_0_0_0', :owner_id => pushkin.id, :owner_type => 'u', :parent_category_id => cat_0_0.id
553
+ cat_0_0_1 =Category.create :name => 'Category_0_0_1', :owner_id => pushkin.id, :owner_type => 'u', :parent_category_id => cat_0_0.id
554
+ cat_0_1 =Category.create :name => 'Category_0_1', :owner_id => pushkin.id, :owner_type => 'u', :parent_category_id => cat_0.id
555
+ cat_1 = Category.create :name => 'Category_1', :owner_id => pushkin.id, :owner_type => 'u'
556
+ cat_2 = Category.create :name => 'Category_2', :owner_id => pushkin.id, :owner_type => 'u'
557
+ cat_2_0 =Category.create :name => 'Category_2_0', :owner_id => pushkin.id, :owner_type => 'u', :parent_category_id => cat_2.id
558
+
559
+ cat_0.child_ids = ActiveSupport::JSON.encode [cat_0_0.id, cat_0_0_0.id, cat_0_0_1.id, cat_0_1.id]
560
+ cat_0.save
561
+ cat_0_0.child_ids = ActiveSupport::JSON.encode [cat_0_0_0.id, cat_0_0_1.id]
562
+ cat_0_0.save
563
+ cat_0_0_0.child_ids = ActiveSupport::JSON.encode []
564
+ cat_0_0_0.save
565
+ cat_0_0_1.child_ids = ActiveSupport::JSON.encode []
566
+ cat_0_0_1.save
567
+ cat_0_1.child_ids = ActiveSupport::JSON.encode []
568
+ cat_0_1.save
569
+ cat_1.child_ids = ActiveSupport::JSON.encode []
570
+ cat_1.save
571
+ cat_2.child_ids = ActiveSupport::JSON.encode [cat_2_0.id]
572
+ cat_2.save
573
+ cat_2_0.child_ids = ActiveSupport::JSON.encode []
574
+ cat_2_0.save
575
+
576
+ Blogline.create :item_id => yesenin_post_6.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
577
+ blogline_p_9 = Blogline.create :item_id => pushkin_post_6.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
578
+ Blogline.create :item_id => yesenin_post_5.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
579
+ blogline_p_8 = Blogline.create :item_id => pushkin_post_5.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
580
+ Blogline.create :item_id => lermontov_post_6.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
581
+ Blogline.create :item_id => lermontov_post_5.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
582
+ Blogline.create :item_id => yesenin_post_4.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
583
+ blogline_p_7 = Blogline.create :item_id => pushkin_post_4.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
584
+ Blogline.create :item_id => lermontov_post_4.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
585
+ blogline_p_6 = Blogline.create :item_id => pushkin_comment_2.id, :item_type => 'c', :owner_id => pushkin.id, :owner_type => 'u'
586
+ Blogline.create :item_id => lermontov_post_3.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
587
+ Blogline.create :item_id => lermontov_post_2.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
588
+ Blogline.create :item_id => yesenin_post_3.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
589
+ blogline_p_5 = Blogline.create :item_id => pushkin_post_3.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u', :category_ids => "[#{cat_0_0.id},#{cat_2_0.id}]"
590
+ blogline_p_4 = Blogline.create :item_id => pushkin_post_2.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u', :category_ids => "[#{cat_0.id}]"
591
+ blogline_p_3 = Blogline.create :item_id => pushkin_comment_1.id, :item_type => 'c', :owner_id => pushkin.id, :owner_type => 'u', :category_ids => "[#{cat_2.id}]"
592
+ Blogline.create :item_id => yesenin_post_2.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
593
+ Blogline.create :item_id => lermontov_post_1.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
594
+ Blogline.create :item_id => yesenin_post_1.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
595
+ blogline_p_2 = Blogline.create :item_id => pushkin_post_1.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
596
+ blogline_p_1 = Blogline.create :item_id => pushkin_comment_0.id, :item_type => 'c', :owner_id => pushkin.id, :owner_type => 'u', :category_ids => "[#{cat_0_0_1.id}]"
597
+ Blogline.create :item_id => lermontov_post_0.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
598
+ Blogline.create :item_id => yesenin_post_0.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
599
+ blogline_p_0 = Blogline.create :item_id => pushkin_post_0.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u', :category_ids => "[#{cat_0_0_0.id},#{cat_2_0.id}]"
600
+
601
+ BloglinesCategories.create :category_id => cat_0_0.id, :blog_item_id => blogline_p_5.id, :blog_item_created_at => blogline_p_5.created_at, :item_id => blogline_p_5.item_id, :item_type => blogline_p_5.item_type
602
+ BloglinesCategories.create :category_id => cat_2_0.id, :blog_item_id => blogline_p_5.id, :blog_item_created_at => blogline_p_5.created_at, :item_id => blogline_p_5.item_id, :item_type => blogline_p_5.item_type
603
+ BloglinesCategories.create :category_id => cat_0.id, :blog_item_id => blogline_p_4.id, :blog_item_created_at => blogline_p_4.created_at, :item_id => blogline_p_4.item_id, :item_type => blogline_p_4.item_type
604
+ BloglinesCategories.create :category_id => cat_2.id, :blog_item_id => blogline_p_3.id, :blog_item_created_at => blogline_p_3.created_at, :item_id => blogline_p_3.item_id, :item_type => blogline_p_3.item_type
605
+ BloglinesCategories.create :category_id => cat_0_0_1.id, :blog_item_id => blogline_p_1.id, :blog_item_created_at => blogline_p_1.created_at, :item_id => blogline_p_1.item_id, :item_type => blogline_p_1.item_type
606
+ BloglinesCategories.create :category_id => cat_0_0_0.id, :blog_item_id => blogline_p_0.id, :blog_item_created_at => blogline_p_0.created_at, :item_id => blogline_p_0.item_id, :item_type => blogline_p_0.item_type
607
+ BloglinesCategories.create :category_id => cat_2_0.id, :blog_item_id => blogline_p_0.id, :blog_item_created_at => blogline_p_0.created_at, :item_id => blogline_p_0.item_id, :item_type => blogline_p_0.item_type
608
+
609
+ Blogline.where(:category_ids => "[]").each do |blogitem|
610
+ BloglinesCategories.create :category_id => cat.id, :blog_item_id => blogitem.id, :blog_item_created_at => blogitem.created_at, :item_id => blogitem.item_id, :item_type => blogitem.item_type
611
+ end
612
+
613
+ Favoriteline.create :item_id => pushkin_post_4.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
614
+ Favoriteline.create :item_id => yesenin_post_2.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
615
+ Favoriteline.create :item_id => yesenin_post_4.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
616
+ Favoriteline.create :item_id => pushkin_comment_1.id, :item_type => 'c', :owner_id => pushkin.id, :owner_type => 'u'
617
+ Favoriteline.create :item_id => yesenin_post_6.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
618
+ Favoriteline.create :item_id => pushkin_post_3.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
619
+ Favoriteline.create :item_id => pushkin_post_1.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
620
+ Favoriteline.create :item_id => lermontov_post_6.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
621
+ Favoriteline.create :item_id => lermontov_post_2.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
622
+ Favoriteline.create :item_id => lermontov_post_3.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
623
+ Favoriteline.create :item_id => yesenin_post_1.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
624
+ Favoriteline.create :item_id => lermontov_post_1.id, :item_type => 'p', :owner_id => pushkin.id, :owner_type => 'u'
625
+ Favoriteline.create :item_id => pushkin_comment_2.id, :item_type => 'c', :owner_id => pushkin.id, :owner_type => 'u'