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.
- checksums.yaml +4 -4
- data/app/controllers/bookmark_stat_has_manifestations_controller.rb +12 -12
- data/app/controllers/bookmark_stats_controller.rb +13 -13
- data/app/controllers/bookmarks_controller.rb +18 -19
- data/app/controllers/tags_controller.rb +6 -7
- data/app/models/bookmark.rb +12 -12
- data/app/models/bookmark_stat.rb +20 -12
- data/app/models/bookmark_stat_has_manifestation.rb +2 -2
- data/app/models/bookmark_stat_state_machine.rb +13 -0
- data/app/models/bookmark_stat_transition.rb +20 -0
- data/app/models/tag.rb +5 -5
- data/app/views/bookmark_stat_has_manifestations/edit.html.erb +3 -3
- data/app/views/bookmark_stat_has_manifestations/index.html.erb +5 -5
- data/app/views/bookmark_stat_has_manifestations/new.html.erb +3 -3
- data/app/views/bookmark_stat_has_manifestations/show.html.erb +3 -3
- data/app/views/bookmark_stats/edit.html.erb +3 -3
- data/app/views/bookmark_stats/index.html.erb +6 -6
- data/app/views/bookmark_stats/new.html.erb +3 -3
- data/app/views/bookmark_stats/show.html.erb +6 -6
- data/app/views/bookmarks/_index.html.erb +8 -8
- data/app/views/bookmarks/_index_user.html.erb +9 -9
- data/app/views/bookmarks/_tag_cloud.html.erb +1 -1
- data/app/views/bookmarks/edit.html.erb +8 -8
- data/app/views/bookmarks/new.html.erb +7 -7
- data/app/views/bookmarks/show.html.erb +7 -7
- data/app/views/manifestations/_bookmarks_for_this_manifestation.html.erb +3 -3
- data/app/views/manifestations/_show_tag.html.erb +1 -1
- data/app/views/manifestations/_tag_edit.html.erb +8 -8
- data/app/views/manifestations/_tag_list.html.erb +2 -2
- data/app/views/tags/edit.html.erb +5 -5
- data/app/views/tags/index.atom.builder +2 -2
- data/app/views/tags/index.html.erb +8 -8
- data/app/views/tags/index.rss.builder +5 -5
- data/app/views/tags/show.html.erb +6 -6
- data/config/routes.rb +0 -3
- data/db/migrate/20081212151614_create_bookmark_stats.rb +0 -3
- data/db/migrate/20140812093836_add_share_bookmarks_to_profile.rb +5 -0
- data/lib/enju_bookmark.rb +2 -0
- data/lib/enju_bookmark/engine.rb +1 -1
- data/lib/enju_bookmark/profile.rb +13 -0
- data/lib/enju_bookmark/user.rb +2 -0
- data/lib/enju_bookmark/version.rb +1 -1
- data/spec/controllers/bookmark_stat_has_manifestations_controller_spec.rb +21 -21
- data/spec/controllers/bookmark_stats_controller_spec.rb +21 -21
- data/spec/controllers/bookmarks_controller_spec.rb +5 -11
- data/spec/controllers/tags_controller_spec.rb +15 -15
- data/spec/dummy/config/initializers/statesman.rb +3 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/001_create_agents.rb +0 -3
- data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -19
- data/spec/dummy/db/migrate/006_create_items.rb +0 -3
- data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +0 -2
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -3
- data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +0 -1
- data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -2
- data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -11
- data/spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
- data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
- data/spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/{20111201121844_create_roles.rb → 20130506175303_create_identifier_types.rb} +2 -2
- data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +15 -0
- data/spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
- data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
- data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
- data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/{20121119153944_add_manifestation_id_to_item.rb → 20140802082007_add_manifestation_id_to_item.rb} +1 -0
- data/spec/dummy/db/schema.rb +215 -55
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_1bi +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001699 +0 -0
- data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000905 → tlog.0000000000000001700} +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001701 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001702 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001703 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001704 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001705 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001706 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001707 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001708 +0 -0
- data/spec/factories/profile.rb +10 -0
- data/spec/factories/user.rb +0 -13
- data/spec/fixtures/agents.yml +0 -12
- data/spec/fixtures/bookmark_stats.yml +0 -4
- data/spec/fixtures/items.yml +60 -21
- data/spec/fixtures/manifestations.yml +42 -178
- data/spec/fixtures/profiles.yml +99 -0
- data/spec/fixtures/users.yml +3 -29
- data/spec/models/bookmark_spec.rb +1 -1
- data/spec/models/bookmark_stat_spec.rb +1 -3
- data/spec/spec_helper.rb +2 -0
- metadata +117 -42
- data/app/models/bookmark_sweeper.rb +0 -21
- data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
- data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
- data/spec/dummy/solr/default/data/index/segments_pf +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000904 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000906 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000907 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000908 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000909 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000910 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000911 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000912 +0 -0
- 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
|
data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb
DELETED
@@ -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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|