enju_leaf 1.1.0.rc2 → 1.1.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/mime_types.rb +0 -1
- data/lib/enju_leaf/version.rb +1 -1
- data/lib/generators/enju_leaf/setup/setup_generator.rb +9 -7
- data/spec/dummy/app/controllers/application_controller.rb +3 -7
- data/spec/dummy/config/application.yml +2 -2
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/{_6b.fdt → _6z.fdt} +0 -0
- data/spec/dummy/solr/data/test/index/{_6b.fdx → _6z.fdx} +0 -0
- data/spec/dummy/solr/data/test/index/{_6b.fnm → _6z.fnm} +0 -0
- data/spec/dummy/solr/data/test/index/{_6b.frq → _6z.frq} +0 -0
- data/spec/dummy/solr/data/test/index/{_6b.nrm → _6z.nrm} +0 -0
- data/spec/dummy/solr/data/test/index/{_6b.prx → _6z.prx} +0 -0
- data/spec/dummy/solr/data/test/index/{_6b.tii → _6z.tii} +0 -0
- data/spec/dummy/solr/data/test/index/{_6b.tis → _6z.tis} +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/{segments_cp → segments_e1} +0 -0
- metadata +24 -26
- data/app/views/notifier/manifestation_info.en.text.erb +0 -18
- data/app/views/notifier/manifestation_info.ja.text.erb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e3eea98167932846eaf29fa7605d9f0a64e34e5
|
4
|
+
data.tar.gz: fddd833c6f35a45a55b59063018a53cbf121a40f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f748cf7b69cd91563fcf07b1dd7879cb358a5d82bd9b6dd22e260d550d581ee7810608e682fdaccfaa7e648db8c5043ef2b1d41d1696625a70c7950f53d3d1ac
|
7
|
+
data.tar.gz: 97e8b29bc6765aae5d6ef1e890e4a2a344bf44d71ccbdfa7497aa485cc1c720b4352c91d90fa0a9ecbaa9cc296efbf77b5ce011b1f314da5ef7a479773b2d0c7
|
@@ -9,5 +9,4 @@ Mime::Type.register "application/xml", :sru
|
|
9
9
|
#Mime::Type.register "application/xml", :openurl
|
10
10
|
Mime::Type.register "application/xml", :mods
|
11
11
|
Mime::Type.register "application/rdf+xml", :rdf
|
12
|
-
Mime::Type.register_alias "text/xml", :oai
|
13
12
|
Mime::Type.register "application/svg+xml", :svg
|
data/lib/enju_leaf/version.rb
CHANGED
@@ -48,13 +48,9 @@ EOS
|
|
48
48
|
enju_biblio
|
49
49
|
enju_library
|
50
50
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
{
|
55
|
-
:skip_xhr_requests => false
|
56
|
-
}
|
57
|
-
)
|
51
|
+
mobylette_config do |config|
|
52
|
+
config[:skip_xhr_requests] = false
|
53
|
+
config[:skip_user_agents] = Setting.enju.skip_mobile_agents.map{|a| a.to_sym}
|
58
54
|
end
|
59
55
|
|
60
56
|
EOS
|
@@ -76,6 +72,12 @@ EOS
|
|
76
72
|
inject_into_file "app/assets/stylesheets/application.css", :after => / *= require_self$\n/ do
|
77
73
|
" *= require enju_leaf\n"
|
78
74
|
end
|
75
|
+
inject_into_file "config.ru", :after => /require ::File.expand_path\(\'..\/config\/environment\', __FILE__\)$\n/ do
|
76
|
+
<<"EOS"
|
77
|
+
require 'rack/protection'
|
78
|
+
use Rack::Protection, :except => [:escaped_params, :json_csrf, :http_origin, :session_hijacking, :remote_token]
|
79
|
+
EOS
|
80
|
+
end
|
79
81
|
generate("sunspot_rails:install")
|
80
82
|
remove_file "public/index.html"
|
81
83
|
remove_file "app/views/layouts/application.html.erb"
|
@@ -4,12 +4,8 @@ class ApplicationController < ActionController::Base
|
|
4
4
|
enju_biblio
|
5
5
|
enju_library
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
{
|
11
|
-
:skip_xhr_requests => false
|
12
|
-
}
|
13
|
-
)
|
7
|
+
mobylette_config do |config|
|
8
|
+
config[:skip_xhr_requests] = false
|
9
|
+
config[:skip_user_agents] = Setting.enju.skip_mobile_agents.map{|a| a.to_sym}
|
14
10
|
end
|
15
11
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
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
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_leaf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.
|
4
|
+
version: 1.1.0.rc3
|
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-
|
11
|
+
date: 2013-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: enju_biblio
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1.0.
|
33
|
+
version: 0.1.0.pre24
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.1.0.
|
40
|
+
version: 0.1.0.pre24
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: enju_manifestation_viewer
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - ~>
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 0.1.14.
|
187
|
+
version: 0.1.14.pre9
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - ~>
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 0.1.14.
|
194
|
+
version: 0.1.14.pre9
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: vcr
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -423,8 +423,6 @@ files:
|
|
423
423
|
- app/views/my_accounts/edit.html.erb
|
424
424
|
- app/views/my_accounts/show.html.erb
|
425
425
|
- app/views/my_accounts/show.mobile.erb
|
426
|
-
- app/views/notifier/manifestation_info.en.text.erb
|
427
|
-
- app/views/notifier/manifestation_info.ja.text.erb
|
428
426
|
- app/views/page/403.html.erb
|
429
427
|
- app/views/page/403.mobile.erb
|
430
428
|
- app/views/page/403.xml.erb
|
@@ -767,16 +765,16 @@ files:
|
|
767
765
|
- spec/dummy/solr/conf/spellings.txt
|
768
766
|
- spec/dummy/solr/conf/stopwords.txt
|
769
767
|
- spec/dummy/solr/conf/synonyms.txt
|
770
|
-
- spec/dummy/solr/data/test/index/
|
771
|
-
- spec/dummy/solr/data/test/index/
|
772
|
-
- spec/dummy/solr/data/test/index/
|
773
|
-
- spec/dummy/solr/data/test/index/
|
774
|
-
- spec/dummy/solr/data/test/index/
|
775
|
-
- spec/dummy/solr/data/test/index/
|
776
|
-
- spec/dummy/solr/data/test/index/
|
777
|
-
- spec/dummy/solr/data/test/index/
|
768
|
+
- spec/dummy/solr/data/test/index/_6z.fdt
|
769
|
+
- spec/dummy/solr/data/test/index/_6z.fdx
|
770
|
+
- spec/dummy/solr/data/test/index/_6z.fnm
|
771
|
+
- spec/dummy/solr/data/test/index/_6z.frq
|
772
|
+
- spec/dummy/solr/data/test/index/_6z.nrm
|
773
|
+
- spec/dummy/solr/data/test/index/_6z.prx
|
774
|
+
- spec/dummy/solr/data/test/index/_6z.tii
|
775
|
+
- spec/dummy/solr/data/test/index/_6z.tis
|
778
776
|
- spec/dummy/solr/data/test/index/segments.gen
|
779
|
-
- spec/dummy/solr/data/test/index/
|
777
|
+
- spec/dummy/solr/data/test/index/segments_e1
|
780
778
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
781
779
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
782
780
|
- spec/dummy/tmp/cache/4F7/F90/default_role
|
@@ -1068,16 +1066,16 @@ test_files:
|
|
1068
1066
|
- spec/dummy/solr/conf/spellings.txt
|
1069
1067
|
- spec/dummy/solr/conf/stopwords.txt
|
1070
1068
|
- spec/dummy/solr/conf/synonyms.txt
|
1071
|
-
- spec/dummy/solr/data/test/index/
|
1072
|
-
- spec/dummy/solr/data/test/index/
|
1073
|
-
- spec/dummy/solr/data/test/index/
|
1074
|
-
- spec/dummy/solr/data/test/index/
|
1075
|
-
- spec/dummy/solr/data/test/index/
|
1076
|
-
- spec/dummy/solr/data/test/index/
|
1077
|
-
- spec/dummy/solr/data/test/index/
|
1078
|
-
- spec/dummy/solr/data/test/index/
|
1069
|
+
- spec/dummy/solr/data/test/index/_6z.fdt
|
1070
|
+
- spec/dummy/solr/data/test/index/_6z.fdx
|
1071
|
+
- spec/dummy/solr/data/test/index/_6z.fnm
|
1072
|
+
- spec/dummy/solr/data/test/index/_6z.frq
|
1073
|
+
- spec/dummy/solr/data/test/index/_6z.nrm
|
1074
|
+
- spec/dummy/solr/data/test/index/_6z.prx
|
1075
|
+
- spec/dummy/solr/data/test/index/_6z.tii
|
1076
|
+
- spec/dummy/solr/data/test/index/_6z.tis
|
1079
1077
|
- spec/dummy/solr/data/test/index/segments.gen
|
1080
|
-
- spec/dummy/solr/data/test/index/
|
1078
|
+
- spec/dummy/solr/data/test/index/segments_e1
|
1081
1079
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
1082
1080
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
1083
1081
|
- spec/dummy/tmp/cache/4F7/F90/default_role
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<%= @user.patron.full_name -%> :
|
2
|
-
|
3
|
-
Title: <%= @manifestation.original_title %>
|
4
|
-
Creator(s): <%= @manifestation.creators.readable_by(@user).collect(&:full_name).join("/") %>
|
5
|
-
Contributor(s): <%= @manifestation.contributors.readable_by(@user).collect(&:full_name).join("/") %>
|
6
|
-
Publisher(s): <%= @manifestation.publishers.readable_by(@user).collect(&:full_name).join("/") %>
|
7
|
-
ISBN: <%= @manifestation.isbn %>
|
8
|
-
URL: <%= @manifestation.access_address %>
|
9
|
-
Holding:
|
10
|
-
<% @manifestation.items.on_shelf.each do |item| -%>
|
11
|
-
<%= item.shelf_display_name.localize %> <%= item.call_number %> <%= item.item_identifier %>
|
12
|
-
<% end -%>
|
13
|
-
|
14
|
-
<%= "#{LibraryGroup.site_config.url}manifestations/#{@manifestation.id}" %>
|
15
|
-
|
16
|
-
--
|
17
|
-
<%= LibraryGroup.system_name(@user.locale) %>
|
18
|
-
<%= LibraryGroup.site_config.url %>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<%= @user.patron.full_name -%> さん
|
2
|
-
|
3
|
-
資料名: <%= @manifestation.original_title %>
|
4
|
-
著者: <%= @manifestation.creators.readable_by(@user).collect(&:full_name).join("/") %>
|
5
|
-
編者: <%= @manifestation.contributors.readable_by(@user).collect(&:full_name).join("/") %>
|
6
|
-
出版者: <%= @manifestation.publishers.readable_by(@user).collect(&:full_name).join("/") %>
|
7
|
-
ISBN: <%= @manifestation.isbn %>
|
8
|
-
URL: <%= @manifestation.access_address %>
|
9
|
-
所蔵場所:
|
10
|
-
<% @manifestation.items.on_shelf.each do |item| -%>
|
11
|
-
<%= item.shelf_display_name.localize %> <%= item.call_number %> <%= item.item_identifier %>
|
12
|
-
<% end -%>
|
13
|
-
|
14
|
-
<%= "#{LibraryGroup.site_config.url}manifestations/#{@manifestation.id}" %>
|
15
|
-
|
16
|
-
--
|
17
|
-
<%= LibraryGroup.system_name(@user.locale) %>
|
18
|
-
<%= LibraryGroup.site_config.url %>
|