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.
- checksums.yaml +4 -4
- data/lib/enju_ndl/ndl_search.rb +7 -12
- data/lib/enju_ndl/version.rb +1 -1
- data/spec/cassette_library/NdlBook/import/should_get_series_title.yml +6 -6
- data/spec/cassette_library/NdlBook/import/should_get_volume_number.yml +8 -8
- data/spec/cassette_library/NdlBook/import/should_import_audio_cd.yml +5 -5
- data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record.yml +5 -5
- data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record_that_does_not_have_any_classifications.yml +6 -6
- data/spec/cassette_library/NdlBook/import/should_import_pud_date_is_nil.yml +6 -6
- data/spec/cassette_library/NdlBook/import/should_import_series_statement.yml +5 -5
- data/spec/cassette_library/NdlBook/import/should_import_series_statement_if_the_resource_is_periodical.yml +161 -190
- data/spec/cassette_library/NdlBook/import/should_import_title_alternative.yml +163 -165
- data/spec/cassette_library/NdlBook/import/should_import_url_contain_whitespace.yml +151 -154
- data/spec/cassette_library/NdlBook/import/should_import_video_dvd.yml +6 -6
- data/spec/cassette_library/NdlBook/import/should_import_volume_number_string.yml +131 -134
- data/spec/cassette_library/NdlBook/import/should_not_get_series_title_if_book_has_not_series_title.yml +6 -6
- data/spec/cassette_library/NdlBook/import/should_not_get_volume_number_if_book_has_not_volume.yml +6 -6
- data/spec/cassette_library/NdlBook/search/should_not_distinguish_double_byte_space_from_one-byte_space_in_a_query.yml +208 -198
- data/spec/cassette_library/NdlBook/search/should_search_bibliographic_record.yml +34 -36
- data/spec/cassette_library/NdlBooksController/GET_index/should_get_index.yml +133 -133
- data/spec/cassette_library/NdlBooksController/POST_create/should_create_a_bibliographic_record_if_nbn_is_set.yml +7 -7
- data/spec/cassette_library/NdlBooksController/POST_create/should_not_create_a_bibliographic_record_if_nbn_is_not_set.yml +6 -6
- data/spec/cassette_library/Question/should_respond_to_search_crd.yml +456 -456
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/models/manifestation_spec.rb +1 -1
- data/spec/models/ndl_book_spec.rb +1 -1
- metadata +2 -2
data/spec/dummy/db/test.sqlite3
CHANGED
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.
|
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
|
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.
|
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-
|
11
|
+
date: 2013-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|