enju_ndl 0.1.0.pre11 → 0.1.0.pre12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/enju_ndl/ndl_search.rb +7 -12
  3. data/lib/enju_ndl/version.rb +1 -1
  4. data/spec/cassette_library/NdlBook/import/should_get_series_title.yml +6 -6
  5. data/spec/cassette_library/NdlBook/import/should_get_volume_number.yml +8 -8
  6. data/spec/cassette_library/NdlBook/import/should_import_audio_cd.yml +5 -5
  7. data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record.yml +5 -5
  8. data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record_that_does_not_have_any_classifications.yml +6 -6
  9. data/spec/cassette_library/NdlBook/import/should_import_pud_date_is_nil.yml +6 -6
  10. data/spec/cassette_library/NdlBook/import/should_import_series_statement.yml +5 -5
  11. data/spec/cassette_library/NdlBook/import/should_import_series_statement_if_the_resource_is_periodical.yml +161 -190
  12. data/spec/cassette_library/NdlBook/import/should_import_title_alternative.yml +163 -165
  13. data/spec/cassette_library/NdlBook/import/should_import_url_contain_whitespace.yml +151 -154
  14. data/spec/cassette_library/NdlBook/import/should_import_video_dvd.yml +6 -6
  15. data/spec/cassette_library/NdlBook/import/should_import_volume_number_string.yml +131 -134
  16. data/spec/cassette_library/NdlBook/import/should_not_get_series_title_if_book_has_not_series_title.yml +6 -6
  17. data/spec/cassette_library/NdlBook/import/should_not_get_volume_number_if_book_has_not_volume.yml +6 -6
  18. data/spec/cassette_library/NdlBook/search/should_not_distinguish_double_byte_space_from_one-byte_space_in_a_query.yml +208 -198
  19. data/spec/cassette_library/NdlBook/search/should_search_bibliographic_record.yml +34 -36
  20. data/spec/cassette_library/NdlBooksController/GET_index/should_get_index.yml +133 -133
  21. data/spec/cassette_library/NdlBooksController/POST_create/should_create_a_bibliographic_record_if_nbn_is_set.yml +7 -7
  22. data/spec/cassette_library/NdlBooksController/POST_create/should_not_create_a_bibliographic_record_if_nbn_is_not_set.yml +6 -6
  23. data/spec/cassette_library/Question/should_respond_to_search_crd.yml +456 -456
  24. data/spec/dummy/db/test.sqlite3 +0 -0
  25. data/spec/models/manifestation_spec.rb +1 -1
  26. data/spec/models/ndl_book_spec.rb +1 -1
  27. metadata +2 -2
Binary file
@@ -6,7 +6,7 @@ describe Manifestation do
6
6
  VCR.use_cassette "enju_ndl/search", :record => :new_episodes do
7
7
 
8
8
  it "should imporrt a bibliographic record" do
9
- manifestation = Manifestation.import_isbn('406258087X')
9
+ manifestation = Manifestation.import_from_ndl_search(:isbn => '406258087X')
10
10
  manifestation.should be_valid
11
11
  end
12
12
  end
@@ -10,7 +10,7 @@ describe NdlBook do
10
10
 
11
11
  context "search" do
12
12
  it "should search bibliographic record", :vcr => true do
13
- NdlBook.search('library system')[:total_entries].should eq 5193
13
+ NdlBook.search('library system')[:total_entries].should eq 5255
14
14
  end
15
15
 
16
16
  it "should not distinguish double byte space from one-byte space in a query", :vcr => true do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_ndl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre11
4
+ version: 0.1.0.pre12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-08 00:00:00.000000000 Z
11
+ date: 2013-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails