rbbeamer 0.5.2 → 0.5.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.
Files changed (3) hide show
  1. data/bin/rbbeamer +6 -6
  2. data/changes.txt +2 -0
  3. metadata +6 -6
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.2 (2013-04-27)"
26
+ Version = "0.5.3 (2013-05-01)"
27
27
 
28
28
  sep = '|' # seperator-string to split different parts of a line / command
29
29
  SAVESEP = '<-saveThisAsSeperatorForLaterUse->'
@@ -363,11 +363,11 @@ lines.each do |line|
363
363
  end
364
364
  end
365
365
  openstruc = ''
366
- # puts nums
367
366
  nums.reverse!
368
367
  text.reverse!
369
368
  numsfi.reverse!
370
369
  textfi.reverse!
370
+ # only for testing purposes: File.open('ftest.txt','w'){|f| lines.each{|x| f.puts x}}
371
371
  File.open(fn,'w') do |out|
372
372
  out.puts "% File created by #{fname}, Version #{Version}"
373
373
  out.puts "% File created at #{Time.now}"
@@ -376,11 +376,11 @@ File.open(fn,'w') do |out|
376
376
  anz = 0
377
377
  anzfi = 0
378
378
  textmuster = ''
379
- # scalefaktor = 1.0 # default factor resizing DOT-pics (use command #sca to change it)
380
379
  lines.each do |line|
381
380
  sp = line.split(sep).reverse
382
381
  code,content = sp.pop.strip, sp.reverse
383
- # puts "code=#{code}, content=#{content.inspect}"
382
+ # puts "code=#{code}, content=#{content.inspect}"
383
+ # puts "line=#{line.inspect}"
384
384
  case code
385
385
  when '#{', '#}', '#dig}'
386
386
  # nothing to do
@@ -408,8 +408,8 @@ File.open(fn,'w') do |out|
408
408
  when '#sca' # set our new scalefactor
409
409
  puts "#sca is deprecated"
410
410
  scalefaktor = content.first.to_f
411
- when '#[' # Content unverändert übernehmen (this line only)
412
- out.puts content.join
411
+ when '#[' # copy content without change but restore saved sep.symbols (this line only)
412
+ out.puts content.join.gsub(SAVESEP,sep)
413
413
  when '#sd' # Start eines Beamer Documents, Vorspann schreiben
414
414
  raise "Need title,author and date in #sd-Command: " + line if content.size < 3
415
415
  Titel,Autor,Datum = content[0..2]
data/changes.txt CHANGED
@@ -1,3 +1,5 @@
1
+ 0.5.3:
2
+ fixed a problem in section #{| : Did not restore sep-symbols in tables
1
3
  0.5.2:
2
4
  added error-message in case of missing #fx-frametitle
3
5
  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.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-24 00:00:00.000000000 Z
12
+ date: 2013-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop
16
- requirement: &77384880 !ruby/object:Gem::Requirement
16
+ requirement: &70138810 !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: *77384880
24
+ version_requirements: *70138810
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: parseconfig
27
- requirement: &77384580 !ruby/object:Gem::Requirement
27
+ requirement: &70138420 !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: *77384580
35
+ version_requirements: *70138420
36
36
  description: Helps you building beamer-presentations
37
37
  email: rbbeamer@gmail.com
38
38
  executables: