foldscaf 1.0.3 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v1.0.4
2
+ * Fix. Ahora funciona para Rails > 3.2.4
3
+
1
4
  ## v1.0.3
2
5
  * Fix error al mostrar objetos en index.
3
6
 
@@ -51,18 +51,4 @@ class Atributo
51
51
  end
52
52
  end
53
53
 
54
- # Este metodo es usado solo para testear.
55
- # TODO: Eliminar metodo.
56
- def show
57
-
58
- n1 = ANCHO - @nombre.size
59
- n2 = ANCHO - @clase.size
60
- n3 = @default ? ANCHO - @default.size : ANCHO
61
-
62
- s1 = ' ' * n1
63
- s2 = ' ' * n2
64
- s3 = ' ' * n3
65
-
66
- "#{@nombre}#{s1}#{@clase}#{s2}#{@default}#{s3}#{@opciones}\n"
67
- end
68
54
  end
@@ -29,8 +29,7 @@ class FoldGenerator < Rails::Generators::Base
29
29
  @reordenar_path = "reordenar_admin_#{@plural}_path"
30
30
 
31
31
  @atributos = []
32
-
33
- args.each do |arg|
32
+ arguments.first.each do |arg|
34
33
  @atributos << Atributo.new(arg)
35
34
  end
36
35
  @identificador = @atributos.first.nombre
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Foldscaf
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foldscaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-04 00:00:00.000000000 Z
12
+ date: 2012-07-05 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Generadores adaptados a las necesidades de Xaver
15
15
  email:
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  requirements: []
61
61
  rubyforge_project: foldscaf
62
- rubygems_version: 1.8.15
62
+ rubygems_version: 1.8.10
63
63
  signing_key:
64
64
  specification_version: 3
65
65
  summary: Generadores adaptados a las necesidades de Xaver