enju_ndl 0.1.0.pre37 → 0.1.0.pre38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/ndl_books_controller.rb +1 -6
  3. data/lib/enju_ndl/ndl_search.rb +10 -10
  4. data/lib/enju_ndl/version.rb +1 -1
  5. data/spec/cassette_library/ImportRequest/should_import_isbn.yml +201 -186
  6. data/spec/cassette_library/Manifestation/should_imporrt_a_bibliographic_record.yml +864 -848
  7. data/spec/cassette_library/Manifestation/should_import_isbn.yml +203 -188
  8. data/spec/cassette_library/Manifestation/should_import_series_statement.yml +850 -820
  9. data/spec/cassette_library/NdlBook/import/should_get_series_title.yml +36 -13
  10. data/spec/cassette_library/NdlBook/import/should_get_volume_number.yml +48 -46
  11. data/spec/cassette_library/NdlBook/import/should_import_audio_cd.yml +10 -10
  12. data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record.yml +139 -134
  13. data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record_that_does_not_have_any_classifications.yml +12 -10
  14. data/spec/cassette_library/NdlBook/import/should_import_map.yml +12 -10
  15. data/spec/cassette_library/NdlBook/import/should_import_ndc8_classification.yml +152 -149
  16. data/spec/cassette_library/NdlBook/import/should_import_notated_music.yml +9 -9
  17. data/spec/cassette_library/NdlBook/import/should_import_painting.yml +10 -10
  18. data/spec/cassette_library/NdlBook/import/should_import_photograph.yml +10 -10
  19. data/spec/cassette_library/NdlBook/import/should_import_picture_postcard.yml +12 -10
  20. data/spec/cassette_library/NdlBook/import/should_import_publication_place.yml +146 -141
  21. data/spec/cassette_library/NdlBook/import/should_import_pud_date_is_nil.yml +10 -10
  22. data/spec/cassette_library/NdlBook/import/should_import_series_statement.yml +11 -9
  23. data/spec/cassette_library/NdlBook/import/should_import_series_statement_if_the_resource_is_serial.yml +12 -10
  24. data/spec/cassette_library/NdlBook/import/should_import_series_statement_s_creator.yml +184 -179
  25. data/spec/cassette_library/NdlBook/import/should_import_series_statement_transctiption.yml +143 -143
  26. data/spec/cassette_library/NdlBook/import/should_import_still_image.yml +117 -113
  27. data/spec/cassette_library/NdlBook/import/should_import_tactile_text.yml +10 -10
  28. data/spec/cassette_library/NdlBook/import/should_import_title_alternative.yml +179 -176
  29. data/spec/cassette_library/NdlBook/import/should_import_url_contain_whitespace.yml +134 -130
  30. data/spec/cassette_library/NdlBook/import/should_import_video_dvd.yml +10 -10
  31. data/spec/cassette_library/NdlBook/import/should_import_volume_number_string.yml +132 -130
  32. data/spec/cassette_library/NdlBook/import/should_not_get_series_title_if_book_has_not_series_title.yml +41 -16
  33. data/spec/cassette_library/NdlBook/import/should_not_get_volume_number_if_book_has_not_volume.yml +70 -48
  34. data/spec/cassette_library/NdlBook/search/should_not_distinguish_double_byte_space_from_one-byte_space_in_a_query.yml +649 -597
  35. data/spec/cassette_library/NdlBook/search/should_search_bibliographic_record.yml +42 -38
  36. data/spec/cassette_library/NdlBooksController/GET_index/should_get_index.yml +290 -302
  37. data/spec/cassette_library/NdlBooksController/POST_create/should_create_a_bibliographic_record_if_jpno_is_set.yml +149 -152
  38. data/spec/cassette_library/NdlBooksController/POST_create/should_create_a_serial_record.yml +12 -10
  39. data/spec/cassette_library/NdlBooksController/POST_create/should_not_create_a_bibliographic_record_if_jpno_is_not_set.yml +11 -11
  40. data/spec/cassette_library/Question/should_respond_to_search_crd.yml +209 -303
  41. data/spec/dummy/app/assets/javascripts/application.js +10 -6
  42. data/spec/dummy/db/schema.rb +97 -97
  43. data/spec/models/ndl_book_spec.rb +1 -1
  44. metadata +15 -15
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Faraday v0.9.0
11
+ - Faraday v0.9.2
12
12
  Accept-Encoding:
13
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
14
  Accept:
@@ -19,15 +19,15 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Date:
22
- - Wed, 01 Oct 2014 07:53:18 GMT
22
+ - Fri, 06 Nov 2015 15:56:42 GMT
23
23
  Server:
24
24
  - Apache
25
25
  Etag:
26
- - '"a17133bbc930fe6fe8cf0f2b162d2bd6"'
26
+ - '"b0e879259d7e191dd594be9eda606013"'
27
27
  X-Ua-Compatible:
28
28
  - IE=Edge,chrome=1
29
29
  X-Runtime:
30
- - '0.538207'
30
+ - '0.985662'
31
31
  Cache-Control:
32
32
  - max-age=0, private, must-revalidate
33
33
  Status:
@@ -35,15 +35,17 @@ http_interactions:
35
35
  Content-Type:
36
36
  - application/xml; charset=utf-8
37
37
  Set-Cookie:
38
- - _front_session_id=53be31ae1609d4471d843626ea6a018d; domain=.iss.ndl.go.jp;
39
- path=/; expires=Wed, 01-Oct-2014 08:53:19 GMT; HttpOnly
38
+ - _front_session_id=1c94294a65eeacd37ee4cba26c72bb9b; domain=.iss.ndl.go.jp;
39
+ path=/; expires=Fri, 06-Nov-2015 16:56:43 GMT; HttpOnly
40
40
  - serverid=1101; path=/
