enju_bookmark 0.1.2.pre14 → 0.1.2.pre15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/bookmark_stat_has_manifestations_controller.rb +12 -12
  3. data/app/controllers/bookmark_stats_controller.rb +13 -13
  4. data/app/controllers/bookmarks_controller.rb +18 -19
  5. data/app/controllers/tags_controller.rb +6 -7
  6. data/app/models/bookmark.rb +12 -12
  7. data/app/models/bookmark_stat.rb +20 -12
  8. data/app/models/bookmark_stat_has_manifestation.rb +2 -2
  9. data/app/models/bookmark_stat_state_machine.rb +13 -0
  10. data/app/models/bookmark_stat_transition.rb +20 -0
  11. data/app/models/tag.rb +5 -5
  12. data/app/views/bookmark_stat_has_manifestations/edit.html.erb +3 -3
  13. data/app/views/bookmark_stat_has_manifestations/index.html.erb +5 -5
  14. data/app/views/bookmark_stat_has_manifestations/new.html.erb +3 -3
  15. data/app/views/bookmark_stat_has_manifestations/show.html.erb +3 -3
  16. data/app/views/bookmark_stats/edit.html.erb +3 -3
  17. data/app/views/bookmark_stats/index.html.erb +6 -6
  18. data/app/views/bookmark_stats/new.html.erb +3 -3
  19. data/app/views/bookmark_stats/show.html.erb +6 -6
  20. data/app/views/bookmarks/_index.html.erb +8 -8
  21. data/app/views/bookmarks/_index_user.html.erb +9 -9
  22. data/app/views/bookmarks/_tag_cloud.html.erb +1 -1
  23. data/app/views/bookmarks/edit.html.erb +8 -8
  24. data/app/views/bookmarks/new.html.erb +7 -7
  25. data/app/views/bookmarks/show.html.erb +7 -7
  26. data/app/views/manifestations/_bookmarks_for_this_manifestation.html.erb +3 -3
  27. data/app/views/manifestations/_show_tag.html.erb +1 -1
  28. data/app/views/manifestations/_tag_edit.html.erb +8 -8
  29. data/app/views/manifestations/_tag_list.html.erb +2 -2
  30. data/app/views/tags/edit.html.erb +5 -5
  31. data/app/views/tags/index.atom.builder +2 -2
  32. data/app/views/tags/index.html.erb +8 -8
  33. data/app/views/tags/index.rss.builder +5 -5
  34. data/app/views/tags/show.html.erb +6 -6
  35. data/config/routes.rb +0 -3
  36. data/db/migrate/20081212151614_create_bookmark_stats.rb +0 -3
  37. data/db/migrate/20140812093836_add_share_bookmarks_to_profile.rb +5 -0
  38. data/lib/enju_bookmark.rb +2 -0
  39. data/lib/enju_bookmark/engine.rb +1 -1
  40. data/lib/enju_bookmark/profile.rb +13 -0
  41. data/lib/enju_bookmark/user.rb +2 -0
  42. data/lib/enju_bookmark/version.rb +1 -1
  43. data/spec/controllers/bookmark_stat_has_manifestations_controller_spec.rb +21 -21
  44. data/spec/controllers/bookmark_stats_controller_spec.rb +21 -21
  45. data/spec/controllers/bookmarks_controller_spec.rb +5 -11
  46. data/spec/controllers/tags_controller_spec.rb +15 -15
  47. data/spec/dummy/config/initializers/statesman.rb +3 -0
  48. data/spec/dummy/db/development.sqlite3 +0 -0
  49. data/spec/dummy/db/migrate/001_create_agents.rb +0 -3
  50. data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -19
  51. data/spec/dummy/db/migrate/006_create_items.rb +0 -3
  52. data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
  53. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +0 -2
  54. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -3
  55. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +0 -1
  56. data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
  57. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -2
  58. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  59. data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
  60. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -11
  61. data/spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb +5 -0
  62. data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
  63. data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
  64. data/spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +6 -0
  65. data/spec/dummy/db/migrate/{20111201121844_create_roles.rb → 20130506175303_create_identifier_types.rb} +2 -2
  66. data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +15 -0
  67. data/spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +5 -0
  68. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
  69. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
  70. data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
  71. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
  72. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
  73. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
  74. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +14 -0
  75. data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
  76. data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
  77. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
  78. data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
  79. data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
  80. data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
  81. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
  82. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +14 -0
  83. data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
  84. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
  85. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
  86. data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
  87. data/spec/dummy/db/migrate/{20121119153944_add_manifestation_id_to_item.rb → 20140802082007_add_manifestation_id_to_item.rb} +1 -0
  88. data/spec/dummy/db/schema.rb +215 -55
  89. data/spec/dummy/db/test.sqlite3 +0 -0
  90. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  91. data/spec/dummy/solr/default/data/index/segments_1bi +0 -0
  92. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001699 +0 -0
  93. data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000905 → tlog.0000000000000001700} +0 -0
  94. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001701 +0 -0
  95. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001702 +0 -0
  96. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001703 +0 -0
  97. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001704 +0 -0
  98. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001705 +0 -0
  99. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001706 +0 -0
  100. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001707 +0 -0
  101. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001708 +0 -0
  102. data/spec/factories/profile.rb +10 -0
  103. data/spec/factories/user.rb +0 -13
  104. data/spec/fixtures/agents.yml +0 -12
  105. data/spec/fixtures/bookmark_stats.yml +0 -4
  106. data/spec/fixtures/items.yml +60 -21
  107. data/spec/fixtures/manifestations.yml +42 -178
  108. data/spec/fixtures/profiles.yml +99 -0
  109. data/spec/fixtures/users.yml +3 -29
  110. data/spec/models/bookmark_spec.rb +1 -1
  111. data/spec/models/bookmark_stat_spec.rb +1 -3
  112. data/spec/spec_helper.rb +2 -0
  113. metadata +117 -42
  114. data/app/models/bookmark_sweeper.rb +0 -21
  115. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  116. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
  117. data/spec/dummy/solr/default/data/index/segments_pf +0 -0
  118. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000904 +0 -0
  119. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000906 +0 -0
  120. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000907 +0 -0
  121. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000908 +0 -0
  122. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000909 +0 -0
  123. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000910 +0 -0
  124. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000911 +0 -0
  125. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000912 +0 -0
  126. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000913 +0 -0
