rbbeamer 0.5.1 → 0.5.2

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.
Files changed (4) hide show
  1. data/README.md +1 -1
  2. data/bin/rbbeamer +6 -5
  3. data/changes.txt +3 -0
  4. metadata +8 -6
data/README.md CHANGED
@@ -168,7 +168,7 @@ License
168
168
  -------
169
169
 
170
170
  rbbeamer is a preprocessor for creating TEX-files for LaTeX-Beamer.
171
- Copyright (C) 2013 Thomas Romeyke (rubybeamer at googlemail.com).
171
+ Copyright (C) 2013 Thomas Romeyke (rubybeamer at gmail.com).
172
172
 
173
173
  This program is free software: you can redistribute it and/or modify
174
174
  it under the terms of the GNU General Public License as published by
data/bin/rbbeamer CHANGED
@@ -23,7 +23,7 @@ require 'parseconfig.rb'
23
23
  require 'open3'
24
24
  require 'pathname'
25
25
 
26
- Version = "0.5.0 (2013-04-24)"
26
+ Version = "0.5.2 (2013-04-27)"
27
27
 
28
28
  sep = '|' # seperator-string to split different parts of a line / command
29
29
  SAVESEP = '<-saveThisAsSeperatorForLaterUse->'
@@ -305,7 +305,7 @@ fh = 1
305
305
  picmake = FALSE
306
306
  fh.close
307
307
  # build pic:
308
- dotcmd = "dot -Teps #{fname} -o#{File.basename(fname,'.dot')}.eps"
308
+ dotcmd = "dot -Teps #{fname} -o #{File.basename(fname,'.dot')}.eps"
309
309
  callsystem(dotcmd,cfg[:debugpdf])
310
310
  File.delete(fname)
311
311
  end
@@ -320,7 +320,7 @@ end
320
320
  copyLines = TRUE if code == '#{'
321
321
  if copyLines
322
322
  # Copymode: precede the line with special code to copy it:
323
- lines[n] = "#[|#{line}" if (code != '#{' and code != '#}')
323
+ lines[n] = "#[|#{line}" if (code.to_s.strip.chomp != '#{' and code.to_s.strip.chomp != '#}')
324
324
  else
325
325
  if (code.to_s == ''.to_s)
326
326
  lines[n] = " "
@@ -328,7 +328,7 @@ end
328
328
  lines[n] = "#{code}#{sep}#{content.join(sep)}"
329
329
  end
330
330
  end
331
- copyLines = FALSE if code == '#}'
331
+ copyLines = FALSE if code.to_s.strip.chomp == '#}'
332
332
  # find empty lines and mark them with L
333
333
  lines[n] = "#L| " if line.strip.size == 0
334
334
  end
@@ -428,7 +428,7 @@ File.open(fn,'w') do |out|
428
428
  out.puts '\label{' + content.first.strip + '}'
429
429
  when '#f'
430
430
  raise "#f is deprecated, please change to #fd and #Fd"
431
- when '#fd' # Beginn eines Frames
431
+ when '#fd'
432
432
  checkStruc(openstruc,code,'new')
433
433
  out.puts '\frame{'
434
434
  out.puts ' \frametitle{' + content.first + '}'
@@ -457,6 +457,7 @@ File.open(fn,'w') do |out|
457
457
  counter += 1
458
458
  out.puts ' \item<'+counter.to_s+'-'+anzfi.to_s+'|alert@'+counter.to_s+'> ' + content.join.gsub(SAVESEP,sep)
459
459
  when '#fx' # Beginn eines Frames aber ohne description
460
+ raise "Need frametitle as argument: " + line if content.size < 1
460
461
  out.puts '\begin{frame}[fragile]'
461
462
  out.puts ' \frametitle{' + content.first + '}'
462
463
  when '#L'
data/changes.txt ADDED
@@ -0,0 +1,3 @@
1
+ 0.5.2:
2
+ added error-message in case of missing #fx-frametitle
3
+ fixed problem using #{| to include additional frames
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbeamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop
16
- requirement: &72732870 !ruby/object:Gem::Requirement
16
+ requirement: &77384880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *72732870
24
+ version_requirements: *77384880
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: parseconfig
27
- requirement: &72732570 !ruby/object:Gem::Requirement
27
+ requirement: &77384580 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.0.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *72732570
35
+ version_requirements: *77384580
36
36
  description: Helps you building beamer-presentations
37
37
  email: rbbeamer@gmail.com
38
38
  executables:
@@ -45,8 +45,10 @@ files:
45
45
  - lib/rbbeamer.rb
46
46
  - README.md
47
47
  - lib/gpl.txt
48
+ - changes.txt
48
49
  homepage: https://github.com/rubybeamer/rbbeamer
49
- licenses: []
50
+ licenses:
51
+ - GPL-3
50
52
  post_install_message:
51
53
  rdoc_options: []
52
54
  require_paths: