krikri 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +4 -4
  2. data/lib/krikri/harvester.rb +5 -0
  3. data/lib/krikri/harvesters/oai_harvester.rb +47 -10
  4. data/lib/krikri/version.rb +1 -1
  5. data/spec/internal/Gemfile.lock +4 -4
  6. data/spec/internal/config/initializers/blacklight_initializer.rb +1 -1
  7. data/spec/internal/config/initializers/devise.rb +2 -2
  8. data/spec/internal/config/secrets.yml +2 -2
  9. data/spec/internal/db/development.sqlite3 +0 -0
  10. data/spec/internal/db/migrate/{20160114224615_devise_create_users.rb → 20160201014927_devise_create_users.rb} +0 -0
  11. data/spec/internal/db/migrate/{20160114224635_create_searches.blacklight.rb → 20160201014947_create_searches.blacklight.rb} +0 -0
  12. data/spec/internal/db/migrate/{20160114224636_create_bookmarks.blacklight.rb → 20160201014948_create_bookmarks.blacklight.rb} +0 -0
  13. data/spec/internal/db/migrate/{20160114224637_add_polymorphic_type_to_bookmarks.blacklight.rb → 20160201014949_add_polymorphic_type_to_bookmarks.blacklight.rb} +0 -0
  14. data/spec/internal/db/schema.rb +1 -1
  15. data/spec/internal/db/test.sqlite3 +0 -0
  16. data/spec/internal/log/development.log +88 -88
  17. data/spec/internal/log/test.log +6182 -6061
  18. data/spec/lib/krikri/harvesters/oai_harvester_spec.rb +50 -0
  19. metadata +10 -308
  20. data/spec/internal/tmp/cache/318/301/krikri%2Fapplication_helper%2Favailable_providers +0 -0
  21. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_alerts.scssc +0 -0
  22. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_background-variant.scssc +0 -0
  23. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_border-radius.scssc +0 -0
  24. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_buttons.scssc +0 -0
  25. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_center-block.scssc +0 -0
  26. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_clearfix.scssc +0 -0
  27. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_forms.scssc +0 -0
  28. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_gradients.scssc +0 -0
  29. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_grid-framework.scssc +0 -0
  30. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_grid.scssc +0 -0
  31. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_hide-text.scssc +0 -0
  32. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_image.scssc +0 -0
  33. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_labels.scssc +0 -0
  34. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_list-group.scssc +0 -0
  35. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_nav-divider.scssc +0 -0
  36. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_nav-vertical-align.scssc +0 -0
  37. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_opacity.scssc +0 -0
  38. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_pagination.scssc +0 -0
  39. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_panels.scssc +0 -0
  40. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_progress-bar.scssc +0 -0
  41. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_reset-filter.scssc +0 -0
  42. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_resize.scssc +0 -0
  43. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_responsive-visibility.scssc +0 -0
  44. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_size.scssc +0 -0
  45. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_tab-focus.scssc +0 -0
  46. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_table-row.scssc +0 -0
  47. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_text-emphasis.scssc +0 -0
  48. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_text-overflow.scssc +0 -0
  49. data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_vendor-prefixes.scssc +0 -0
  50. data/spec/internal/tmp/cache/assets/test/sass/93e201cf4a11978a1f491a057a3bd569c3825210/blacklight.css.scssc +0 -0
  51. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_alerts.scssc +0 -0
  52. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_badges.scssc +0 -0
  53. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_breadcrumbs.scssc +0 -0
  54. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_button-groups.scssc +0 -0
  55. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_buttons.scssc +0 -0
  56. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_carousel.scssc +0 -0
  57. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_close.scssc +0 -0
  58. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_code.scssc +0 -0
  59. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_component-animations.scssc +0 -0
  60. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_dropdowns.scssc +0 -0
  61. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_forms.scssc +0 -0
  62. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_glyphicons.scssc +0 -0
  63. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_grid.scssc +0 -0
  64. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_input-groups.scssc +0 -0
  65. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_jumbotron.scssc +0 -0
  66. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_labels.scssc +0 -0
  67. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_list-group.scssc +0 -0
  68. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_media.scssc +0 -0
  69. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_mixins.scssc +0 -0
  70. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_modals.scssc +0 -0
  71. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_navbar.scssc +0 -0
  72. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_navs.scssc +0 -0
  73. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_normalize.scssc +0 -0
  74. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_pager.scssc +0 -0
  75. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_pagination.scssc +0 -0
  76. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_panels.scssc +0 -0
  77. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_popovers.scssc +0 -0
  78. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_print.scssc +0 -0
  79. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_progress-bars.scssc +0 -0
  80. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_responsive-embed.scssc +0 -0
  81. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_responsive-utilities.scssc +0 -0
  82. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_scaffolding.scssc +0 -0
  83. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_tables.scssc +0 -0
  84. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_thumbnails.scssc +0 -0
  85. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_tooltip.scssc +0 -0
  86. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_type.scssc +0 -0
  87. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_utilities.scssc +0 -0
  88. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_variables.scssc +0 -0
  89. data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_wells.scssc +0 -0
  90. data/spec/internal/tmp/cache/assets/test/sass/b28605b1c659cf09fc72f3c1fff32918869d28b8/_bootstrap-sprockets.scssc +0 -0
  91. data/spec/internal/tmp/cache/assets/test/sass/b28605b1c659cf09fc72f3c1fff32918869d28b8/_bootstrap.scssc +0 -0
  92. data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_blacklight_base.scssc +0 -0
  93. data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_bookmark.scssc +0 -0
  94. data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_catalog.scssc +0 -0
  95. data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_facets.scssc +0 -0
  96. data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_group.scssc +0 -0
  97. data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_header.scssc +0 -0
  98. data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_layout.scssc +0 -0
  99. data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_modal.scssc +0 -0
  100. data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_search_history.scssc +0 -0
  101. data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/blacklight.scssc +0 -0
  102. data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/blacklight_defaults.scssc +0 -0
  103. data/spec/internal/tmp/cache/assets/test/sprockets/059eceaa18e2eaee3d5168f3949f4957 +0 -0
  104. data/spec/internal/tmp/cache/assets/test/sprockets/093d898bf3f20b26b13c82714a77c040 +0 -0
  105. data/spec/internal/tmp/cache/assets/test/sprockets/10517c9579f8d23c82fb8caa66dca6a7 +0 -0
  106. data/spec/internal/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  107. data/spec/internal/tmp/cache/assets/test/sprockets/19f4ba6fa86d2609c171da9f5ee3b11a +0 -0
  108. data/spec/internal/tmp/cache/assets/test/sprockets/2bec18569db80effd80a2a19a038100b +0 -0
  109. data/spec/internal/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  110. data/spec/internal/tmp/cache/assets/test/sprockets/30ca7caa200fa8eaddaef443913ad9ad +0 -0
  111. data/spec/internal/tmp/cache/assets/test/sprockets/350a65d446eb7398f96d102f7a1a6d69 +0 -0
  112. data/spec/internal/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  113. data/spec/internal/tmp/cache/assets/test/sprockets/4052820c15af72ba690230a0f92bd75e +0 -0
  114. data/spec/internal/tmp/cache/assets/test/sprockets/41b62fb10530766b5b9fef3338f5f30b +0 -0
  115. data/spec/internal/tmp/cache/assets/test/sprockets/421c89c58d3e76046a0294dae1f731ff +0 -0
  116. data/spec/internal/tmp/cache/assets/test/sprockets/43da966542fafc2a4c768be78527391c +0 -0
  117. data/spec/internal/tmp/cache/assets/test/sprockets/496a0d7dce1ff6bf4a9c3a089ea3a635 +0 -0
  118. data/spec/internal/tmp/cache/assets/test/sprockets/4e93570db72bb61820711448b78d548d +0 -0
  119. data/spec/internal/tmp/cache/assets/test/sprockets/50b9db0b908b421a9b941a445dbaeacc +0 -0
  120. data/spec/internal/tmp/cache/assets/test/sprockets/5155772cce704d83a64aa83eeda20c5a +0 -0
  121. data/spec/internal/tmp/cache/assets/test/sprockets/528c628cf107f8be6dd122e1154344be +0 -0
  122. data/spec/internal/tmp/cache/assets/test/sprockets/5ed02c7072bb024fa0832a1ca4113227 +0 -0
  123. data/spec/internal/tmp/cache/assets/test/sprockets/60141dc3d16c502963c3d798a099862d +0 -0
  124. data/spec/internal/tmp/cache/assets/test/sprockets/6df5b5c0a8e6d87ced9504a460df875e +0 -0
  125. data/spec/internal/tmp/cache/assets/test/sprockets/6eefd2765a716d66ff857cfcda69a119 +0 -0
  126. data/spec/internal/tmp/cache/assets/test/sprockets/72848ec252813c930e57868edab843b5 +0 -0
  127. data/spec/internal/tmp/cache/assets/test/sprockets/88ded10f28177bec1bddb0d72d6b1cd2 +0 -0
  128. data/spec/internal/tmp/cache/assets/test/sprockets/8edfca9082e02111be92e79000667f22 +0 -0
  129. data/spec/internal/tmp/cache/assets/test/sprockets/90b54a819800edfa41b67722d1561040 +0 -0
  130. data/spec/internal/tmp/cache/assets/test/sprockets/927d682c9287262facf9333dfaef813c +0 -0
  131. data/spec/internal/tmp/cache/assets/test/sprockets/93aaa9231a32901266b05632f3d35ecd +0 -0
  132. data/spec/internal/tmp/cache/assets/test/sprockets/9c653367feff82588eb6041d783a5809 +0 -0
  133. data/spec/internal/tmp/cache/assets/test/sprockets/9ce190f082dc4fb74bddb818cc011ce6 +0 -0
  134. data/spec/internal/tmp/cache/assets/test/sprockets/ab2a05b91d7d316d4ceb47ce067006fb +0 -0
  135. data/spec/internal/tmp/cache/assets/test/sprockets/ad4a54c43c2a4c3874bfde1c9f08c248 +0 -0
  136. data/spec/internal/tmp/cache/assets/test/sprockets/b1a42de74c934edd0e5eed0f98a23597 +0 -0
  137. data/spec/internal/tmp/cache/assets/test/sprockets/b1c03c36188b4f58f819510adb9a7e9c +0 -0
  138. data/spec/internal/tmp/cache/assets/test/sprockets/b225d67626669cb154cbe08a3c439d48 +0 -0
  139. data/spec/internal/tmp/cache/assets/test/sprockets/b35e12934e9f05662777579549e31cd7 +0 -0
  140. data/spec/internal/tmp/cache/assets/test/sprockets/b3ae9e3cdd9991d7103b0a00e33b5778 +0 -0
  141. data/spec/internal/tmp/cache/assets/test/sprockets/b42c247628daaf44109584724682a6ad +0 -0
  142. data/spec/internal/tmp/cache/assets/test/sprockets/b660ec1ede271559cfd0259eed96ae9c +0 -0
  143. data/spec/internal/tmp/cache/assets/test/sprockets/ba078b29a7f067b3acdd538a286235a8 +0 -0
  144. data/spec/internal/tmp/cache/assets/test/sprockets/bb108ef3fc4c96d1c20cc41f97d943a0 +0 -0
  145. data/spec/internal/tmp/cache/assets/test/sprockets/bb92f4b8c1bedafe60b6f226b549138a +0 -0
  146. data/spec/internal/tmp/cache/assets/test/sprockets/c644ecad928e076f999e9c9a3bc350c9 +0 -0
  147. data/spec/internal/tmp/cache/assets/test/sprockets/c78dd20a0df27e9394a413bf2e4abf92 +0 -0
  148. data/spec/internal/tmp/cache/assets/test/sprockets/c9efce42580b0ad0374a052aa61f2a07 +0 -0
  149. data/spec/internal/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  150. data/spec/internal/tmp/cache/assets/test/sprockets/d1bce36d6e3ab792562b9c929f2ce897 +0 -0
  151. data/spec/internal/tmp/cache/assets/test/sprockets/d23c35c7aba77b1c68e42603120aebd2 +0 -0
  152. data/spec/internal/tmp/cache/assets/test/sprockets/d24a7c4b8ac71a90e809881a64970898 +0 -0
  153. data/spec/internal/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  154. data/spec/internal/tmp/cache/assets/test/sprockets/db0d9534ecdebba33af5d1d81060e855 +0 -0
  155. data/spec/internal/tmp/cache/assets/test/sprockets/dbba4bbc32c17ade3d618c5d0baeb371 +0 -0
  156. data/spec/internal/tmp/cache/assets/test/sprockets/e315f2e6fe546b7a0e37fcfc0f647c84 +0 -0
  157. data/spec/internal/tmp/cache/assets/test/sprockets/e8276b98892dcac8285a592bb63fe75b +0 -0
  158. data/spec/internal/tmp/cache/assets/test/sprockets/e9f7ccc553ce1a217709cc7a08cfb032 +0 -0
  159. data/spec/internal/tmp/cache/assets/test/sprockets/ecfc314951b349e27742c1b26880619e +0 -0
  160. data/spec/internal/tmp/cache/assets/test/sprockets/eddae0741d973a8ab3df27c1ea5b635e +0 -0
  161. data/spec/internal/tmp/cache/assets/test/sprockets/f274b5f22db177b6464b50691d531688 +0 -0
  162. data/spec/internal/tmp/cache/assets/test/sprockets/f3935581a84aba9a499005ed6a8e18be +0 -0
  163. data/spec/internal/tmp/cache/assets/test/sprockets/f3e7729c53b8a2c408086a61b58922ae +0 -0
  164. data/spec/internal/tmp/cache/assets/test/sprockets/f45dfdb34e84d3c72a3319399a7316a3 +0 -0
  165. data/spec/internal/tmp/cache/assets/test/sprockets/f74af03e26e893af40b07a6d0f970cd4 +0 -0
  166. data/spec/internal/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  167. data/spec/internal/tmp/cache/assets/test/sprockets/fa11f1beb15b0f04503ce1f06701a8bf +0 -0
  168. data/spec/internal/tmp/cache/assets/test/sprockets/faac2909046aa87e1f1f08b2bf0ad2b2 +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24f203971eae45daf869b1fac3553af154509e87
4
- data.tar.gz: f633a0305b66fa97bf365ebbbf858c0ecbb088ca
3
+ metadata.gz: ed0c538e39d8f73fe8b01cc8b71e84f5d4301229
4
+ data.tar.gz: a1e4947bae2177804b1cda18251cf0cacb8cf700
5
5
  SHA512:
6
- metadata.gz: 595e114e8b514d645d89e6d2a9033deb1e1e505e6d390ebd6f4d4de886300e9806e97cde3998d9611703a135439f4d97dcf709d60638492ac6d6656725066c18
7
- data.tar.gz: f085f2ee8930b1622a62cb03d6fe7b848ddf826c3eaf84061700d75fa89ba92086fff79b0703c55a871f24acf892565e9453f70e79ee637a2bcd5545fac3f093
6
+ metadata.gz: 62aad477bfe83bdf1aad7ef810bc0ac99391874a8491750c769a36a7b92517fe90242e66570dbd8f512e82d232a91901272c473256c8e69e00641c2f43aac8c7
7
+ data.tar.gz: 06e3c912140e8b42c25391e8e727a2d6650b36c52cb028810d97e521045756e0d6f1f88d66c7eda6f41f3c978e7cb3ec821b9e6ddd6477f61cfda7b9b0e94b69
@@ -131,6 +131,7 @@ module Krikri
131
131
  # @see Krirki::Harvesters:HarvestBehavior
132
132
  def run(activity_uri = nil)
133
133
  records.each do |rec|
134
+ next if rec.nil?
134
135
  begin
135
136
  process_record(rec, activity_uri)
136
137
  rescue => e
@@ -193,5 +194,9 @@ module Krikri
193
194
  def mint_id(seed)
194
195
  @id_minter.create(*[seed, @name].compact)
195
196
  end
197
+
198
+ public
199
+
200
+ class IdentifierError < ArgumentError; end
196
201
  end
197
202
  end
@@ -22,6 +22,8 @@ module Krikri::Harvesters
22
22
  # - metadata_prefix: A string specifying the metadata prefix. e.g. 'oai_dc'.
23
23
  # - from: The begin date for the harvest.
24
24
  # - until: The end date for the harvest.
25
+ # - id_path: An alternate xpath (e.g. '//dc:identifier') from which to load
26
+ # raw identifier strings. Default: <record><header><identifier>.
25
27
  #
26
28
  # @see http://www.rubydoc.info/gems/oai/OAI/Client
27
29
  class OAIHarvester
@@ -32,12 +34,16 @@ module Krikri::Harvesters
32
34
  # @param opts [Hash] options to pass through to client requests.
33
35
  # Allowable options are specified in OAI::Const::Verbs. Currently :from,
