enju_question 0.0.20 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. data/lib/enju_question/engine.rb +0 -1
  2. data/lib/enju_question/version.rb +1 -1
  3. data/spec/cassette_library/enju_ndl/crd.yml +95 -8
  4. data/spec/controllers/questions_controller_spec.rb +4 -0
  5. data/spec/dummy/db/test.sqlite3 +0 -0
  6. data/spec/dummy/solr/data/test/index/{_0.fdt → _a.fdt} +0 -0
  7. data/spec/dummy/solr/data/test/index/{_0.fdx → _a.fdx} +0 -0
  8. data/spec/dummy/solr/data/test/index/{_0.fnm → _a.fnm} +0 -0
  9. data/spec/dummy/solr/data/test/index/{_0.frq → _a.frq} +0 -0
  10. data/spec/dummy/solr/data/test/index/{_0.nrm → _a.nrm} +0 -0
  11. data/spec/dummy/solr/data/test/index/{_0.prx → _a.prx} +0 -0
  12. data/spec/dummy/solr/data/test/index/{_0.tii → _a.tii} +0 -0
  13. data/spec/dummy/solr/data/test/index/{_0.tis → _a.tis} +0 -0
  14. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  15. data/spec/dummy/solr/data/test/index/segments_n +0 -0
  16. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  17. data/spec/spec_helper.rb +1 -1
  18. metadata +24 -172
  19. data/spec/dummy/db/development.sqlite3 +0 -0
  20. data/spec/dummy/solr/data/test/index/_0_1.del +0 -0
  21. data/spec/dummy/solr/data/test/index/_1.fdt +0 -0
  22. data/spec/dummy/solr/data/test/index/_1.fdx +0 -0
  23. data/spec/dummy/solr/data/test/index/_1.fnm +0 -3
  24. data/spec/dummy/solr/data/test/index/_1.frq +0 -1
  25. data/spec/dummy/solr/data/test/index/_1.nrm +0 -1
  26. data/spec/dummy/solr/data/test/index/_1.prx +0 -0
  27. data/spec/dummy/solr/data/test/index/_1.tii +0 -0
  28. data/spec/dummy/solr/data/test/index/_1.tis +0 -0
  29. data/spec/dummy/solr/data/test/index/segments_3 +0 -0
@@ -1,6 +1,5 @@
1
1
  require 'enju_core'
2
2
  require 'acts-as-taggable-on'
3
- require 'nokogiri'
4
3
  require 'enju_ndl'
5
4
 
6
5
  module EnjuQuestion
@@ -1,3 +1,3 @@
1
1
  module EnjuQuestion
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
3
3
  end
@@ -15,7 +15,7 @@ http_interactions:
15
15
  message: OK
16
16
  headers:
17
17
  date:
18
- - Thu, 15 Dec 2011 08:18:24 GMT
18
+ - Wed, 28 Dec 2011 21:49:09 GMT
19
19
  content-type:
20
20
  - application/xml;charset=UTF-8
21
21
  connection:
@@ -24,16 +24,103 @@ http_interactions:
24
24
 
25
25
  <result_set xmlns="http://crd.ndl.go.jp/refapi/servlet/refapi.RSearchAPI">
26
26
 
27
- <hit_num>4</hit_num>
27
+ <hit_num>5</hit_num>
28
28
 
29
29
  <results_get_position>1</results_get_position>
30
30
 
31
- <results_num>4</results_num>
31
+ <results_num>5</results_num>
32
32
 
33
33
  <results_cd>0001</results_cd>
34
34
 
35
35
  <result>
36
36
 
37
+ <QUESTION>グリーグ「詩人の心」のCDを借りたい。
38
+
39
+ yahooで検索し「自作の歌曲による12のピアノ曲集」(全音楽譜出版社)の曲だということがわかりました。『クラシック音楽作品名辞典』(三省堂)で「自作~」を引くと、「自作~」はop41とop52があり、曲の順番からいって「詩人の心」はop52の3曲目と思われますが、3曲目は「海の永遠の動きをあなたは知らない」となっています。
40
+
41
+ op52の入っているCDは1枚所蔵があったのですが、その3番目の曲は「君知らず、彼の永遠の動きを」です(「グリーグ:ピアノ全曲集⑧」)。この曲と「詩人の心」は同一の曲でしょうか。
42
+
43
+
44
+ (関係ないかもしれませんが、前出の「クラシック~」によると、「4つのデンマーク語の歌『心の歌』」op5の2曲目にも「海の永遠の動きをあなたは知らない」という曲があります。)
45
+
46
+
47
+ 貴館でお持ちの「新・外国楽曲の呼び方」(日本放送出版協会)資料No1511395137と「洋楽索引:作曲者と原題と訳題を引き出すための上、下」(民音音楽資料館)資料No1510796988,1510796996を確認してください。
48
+
49
+
50
+ 「クラシック音楽作品名辞典第3版」(三省堂)および「作曲家別名曲解説ライブラリー18北欧の巨匠」(音楽の友社)は調査済みです。</QUESTION>
51
+
52
+ <REG-ID>OSPR11070035</REG-ID>
53
+
54
+ <ANSWER>「海の永遠の動きをあなたは知らない」(「君知らず、彼の永遠の動きを」)と「詩人の心」は同じものでした。
55
+
56
+
57
+ ①《自作の歌曲によるピアノ曲》Op.52は題名のとおり、グリーグの作曲した歌曲をピアノ曲に編曲したもので、「海の永遠の動きをあなたは知らない」Du fatter
58
+ ej Bolgernes evige Gangは《4つのデンマーク語の歌「心の歌」》Op.5の第2曲に当たります。これは『グリーグ:生涯と作品』(菅野浩和/著 音楽之友社 1984.11)付録28頁に記載されています。
59
+
60
+
61
+ ②「海の永遠の動きをあなたは知らない」は『クラシック音楽作品名辞典:改訂版』(井上和男/編 三省堂 1996.12)174頁にあるようにアンデルセンの詩に曲をつけたものです(事前調査された第3版にも記載されていると思います)。
62
+
63
+
64
+ ③〈NAXOS MUSIC LIBRARY〉のサイトでは、
65
+
66
+ 「 Du fatter ej Boigemes evige Gang (The Poet''s Heart), Op. 5, No. 2」と表記されています。
67
+
68
+
69
+ http://ml.naxos.jp/album/8.553400
70
+
71
+
72
+
73
+ ※『ピアノ作曲家作品事典』(中村菊子/著 大竹紀子/著 ヤマハミュージックメディア 2003.11)は「詩人の心」The Poet''s Heartと表記されています(79頁)。これは全音楽譜出版社の《自作の歌曲による12のピアノ曲》の楽譜に依っています。
74
+
75
+
76
+ なお、以下の資料には「詩人の心」「海の永遠の動きをあなたは知らない」は記載されていませんでした。
77
+
78
+ 『新・外国楽曲の呼び方』(日本放送協会 1962.9)
79
+
80
+ 『洋楽索引:作曲者と原題と訳題を引き出すための 下巻』(民音音楽資料館 1981.2)
81
+
82
+ 『洋楽索引:作曲者と原題と訳題を引き出すための 上巻』(民音音楽資料館 1975.11)
83
+
84
+ </ANSWER>
85
+
86
+ <CRT-DATE>2011/07/25</CRT-DATE>
87
+
88
+ <KEYWORD>Du fatter ej Boigemes evige Gang  The Poet''s Heart</KEYWORD>
89
+
90
+ <NDC>763</NDC>
91
+
92
+ <NDC-NOTE>楽器.器楽(763:8版)</NDC-NOTE>
93
+
94
+ <RES-TYPE>事実調査</RES-TYPE>
95
+
96
+ <BIBL>『グリーグ:生涯と作品』(菅野浩和/著 音楽之友社 1984.11)(ページ:28)</BIBL>
97
+
98
+ <BIBL>『クラシック音楽作品名辞典:改訂版』(井上和男/編 三省堂 1996.12)(ページ:174)</BIBL>
99
+
100
+ <BIBL>『ピアノ作曲家作品事典:152人の作曲家たちとピアノ曲のすべて』(中村菊子/著 大竹紀子/著 ヤマハミュージックメディア 2003.11)(ページ:79)</BIBL>
101
+
102
+ <BIBL>NAXOS MUSIC LIBRARY(2010/7/27現在)(ホームページ:http://ml.naxos.jp/album/8.553400)</BIBL>
103
+
104
+ <REG-DATE>201112160205</REG-DATE>
105
+
106
+ <LST-DATE>201112161258</LST-DATE>
107
+
108
+ <SYS-ID>1000098395</SYS-ID>
109
+
110
+ <LIB-ID>2120005</LIB-ID>
111
+
112
+ <LIB-NAME>大阪府立中央図書館</LIB-NAME>
113
+
114
+ <URL>http://crd.ndl.go.jp/GENERAL/servlet/detail.reference?id=1000098395</URL>
115
+
116
+ <IMAGE>無</IMAGE>
117
+
118
+ <position>0</position>
119
+
120
+ </result>
121
+
122
+ <result>
123
+
37
124
  <QUESTION>「極冷酒」の読み方を知りたい。尾瀬あきら著『さらに極める日本酒味わい入門』の紹介文に「熱燗、燗冷まし、割り水燗、にごり酒、日本酒カクテル、極冷酒・・・。日本酒のオツな楽しみ方が満載」とあり、原本には「極冷酒のファンタジー」の項目がありました。日本酒の辞典類には用語はなく、yahoo検索では極冷酒はありましたが読みはなし。</QUESTION>
38
125
 
39
126
  <REG-ID>5077</REG-ID>
@@ -171,7 +258,7 @@ http_interactions:
171
258
 
172
259
  <IMAGE>無</IMAGE>
173
260
 
174
- <position>0</position>
261
+ <position>1</position>
175
262
 
176
263
  </result>
177
264
 
@@ -213,7 +300,7 @@ http_interactions:
213
300
 
214
301
  <IMAGE>無</IMAGE>
215
302
 
216
- <position>1</position>
303
+ <position>2</position>
217
304
 
218
305
  </result>
219
306
 
@@ -301,7 +388,7 @@ http_interactions:
301
388
 
302
389
  <IMAGE>無</IMAGE>
303
390
 
304
- <position>2</position>
391
+ <position>3</position>
305
392
 
306
393
  </result>
307
394
 
@@ -428,7 +515,7 @@ http_interactions:
428
515
 
429
516
  <IMAGE>無</IMAGE>
430
517
 
431
- <position>3</position>
518
+ <position>4</position>
432
519
 
433
520
  </result>
434
521
 
@@ -436,5 +523,5 @@ http_interactions:
436
523
 
437
524
  '
438
525
  http_version: '1.0'
439
- recorded_at: Thu, 15 Dec 2011 08:18:26 GMT
526
+ recorded_at: Wed, 28 Dec 2011 21:49:10 GMT
440
527
  recorded_with: VCR 2.0.0.rc1
@@ -4,6 +4,10 @@ describe QuestionsController do
4
4
  fixtures :all
5
5
 
6
6
  describe "GET index", :solr => true do
7
+ before do
8
+ Question.reindex
9
+ end
10
+
7
11
  describe "When logged in as Administrator" do
8
12
  login_fixture_admin
9
13
 
Binary file
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/spec/spec_helper.rb CHANGED
@@ -39,7 +39,7 @@ RSpec.configure do |config|
39
39
  config.before :each, :solr => true do
40
40
  Sunspot::Rails::Tester.start_original_sunspot_session
41
41
  Sunspot.session = $original_sunspot_session
42
- #Sunspot.remove_all!
42
+ Sunspot.remove_all!
43
43
  end
44
44
 
45
45
  config.extend VCR::RSpec::Macros
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_question
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-02 00:00:00.000000000 Z
12
+ date: 2012-07-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -43,70 +43,6 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: sunspot_rails
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: sunspot_solr
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :runtime
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: devise
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :runtime
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
95
- name: cancan
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- type: :runtime
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
46
  - !ruby/object:Gem::Dependency
111
47
  name: acts-as-taggable-on
112
48
  requirement: !ruby/object:Gem::Requirement
@@ -114,71 +50,7 @@ dependencies:
114
50
  requirements:
115
51
  - - ~>
116
52
  - !ruby/object:Gem::Version
117
- version: '2.2'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ~>
124
- - !ruby/object:Gem::Version
125
- version: '2.2'
126
- - !ruby/object:Gem::Dependency
127
- name: friendly_id
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ~>
132
- - !ruby/object:Gem::Version
133
- version: '4.0'
134
- type: :runtime
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ~>
140
- - !ruby/object:Gem::Version
141
- version: '4.0'
142
- - !ruby/object:Gem::Dependency
143
- name: nokogiri
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: '0'
150
- type: :runtime
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
158
- - !ruby/object:Gem::Dependency
159
- name: will_paginate
160
- requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ~>
164
- - !ruby/object:Gem::Version
165
- version: '3.0'
166
- type: :runtime
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ~>
172
- - !ruby/object:Gem::Version
173
- version: '3.0'
174
- - !ruby/object:Gem::Dependency
175
- name: acts_as_list
176
- requirement: !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
179
- - - ~>
180
- - !ruby/object:Gem::Version
181
- version: 0.1.6
53
+ version: '2.3'
182
54
  type: :runtime
183
55
  prerelease: false
184
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -186,7 +58,7 @@ dependencies:
186
58
  requirements:
187
59
  - - ~>
188
60
  - !ruby/object:Gem::Version
189
- version: 0.1.6
61
+ version: '2.3'
190
62
  - !ruby/object:Gem::Dependency
191
63
  name: enju_ndl
192
64
  requirement: !ruby/object:Gem::Requirement
@@ -194,7 +66,7 @@ dependencies:
194
66
  requirements:
195
67
  - - ~>
196
68
  - !ruby/object:Gem::Version
197
- version: 0.0.33
69
+ version: 0.0.34
198
70
  type: :runtime
199
71
  prerelease: false
200
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -202,7 +74,7 @@ dependencies:
202
74
  requirements:
203
75
  - - ~>
204
76
  - !ruby/object:Gem::Version
205
- version: 0.0.33
77
+ version: 0.0.34
206
78
  - !ruby/object:Gem::Dependency
207
79
  name: enju_core
208
80
  requirement: !ruby/object:Gem::Requirement
@@ -419,7 +291,6 @@ files:
419
291
  - spec/dummy/config/locales/en.yml
420
292
  - spec/dummy/config/routes.rb
421
293
  - spec/dummy/config.ru
422
- - spec/dummy/db/development.sqlite3
423
294
  - spec/dummy/db/migrate/001_create_patrons.rb
424
295
  - spec/dummy/db/migrate/005_create_manifestations.rb
425
296
  - spec/dummy/db/migrate/006_create_items.rb
@@ -517,25 +388,16 @@ files:
517
388
  - spec/dummy/solr/conf/spellings.txt
518
389
  - spec/dummy/solr/conf/stopwords.txt
519
390
  - spec/dummy/solr/conf/synonyms.txt
520
- - spec/dummy/solr/data/test/index/_0.fdt
521
- - spec/dummy/solr/data/test/index/_0.fdx
522
- - spec/dummy/solr/data/test/index/_0.fnm
523
- - spec/dummy/solr/data/test/index/_0.frq
524
- - spec/dummy/solr/data/test/index/_0.nrm
525
- - spec/dummy/solr/data/test/index/_0.prx
526
- - spec/dummy/solr/data/test/index/_0.tii
527
- - spec/dummy/solr/data/test/index/_0.tis
528
- - spec/dummy/solr/data/test/index/_0_1.del
529
- - spec/dummy/solr/data/test/index/_1.fdt
530
- - spec/dummy/solr/data/test/index/_1.fdx
531
- - spec/dummy/solr/data/test/index/_1.fnm
532
- - spec/dummy/solr/data/test/index/_1.frq
533
- - spec/dummy/solr/data/test/index/_1.nrm
534
- - spec/dummy/solr/data/test/index/_1.prx
535
- - spec/dummy/solr/data/test/index/_1.tii
536
- - spec/dummy/solr/data/test/index/_1.tis
391
+ - spec/dummy/solr/data/test/index/_a.fdt
392
+ - spec/dummy/solr/data/test/index/_a.fdx
393
+ - spec/dummy/solr/data/test/index/_a.fnm
394
+ - spec/dummy/solr/data/test/index/_a.frq
395
+ - spec/dummy/solr/data/test/index/_a.nrm
396
+ - spec/dummy/solr/data/test/index/_a.prx
397
+ - spec/dummy/solr/data/test/index/_a.tii
398
+ - spec/dummy/solr/data/test/index/_a.tis
537
399
  - spec/dummy/solr/data/test/index/segments.gen
538
- - spec/dummy/solr/data/test/index/segments_3
400
+ - spec/dummy/solr/data/test/index/segments_n
539
401
  - spec/dummy/solr/data/test/spellchecker/segments.gen
540
402
  - spec/dummy/solr/data/test/spellchecker/segments_1
541
403
  - spec/factories/answer.rb
@@ -616,7 +478,6 @@ test_files:
616
478
  - spec/dummy/config/locales/en.yml
617
479
  - spec/dummy/config/routes.rb
618
480
  - spec/dummy/config.ru
619
- - spec/dummy/db/development.sqlite3
620
481
  - spec/dummy/db/migrate/001_create_patrons.rb
621
482
  - spec/dummy/db/migrate/005_create_manifestations.rb
622
483
  - spec/dummy/db/migrate/006_create_items.rb
@@ -714,25 +575,16 @@ test_files:
714
575
  - spec/dummy/solr/conf/spellings.txt
715
576
  - spec/dummy/solr/conf/stopwords.txt
716
577
  - spec/dummy/solr/conf/synonyms.txt
717
- - spec/dummy/solr/data/test/index/_0.fdt
718
- - spec/dummy/solr/data/test/index/_0.fdx
719
- - spec/dummy/solr/data/test/index/_0.fnm
720
- - spec/dummy/solr/data/test/index/_0.frq
721
- - spec/dummy/solr/data/test/index/_0.nrm
722
- - spec/dummy/solr/data/test/index/_0.prx
723
- - spec/dummy/solr/data/test/index/_0.tii
724
- - spec/dummy/solr/data/test/index/_0.tis
725
- - spec/dummy/solr/data/test/index/_0_1.del
726
- - spec/dummy/solr/data/test/index/_1.fdt
727
- - spec/dummy/solr/data/test/index/_1.fdx
728
- - spec/dummy/solr/data/test/index/_1.fnm
729
- - spec/dummy/solr/data/test/index/_1.frq
730
- - spec/dummy/solr/data/test/index/_1.nrm
731
- - spec/dummy/solr/data/test/index/_1.prx
732
- - spec/dummy/solr/data/test/index/_1.tii
733
- - spec/dummy/solr/data/test/index/_1.tis
578
+ - spec/dummy/solr/data/test/index/_a.fdt
579
+ - spec/dummy/solr/data/test/index/_a.fdx
580
+ - spec/dummy/solr/data/test/index/_a.fnm
581
+ - spec/dummy/solr/data/test/index/_a.frq
582
+ - spec/dummy/solr/data/test/index/_a.nrm
583
+ - spec/dummy/solr/data/test/index/_a.prx
584
+ - spec/dummy/solr/data/test/index/_a.tii
585
+ - spec/dummy/solr/data/test/index/_a.tis
734
586
  - spec/dummy/solr/data/test/index/segments.gen
735
- - spec/dummy/solr/data/test/index/segments_3
587
+ - spec/dummy/solr/data/test/index/segments_n
736
588
  - spec/dummy/solr/data/test/spellchecker/segments.gen
737
589
  - spec/dummy/solr/data/test/spellchecker/segments_1
738
590
  - spec/factories/answer.rb
Binary file
Binary file
Binary file
@@ -1,3 +0,0 @@
1
- ���� idtype
2
- class_name
3
- username_s created_at_d updated_at_dshared_bsolved_banswers_count_i body_textanswer_body_text
@@ -1 +0,0 @@
1
-     
@@ -1 +0,0 @@
1
- NRM�||||||||����
Binary file
Binary file
Binary file