@@ -1,21 +0,0 @@
1
- class BookmarkSweeper < ActionController::Caching::Sweeper
2
- include ExpireEditableFragment
3
- include ExpireTagCloud
4
- observe Bookmark, Tag
5
-
6
- def after_save(record)
7
- case record.class.to_s.to_sym
8
- when :Bookmark
9
- expire_editable_fragment(record.manifestation)
10
- expire_tag_cloud(record)
11
- when :Tag
12
- record.taggings.collect(&:taggable).each do |taggable|
13
- expire_editable_fragment(taggable)
14
- end
15
- end
16
- end
17
-
18
- def after_destroy(record)
19
- after_save(record)
20
- end
21
- end
@@ -1,13 +0,0 @@
1
- class RenameManifestationNumberListToNumberString < ActiveRecord::Migration
2
- def self.up
3
- rename_column :manifestations, :volume_number_list, :volume_number_string
4
- rename_column :manifestations, :issue_number_list, :issue_number_string
5
- rename_column :manifestations, :serial_number_list, :serial_number_string
6
- end
7
-
8
- def self.down
9
- rename_column :manifestations, :serial_number_string, :serial_number_list
10
- rename_column :manifestations, :issue_number_string, :issue_number_list
11
- rename_column :manifestations, :volume_number_string, :volume_number_list
12
- end
13
- end
@@ -1,9 +0,0 @@
1
- class RenameResourceImportFileImportedAtToExecutedAt < ActiveRecord::Migration
2
- def up
3
- rename_column :resource_import_files, :imported_at, :executed_at
4
- end
5
-
6
- def down
7
- rename_column :resource_import_files, :executed_at, :imported_at
8
- end
9
- end