enju_nii 0.1.0.pre3 → 0.1.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/models/enju_nii/ability.rb +14 -0
- data/app/views/cinii_books/index.html.erb +1 -1
- data/app/views/nii_types/index.html.erb +1 -1
- data/lib/enju_nii/engine.rb +0 -4
- data/lib/enju_nii/version.rb +1 -1
- data/spec/cassette_library/CiniiBook/should_import_a_bibliographic_record.yml +398 -0
- data/spec/cassette_library/CiniiBook/should_search_bibliographic_records.yml +142 -0
- data/spec/cassette_library/CiniiBooksController/GET_index/should_get_index.yml +131 -0
- data/spec/controllers/cinii_books_controller_spec.rb +2 -3
- data/spec/dummy/app/models/ability.rb +14 -0
- data/spec/dummy/config/application.rb +2 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/models/cinii_book_spec.rb +3 -5
- data/spec/spec_helper.rb +7 -1
- metadata +28 -74
- data/spec/cassette_library/enju_nii/search.yml +0 -876
- data/spec/support/vcr.rb +0 -4
@@ -0,0 +1,142 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://ci.nii.ac.jp/books/opensearch/search?q=library%20system&p=1&count=10&format=rss
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
accept-encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
accept:
|
13
|
+
- '*/*'
|
14
|
+
user-agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Mon, 25 Feb 2013 06:30:52 GMT
|
23
|
+
content-encoding:
|
24
|
+
- UTF-8
|
25
|
+
content-type:
|
26
|
+
- application/rss+xml
|
27
|
+
transfer-encoding:
|
28
|
+
- chunked
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: |
|
32
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
33
|
+
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:prism="http://prismstandard.org/namespaces/basic/2.0/" xmlns="http://purl.org/rss/1.0/">
|
34
|
+
<channel rdf:about="http://ci.nii.ac.jp/books/opensearch/search?count=10&q=library%20system&p=1&format=rss">
|
35
|
+
<title>CiNii Books OpenSearch - 10 library system 1</title>
|
36
|
+
<description>CiNii Books OpenSearch - 10 library system 1</description>
|
37
|
+
<link>http://ci.nii.ac.jp/books/opensearch/search?count=10&q=library%20system&p=1&format=rss</link>
|
38
|
+
<dc:date>2013-02-25T15:30:52+0900</dc:date>
|
39
|
+
<opensearch:totalResults>3137</opensearch:totalResults>
|
40
|
+
<opensearch:startIndex>0</opensearch:startIndex>
|
41
|
+
<opensearch:itemsPerPage>10</opensearch:itemsPerPage>
|
42
|
+
<items>
|
43
|
+
<rdf:Seq>
|
44
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA49885915"/>
|
45
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/AA10632899"/>
|
46
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/AA00227023"/>
|
47
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA06786762"/>
|
48
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA21080453"/>
|
49
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA07771013"/>
|
50
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA91258560"/>
|
51
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA63820104"/>
|
52
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA53745669"/>
|
53
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BB09127329"/>
|
54
|
+
</rdf:Seq>
|
55
|
+
</items>
|
56
|
+
</channel>
|
57
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA49885915">
|
58
|
+
<title>The Logos Library Systems</title>
|
59
|
+
<link>http://ci.nii.ac.jp/ncid/BA49885915</link>
|
60
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA49885915.rdf"/>
|
61
|
+
<dc:creator/>
|
62
|
+
<dc:publisher>Logos Research Systems</dc:publisher>
|
63
|
+
<prism:publicationDate>1997</prism:publicationDate>
|
64
|
+
<dc:date>1997</dc:date>
|
65
|
+
</item>
|
66
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/AA10632899">
|
67
|
+
<title>Library systems</title>
|
68
|
+
<link>http://ci.nii.ac.jp/ncid/AA10632899</link>
|
69
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/AA10632899.rdf"/>
|
70
|
+
<dc:creator/>
|
71
|
+
<dc:publisher>Library Technology Reports, American Library Association</dc:publisher>
|
72
|
+
<prism:publicationDate>1981</prism:publicationDate>
|
73
|
+
<dc:date>1981</dc:date>
|
74
|
+
</item>
|
75
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/AA00227023">
|
76
|
+
<title>Information retrieval & library automation letter</title>
|
77
|
+
<link>http://ci.nii.ac.jp/ncid/AA00227023</link>
|
78
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/AA00227023.rdf"/>
|
79
|
+
<dc:creator/>
|
80
|
+
<dc:publisher>Lomond Systems</dc:publisher>
|
81
|
+
<prism:publicationDate>1968</prism:publicationDate>
|
82
|
+
<dc:date>1968</dc:date>
|
83
|
+
</item>
|
84
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA06786762">
|
85
|
+
<title>Hayden Books UNIX system library</title>
|
86
|
+
<link>http://ci.nii.ac.jp/ncid/BA06786762</link>
|
87
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA06786762.rdf"/>
|
88
|
+
<dc:creator/>
|
89
|
+
<dc:publisher>Hayden Books</dc:publisher>
|
90
|
+
</item>
|
91
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA21080453">
|
92
|
+
<title>AT&T UNIX system V library</title>
|
93
|
+
<link>http://ci.nii.ac.jp/ncid/BA21080453</link>
|
94
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA21080453.rdf"/>
|
95
|
+
<dc:creator/>
|
96
|
+
<dc:publisher>Prentice Hall</dc:publisher>
|
97
|
+
</item>
|
98
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA07771013">
|
99
|
+
<title>Hayden UNIX system library</title>
|
100
|
+
<link>http://ci.nii.ac.jp/ncid/BA07771013</link>
|
101
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA07771013.rdf"/>
|
102
|
+
<dc:creator/>
|
103
|
+
<dc:publisher>Hayden Book Co</dc:publisher>
|
104
|
+
</item>
|
105
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA91258560">
|
106
|
+
<title>Intelligent systems reference library</title>
|
107
|
+
<link>http://ci.nii.ac.jp/ncid/BA91258560</link>
|
108
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA91258560.rdf"/>
|
109
|
+
<dc:creator/>
|
110
|
+
<dc:publisher>Springer</dc:publisher>
|
111
|
+
<prism:publicationDate>2009</prism:publicationDate>
|
112
|
+
<dc:date>2009</dc:date>
|
113
|
+
</item>
|
114
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA63820104">
|
115
|
+
<title>Business correspondence library</title>
|
116
|
+
<link>http://ci.nii.ac.jp/ncid/BA63820104</link>
|
117
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA63820104.rdf"/>
|
118
|
+
<dc:creator/>
|
119
|
+
<dc:publisher>System Co</dc:publisher>
|
120
|
+
<prism:publicationDate>1911</prism:publicationDate>
|
121
|
+
<dc:date>1911</dc:date>
|
122
|
+
</item>
|
123
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA53745669">
|
124
|
+
<title>The business man's library</title>
|
125
|
+
<link>http://ci.nii.ac.jp/ncid/BA53745669</link>
|
126
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA53745669.rdf"/>
|
127
|
+
<dc:creator/>
|
128
|
+
<dc:publisher>System Co.</dc:publisher>
|
129
|
+
</item>
|
130
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BB09127329">
|
131
|
+
<title>The herpetocultural library</title>
|
132
|
+
<link>http://ci.nii.ac.jp/ncid/BB09127329</link>
|
133
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BB09127329.rdf"/>
|
134
|
+
<dc:creator/>
|
135
|
+
<dc:publisher>Advanced Vivarium Systems</dc:publisher>
|
136
|
+
<prism:publicationDate>1990</prism:publicationDate>
|
137
|
+
<dc:date>1990</dc:date>
|
138
|
+
</item>
|
139
|
+
</rdf:RDF>
|
140
|
+
http_version: '1.1'
|
141
|
+
recorded_at: Mon, 25 Feb 2013 06:30:51 GMT
|
142
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,131 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://ci.nii.ac.jp/books/opensearch/search?q=library&p=1&count=10&format=rss
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
accept-encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
accept:
|
13
|
+
- '*/*'
|
14
|
+
user-agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Mon, 25 Feb 2013 06:33:42 GMT
|
23
|
+
content-encoding:
|
24
|
+
- UTF-8
|
25
|
+
content-type:
|
26
|
+
- application/rss+xml
|
27
|
+
transfer-encoding:
|
28
|
+
- chunked
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: |
|
32
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
33
|
+
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:prism="http://prismstandard.org/namespaces/basic/2.0/" xmlns="http://purl.org/rss/1.0/">
|
34
|
+
<channel rdf:about="http://ci.nii.ac.jp/books/opensearch/search?count=10&q=library&p=1&format=rss">
|
35
|
+
<title>CiNii Books OpenSearch - 10 library 1</title>
|
36
|
+
<description>CiNii Books OpenSearch - 10 library 1</description>
|
37
|
+
<link>http://ci.nii.ac.jp/books/opensearch/search?count=10&q=library&p=1&format=rss</link>
|
38
|
+
<dc:date>2013-02-25T15:33:42+0900</dc:date>
|
39
|
+
<opensearch:totalResults>144829</opensearch:totalResults>
|
40
|
+
<opensearch:startIndex>0</opensearch:startIndex>
|
41
|
+
<opensearch:itemsPerPage>10</opensearch:itemsPerPage>
|
42
|
+
<items>
|
43
|
+
<rdf:Seq>
|
44
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA28725003"/>
|
45
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA90663224"/>
|
46
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA46821654"/>
|
47
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA67588241"/>
|
48
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA10547663"/>
|
49
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/AA00270565"/>
|
50
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA58960319"/>
|
51
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BB09766306"/>
|
52
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA36988970"/>
|
53
|
+
<rdf:li rdf:resource="http://ci.nii.ac.jp/ncid/BA19184900"/>
|
54
|
+
</rdf:Seq>
|
55
|
+
</items>
|
56
|
+
</channel>
|
57
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA28725003">
|
58
|
+
<title>National Library Conferences</title>
|
59
|
+
<link>http://ci.nii.ac.jp/ncid/BA28725003</link>
|
60
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA28725003.rdf"/>
|
61
|
+
<dc:creator/>
|
62
|
+
<dc:publisher>National Library</dc:publisher>
|
63
|
+
</item>
|
64
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA90663224">
|
65
|
+
<title>Lifetime library</title>
|
66
|
+
<link>http://ci.nii.ac.jp/ncid/BA90663224</link>
|
67
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA90663224.rdf"/>
|
68
|
+
<dc:creator/>
|
69
|
+
<dc:publisher>Books for Libraries</dc:publisher>
|
70
|
+
</item>
|
71
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA46821654">
|
72
|
+
<title>Popular library</title>
|
73
|
+
<link>http://ci.nii.ac.jp/ncid/BA46821654</link>
|
74
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA46821654.rdf"/>
|
75
|
+
<dc:creator/>
|
76
|
+
<dc:publisher>Popular Library</dc:publisher>
|
77
|
+
</item>
|
78
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA67588241">
|
79
|
+
<title>Libraries Unlimited library management collection</title>
|
80
|
+
<link>http://ci.nii.ac.jp/ncid/BA67588241</link>
|
81
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA67588241.rdf"/>
|
82
|
+
<dc:creator/>
|
83
|
+
<dc:publisher>Libraries Unlimited</dc:publisher>
|
84
|
+
</item>
|
85
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA10547663">
|
86
|
+
<title>Burndy Library publication</title>
|
87
|
+
<link>http://ci.nii.ac.jp/ncid/BA10547663</link>
|
88
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA10547663.rdf"/>
|
89
|
+
<dc:creator/>
|
90
|
+
<dc:publisher>The Library</dc:publisher>
|
91
|
+
</item>
|
92
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/AA00270565">
|
93
|
+
<title>Library world</title>
|
94
|
+
<link>http://ci.nii.ac.jp/ncid/AA00270565</link>
|
95
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/AA00270565.rdf"/>
|
96
|
+
<dc:creator/>
|
97
|
+
<dc:publisher>Library supply</dc:publisher>
|
98
|
+
<prism:publicationDate>1898</prism:publicationDate>
|
99
|
+
<dc:date>1898</dc:date>
|
100
|
+
</item>
|
101
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA58960319">
|
102
|
+
<title>Modern Library food</title>
|
103
|
+
<link>http://ci.nii.ac.jp/ncid/BA58960319</link>
|
104
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA58960319.rdf"/>
|
105
|
+
<dc:creator/>
|
106
|
+
<dc:publisher>Modern Library</dc:publisher>
|
107
|
+
</item>
|
108
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BB09766306">
|
109
|
+
<title>Heinemann first library</title>
|
110
|
+
<link>http://ci.nii.ac.jp/ncid/BB09766306</link>
|
111
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BB09766306.rdf"/>
|
112
|
+
<dc:creator/>
|
113
|
+
<dc:publisher>Heinemann Library</dc:publisher>
|
114
|
+
</item>
|
115
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA36988970">
|
116
|
+
<title>The acme library</title>
|
117
|
+
<link>http://ci.nii.ac.jp/ncid/BA36988970</link>
|
118
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA36988970.rdf"/>
|
119
|
+
<dc:creator/>
|
120
|
+
</item>
|
121
|
+
<item rdf:about="http://ci.nii.ac.jp/ncid/BA19184900">
|
122
|
+
<title>Instant Library report</title>
|
123
|
+
<link>http://ci.nii.ac.jp/ncid/BA19184900</link>
|
124
|
+
<rdfs:seeAlso rdf:resource="http://ci.nii.ac.jp/ncid/BA19184900.rdf"/>
|
125
|
+
<dc:creator/>
|
126
|
+
<dc:publisher>Instant Library</dc:publisher>
|
127
|
+
</item>
|
128
|
+
</rdf:RDF>
|
129
|
+
http_version: '1.1'
|
130
|
+
recorded_at: Mon, 25 Feb 2013 06:33:41 GMT
|
131
|
+
recorded_with: VCR 2.4.0
|
@@ -9,14 +9,13 @@ describe CiniiBooksController do
|
|
9
9
|
|
10
10
|
describe "GET index" do
|
11
11
|
login_fixture_admin
|
12
|
-
use_vcr_cassette "enju_nii/search", :record => :new_episodes
|
13
12
|
|
14
|
-
it "should get index" do
|
13
|
+
it "should get index", :vcr => true do
|
15
14
|
get :index, :query => 'library'
|
16
15
|
assigns(:books).should_not be_empty
|
17
16
|
end
|
18
17
|
|
19
|
-
it "should be empty if a query is not set" do
|
18
|
+
it "should be empty if a query is not set", :vcr => true do
|
20
19
|
get :index
|
21
20
|
assigns(:books).should be_empty
|
22
21
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -6,13 +6,11 @@ describe CiniiBook do
|
|
6
6
|
|
7
7
|
Manifestation.enju_nii_cinii_books
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
it "should search bibliographic records" do
|
12
|
-
CiniiBook.search("library system")[:total_entries].should eq 3088
|
9
|
+
it "should search bibliographic records", :vcr => true do
|
10
|
+
CiniiBook.search("library system")[:total_entries].should eq 3137
|
13
11
|
end
|
14
12
|
|
15
|
-
it "should import a bibliographic record" do
|
13
|
+
it "should import a bibliographic record", :vcr => true do
|
16
14
|
CiniiBook.import_ncid("BA85746967").should be_nil
|
17
15
|
end
|
18
16
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -27,10 +27,16 @@ RSpec.configure do |config|
|
|
27
27
|
# examples within a transaction, remove the following line or assign false
|
28
28
|
# instead of true.
|
29
29
|
config.use_transactional_fixtures = true
|
30
|
-
config.extend VCR::RSpec::Macros
|
31
30
|
config.extend ControllerMacros, :type => :controller
|
32
31
|
|
33
32
|
config.before do
|
34
33
|
Sunspot.session = Sunspot::Rails::StubSessionProxy.new($original_sunspot_session)
|
35
34
|
end
|
36
35
|
end
|
36
|
+
|
37
|
+
VCR.configure do |c|
|
38
|
+
c.cassette_library_dir = 'spec/cassette_library'
|
39
|
+
c.hook_into :fakeweb
|
40
|
+
c.configure_rspec_metadata!
|
41
|
+
c.allow_http_connections_when_no_cassette = true
|
42
|
+
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_nii
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 0.1.0.pre4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kosuke Tanabe
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-03-13 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,139 +20,94 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '3.2'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: attribute_normalizer
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
38
|
-
type: :runtime
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
27
|
- !ruby/object:Gem::Dependency
|
47
28
|
name: enju_biblio
|
48
29
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
30
|
requirements:
|
51
31
|
- - ~>
|
52
32
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.1.0.
|
33
|
+
version: 0.1.0.pre23
|
54
34
|
type: :runtime
|
55
35
|
prerelease: false
|
56
36
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
37
|
requirements:
|
59
38
|
- - ~>
|
60
39
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.1.0.
|
40
|
+
version: 0.1.0.pre23
|
62
41
|
- !ruby/object:Gem::Dependency
|
63
42
|
name: sqlite3
|
64
43
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
44
|
requirements:
|
67
|
-
- -
|
45
|
+
- - '>='
|
68
46
|
- !ruby/object:Gem::Version
|
69
47
|
version: '0'
|
70
48
|
type: :development
|
71
49
|
prerelease: false
|
72
50
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
51
|
requirements:
|
75
|
-
- -
|
52
|
+
- - '>='
|
76
53
|
- !ruby/object:Gem::Version
|
77
54
|
version: '0'
|
78
55
|
- !ruby/object:Gem::Dependency
|
79
56
|
name: rspec-rails
|
80
57
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
58
|
requirements:
|
83
|
-
- -
|
59
|
+
- - '>='
|
84
60
|
- !ruby/object:Gem::Version
|
85
61
|
version: '0'
|
86
62
|
type: :development
|
87
63
|
prerelease: false
|
88
64
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
65
|
requirements:
|
91
|
-
- -
|
66
|
+
- - '>='
|
92
67
|
- !ruby/object:Gem::Version
|
93
68
|
version: '0'
|
94
69
|
- !ruby/object:Gem::Dependency
|
95
70
|
name: vcr
|
96
71
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
72
|
requirements:
|
99
|
-
- -
|
73
|
+
- - '>='
|
100
74
|
- !ruby/object:Gem::Version
|
101
75
|
version: '0'
|
102
76
|
type: :development
|
103
77
|
prerelease: false
|
104
78
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
79
|
requirements:
|
107
|
-
- -
|
80
|
+
- - '>='
|
108
81
|
- !ruby/object:Gem::Version
|
109
82
|
version: '0'
|
110
83
|
- !ruby/object:Gem::Dependency
|
111
84
|
name: fakeweb
|
112
85
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ! '>='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ! '>='
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '0'
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: enju_manifestation_viewer
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
86
|
requirements:
|
131
|
-
- -
|
87
|
+
- - '>='
|
132
88
|
- !ruby/object:Gem::Version
|
133
89
|
version: '0'
|
134
90
|
type: :development
|
135
91
|
prerelease: false
|
136
92
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
93
|
requirements:
|
139
|
-
- -
|
94
|
+
- - '>='
|
140
95
|
- !ruby/object:Gem::Version
|
141
96
|
version: '0'
|
142
97
|
- !ruby/object:Gem::Dependency
|
143
98
|
name: enju_subject
|
144
99
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
100
|
requirements:
|
147
101
|
- - ~>
|
148
102
|
- !ruby/object:Gem::Version
|
149
|
-
version: 0.1.0.
|
103
|
+
version: 0.1.0.pre6
|
150
104
|
type: :development
|
151
105
|
prerelease: false
|
152
106
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
107
|
requirements:
|
155
108
|
- - ~>
|
156
109
|
- !ruby/object:Gem::Version
|
157
|
-
version: 0.1.0.
|
110
|
+
version: 0.1.0.pre6
|
158
111
|
description: add nii_type attribute to Next-L Enju
|
159
112
|
email:
|
160
113
|
- tanabe@mwr.mediacom.keio.ac.jp
|
@@ -170,6 +123,7 @@ files:
|
|
170
123
|
- app/helpers/cinii_books_helper.rb
|
171
124
|
- app/helpers/nii_types_helper.rb
|
172
125
|
- app/models/cinii_book.rb
|
126
|
+
- app/models/enju_nii/ability.rb
|
173
127
|
- app/models/nii_type.rb
|
174
128
|
- app/views/cinii_books/index.html.erb
|
175
129
|
- app/views/layouts/cinii_books.html.erb
|
@@ -196,12 +150,15 @@ files:
|
|
196
150
|
- MIT-LICENSE
|
197
151
|
- Rakefile
|
198
152
|
- README.rdoc
|
199
|
-
- spec/cassette_library/
|
153
|
+
- spec/cassette_library/CiniiBook/should_import_a_bibliographic_record.yml
|
154
|
+
- spec/cassette_library/CiniiBook/should_search_bibliographic_records.yml
|
155
|
+
- spec/cassette_library/CiniiBooksController/GET_index/should_get_index.yml
|
200
156
|
- spec/controllers/cinii_books_controller_spec.rb
|
201
157
|
- spec/dummy/app/assets/javascripts/application.js
|
202
158
|
- spec/dummy/app/assets/stylesheets/application.css
|
203
159
|
- spec/dummy/app/controllers/application_controller.rb
|
204
160
|
- spec/dummy/app/helpers/application_helper.rb
|
161
|
+
- spec/dummy/app/models/ability.rb
|
205
162
|
- spec/dummy/app/models/role.rb
|
206
163
|
- spec/dummy/app/models/setting.rb
|
207
164
|
- spec/dummy/app/models/user.rb
|
@@ -337,41 +294,39 @@ files:
|
|
337
294
|
- spec/spec_helper.rb
|
338
295
|
- spec/support/controller_macros.rb
|
339
296
|
- spec/support/devise.rb
|
340
|
-
- spec/support/vcr.rb
|
341
297
|
homepage: https://github.com/next-l/enju_nii
|
342
298
|
licenses: []
|
299
|
+
metadata: {}
|
343
300
|
post_install_message:
|
344
301
|
rdoc_options: []
|
345
302
|
require_paths:
|
346
303
|
- lib
|
347
304
|
required_ruby_version: !ruby/object:Gem::Requirement
|
348
|
-
none: false
|
349
305
|
requirements:
|
350
|
-
- -
|
306
|
+
- - '>='
|
351
307
|
- !ruby/object:Gem::Version
|
352
308
|
version: '0'
|
353
|
-
segments:
|
354
|
-
- 0
|
355
|
-
hash: -3321758017830477630
|
356
309
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
357
|
-
none: false
|
358
310
|
requirements:
|
359
|
-
- -
|
311
|
+
- - '>'
|
360
312
|
- !ruby/object:Gem::Version
|
361
313
|
version: 1.3.1
|
362
314
|
requirements: []
|
363
315
|
rubyforge_project:
|
364
|
-
rubygems_version:
|
316
|
+
rubygems_version: 2.0.0
|
365
317
|
signing_key:
|
366
|
-
specification_version:
|
318
|
+
specification_version: 4
|
367
319
|
summary: enju_nii plugin
|
368
320
|
test_files:
|
369
|
-
- spec/cassette_library/
|
321
|
+
- spec/cassette_library/CiniiBook/should_import_a_bibliographic_record.yml
|
322
|
+
- spec/cassette_library/CiniiBook/should_search_bibliographic_records.yml
|
323
|
+
- spec/cassette_library/CiniiBooksController/GET_index/should_get_index.yml
|
370
324
|
- spec/controllers/cinii_books_controller_spec.rb
|
371
325
|
- spec/dummy/app/assets/javascripts/application.js
|
372
326
|
- spec/dummy/app/assets/stylesheets/application.css
|
373
327
|
- spec/dummy/app/controllers/application_controller.rb
|
374
328
|
- spec/dummy/app/helpers/application_helper.rb
|
329
|
+
- spec/dummy/app/models/ability.rb
|
375
330
|
- spec/dummy/app/models/role.rb
|
376
331
|
- spec/dummy/app/models/setting.rb
|
377
332
|
- spec/dummy/app/models/user.rb
|
@@ -507,4 +462,3 @@ test_files:
|
|
507
462
|
- spec/spec_helper.rb
|
508
463
|
- spec/support/controller_macros.rb
|
509
464
|
- spec/support/devise.rb
|
510
|
-
- spec/support/vcr.rb
|