epos 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/README.pt-br.md +5 -0
- data/epos.gemspec +3 -3
- data/lib/epos/dictionary.rb +1 -1
- data/lib/epos/html/attrs.slim +1 -1
- data/lib/epos/html/defins.slim +1 -1
- data/lib/epos/html/style.css +2 -2
- data/lib/epos/html-formatter.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 460f009007e6793fc88117df1c08a7c667d140c2
|
4
|
+
data.tar.gz: bfe9ee0cd72f1a93160d7975c096f946a964469e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 066a5fe1bbf753c2fc2aed3b98bb9901b6383fb1a2c45d2ac7058f48bf25755ec55ba55fe1dbe06d738b5befe5bf8ac6ee6d24945373dd5376ac401a87276961
|
7
|
+
data.tar.gz: 47a1f4d6001b2c4737dce2f69149c8a2614e09df960776919b05bbc22b48614b8fba1478b2afc8445f5ccecfce803b6ab2a177e4541c39ab91016f14f2abd008
|
data/README.md
CHANGED
data/README.pt-br.md
CHANGED
data/epos.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'epos'
|
4
|
-
s.version = '0.9.
|
5
|
-
s.date = '2014-
|
4
|
+
s.version = '0.9.2'
|
5
|
+
s.date = '2014-10-06'
|
6
6
|
s.summary = "Access to the Houaiss dictionary data files"
|
7
7
|
s.description = "Provides access to the Houaiss dictionary data files. Entries can be exported as HTML."
|
8
8
|
s.authors = ["Adiel Mittmann"]
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
Dir["lib/**/*.rb"] +
|
15
15
|
Dir["lib/**/*.slim"] +
|
16
16
|
Dir["lib/**/*.css"] +
|
17
|
-
Dir["examples
|
17
|
+
Dir["examples/web.rb"]
|
18
18
|
|
19
19
|
s.required_ruby_version = '~> 2.0'
|
20
20
|
|
data/lib/epos/dictionary.rb
CHANGED
data/lib/epos/html/attrs.slim
CHANGED
@@ -10,5 +10,5 @@
|
|
10
10
|
- if data[name].is_a?(String) || data[name].is_a?(Array)
|
11
11
|
- if label
|
12
12
|
= ' '
|
13
|
-
span class=(
|
13
|
+
span class=(label ? "value" : name.to_s.gsub(/_/, '-'))
|
14
14
|
== render_text(data[name].is_a?(String) ? data[name] : data[name][@string_index])
|
data/lib/epos/html/defins.slim
CHANGED
data/lib/epos/html/style.css
CHANGED
data/lib/epos/html-formatter.rb
CHANGED
@@ -29,7 +29,7 @@ module Epos
|
|
29
29
|
slim = Tilt["slim"]
|
30
30
|
|
31
31
|
@templates = [:extra_tab, :symbols_tab, :idioms_tab, :senses_tab, :defins, :defin_body, :attrs, :headword, :entry]
|
32
|
-
@templates = @templates.map{|sym| [sym, slim.new(File.join(@html_base, sym.to_s.gsub(/_/, "-") + ".slim"))]}
|
32
|
+
@templates = @templates.map{|sym| [sym, slim.new(File.join(@html_base, sym.to_s.gsub(/_/, "-") + ".slim"), :default_encoding => 'utf-8')]}
|
33
33
|
@templates = Hash[@templates]
|
34
34
|
end
|
35
35
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adiel Mittmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slim
|
@@ -115,3 +115,4 @@ signing_key:
|
|
115
115
|
specification_version: 4
|
116
116
|
summary: Access to the Houaiss dictionary data files
|
117
117
|
test_files: []
|
118
|
+
has_rdoc:
|