caligrafo 0.1.2 → 0.1.3
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.
- data/VERSION +1 -1
- data/caligrafo.gemspec +2 -2
- data/lib/caligrafo.rb +2 -1
- data/test/caligrafo_test.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/caligrafo.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{caligrafo}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Lucas de Castro"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-11-03}
|
13
13
|
s.description = %q{DSL para geração de arquivos texto.}
|
14
14
|
s.email = %q{castro.lucas@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/caligrafo.rb
CHANGED
@@ -412,6 +412,7 @@ module Caligrafo
|
|
412
412
|
if args.first.is_a? Symbol
|
413
413
|
@nome = args.first
|
414
414
|
@valor = args[1]
|
415
|
+
@chamar_metodo = true if args.size == 1
|
415
416
|
else
|
416
417
|
@valor = args.first
|
417
418
|
end
|
@@ -433,7 +434,7 @@ module Caligrafo
|
|
433
434
|
|
434
435
|
private
|
435
436
|
def chamar_metodo?
|
436
|
-
|
437
|
+
@chamar_metodo
|
437
438
|
end
|
438
439
|
def formatar(valor)
|
439
440
|
if self.formato
|
data/test/caligrafo_test.rb
CHANGED
@@ -26,7 +26,7 @@ class Portifolio < OpenStruct
|
|
26
26
|
|
27
27
|
f.secao :sites do |site|
|
28
28
|
f.imprimir :downcase # Podemos chamar o método do item nas seções.
|
29
|
-
f.imprimir f.numero_linha, :posicao => 100
|
29
|
+
f.imprimir :numero_linha, f.numero_linha, :posicao => 100
|
30
30
|
end
|
31
31
|
|
32
32
|
f.secao :rodape do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caligrafo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas de Castro
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-11-03 00:00:00 -03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|