imposition 0.9.4.3 → 0.9.4.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/imposition.rb CHANGED
@@ -17,6 +17,6 @@ $work="/tmp"
17
17
  check=Metodos.checksCompile()
18
18
  if check.instance_of? Clases::Mensaje then
19
19
  puts check.mensaje
20
- exit
20
+ #exit
21
21
  end
22
22
 
@@ -254,7 +254,7 @@ end
254
254
  class MensajeVars < Mensaje
255
255
  def initialize(*args)
256
256
  if args.size==0 then
257
- super(8)#clásico
257
+ super(8)#clasico
258
258
  elsif args.size==2 then
259
259
  @id=8
260
260
  super(args[0],args[1])
@@ -406,6 +406,6 @@ class RespuestaImpostor
406
406
  end
407
407
  end
408
408
 
409
- end#fin módulo
409
+ end#fin modulo
410
410
  #proximo
411
411
  #16
@@ -53,7 +53,7 @@ def checksRun(entrada,salida)
53
53
  return Clases::Mensaje.new(3,"el archivo "+entrada+" no es pdf")
54
54
  end
55
55
  else
56
- return Clases::Mensaje.new(3,"el archivo "+entrada+" no es mío")
56
+ return Clases::Mensaje.new(3,"el archivo "+entrada+" no es mio")
57
57
  end
58
58
  else
59
59
  return Clases::Mensaje.new(3,entrada+" no es un archivo")
@@ -124,7 +124,7 @@ def self.paginasdelpdf(pdfinfo)
124
124
  return paginas.to_i
125
125
  end
126
126
 
127
- #tamaño de página
127
+ #tamaño de pagina
128
128
  def self.pagesize(pdfinfo)
129
129
  info = pdfinfo.chomp
130
130
  busca = /Page size\s*\:\s*([\d\.]+)\s*x\s*([\d\.]+).*/
@@ -179,7 +179,7 @@ def self.imponerStack(impostor,temp)
179
179
  cutStack.puts "\\usepackage{geometry}"
180
180
  cutStack.puts "\\geometry{"
181
181
  cutStack.puts "papersize={#{impostor.wP}#{impostor.wP_["unidad"]},#{impostor.hP}#{impostor.hP_["unidad"]}},"
182
- cutStack.puts "left=0mm,"#posibilidad de márgenes
182
+ cutStack.puts "left=0mm,"#posibilidad de margenes
183
183
  cutStack.puts "right=0mm,"
184
184
  cutStack.puts "top=0mm,"
185
185
  cutStack.puts "bottom=0mm,"
@@ -226,7 +226,7 @@ def self.imponerBooklet(impostor,temp)
226
226
  booklet.puts "\\usepackage{geometry}"
227
227
  booklet.puts "\\geometry{"
228
228
  booklet.puts "papersize={#{impostor.w_["numero"]}#{impostor.h_["unidad"]},#{impostor.h_["numero"]}#{impostor.h_["unidad"]}},"
229
- booklet.puts "left=0mm,"#posibilidad de márgenes
229
+ booklet.puts "left=0mm,"#posibilidad de margenes
230
230
  booklet.puts "right=0mm,"
231
231
  booklet.puts "top=0mm,"
232
232
  booklet.puts "bottom=0mm,"
@@ -281,7 +281,7 @@ end
281
281
  def self.getCoordinates(nX,nY,w,h)
282
282
 
283
283
  coordenadas=[]
284
- #posibilidad de usar márgenes
284
+ #posibilidad de usar margenes
285
285
  x0=0
286
286
  y0=0
287
287
  xN=x0+w*(nX-1)
@@ -468,7 +468,7 @@ def self.validacion(impostor, preguntas)
468
468
  if impostor.wP!=0.point then
469
469
  if impostor.nX==0 then
470
470
  impostor.nX=(wP/w).floor
471
- impostor.wP=impostor.wP_["numero"].send(impostor.wP_["unidad"])#operación alchemist cambia el operando
471
+ impostor.wP=impostor.wP_["numero"].send(impostor.wP_["unidad"])#operacion alchemist cambia el operando
472
472
  if impostor.nX==0 then
473
473
  mensajes.push(Clases::MensajeDato.new(3, "horizontal", 5))#error