34
36
  # :until, :set, and :metadata_prefix.
37
+ # Additionally, you may pass an xpath string to `:id_path` specifying the
38
+ # location of the IDs.
35
39
  # @see OAI::Client
36
40
  # @see #expected_opts
37
41
  def initialize(opts = {})
38
42
  opts[:harvest_behavior] ||= OAISkipDeletedBehavior
39
43
  super
40
- @opts = opts.fetch(:oai, {})
44
+
45
+ @opts = opts.fetch(:oai, {})
46
+ @id_path = @opts.delete(:id_path) { false }
41
47
 
42
48
  http_conn = Faraday.new do |conn|
43
49
  conn.request :retry, :max => 3
@@ -86,8 +92,12 @@ module Krikri::Harvesters
86
92
  opts = @opts.merge(opts)
87
93
  request_with_sets(opts) do |set_opts|
88
94
  client.list_records(set_opts).full.lazy.flat_map do |rec|
89
- @record_class.build(mint_id(rec.header.identifier),
90
- record_xml(rec))
95
+ begin
96
+ @record_class.build(mint_id(get_identifier(rec)),
97
+ record_xml(rec))
98
+ rescue => e
99
+ Krikri::Logger.log(:error, e.message)
100
+ end
91
101
  end
92
102
  end
93
103
  end
@@ -131,11 +141,12 @@ module Krikri::Harvesters
131
141
  {
132
142
  key: :oai,
133
143
  opts: {
134
- set: {type: :string, required: false, multiple_ok: true},
135
- skip_set: {type: :string, required: false, multiple_ok: true},
136
- metadata_prefix: {type: :string, required: false},
137
- from: {type: :string, required: false},
138
- until: {type: :string, required: false}
144
+ set: { type: :string, required: false, multiple_ok: true },
145
+ skip_set: { type: :string, required: false, multiple_ok: true },
146
+ metadata_prefix: { type: :string, required: false },
147
+ from: { type: :string, required: false },
148
+ until: { type: :string, required: false },
149
+ id_path: { type: :string, required: false }
139
150
  }
140
151
  }
141
152
  end
@@ -201,11 +212,37 @@ module Krikri::Harvesters
201
212
  #
202
213
  # @param rec [OAI::Record]
203
214
  # @return [String] an xml string
204
- def record_xml(rec)
215
+ def record_xml(rec, as_doc: false)
205
216
  doc = Nokogiri.XML(rec._source.to_s)
206
217
  doc.root
207
218
  .add_namespace_definition(nil, 'http://www.openarchives.org/OAI/2.0/')
208
- doc.to_xml
219
+ as_doc ? doc : doc.to_xml
220
+ end
221
+
222
+ private
223
+
224
+ def get_identifier(record)
225
+ return record.header.identifier unless @id_path
226
+
227
+ xml = record_xml(record, as_doc: true)
228
+ ns = xml.collect_namespaces.map do |k, v|
229
+ [k.gsub('xmlns:', ''), v]
230
+ end
231
+
232
+ begin
233
+ ids = xml.xpath(@id_path, ns.to_h)
234
+ rescue Nokogiri::XML::XPath::SyntaxError => e
235
+ raise Krikri::Harvester::IdentifierError,
236
+ "No identifier at #{@id_path} for #{record.header.identifier}\n" \
237
+ "\t#{e.message}"
238
+ end
239
+
240
+ if ids.empty?
241
+ raise Krikri::Harvester::IdentifierError,
242
+ "No identifier at #{@id_path} for #{record.header.identifier}"
243
+ end
244
+
245
+ ids.first.text
209
246
  end
