blacklight 5.4.0.rc1 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 540546b2abe3b14b82ac1bf0bc9c079db212a291
4
- data.tar.gz: 7fa2ffa45e80e88b3d02a744124b94be1f7b64a5
3
+ metadata.gz: 8c37c9845bc5cd732386ab0fc43bbf2935022e25
4
+ data.tar.gz: f8aebbe56c4b6f9f7120d1e9901896da3dc0b71f
5
5
  SHA512:
6
- metadata.gz: a06c30a6d5e7b2bb8686ed8f80a8bad01e237b9bf52d6af2fb63c546c15a631e4b8f77c033afffcd231499101d404369d8eda26c2ed58f18f02b8e490c4884d4
7
- data.tar.gz: b47793969ac19bd39fc851cd1ade641be5b97c84ecc2bdbc34a0412ca628150833c2d50dda1f093ba4e8d331543c46fb5ca6e5b5d5978a38d79610177b5ce26a
6
+ metadata.gz: 5318ae2e9e5507c0afd82e057eeef478df545c8f17c2ba817ba0e216a455222392ab1a093ceca2d2223ac51d8be18386ec4b453693f1e4c2016ede24fdaea6a6
7
+ data.tar.gz: c4969efe9347576951e642bd6f9506624ea35a03eaf5dbf14fd1d428c9760de80481e3fc97d6fc0e5cc2dca4a0f22cb2e57f7566714e037340ee504cd19cb1c6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.4.0.rc1
1
+ 5.4.0
@@ -125,7 +125,7 @@ module Blacklight::FacetsHelperBehavior
125
125
  # @return [String]
126
126
  def render_facet_count(num, options = {})
127
127
  classes = (options[:classes] || []) << "facet-count"
128
- content_tag("span", t('blacklight.search.facets.count', :number => num), :class => classes)
128
+ content_tag("span", t('blacklight.search.facets.count', :number => number_with_delimiter(num)), :class => classes)
129
129
  end
130
130
 
131
131
  ##
@@ -266,7 +266,7 @@ module Blacklight::UrlHelperBehavior
266
266
  # user's bookmarks in 'refworks marc txt' format -- we tell refworks
267
267
  # to expect that format.
268
268
  def bookmarks_export_url(format, params = {})
269
- bookmarks_url(params.merge(format: :format, encrypted_user_id: encrypt_user_id(current_or_guest_user.id) ))
269
+ bookmarks_url(params.merge(format: format, encrypted_user_id: encrypt_user_id(current_or_guest_user.id) ))
270
270
  end
271
271
 
272
272
  # This method should move to BlacklightMarc in Blacklight 6.x
@@ -3,7 +3,7 @@
3
3
  <span class="sr-only"><%= t('blacklight.search.per_page.title') %></span>
4
4
  <div id="per_page-dropdown" class="btn-group">
5
5
  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><%= link_to(t(:'blacklight.search.per_page.button_label', :count => current_per_page), "#") %> <span class="caret"></span></button>
6
- <ul class="dropdown-menu">
6
+ <ul class="dropdown-menu" role="menu">
7
7
  <%- per_page_options_for_select.each do |(label, count)| %>
8
8
  <li><%= link_to(label, url_for(params_for_search(:per_page => count))) %></li>
9
9
  <%- end -%>
@@ -4,7 +4,7 @@
4
4
  <%= link_to(t('blacklight.search.sort.label', :field =>current_sort_field.label), "#") %> <span class="caret"></span>
5
5
  </button>
6
6
 
7
- <ul class="dropdown-menu">
7
+ <ul class="dropdown-menu" role="menu">
8
8
  <%- active_sort_fields.each do |sort_key, field_config| %>
9
9
  <li><%= link_to(field_config.label, url_for(params_for_search(:sort => sort_key))) %></li>
10
10
  <%- end -%>
@@ -40,15 +40,13 @@ This generator makes the following changes to your application:
40
40
  generate "devise_guests", model_name.classify
41
41
 
42
42
  # add the #to_s to the model.
43
- insert_into_file("app/models/#{model_name}.rb", :before => /end(\n| )*$/) do
44
- %{
45
- # Method added by Blacklight; Blacklight uses #to_s on your
46
- # user class to get a user-displayable login/identifier for
47
- # the account.
48
- def to_s
49
- email
50
- end
51
- }
43
+ insert_into_file("app/models/#{model_name}.rb", before: /end(\n| )*$/) do
44
+ "\n # Method added by Blacklight; Blacklight uses #to_s on your\n" +
45
+ " # user class to get a user-displayable login/identifier for\n" +
46
+ " # the account.\n" +
47
+ " def to_s\n" +
48
+ " email\n" +
49
+ " end\n"
52
50
  end
53
51
  gsub_file("config/initializers/devise.rb", "config.sign_out_via = :delete", "config.sign_out_via = :get")
54
52
  end
@@ -424,4 +424,12 @@ describe BlacklightUrlHelper do
424
424
  expect(added_facet_params_from_facet_action).to eq added_facet_params.except(Blacklight::Solr::FacetPaginator.request_keys[:page], Blacklight::Solr::FacetPaginator.request_keys[:sort])
425
425
  end
426
426
  end
427
+
428
+ describe "#bookmarks_export_url" do
429
+ it "should be the bookmark url with an encrypted user token" do
430
+ helper.stub(encrypt_user_id: 'xyz', current_or_guest_user: double(id: 123))
431
+ url = helper.bookmarks_export_url(:html)
432
+ expect(url).to eq helper.bookmarks_url(format: :html, encrypted_user_id: 'xyz')
433
+ end
434
+ end
427
435
  end
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: 5.4.0.rc1
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2014-04-10 00:00:00.000000000 Z
20
+ date: 2014-05-05 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -521,9 +521,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
521
521
  version: '0'
522
522
  required_rubygems_version: !ruby/object:Gem::Requirement
523
523
  requirements:
524
- - - ">"
524
+ - - ">="
525
525
  - !ruby/object:Gem::Version
526
- version: 1.3.1
526
+ version: '0'
527
527
  requirements: []
528
528
  rubyforge_project:
529
529
  rubygems_version: 2.2.2