474
474
  else
@@ -491,7 +491,7 @@ def self.validacion(impostor, preguntas)
491
491
  preguntas["escaladoH"]=Clases::PreguntaEscalado.new("horizontalmente")
492
492
  else
493
493
  if preguntas["escaladoH"].yn then
494
- impostor.w=(impostor.wP.to_f/(impostor.nX*(impostor.cuadernillos ? 2 : 1))).send(impostor.wP_["unidad"])#divido en 2 porque ya lo multipliqué
494
+ impostor.w=(impostor.wP.to_f/(impostor.nX*(impostor.cuadernillos ? 2 : 1))).send(impostor.wP_["unidad"])#divido en 2 porque ya lo multiplique
495
495
  impostor.w_["numero"]=impostor.w
496
496
  impostor.w_["unidad"]=impostor.wP_["unidad"]
497
497
  mensajes.push(Clases::MensajeDato.new(1, "horizontal", 3))#info
metadata CHANGED
@@ -1,113 +1,139 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: imposition
3
- version: !ruby/object:Gem::Version
4
- version: 0.9.4.3
3
+ version: !ruby/object:Gem::Version
4
+ hash: 25
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 9
9
+ - 4
10
+ - 5
11
+ - 1
12
+ version: 0.9.4.5.1
6
13
  platform: ruby
7
- authors:
14
+ authors:
8
15
  - Numerico
9
16
  autorequire:
10
17
  bindir: bin
11
18
  cert_chain: []
12
- date: 2012-08-16 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
19
+
20
+ date: 2013-02-22 00:00:00 Z
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
15
23
  name: alchemist
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
24
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: uuidtools
32
- requirement: !ruby/object:Gem::Requirement
25
+ requirement: &id001 !ruby/object:Gem::Requirement
33
26
  none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 3
31
+ segments:
32
+ - 0
33
+ version: "0"
38
34
  type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: uuidtools
39
38
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ type: :runtime
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
47
51
  name: fileutils
48
- requirement: !ruby/object:Gem::Requirement
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
49
54
  none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
54
62
  type: :runtime
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
65
+ name: i18n
55
66
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
67
+ requirement: &id004 !ruby/object:Gem::Requirement
57
68
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
76
+ type: :runtime
77
+ version_requirements: *id004
78
+ - !ruby/object:Gem::Dependency
63
79
  name: test/unit
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
80
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
81
+ requirement: &id005 !ruby/object:Gem::Requirement
73
82
  none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
89
+ version: "0"
90
+ type: :development
91
+ version_requirements: *id005
78
92
  description: nUp & booklets
79
93
  email: webmaster@numerica.cl
80
- executables:
94
+ executables:
81
95
  - impostor
82
96
  extensions: []
97
+
83
98
  extra_rdoc_files: []
84
- files:
99
+
100
+ files:
85
101
  - lib/imposition.rb
86
102
  - lib/imposition/metodos.rb
87
103
  - lib/imposition/clases.rb
88
104
  - bin/impostor
89
- homepage: https://github.com/Numerico/impostor
105
+ homepage: http://impostor.herokuapp.com
90
106
  licenses: []
107
+
91
108
  post_install_message:
92
109
  rdoc_options: []
93
- require_paths:
110
+
111
+ require_paths:
94
112
  - lib
95
- required_ruby_version: !ruby/object:Gem::Requirement
113
+ required_ruby_version: !ruby/object:Gem::Requirement
96
114
  none: false
97
- requirements:
98
- - - ! '>='
99
- - !ruby/object:Gem::Version
100
- version: '0'
101
- required_rubygems_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ hash: 3
119
+ segments:
120
+ - 0
121
+ version: "0"
122
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
123
  none: false
103
- requirements:
104
- - - ! '>='
105
- - !ruby/object:Gem::Version
106
- version: '0'
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ hash: 3
128
+ segments:
129
+ - 0
130
+ version: "0"
107
131
  requirements: []
132
+
108
133
  rubyforge_project:
109
- rubygems_version: 1.8.23
134
+ rubygems_version: 1.8.25
110
135
  signing_key:
111
136
  specification_version: 3
112
- summary: editorial imposition script
137
+ summary: editorial imposition script in nUp & booklets
113
138
  test_files: []
139
+