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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cbf146806e3244059db95495a438431ef768545
4
- data.tar.gz: fc3d8f544f4eb79c45c5996584865a9618d0f026
3
+ metadata.gz: 460f009007e6793fc88117df1c08a7c667d140c2
4
+ data.tar.gz: bfe9ee0cd72f1a93160d7975c096f946a964469e
5
5
  SHA512:
6
- metadata.gz: 7e70b0fbca1be37fadb0db6dab88bbf0b2af12d97c7e3457fad180a27b8a5dcb9e01691cefa9d9d6f84141bf805c8cd57fc98619ceb0346bb4af874f5b4df996
7
- data.tar.gz: e0e7166bf7b34983023f5535011a7e75b42d3dcb855fb25bca5eb1cf74475229458e0039174d4aec47a64ced69e41aaf03a6ed3d267d9a7fe75b130cd65dbfb2
6
+ metadata.gz: 066a5fe1bbf753c2fc2aed3b98bb9901b6383fb1a2c45d2ac7058f48bf25755ec55ba55fe1dbe06d738b5befe5bf8ac6ee6d24945373dd5376ac401a87276961
7
+ data.tar.gz: 47a1f4d6001b2c4737dce2f69149c8a2614e09df960776919b05bbc22b48614b8fba1478b2afc8445f5ccecfce803b6ab2a177e4541c39ab91016f14f2abd008
data/README.md CHANGED
@@ -19,6 +19,11 @@ Features
19
19
  * Characters are rendered correctly, even those in the etymology section or in
20
20
  the pronunciation of foreign words.
21
21
 
22
+ Installation
23
+ ------------
24
+
25
+ gem install epos
26
+
22
27
  Example
23
28
  -------
24
29
 
data/README.pt-br.md CHANGED
@@ -18,6 +18,11 @@ Funcionalidades
18
18
  * Os caracteres aparecem corretamente, mesmo aqueles na parte de etimologia e na
19
19
  pronúncia de palavras estrangeiras.
20
20
 
21
+ Instalação
22
+ ----------
23
+
24
+ gem install epos
25
+
21
26
  Exemplo
22
27
  -------
23
28
 
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.1'
5
- s.date = '2014-09-05'
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/**/*.rb"]
17
+ Dir["examples/web.rb"]
18
18
 
19
19
  s.required_ruby_version = '~> 2.0'
20
20
 
@@ -97,7 +97,7 @@ module Epos
97
97
  end
98
98
 
99
99
  def simplify(s)
100
- s.tr("áéíóúâêôãõàüçÁÉÍÓÚÂÊÔÃÕÀÜÇ", "aeiouaeoaoaucaeiouaeoaoauc").gsub(/[ -\\(\\)]/, "")
100
+ s.tr("áéíóúâêôãõàüçÁÉÍÓÚÂÊÔÃÕÀÜÇ", "aeiouaeoaoaucaeiouaeoaoauc").downcase.gsub(/[ \-\\(\\)]/, "")
101
101
  end
102
102
 
103
103
  end
@@ -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=('value ' + name.to_s.gsub(/_/, '-'))
13
+ span class=(label ? "value" : name.to_s.gsub(/_/, '-'))
14
14
  == render_text(data[name].is_a?(String) ? data[name] : data[name][@string_index])
@@ -4,5 +4,5 @@
4
4
  table
5
5
  - data.each do |defin|
6
6
  tr
7
- td.num valign='top' = defin[:num]
7
+ td.num valign='top' = defin[:num] != "0" ? defin[:num] : ""
8
8
  td == render(:defin_body, defin)
@@ -46,9 +46,9 @@
46
46
  .epos span.value{
47
47
  color: #666666;
48
48
  }
49
- .epos span.value.transty{
49
+ .epos span.transty{
50
50
  color: #aaaa55;
51
51
  }
52
- .epos span.value.note{
52
+ .epos span.note{
53
53
  color: #aa5555;
54
54
  }
@@ -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.1
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-09-05 00:00:00.000000000 Z
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: