enju_library 0.1.0.pre10 → 0.1.0.pre11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7d6b591be2dc6c4de5ff56260a77473111663fb
4
- data.tar.gz: 94ccec84575569dbac3d3bb7967ac30d43541cff
3
+ metadata.gz: 3a14805fe9f166bc06831076d834b814084db7cb
4
+ data.tar.gz: 397e3beb9db4446d1edb6ee0f3fdbf2ca1884cf5
5
5
  SHA512:
6
- metadata.gz: be165d79ce516d2d7e19eb3f01b66f110def0bc71a693ce7123cf299c6f59ea7147fdd6a29697496b22955de99669ab4d35424eb84e932e5fe359ffed26bc239
7
- data.tar.gz: 9caa21bafc1e054a3d9bd8d7b6c0edf42f7ca09090aea0fe7f3717371b70808a8214c211f33c0755191e8e784aafc1aa175326888af2d3c8fafd1ad25e09ca93
6
+ metadata.gz: b4e089e4db9c8df37e920cb667d9e465eef31ba1980c4ae03bc966d3e74cc60ea220b11763ef32ade4b3ae1a3358db99884890438c116e1e91e39d26d2665fac
7
+ data.tar.gz: c4f9095346acce0566622ae31104e61ad9dded0abbc8bafec948aae0549543967a64b6d557e8cd4458e922c39df585d6f66c4f5ace11b77b1987b334af2f1134
@@ -20,7 +20,7 @@
20
20
 
21
21
  <div>
22
22
  <strong><%= t('activerecord.attributes.library_group.login_banner') -%>:</strong>
23
- <%= raw textilize(h(@library_group.login_banner)) -%>
23
+ <%= markdown_helper(@library_group.login_banner) -%>
24
24
  </div>
25
25
 
26
26
  <% if defined?(EnjuBookmark) %>
@@ -1,3 +1,3 @@
1
1
  module EnjuLibrary
2
- VERSION = "0.1.0.pre10"
2
+ VERSION = "0.1.0.pre11"
3
3
  end
@@ -12,4 +12,13 @@ module ApplicationHelper
12
12
  link_to t('page.listing', :model => t("activerecord.models.#{controller_name.singularize}")), url_for(params.merge(:controller => controller_name, :action => :index, :id => nil, :only_path => true).merge(options))
13
13
  end
14
14
  end
15
+
16
+ def markdown_helper(string)
17
+ return unless string
18
+ markdown = Redcarpet::Markdown.new(
19
+ Redcarpet::Render::HTML,
20
+ :autolink => true, :safe_links_only => true
21
+ )
22
+ markdown.render(string.to_s).html_safe
23
+ end
15
24
  end
@@ -60,4 +60,4 @@ require 'enju_biblio'
60
60
  require 'enju_circulation'
61
61
  require 'enju_manifestation_viewer'
62
62
  require 'mobylette'
63
- require 'RedCloth'
63
+ require 'redcarpet'
Binary file
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -9,6 +9,7 @@ one:
9
9
  my_networks: 0.0.0.0/0
10
10
  url: "http://localhost:3000/"
11
11
  position: 1
12
+ login_banner: "*Next-L Enju*"
12
13
 
13
14
  # == Schema Information
14
15
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre10
4
+ version: 0.1.0.pre11
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-03-04 00:00:00.000000000 Z
11
+ date: 2013-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -263,7 +263,7 @@ dependencies:
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
265
  - !ruby/object:Gem::Dependency
266
- name: RedCloth
266
+ name: simplecov
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
269
  - - '>='
@@ -277,7 +277,7 @@ dependencies:
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
279
  - !ruby/object:Gem::Dependency
280
- name: simplecov
280
+ name: redcarpet
281
281
  requirement: !ruby/object:Gem::Requirement
282
282
  requirements:
283
283
  - - '>='
@@ -538,16 +538,16 @@ files:
538
538
  - spec/dummy/solr/conf/spellings.txt
539
539
  - spec/dummy/solr/conf/stopwords.txt
540
540
  - spec/dummy/solr/conf/synonyms.txt
541
- - spec/dummy/solr/data/test/index/_e.fdt
542
- - spec/dummy/solr/data/test/index/_e.fdx
543
- - spec/dummy/solr/data/test/index/_e.fnm
544
- - spec/dummy/solr/data/test/index/_e.frq
545
- - spec/dummy/solr/data/test/index/_e.nrm
546
- - spec/dummy/solr/data/test/index/_e.prx
547
- - spec/dummy/solr/data/test/index/_e.tii
548
- - spec/dummy/solr/data/test/index/_e.tis
541
+ - spec/dummy/solr/data/test/index/_1n.fdt
542
+ - spec/dummy/solr/data/test/index/_1n.fdx
543
+ - spec/dummy/solr/data/test/index/_1n.fnm
544
+ - spec/dummy/solr/data/test/index/_1n.frq
545
+ - spec/dummy/solr/data/test/index/_1n.nrm
546
+ - spec/dummy/solr/data/test/index/_1n.prx
547
+ - spec/dummy/solr/data/test/index/_1n.tii
548
+ - spec/dummy/solr/data/test/index/_1n.tis
549
549
  - spec/dummy/solr/data/test/index/segments.gen
550
- - spec/dummy/solr/data/test/index/segments_10
550
+ - spec/dummy/solr/data/test/index/segments_3x
551
551
  - spec/dummy/solr/data/test/spellchecker/segments.gen
552
552
  - spec/dummy/solr/data/test/spellchecker/segments_1
553
553
  - spec/dummy/tmp/cache/4AD/470/country_all
@@ -767,16 +767,16 @@ test_files:
767
767
  - spec/dummy/solr/conf/spellings.txt
768
768
  - spec/dummy/solr/conf/stopwords.txt
769
769
  - spec/dummy/solr/conf/synonyms.txt
770
- - spec/dummy/solr/data/test/index/_e.fdt
771
- - spec/dummy/solr/data/test/index/_e.fdx
772
- - spec/dummy/solr/data/test/index/_e.fnm
773
- - spec/dummy/solr/data/test/index/_e.frq
774
- - spec/dummy/solr/data/test/index/_e.nrm
775
- - spec/dummy/solr/data/test/index/_e.prx
776
- - spec/dummy/solr/data/test/index/_e.tii
777
- - spec/dummy/solr/data/test/index/_e.tis
770
+ - spec/dummy/solr/data/test/index/_1n.fdt
771
+ - spec/dummy/solr/data/test/index/_1n.fdx
772
+ - spec/dummy/solr/data/test/index/_1n.fnm
773
+ - spec/dummy/solr/data/test/index/_1n.frq
774
+ - spec/dummy/solr/data/test/index/_1n.nrm
775
+ - spec/dummy/solr/data/test/index/_1n.prx
776
+ - spec/dummy/solr/data/test/index/_1n.tii
777
+ - spec/dummy/solr/data/test/index/_1n.tis
778
778
  - spec/dummy/solr/data/test/index/segments.gen
779
- - spec/dummy/solr/data/test/index/segments_10
779
+ - spec/dummy/solr/data/test/index/segments_3x
780
780
  - spec/dummy/solr/data/test/spellchecker/segments.gen
781
781
  - spec/dummy/solr/data/test/spellchecker/segments_1
782
782
  - spec/dummy/tmp/cache/4AD/470/country_all
Binary file