210
247
  end
211
248
  end
@@ -1,3 +1,3 @@
1
1
  module Krikri
2
- VERSION = '0.11.1'.freeze
2
+ VERSION = '0.11.2'.freeze
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /home/tjohnson/src/dpla/krikri
3
3
  specs:
4
- krikri (0.11.0)
4
+ krikri (0.11.1)
5
5
  analysand (= 4.0.0)
6
6
  audumbla (~> 0.1)
7
7
  blacklight (~> 5.8.0)
@@ -72,7 +72,7 @@ GEM
72
72
  dpla-map (~> 4.0.0.0.pre.10)
73
73
  geokit
74
74
  twofishes
75
- autoprefixer-rails (6.3.0)
75
+ autoprefixer-rails (6.3.1)
76
76
  execjs
77
77
  json
78
78
  bcrypt (3.1.10)
@@ -200,7 +200,7 @@ GEM
200
200
  method_source (0.8.2)
201
201
  mime-types (2.99)
202
202
  mini_portile2 (2.0.0)
203
- minitest (5.8.3)
203
+ minitest (5.8.4)
204
204
  mono_logger (1.1.0)
205
205
  multi_json (1.11.2)
206
206
  multipart-post (2.0.0)
@@ -377,7 +377,7 @@ GEM
377
377
  unf_ext (0.0.7.1)
378
378
  vegas (0.1.11)
379
379
  rack (>= 1.0.0)
380
- warden (1.2.3)
380
+ warden (1.2.4)
381
381
  rack (>= 1.0)
382
382
  yajl-ruby (1.2.1)
383
383
 
@@ -3,5 +3,5 @@
3
3
  # will use the application's secret key base instead.
4
4
  #
5
5
 
6
- # Blacklight.secret_key = '7730fe252126238fd17b8a152916aa9411acf5988718c7d460c2fec64c1ea58ccc9b99c28d84ff213dc892c7f82c50f14a6cc3670b193b59df2bd91fb6ab497c'
6
+ # Blacklight.secret_key = '2e18692814c107ed106221a977f8a5fa38bd1a8355716a818ff72b8b618dd97e07385335c796361f2d18d00302de916adf1e397ad60f725a4b3f3eebd0c3eff2'
7
7
 
@@ -4,7 +4,7 @@ Devise.setup do |config|
4
4
  # The secret key used by Devise. Devise uses this key to generate
5
5
  # random tokens. Changing this key will render invalid all existing
6
6
  # confirmation, reset password and unlock tokens in the database.
7
- # config.secret_key = 'c5c38941b7b9051f1eaf0770a7c1cd75219ae43c6778869b74cfa87965ae918e6cdc96d01fa818236f48201cbdb8794568c9aa847baff1ed20df4ca8ea41727a'
7
+ # config.secret_key = '8f0b79f6ceba0441e785de1179473bade347d14f3718eeb09d0c46657653bb30f2592d6123de9cb7316910280cf9c81dd5ca2d1794023a5c1de7a715cfb37d20'
8
8
 
9
9
  # ==> Mailer Configuration
10
10
  # Configure the e-mail address which will be shown in Devise::Mailer,
@@ -97,7 +97,7 @@ Devise.setup do |config|
97
97
  config.stretches = Rails.env.test? ? 1 : 10
98
98
 
99
99
  # Setup a pepper to generate the encrypted password.
100
- # config.pepper = '3aa2420a2014d2e3ba226fe04b9f11622010655ab0cc38c80ba94bb8606db7ce88ac7ad51b589a0fa80d4fd640066cf8fb77e8541742eb20cfe35e7dd5efadbc'
100
+ # config.pepper = 'ffc94a9f1b5bd168c80153de7513d7e6e61c8066ea2b793750f4732e65e6c62b1e2f8a729c07de2cf3ad5b465b183364e0ce6acde3a4581ca3e2e64f7c07ef93'
101
101
 
102
102
  # ==> Configuration for :confirmable
103
103
  # A period that the user is allowed to access the website even without
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: 65de12170d46a341399075608ca57aff6612789b24519926c47ca2d6eb1c2e481ce87ae8f26fe37001b82a621e8514d2c8adb00bb3b1d8d1b371c5465ec977a9
14
+ secret_key_base: baa7b78f0d33e176d43c2e53b15cc34a7a13353589e525b444eca2593b2abcbb9a0b55a1b30196d7886d41d7a5801aa2e4ba6aed862340704dbac5f165ddf961
15
15
 
16
16
  test:
17
- secret_key_base: 6ce9fd492b4a440830ba1184ed1efe3782bad811470bc95af7b771f8ca5b2bf6173ece56d1b8dfcc10b57d35b69ce7c4d11a9d98d53d849d64c6f9c770f36d00
17
+ secret_key_base: 775cd9bf2b3e7cb1f9f98ea042f371ca3bbeb565ffaad8314cb89887da924c77bdb1e9be79f03b5790c6345901cee62e5c67df2bf8a80a490b1fe0e4f337882d
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
Binary file
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20160114224637) do
14
+ ActiveRecord::Schema.define(version: 20160201014949) do
15
15
 
16
16
  create_table "bookmarks", force: true do |t|
17
17
  t.integer "user_id", null: false
Binary file
@@ -1,57 +1,57 @@
1
-  (12.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1
+  (40.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
2
   (0.1ms) select sqlite_version(*)
3
-  (10.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3
+  (27.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
5
  Migrating to CreateKrikriInstitutions (20141113200614)
6
-  (0.0ms) begin transaction
7
-  (0.2ms) CREATE TABLE "krikri_institutions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime)
8
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113200614"]]
9
-  (10.4ms) commit transaction
6
+  (0.1ms) begin transaction
7
+  (0.4ms) CREATE TABLE "krikri_institutions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113200614"]]
9
+  (30.9ms) commit transaction
10
10
  Migrating to CreateKrikriHarvestSources (20141113200643)
11
-  (0.0ms) begin transaction
12
-  (0.2ms) CREATE TABLE "krikri_harvest_sources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "institution_id" integer, "name" varchar(255), "source_type" varchar(255), "metadata_schema" varchar(255), "uri" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113200643"]]
14
-  (16.8ms) commit transaction
11
+  (0.1ms) begin transaction
12
+  (0.4ms) CREATE TABLE "krikri_harvest_sources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "institution_id" integer, "name" varchar(255), "source_type" varchar(255), "metadata_schema" varchar(255), "uri" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime)
13
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113200643"]]
14
+  (32.5ms) commit transaction
15
15
  Migrating to CreateKrikriActivities (20141212220924)
16
16
   (0.1ms) begin transaction
17
-  (0.3ms) CREATE TABLE "krikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" varchar(255), "created_at" datetime, "updated_at" datetime)
17
+  (0.4ms) CREATE TABLE "krikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" varchar(255), "created_at" datetime, "updated_at" datetime)
18
18
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141212220924"]]
19
-  (25.6ms) commit transaction
19
+  (35.5ms) commit transaction
20
20
  Migrating to AddOptsToKrikriHarvestSources (20150106164218)
21
-  (0.1ms) begin transaction
22
-  (0.2ms) ALTER TABLE "krikri_harvest_sources" ADD "opts" text
23
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150106164218"]]
24
-  (16.0ms) commit transaction
21
+  (0.2ms) begin transaction
22
+  (0.6ms) ALTER TABLE "krikri_harvest_sources" ADD "opts" text
23
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150106164218"]]
24
+  (20.3ms) commit transaction
25
25
  Migrating to ChangeOptsInKrikriActivities (20150309160112)
26
26
   (0.1ms) begin transaction
27
-  (0.3ms) CREATE TEMPORARY TABLE "akrikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" varchar(255), "created_at" datetime, "updated_at" datetime)
28
-  (0.0ms) SELECT * FROM "krikri_activities"
29
-  (0.1ms) DROP TABLE "krikri_activities"
30
-  (0.1ms) CREATE TABLE "krikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" text(255), "created_at" datetime, "updated_at" datetime) 
31
-  (0.0ms) SELECT * FROM "akrikri_activities"
32
-  (0.1ms) DROP TABLE "akrikri_activities"
33
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150309160112"]]
34
-  (15.7ms) commit transaction
27
+  (0.7ms) CREATE TEMPORARY TABLE "akrikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" varchar(255), "created_at" datetime, "updated_at" datetime)
28
+  (0.1ms) SELECT * FROM "krikri_activities"
29
+  (0.4ms) DROP TABLE "krikri_activities"
30
+  (0.3ms) CREATE TABLE "krikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" text(255), "created_at" datetime, "updated_at" datetime) 
31
+  (0.1ms) SELECT * FROM "akrikri_activities"
32
+  (0.3ms) DROP TABLE "akrikri_activities"
33
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150309160112"]]
34
+  (23.6ms) commit transaction
35
35
  Migrating to RemoveOptsLimitInKrikriActivities (20150310190054)
36
-  (0.0ms) begin transaction
37
-  (0.1ms) CREATE TEMPORARY TABLE "akrikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" text(255), "created_at" datetime, "updated_at" datetime) 
36
+  (0.1ms) begin transaction
37
+  (0.4ms) CREATE TEMPORARY TABLE "akrikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" text(255), "created_at" datetime, "updated_at" datetime) 
38
38
   (0.1ms) SELECT * FROM "krikri_activities"
39
-  (0.2ms) DROP TABLE "krikri_activities"
40
-  (0.1ms) CREATE TABLE "krikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" text, "created_at" datetime, "updated_at" datetime)
41
-  (0.0ms) SELECT * FROM "akrikri_activities"
42
-  (0.1ms) DROP TABLE "akrikri_activities"
39
+  (0.3ms) DROP TABLE "krikri_activities"
40
+  (0.3ms) CREATE TABLE "krikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" text, "created_at" datetime, "updated_at" datetime)
41
+  (0.1ms) SELECT * FROM "akrikri_activities"
42
+  (0.2ms) DROP TABLE "akrikri_activities"
43
43
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150310190054"]]
44
-  (17.0ms) commit transaction
44
+  (19.5ms) commit transaction
45
45
  Migrating to AddQaReport (20150328035550)