41
- Vary:
42
- - Accept-Encoding,User-Agent
43
41
  X-Content-Type-Options:
44
42
  - nosniff
45
43
  X-Frame-Options:
46
44
  - SAMEORIGIN
45
+ Content-Length:
46
+ - '3493'
47
+ Accept-Ranges:
48
+ - none
47
49
  Connection:
48
50
  - close
49
51
  body:
@@ -63,12 +65,12 @@ http_interactions:
63
65
  YnJhcnkgc3lzdGVtIC0g5Zu956uL5Zu95Lya5Zuz5pu46aSo44K144O844OB
64
66
  IE9wZW5TZWFyY2g8L3RpdGxlPgogICAgPGxpbms+aHR0cDovL2lzcy5uZGwu
65
67
  Z28uanAvYXBpL29wZW5zZWFyY2g/YW55PWxpYnJhcnkrc3lzdGVtJmFtcDtt
66
- ZWRpYXR5cGU9MSZhbXA7aWR4PTEmYW1wO2RwaWQ9aXNzLW5kbC1vcGFjJmFt
68
+ ZWRpYXR5cGU9MSZhbXA7ZHBpZD1pc3MtbmRsLW9wYWMmYW1wO2lkeD0xJmFt
67
69
  cDtjbnQ9MTA8L2xpbms+CiAgICA8ZGVzY3JpcHRpb24+U2VhcmNoIHJlc3Vs
68
70
  dHMgZm9yIGFueT1saWJyYXJ5IHN5c3RlbSBtZWRpYXR5cGU9MSBkcGlkPWlz
69
71
  cy1uZGwtb3BhYyBjbnQ9MTAgPC9kZXNjcmlwdGlvbj4KICAgIDxsYW5ndWFn
70
72
  ZT5qYTwvbGFuZ3VhZ2U+CiAgICA8b3BlblNlYXJjaDp0b3RhbFJlc3VsdHM+
71
- NTMxMzwvb3BlblNlYXJjaDp0b3RhbFJlc3VsdHM+CiAgICA8b3BlblNlYXJj
73
+ NTM0NTwvb3BlblNlYXJjaDp0b3RhbFJlc3VsdHM+CiAgICA8b3BlblNlYXJj
72
74
  aDpzdGFydEluZGV4PjE8L29wZW5TZWFyY2g6c3RhcnRJbmRleD4KICAgIDxv
73
75
  cGVuU2VhcmNoOml0ZW1zUGVyUGFnZT4xMDwvb3BlblNlYXJjaDppdGVtc1Bl
74
76
  clBhZ2U+CiAgICA8aXRlbT4KICAgICAgPHRpdGxlPlN1cnZleSBvZiBsZWdp
@@ -379,40 +381,42 @@ http_interactions:
379
381
  PgogICAgPC9pdGVtPgogICAgPGl0ZW0+CiAgICAgIDx0aXRsZT5UaGUgU292
380
382
  aWV0IHN5c3RlbSBvZiBnb3Zlcm5tZW50PC90aXRsZT4KICAgICAgPGxpbms+
381
383
  aHR0cDovL2lzcy5uZGwuZ28uanAvYm9va3MvUjEwMDAwMDAwMi1JMDAwMDA2
382
- MjEyMjUzLTAwPC9saW5rPgo8ZGVzY3JpcHRpb24+CjwhW0NEQVRBWzxwPlVu
384
+ MjEyMjU0LTAwPC9saW5rPgo8ZGVzY3JpcHRpb24+CjwhW0NEQVRBWzxwPlVu
383
385
  aXZlcnNpdHkgb2YgQ2hpY2FnbyBQcmVzczwvcD4KPHVsPjxsaT7jgr/jgqTj
384
386
  g4jjg6vvvJogVGhlIFNvdmlldCBzeXN0ZW0gb2YgZ292ZXJubWVudDwvbGk+
385
387
  CjxsaT7jgrfjg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GFtZW5kZWQgdG8gSmFu
412
+ dWFyeSAxLCAxOTY0Li0tUnVsZXMgb2YgdGhlIENvbW11bmlzdCBQYXJ0eSBv
413
+ ZiB0aGUgU292aWV0IFVuaW9uIGFkb3B0ZWQgYnkgdGhlIFR3ZW50eS1zZWNv
414
+ bmQgUGFydHkgQ29uZ3Jlc3MgT2N0b2JlciAzMSwgMTk2MTwvZGN0ZXJtczpk
415
+ ZXNjcmlwdGlvbj4KICAgICAgPGRjdGVybXM6ZGVzY3JpcHRpb24+QmlibGlv
416
+ Z3JhcGh5OiBwLiAyNjMtMjc0PC9kY3Rlcm1zOmRlc2NyaXB0aW9uPgogICAg
417
+ ICA8cmRmczpzZWVBbHNvIHJkZjpyZXNvdXJjZT0iaHR0cDovL2lkLm5kbC5n
418
+ by5qcC9iaWIvMDAwMDA2MjEyMjU0Ii8+CiAgICA8L2l0ZW0+CiAgPC9jaGFu
419
+ bmVsPgo8L3Jzcz4K
416
420
  http_version:
417
- recorded_at: Wed, 01 Oct 2014 07:53:19 GMT
418
- recorded_with: VCR 2.9.3
421
+ recorded_at: Fri, 06 Nov 2015 15:56:43 GMT
422
+ recorded_with: VCR 3.0.0