blacklight 4.0.0.rc1 → 4.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.0.rc1
1
+ 4.0.0.rc2
@@ -14,7 +14,6 @@ Blacklight.setup_modal = function(link_selector, form_selector, launch_modal) {
14
14
  });
15
15
 
16
16
  jqxhr.always( function (data) {
17
- if (data.statusText == "OK") {
18
17
  $('#ajax-modal').html(data.responseText);
19
18
  Blacklight.setup_modal('.modal-footer a', '#ajax-modal form.ajax_form', false);
20
19
 
@@ -22,7 +21,6 @@ Blacklight.setup_modal = function(link_selector, form_selector, launch_modal) {
22
21
  $('#ajax-modal').modal();
23
22
  }
24
23
  Blacklight.check_close_ajax_modal();
25
- }
26
24
  });
27
25
  });
28
26
 
@@ -37,11 +35,9 @@ Blacklight.setup_modal = function(link_selector, form_selector, launch_modal) {
37
35
 
38
36
 
39
37
  jqxhr.always (function (data) {
40
- if (data.statusText == "OK") {
41
38
  $('#ajax-modal').html(data.responseText);
42
39
  Blacklight.setup_modal('#ajax-modal .ajax_reload_link', '#ajax-modal form.ajax_form', false);
43
40
  Blacklight.check_close_ajax_modal();
44
- }
45
41
  });
46
42
 
47
43
 
@@ -45,6 +45,8 @@ class BookmarksController < CatalogController
45
45
  @bookmarks = [{ :document_id => params[:id] }]
46
46
  end
47
47
 
48
+ current_or_guest_user.save! unless current_or_guest_user.persisted?
49
+
48
50
  success = @bookmarks.all? do |bookmark|
49
51
  current_or_guest_user.bookmarks.create(bookmark) unless current_or_guest_user.existing_bookmark_for(bookmark[:document_id])
50
52
  end
@@ -72,7 +72,7 @@ EOF
72
72
  def generate_devise_assets
73
73
  if options[:devise]
74
74
  gem "devise"
75
- gem "devise-guests", "~> 0.2"
75
+ gem "devise-guests", "~> 0.3"
76
76
 
77
77
  Bundler.with_clean_env do
78
78
  run "bundle install"
@@ -80,6 +80,7 @@ EOF
80
80
 
81
81
  generate "devise:install"
82
82
  generate "devise", model_name.classify
83
+ generate "devise_guests", model_name.classify
83
84
  generate "devise:views"
84
85
 
85
86
  # add the #to_s to the model.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.rc1
4
+ version: 4.0.0.rc2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -467,7 +467,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
467
467
  version: '0'
468
468
  segments:
469
469
  - 0
470
- hash: 4562410494290204402
470
+ hash: -1208323938627486571
471
471
  required_rubygems_version: !ruby/object:Gem::Requirement
472
472
  none: false
473
473
  requirements: