krikri 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/krikri/harvester.rb +5 -0
- data/lib/krikri/harvesters/oai_harvester.rb +47 -10
- data/lib/krikri/version.rb +1 -1
- data/spec/internal/Gemfile.lock +4 -4
- data/spec/internal/config/initializers/blacklight_initializer.rb +1 -1
- data/spec/internal/config/initializers/devise.rb +2 -2
- data/spec/internal/config/secrets.yml +2 -2
- data/spec/internal/db/development.sqlite3 +0 -0
- data/spec/internal/db/migrate/{20160114224615_devise_create_users.rb → 20160201014927_devise_create_users.rb} +0 -0
- data/spec/internal/db/migrate/{20160114224635_create_searches.blacklight.rb → 20160201014947_create_searches.blacklight.rb} +0 -0
- data/spec/internal/db/migrate/{20160114224636_create_bookmarks.blacklight.rb → 20160201014948_create_bookmarks.blacklight.rb} +0 -0
- data/spec/internal/db/migrate/{20160114224637_add_polymorphic_type_to_bookmarks.blacklight.rb → 20160201014949_add_polymorphic_type_to_bookmarks.blacklight.rb} +0 -0
- data/spec/internal/db/schema.rb +1 -1
- data/spec/internal/db/test.sqlite3 +0 -0
- data/spec/internal/log/development.log +88 -88
- data/spec/internal/log/test.log +6182 -6061
- data/spec/lib/krikri/harvesters/oai_harvester_spec.rb +50 -0
- metadata +10 -308
- data/spec/internal/tmp/cache/318/301/krikri%2Fapplication_helper%2Favailable_providers +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_alerts.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_background-variant.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_border-radius.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_buttons.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_center-block.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_clearfix.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_forms.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_gradients.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_grid-framework.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_grid.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_hide-text.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_image.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_labels.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_list-group.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_nav-divider.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_nav-vertical-align.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_opacity.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_pagination.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_panels.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_progress-bar.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_reset-filter.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_resize.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_responsive-visibility.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_size.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_tab-focus.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_table-row.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_text-emphasis.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_text-overflow.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/4a3ee647961c7e45976eb2c0a94406aad3427b3d/_vendor-prefixes.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/93e201cf4a11978a1f491a057a3bd569c3825210/blacklight.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_alerts.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_badges.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_breadcrumbs.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_button-groups.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_buttons.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_carousel.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_close.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_code.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_component-animations.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_dropdowns.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_forms.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_glyphicons.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_grid.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_input-groups.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_jumbotron.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_labels.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_list-group.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_media.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_mixins.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_modals.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_navbar.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_navs.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_normalize.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_pager.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_pagination.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_panels.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_popovers.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_print.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_progress-bars.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_responsive-embed.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_responsive-utilities.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_scaffolding.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_tables.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_thumbnails.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_tooltip.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_type.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_utilities.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_variables.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/a1ec1bb9c9cafeb054d542e861ebc8ffd5904439/_wells.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/b28605b1c659cf09fc72f3c1fff32918869d28b8/_bootstrap-sprockets.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/b28605b1c659cf09fc72f3c1fff32918869d28b8/_bootstrap.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_blacklight_base.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_bookmark.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_catalog.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_facets.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_group.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_header.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_layout.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_modal.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/_search_history.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/blacklight.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/ca8c12d03785e0d6cd4554f4d3939e7836d38282/blacklight_defaults.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/059eceaa18e2eaee3d5168f3949f4957 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/093d898bf3f20b26b13c82714a77c040 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/10517c9579f8d23c82fb8caa66dca6a7 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/19f4ba6fa86d2609c171da9f5ee3b11a +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/2bec18569db80effd80a2a19a038100b +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/30ca7caa200fa8eaddaef443913ad9ad +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/350a65d446eb7398f96d102f7a1a6d69 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/4052820c15af72ba690230a0f92bd75e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/41b62fb10530766b5b9fef3338f5f30b +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/421c89c58d3e76046a0294dae1f731ff +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/43da966542fafc2a4c768be78527391c +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/496a0d7dce1ff6bf4a9c3a089ea3a635 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/4e93570db72bb61820711448b78d548d +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/50b9db0b908b421a9b941a445dbaeacc +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/5155772cce704d83a64aa83eeda20c5a +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/528c628cf107f8be6dd122e1154344be +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/5ed02c7072bb024fa0832a1ca4113227 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/60141dc3d16c502963c3d798a099862d +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/6df5b5c0a8e6d87ced9504a460df875e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/6eefd2765a716d66ff857cfcda69a119 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/72848ec252813c930e57868edab843b5 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/88ded10f28177bec1bddb0d72d6b1cd2 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/8edfca9082e02111be92e79000667f22 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/90b54a819800edfa41b67722d1561040 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/927d682c9287262facf9333dfaef813c +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/93aaa9231a32901266b05632f3d35ecd +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/9c653367feff82588eb6041d783a5809 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/9ce190f082dc4fb74bddb818cc011ce6 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ab2a05b91d7d316d4ceb47ce067006fb +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ad4a54c43c2a4c3874bfde1c9f08c248 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b1a42de74c934edd0e5eed0f98a23597 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b1c03c36188b4f58f819510adb9a7e9c +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b225d67626669cb154cbe08a3c439d48 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b35e12934e9f05662777579549e31cd7 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b3ae9e3cdd9991d7103b0a00e33b5778 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b42c247628daaf44109584724682a6ad +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b660ec1ede271559cfd0259eed96ae9c +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ba078b29a7f067b3acdd538a286235a8 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/bb108ef3fc4c96d1c20cc41f97d943a0 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/bb92f4b8c1bedafe60b6f226b549138a +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c644ecad928e076f999e9c9a3bc350c9 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c78dd20a0df27e9394a413bf2e4abf92 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/c9efce42580b0ad0374a052aa61f2a07 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d1bce36d6e3ab792562b9c929f2ce897 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d23c35c7aba77b1c68e42603120aebd2 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d24a7c4b8ac71a90e809881a64970898 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/db0d9534ecdebba33af5d1d81060e855 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/dbba4bbc32c17ade3d618c5d0baeb371 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e315f2e6fe546b7a0e37fcfc0f647c84 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e8276b98892dcac8285a592bb63fe75b +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e9f7ccc553ce1a217709cc7a08cfb032 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ecfc314951b349e27742c1b26880619e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/eddae0741d973a8ab3df27c1ea5b635e +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f274b5f22db177b6464b50691d531688 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f3935581a84aba9a499005ed6a8e18be +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f3e7729c53b8a2c408086a61b58922ae +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f45dfdb34e84d3c72a3319399a7316a3 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f74af03e26e893af40b07a6d0f970cd4 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/fa11f1beb15b0f04503ce1f06701a8bf +0 -0
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed0c538e39d8f73fe8b01cc8b71e84f5d4301229
|
4
|
+
data.tar.gz: a1e4947bae2177804b1cda18251cf0cacb8cf700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62aad477bfe83bdf1aad7ef810bc0ac99391874a8491750c769a36a7b92517fe90242e66570dbd8f512e82d232a91901272c473256c8e69e00641c2f43aac8c7
|
7
|
+
data.tar.gz: 06e3c912140e8b42c25391e8e727a2d6650b36c52cb028810d97e521045756e0d6f1f88d66c7eda6f41f3c978e7cb3ec821b9e6ddd6477f61cfda7b9b0e94b69
|
data/lib/krikri/harvester.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
90
|
-
|
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
|
data/lib/krikri/version.rb
CHANGED
data/spec/internal/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: /home/tjohnson/src/dpla/krikri
|
3
3
|
specs:
|
4
|
-
krikri (0.11.
|
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.
|
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.
|
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.
|
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 = '
|
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 = '
|
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 = '
|
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:
|
14
|
+
secret_key_base: baa7b78f0d33e176d43c2e53b15cc34a7a13353589e525b444eca2593b2abcbb9a0b55a1b30196d7886d41d7a5801aa2e4ba6aed862340704dbac5f165ddf961
|
15
15
|
|
16
16
|
test:
|
17
|
-
secret_key_base:
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/internal/db/schema.rb
CHANGED
@@ -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:
|
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
|
-
[1m[36m (
|
1
|
+
[1m[36m (40.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
2
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
-
[1m[36m (
|
4
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.
|
3
|
+
[1m[36m (27.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
5
|
Migrating to CreateKrikriInstitutions (20141113200614)
|
6
|
-
[1m[36m (0.
|
7
|
-
[1m[35m (0.
|
8
|
-
[1m[36mSQL (0.
|
9
|
-
[1m[35m (
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "krikri_institutions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime)
|
8
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141113200614"]]
|
9
|
+
[1m[35m (30.9ms)[0m commit transaction
|
10
10
|
Migrating to CreateKrikriHarvestSources (20141113200643)
|
11
|
-
[1m[36m (0.
|
12
|
-
[1m[35m (0.
|
13
|
-
[1m[36mSQL (0.
|
14
|
-
[1m[35m (
|
11
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141113200643"]]
|
14
|
+
[1m[35m (32.5ms)[0m commit transaction
|
15
15
|
Migrating to CreateKrikriActivities (20141212220924)
|
16
16
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
-
[1m[35m (0.
|
17
|
+
[1m[35m (0.4ms)[0m 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
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141212220924"]]
|
19
|
-
[1m[35m (
|
19
|
+
[1m[35m (35.5ms)[0m commit transaction
|
20
20
|
Migrating to AddOptsToKrikriHarvestSources (20150106164218)
|
21
|
-
[1m[36m (0.
|
22
|
-
[1m[35m (0.
|
23
|
-
[1m[36mSQL (0.
|
24
|
-
[1m[35m (
|
21
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
22
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "krikri_harvest_sources" ADD "opts" text
|
23
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150106164218"]]
|
24
|
+
[1m[35m (20.3ms)[0m commit transaction
|
25
25
|
Migrating to ChangeOptsInKrikriActivities (20150309160112)
|
26
26
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
-
[1m[35m (0.
|
28
|
-
[1m[36m (0.
|
29
|
-
[1m[35m (0.
|
30
|
-
[1m[36m (0.
|
31
|
-
[1m[35m (0.
|
32
|
-
[1m[36m (0.
|
33
|
-
[1m[35mSQL (0.
|
34
|
-
[1m[36m (
|
27
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "krikri_activities"[0m
|
29
|
+
[1m[35m (0.4ms)[0m DROP TABLE "krikri_activities"
|
30
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
31
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "akrikri_activities"
|
32
|
+
[1m[36m (0.3ms)[0m [1mDROP TABLE "akrikri_activities"[0m
|
33
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150309160112"]]
|
34
|
+
[1m[36m (23.6ms)[0m [1mcommit transaction[0m
|
35
35
|
Migrating to RemoveOptsLimitInKrikriActivities (20150310190054)
|
36
|
-
[1m[35m (0.
|
37
|
-
[1m[36m (0.
|
36
|
+
[1m[35m (0.1ms)[0m begin transaction
|
37
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
38
38
|
[1m[35m (0.1ms)[0m SELECT * FROM "krikri_activities"
|
39
|
-
[1m[36m (0.
|
40
|
-
[1m[35m (0.
|
41
|
-
[1m[36m (0.
|
42
|
-
[1m[35m (0.
|
39
|
+
[1m[36m (0.3ms)[0m [1mDROP TABLE "krikri_activities"[0m
|
40
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "akrikri_activities"[0m
|
42
|
+
[1m[35m (0.2ms)[0m DROP TABLE "akrikri_activities"
|
43
43
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150310190054"]]
|
44
|
-
[1m[35m (
|
44
|
+
[1m[35m (19.5ms)[0m commit transaction
|
45
45
|
Migrating to AddQaReport (20150328035550)
|
46
|
-
[1m[36m (0.
|
47
|
-
[1m[35m (0.
|
48
|
-
[1m[36mSQL (0.
|
49
|
-
[1m[35m (
|
50
|
-
Migrating to DeviseCreateUsers (
|
51
|
-
[1m[36m (0.
|
52
|
-
[1m[35m (0.
|
53
|
-
[1m[36m (0.
|
54
|
-
[1m[35m (0.
|
46
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
47
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150328035550"]]
|
49
|
+
[1m[35m (38.1ms)[0m commit transaction
|
50
|
+
Migrating to DeviseCreateUsers (20160201014927)
|
51
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
52
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
54
|
+
[1m[35m (0.2ms)[0m 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
|
-
[1m[36m (0.
|
63
|
-
[1m[35mSQL (0.
|
64
|
-
[1m[36m (
|
65
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.
|
66
|
-
[1m[36m (0.
|
62
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
63
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160201014927"]]
|
64
|
+
[1m[36m (32.4ms)[0m [1mcommit transaction[0m
|
65
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
66
|
+
[1m[36m (0.2ms)[0m [1m 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
|
[0m
|
74
|
-
[1m[35m (0.
|
74
|
+
[1m[35m (0.2ms)[0m 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
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
83
|
-
Migrating to CreateSearches (
|
83
|
+
Migrating to CreateSearches (20160201014947)
|
84
84
|
[1m[35m (0.1ms)[0m begin transaction
|
85
85
|
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
86
86
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
87
87
|
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_searches_on_user_id" ON "searches" ("user_id")[0m
|
88
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "
|
89
|
-
[1m[36m (
|
90
|
-
Migrating to CreateBookmarks (
|
91
|
-
[1m[35m (0.
|
92
|
-
[1m[36m (0.
|
93
|
-
[1m[35mSQL (0.
|
94
|
-
[1m[36m (
|
95
|
-
Migrating to AddPolymorphicTypeToBookmarks (
|
88
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160201014947"]]
|
89
|
+
[1m[36m (33.4ms)[0m [1mcommit transaction[0m
|
90
|
+
Migrating to CreateBookmarks (20160201014948)
|
91
|
+
[1m[35m (0.1ms)[0m begin transaction
|
92
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
93
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160201014948"]]
|
94
|
+
[1m[36m (25.2ms)[0m [1mcommit transaction[0m
|
95
|
+
Migrating to AddPolymorphicTypeToBookmarks (20160201014949)
|
96
96
|
[1m[35m (0.1ms)[0m begin transaction
|
97
|
-
[1m[36m (0.
|
98
|
-
[1m[35m (0.
|
99
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "
|
100
|
-
[1m[35m (
|
97
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "bookmarks" ADD "document_type" varchar(255)[0m
|
98
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_bookmarks_on_user_id" ON "bookmarks" ("user_id")
|
99
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160201014949"]]
|
100
|
+
[1m[35m (31.7ms)[0m commit transaction
|
101
101
|
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
102
|
-
[1m[35m (0.
|
102
|
+
[1m[35m (0.2ms)[0m 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
|
-
[1m[36m (0.
|
110
|
+
[1m[36m (0.2ms)[0m [1m 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
|
[0m
|
118
|
-
[1m[35m (0.
|
118
|
+
[1m[35m (0.3ms)[0m 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
|
[0m
|
134
|
-
[1m[35m (
|
134
|
+
[1m[35m (24.0ms)[0m 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
|
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
136
|
-
[1m[35m (
|
137
|
-
[1m[36m (
|
138
|
-
[1m[35m (
|
139
|
-
[1m[36m (
|
140
|
-
[1m[35m (
|
141
|
-
[1m[36m (
|
142
|
-
[1m[35m (
|
143
|
-
[1m[36m (
|
144
|
-
[1m[35m (
|
136
|
+
[1m[35m (23.5ms)[0m CREATE INDEX "index_bookmarks_on_user_id" ON "bookmarks" ("user_id")
|
137
|
+
[1m[36m (28.9ms)[0m [1mCREATE 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) [0m
|
138
|
+
[1m[35m (40.7ms)[0m 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
|
+
[1m[36m (38.8ms)[0m [1mCREATE TABLE "krikri_institutions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "notes" text, "created_at" datetime, "updated_at" datetime) [0m
|
140
|
+
[1m[35m (33.6ms)[0m 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
|
+
[1m[36m (29.8ms)[0m [1mCREATE 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) [0m
|
142
|
+
[1m[35m (35.7ms)[0m CREATE INDEX "index_searches_on_user_id" ON "searches" ("user_id")
|
143
|
+
[1m[36m (28.9ms)[0m [1mCREATE 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) [0m
|
144
|
+
[1m[35m (35.6ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
145
145
|
[1m[36m (0.2ms)[0m [1m 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
|
[0m
|
153
|
-
[1m[35m (
|
154
|
-
[1m[36m (
|
155
|
-
[1m[35m (
|
156
|
-
[1m[36m (0.
|
157
|
-
[1m[35m (
|
158
|
-
[1m[36m (
|
159
|
-
[1m[35m (
|
160
|
-
[1m[36m (
|
161
|
-
[1m[35m (
|
162
|
-
[1m[36m (23.
|
163
|
-
[1m[35m (
|
164
|
-
[1m[36m (
|
165
|
-
[1m[35m (
|
166
|
-
[1m[36m (
|
167
|
-
[1m[35m (
|
153
|
+
[1m[35m (33.5ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
154
|
+
[1m[36m (33.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
155
|
+
[1m[35m (33.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
156
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
157
|
+
[1m[35m (26.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160201014949')
|
158
|
+
[1m[36m (23.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160201014947')[0m
|
159
|
+
[1m[35m (24.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160201014927')
|
160
|
+
[1m[36m (24.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160201014948')[0m
|
161
|
+
[1m[35m (42.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141113200643')
|
162
|
+
[1m[36m (23.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150309160112')[0m
|
163
|
+
[1m[35m (24.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150106164218')
|
164
|
+
[1m[36m (29.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141212220924')[0m
|
165
|
+
[1m[35m (34.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141113200614')
|
166
|
+
[1m[36m (32.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150310190054')[0m
|
167
|
+
[1m[35m (34.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150328035550')
|