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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb475fbf4410550d3dc061f52c492e46c1be4865
4
- data.tar.gz: e228f432f945a2a5df4262bda6500849575d6e4a
3
+ metadata.gz: 0e3eea98167932846eaf29fa7605d9f0a64e34e5
4
+ data.tar.gz: fddd833c6f35a45a55b59063018a53cbf121a40f
5
5
  SHA512:
6
- metadata.gz: a454d695e703abcffcda74a2e558dbee3a4c109d284f6a62918e41ec0d4c81f954a42f7b31eaefa15e1f4cd7f950efe6e1cc83a543be24461666b0219b052808
7
- data.tar.gz: 40e9399a04f6adfff8b9c0956f973f5a7f37f31fe3212b05adbbf61cc770a62ef83e63563652a172284727c482f14f589482c98b1106d63abaaaed169c522afb
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
@@ -1,3 +1,3 @@
1
1
  module EnjuLeaf
2
- VERSION = "1.1.0.rc2"
2
+ VERSION = "1.1.0.rc3"
3
3
  end
@@ -48,13 +48,9 @@ EOS
48
48
  enju_biblio
49
49
  enju_library
50
50
 
51
- private
52
- def mobylette_options
53
- @mobylette_options ||= ApplicationController.send(:mobylette_options).merge(
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
- private
8
- def mobylette_options
9
- @mobylette_options ||= ApplicationController.send(:mobylette_options).merge(
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
@@ -1,8 +1,8 @@
1
1
  defaults: &defaults
2
2
  enju:
3
- web_hostname: localhost
4
- web_port_number: 3000
5
3
  erms_url:
4
+ skip_mobile_agents:
5
+ - ipad
6
6
 
7
7
  family_name_first: true
8
8
  max_number_of_results: 500
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.rc2
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-05-19 00:00:00.000000000 Z
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.pre23
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.pre23
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.pre8
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.pre8
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/_6b.fdt
771
- - spec/dummy/solr/data/test/index/_6b.fdx
772
- - spec/dummy/solr/data/test/index/_6b.fnm
773
- - spec/dummy/solr/data/test/index/_6b.frq
774
- - spec/dummy/solr/data/test/index/_6b.nrm
775
- - spec/dummy/solr/data/test/index/_6b.prx
776
- - spec/dummy/solr/data/test/index/_6b.tii
777
- - spec/dummy/solr/data/test/index/_6b.tis
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/segments_cp
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/_6b.fdt
1072
- - spec/dummy/solr/data/test/index/_6b.fdx
1073
- - spec/dummy/solr/data/test/index/_6b.fnm
1074
- - spec/dummy/solr/data/test/index/_6b.frq
1075
- - spec/dummy/solr/data/test/index/_6b.nrm
1076
- - spec/dummy/solr/data/test/index/_6b.prx
1077
- - spec/dummy/solr/data/test/index/_6b.tii
1078
- - spec/dummy/solr/data/test/index/_6b.tis
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/segments_cp
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 %>