umlaut 3.0.0alpha6 → 3.0.0alpha7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ require 'digest/md5'
2
+
1
3
  # An ActiveRecord which represents a parsed OpenURL resolve service request,
2
4
  # and other persistent state related to Umlaut's handling of that OpenURL
3
5
  # request) should not be confused with the Rails ActionController::Request
@@ -409,7 +411,11 @@ class Request < ActiveRecord::Base
409
411
  # Returns nil if there aren't any params to include in the fingerprint.
410
412
  def self.co_params_fingerprint(params)
411
413
  # Don't use ctx_time, consider two co's equal if they are equal but for ctx_tim.
412
- excluded_keys = ["action", "controller", "page", "rft.action", "rft.controller", "ctx_tim"]
414
+ # exclude cache-busting "_" key that JQuery adds. Fine to bust HTTP cache, but
415
+ # don't want to it to force new Umlaut processing.
416
+ # exclude umlaut.jsonp and umlaut.response_format, those shouldn't effect cache
417
+ # lookup.
418
+ excluded_keys = ["action", "controller", "page", "rft.action", "rft.controller", "ctx_tim", "_", "umlaut.jsonp", "umlaut.response_format", "format"]
413
419
  # "url_ctx_val", "request_xml"
414
420
 
415
421
  # Hash.sort will do a first run through of canonicalization for us
@@ -431,7 +437,9 @@ class Request < ActiveRecord::Base
431
437
  pair[1].sort! if (pair[1] && pair[1].respond_to?("sort!"))
432
438
  end
433
439
  end
440
+
434
441
 
442
+
435
443
  return nil if params.blank?
436
444
 
437
445
  # And YAML-ize for a serliazation
@@ -440,7 +448,6 @@ class Request < ActiveRecord::Base
440
448
 
441
449
  # And make an MD5 hash/digest. Why store the whole thing if all we need to
442
450
  # do is look it up? hash/digest works well for this.
443
- require 'digest/md5'
444
451
  return Digest::MD5.hexdigest( serialized )
445
452
  end
446
453
 
@@ -16,7 +16,7 @@ module Umlaut
16
16
 
17
17
  /* Umlaut needs a jquery-ui theme CSS. Here's an easy way to get one,
18
18
  you can replace with another theme. */
19
- @import url(http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css);
19
+ @import url(//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css);
20
20
  }
21
21
  end
22
22
  else
@@ -1,3 +1,3 @@
1
1
  module Umlaut
2
- VERSION = "3.0.0alpha6"
2
+ VERSION = "3.0.0alpha7"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umlaut
3
3
  version: !ruby/object:Gem::Version
4
- hash: -3702664400
4
+ hash: -3702664398
5
5
  prerelease: 5
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
9
  - 0
10
10
  - alpha
11
- - 6
12
- version: 3.0.0alpha6
11
+ - 7
12
+ version: 3.0.0alpha7
13
13
  platform: ruby
14
14
  authors:
15
15
  - Jonathan Rochkind, et al
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-01-05 00:00:00 Z
20
+ date: 2012-01-10 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
@@ -355,7 +355,6 @@ files:
355
355
  - lib/service_adaptors/opac.rb
356
356
  - lib/xml_schema_helper.rb
357
357
  - lib/metadata_helper.rb
358
- - lib/#Untitled-1#
359
358
  - lib/generators/templates/umlaut_services.yml
360
359
  - lib/generators/umlaut/install_generator.rb
361
360
  - lib/generators/umlaut/asset_hooks_generator.rb
data/lib/#Untitled-1# DELETED
@@ -1,14 +0,0 @@
1
- http://blacklight.mse.jhu.edu:3000/resolve/index?ctx_enc=info%3Aofi%2Fenc%3AUTF-8
2
- &ctx_id=
3
- &ctx_tim=2012-01-05T10%3A55%3A49-05%3A00
4
- &ctx_ver=Z39.88-2004
5
- &rfr_id=info%3Asid%3Alibrary.jhu.edu%2Fblacklight
6
- &rft.genre=journal
7
- &rft.issn=00987484
8
- &rft.jtitle=JAMA%3A+the+journal+of+the+American+Medical+Association
9
- &rft_id=https%3A%2F%2Fblacklight.mse.jhu.edu%2Fdemo%2Fcatalog%2Fbib_647591
10
- &rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal
11
- &umlaut.request_id=6
12
- &umlaut_show_umlaut_fulltext=true
13
- &url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx
14
- &url_ver=Z39.88-2004