46
-  (0.1ms) begin transaction
47
-  (0.3ms) CREATE TABLE "krikri_qa_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar(255), "field_report" text, "count_report" text, "created_at" datetime, "updated_at" datetime)
48
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150328035550"]]
49
-  (20.9ms) commit transaction
50
- Migrating to DeviseCreateUsers (20160114224615)
51
-  (0.1ms) begin transaction
52
-  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime, "updated_at" datetime)
53
-  (0.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
54
-  (0.1ms) SELECT sql
46
+  (0.2ms) begin transaction
47
+  (0.7ms) CREATE TABLE "krikri_qa_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar(255), "field_report" text, "count_report" text, "created_at" datetime, "updated_at" datetime)
48
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150328035550"]]
49
+  (38.1ms) commit transaction
50
+ Migrating to DeviseCreateUsers (20160201014927)
51
+  (0.3ms) begin transaction
52
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime, "updated_at" datetime)
53
+  (0.4ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
54
+  (0.2ms) SELECT sql
55
55
  FROM sqlite_master
56
56
  WHERE name='index_users_on_email' AND type='index'
57
57
  UNION ALL
@@ -59,11 +59,11 @@ Migrating to DeviseCreateUsers (20160114224615)
59
59
  FROM sqlite_temp_master
60
60
  WHERE name='index_users_on_email' AND type='index'
61
61
 
62
-  (0.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
63
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160114224615"]]
64
-  (13.9ms) commit transaction
65
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
66
-  (0.1ms)  SELECT sql
62
+  (0.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
63
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160201014927"]]
64
+  (32.4ms) commit transaction
65
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
66
+  (0.2ms)  SELECT sql
67
67
  FROM sqlite_master
68
68
  WHERE name='index_users_on_reset_password_token' AND type='index'
69
69
  UNION ALL
@@ -71,7 +71,7 @@ Migrating to DeviseCreateUsers (20160114224615)
71
71
  FROM sqlite_temp_master
72
72
  WHERE name='index_users_on_reset_password_token' AND type='index'
73
73
  
74
-  (0.1ms) SELECT sql
74
+  (0.2ms) SELECT sql
75
75
  FROM sqlite_master
76
76
  WHERE name='index_users_on_email' AND type='index'
77
77
  UNION ALL
@@ -80,26 +80,26 @@ Migrating to DeviseCreateUsers (20160114224615)
80
80
  WHERE name='index_users_on_email' AND type='index'
81
81
 
82
82
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
83
- Migrating to CreateSearches (20160114224635)
83
+ Migrating to CreateSearches (20160201014947)
84
84
   (0.1ms) begin transaction
85
85
   (0.3ms) CREATE TABLE "searches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "query_params" text, "user_id" integer, "user_type" varchar(255), "created_at" datetime, "updated_at" datetime) 
86
86
   (0.1ms) select sqlite_version(*)
87
87
   (0.1ms) CREATE INDEX "index_searches_on_user_id" ON "searches" ("user_id")
88
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160114224635"]]
89
-  (13.1ms) commit transaction
90
- Migrating to CreateBookmarks (20160114224636)
91
-  (0.0ms) begin transaction
92
-  (0.2ms) CREATE TABLE "bookmarks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "user_type" varchar(255), "document_id" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
93
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160114224636"]]
94
-  (10.6ms) commit transaction
95
- Migrating to AddPolymorphicTypeToBookmarks (20160114224637)
88
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160201014947"]]
89
+  (33.4ms) commit transaction
90
+ Migrating to CreateBookmarks (20160201014948)
91
+  (0.1ms) begin transaction
92
+  (0.4ms) CREATE TABLE "bookmarks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "user_type" varchar(255), "document_id" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
93
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160201014948"]]
94
+  (25.2ms) commit transaction
95
+ Migrating to AddPolymorphicTypeToBookmarks (20160201014949)
96
96
   (0.1ms) begin transaction
97
-  (0.2ms) ALTER TABLE "bookmarks" ADD "document_type" varchar(255)
98
-  (0.1ms) CREATE INDEX "index_bookmarks_on_user_id" ON "bookmarks" ("user_id")
99
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160114224637"]]
100
-  (10.6ms) commit transaction
97
+  (0.4ms) ALTER TABLE "bookmarks" ADD "document_type" varchar(255)
98
+  (0.2ms) CREATE INDEX "index_bookmarks_on_user_id" ON "bookmarks" ("user_id")
99
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160201014949"]]
100
+  (31.7ms) commit transaction
101
101
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
102
-  (0.4ms) SELECT sql
102
+  (0.2ms) SELECT sql
103
103
  FROM sqlite_master
104
104
  WHERE name='index_bookmarks_on_user_id' AND type='index'
105
105
  UNION ALL
@@ -107,7 +107,7 @@ Migrating to AddPolymorphicTypeToBookmarks (20160114224637)
107
107
  FROM sqlite_temp_master
108
108
  WHERE name='index_bookmarks_on_user_id' AND type='index'
109
109
 
110
-  (0.3ms)  SELECT sql
110
+  (0.2ms)  SELECT sql
111
111
  FROM sqlite_master
112
112
  WHERE name='index_searches_on_user_id' AND type='index'
113
113
  UNION ALL
@@ -115,7 +115,7 @@ Migrating to AddPolymorphicTypeToBookmarks (20160114224637)
115
115
  FROM sqlite_temp_master
116
116
  WHERE name='index_searches_on_user_id' AND type='index'
117
117
  
118
-  (0.2ms) SELECT sql
118
+  (0.3ms) SELECT sql
119
119
  FROM sqlite_master
120
120
  WHERE name='index_users_on_reset_password_token' AND type='index'
121
121
  UNION ALL
@@ -131,17 +131,17 @@ Migrating to AddPolymorphicTypeToBookmarks (20160114224637)
131
131
  FROM sqlite_temp_master
132
132
  WHERE name='index_users_on_email' AND type='index'
133
133
  
134
-  (11.3ms) CREATE TABLE "bookmarks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "user_type" varchar(255), "document_id" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime, "document_type" varchar(255))
134
+  (24.0ms) CREATE TABLE "bookmarks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "user_type" varchar(255), "document_id" varchar(255), "title" varchar(255), "created_at" datetime, "updated_at" datetime, "document_type" varchar(255))
135
135
   (0.1ms) select sqlite_version(*)
136
-  (10.8ms) CREATE INDEX "index_bookmarks_on_user_id" ON "bookmarks" ("user_id")
137
-  (21.9ms) CREATE TABLE "krikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" text, "created_at" datetime, "updated_at" datetime) 
138
-  (50.6ms) CREATE TABLE "krikri_harvest_sources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "institution_id" integer, "name" varchar(255), "source_type" varchar(255), "metadata_schema" varchar(255), "uri" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime, "opts" text)
139
-  (22.0ms) CREATE TABLE "krikri_institutions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime) 
140
-  (27.5ms) CREATE TABLE "krikri_qa_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar(255), "field_report" text, "count_report" text, "created_at" datetime, "updated_at" datetime)
141
-  (23.7ms) CREATE TABLE "searches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "query_params" text, "user_id" integer, "user_type" varchar(255), "created_at" datetime, "updated_at" datetime) 
142
-  (30.3ms) CREATE INDEX "index_searches_on_user_id" ON "searches" ("user_id")
143
-  (26.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime, "updated_at" datetime) 
144
-  (36.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
136
+  (23.5ms) CREATE INDEX "index_bookmarks_on_user_id" ON "bookmarks" ("user_id")
137
+  (28.9ms) CREATE TABLE "krikri_activities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_time" datetime, "end_time" datetime, "agent" varchar(255), "opts" text, "created_at" datetime, "updated_at" datetime) 
138
+  (40.7ms) CREATE TABLE "krikri_harvest_sources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "institution_id" integer, "name" varchar(255), "source_type" varchar(255), "metadata_schema" varchar(255), "uri" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime, "opts" text)
139
+  (38.8ms) CREATE TABLE "krikri_institutions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime) 
140
+  (33.6ms) CREATE TABLE "krikri_qa_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar(255), "field_report" text, "count_report" text, "created_at" datetime, "updated_at" datetime)
141
+  (29.8ms) CREATE TABLE "searches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "query_params" text, "user_id" integer, "user_type" varchar(255), "created_at" datetime, "updated_at" datetime) 
142
+  (35.7ms) CREATE INDEX "index_searches_on_user_id" ON "searches" ("user_id")
143
+  (28.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime, "updated_at" datetime) 
144
+  (35.6ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
145
145
   (0.2ms)  SELECT sql
146
146
  FROM sqlite_master
147
147
  WHERE name='index_users_on_email' AND type='index'
@@ -150,18 +150,18 @@ Migrating to AddPolymorphicTypeToBookmarks (20160114224637)
150
150
  FROM sqlite_temp_master
151
151
  WHERE name='index_users_on_email' AND type='index'
152
152
  
153
-  (29.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
154
-  (22.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
155
-  (49.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
156
-  (0.1ms) SELECT version FROM "schema_migrations"
157
-  (36.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160114224637')
158
-  (28.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160114224636')
159
-  (29.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160114224635')
160
-  (18.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160114224615')
161
-  (19.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141113200643')
162
-  (23.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150309160112')
163
-  (25.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150106164218')
164
-  (16.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141212220924')
165
-  (21.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141113200614')
166
-  (17.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150310190054')
167
-  (16.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150328035550')
153
+  (33.5ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
154
+  (33.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
155
+  (33.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
156
+  (0.2ms) SELECT version FROM "schema_migrations"
157
+  (26.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160201014949')
158
+  (23.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160201014947')
159
+  (24.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160201014927')
160
+  (24.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160201014948')
161
+  (42.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141113200643')
162
+  (23.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150309160112')
163
+  (24.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150106164218')
164
+  (29.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141212220924')
165
+  (34.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141113200614')
166
+  (32.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150310190054')
167
+  (34.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150328035550')