be9-rubbr 1.1.4.3 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,15 @@
1
+ == 1.1.5 / 2010-08-05 (by be9)
2
+
3
+ * Consider .sty files as source, .pdf files as graphics source.
4
+ * Recursive copying of source files.
5
+
6
+ == 1.1.4.3 / 2009-04-30 (by be9)
7
+
8
+ * Exit code 2 on errors.
9
+ * Add --distribution-name option, fix --force with --loop.
10
+ * Do not exit on errors (broke loop mode).
11
+ * Git support.
12
+
1
13
  == 1.1.4.1 / 2009-01-20 (by be9)
2
14
 
3
15
  * Loop mode (--loop). Build, wait a bit, check for changes, rebuild if changed, repeat.
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'spec/rake/spectask'
4
4
  require './lib/rubbr.rb'
5
5
 
6
6
  Hoe.new('be9-rubbr', Rubbr::VERSION) do |p|
7
- p.rubyforge_name = 'rubbr'
7
+ # p.rubyforge_name = 'rubbr'
8
8
  p.author = 'Eivind Uggedal'
9
9
  p.email = 'eu@redflavor.com'
10
10
  p.summary = 'LaTeX builder'
@@ -1,3 +1,5 @@
1
+ require 'pathname'
2
+
1
3
  module Rubbr
2
4
  module Builder
3
5
  class Tex < Base
@@ -72,14 +74,17 @@ module Rubbr
72
74
  end
73
75
 
74
76
  def copy_graphic_files
75
- copy_files(Rubbr.options[:graphics_dir], %w(eps mps png))
77
+ copy_files(Rubbr.options[:graphics_dir], %w(eps mps png pdf))
76
78
  end
77
79
 
78
80
  def copy_files(source_dir, file_extensions)
79
- file_extensions.each do |file_extension|
80
- Dir["#{source_dir}/*.#{file_extension}"].each do |file|
81
- FileUtils.cp(file, Rubbr.options[:build_dir])
82
- end
81
+ src = Pathname.new(source_dir)
82
+ bld = Pathname.new(Rubbr.options[:build_dir])
83
+
84
+ Pathname.glob("#{source_dir}/**/*.{#{file_extensions * ','}}").each do |file|
85
+ target_dir = bld + file.relative_path_from(src).dirname
86
+ target_dir.mkpath
87
+ FileUtils.cp(file, target_dir)
83
88
  end
84
89
  end
85
90
  end
data/lib/rubbr/change.rb CHANGED
@@ -19,7 +19,7 @@ module Rubbr
19
19
  private
20
20
 
21
21
  def self.inventory
22
- source_files = Dir["#{Rubbr.options[:source_dir]}/*.tex"]
22
+ source_files = Dir["#{Rubbr.options[:source_dir]}/*.{tex,sty}"]
23
23
  source_files.collect do |f|
24
24
  [f, digest(File.read(f))]
25
25
  end
data/lib/rubbr.rb CHANGED
@@ -2,7 +2,7 @@ require 'optparse'
2
2
  $:.unshift File.dirname(__FILE__)
3
3
 
4
4
  module Rubbr
5
- VERSION = '1.1.4.3'
5
+ VERSION = '1.1.5'
6
6
 
7
7
  autoload :Options, 'rubbr/options'
8
8
  autoload :Cli, 'rubbr/cli'
@@ -30,7 +30,7 @@ module Rubbr
30
30
  'Select output format (dvi, ps, pdf)') do |format|
31
31
  @@cmd_opts[:format] = format
32
32
  end
33
-
33
+
34
34
  opts.on('-F', '--force', 'Force rebuild (even if files not changed)') do
35
35
  @@cmd_opts[:force] = true
36
36
  end
@@ -51,11 +51,11 @@ module Rubbr
51
51
  opts.on('-s', '--spell', 'Spell check source files') do
52
52
  @@cmd_opts[:spell] = true
53
53
  end
54
-
54
+
55
55
  opts.on('-l', '--loop', 'Go into a build loop') do
56
56
  @@cmd_opts[:loop] = true
57
57
  end
58
-
58
+
59
59
  opts.on('-D', '--loop-delay [DELAY]', Float, 'Set loop delay in seconds (default: 0.5)') do |delay|
60
60
  @@cmd_opts[:loop_delay] = delay
61
61
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: be9-rubbr
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 25
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 1
8
- - 4
9
- - 3
10
- version: 1.1.4.3
9
+ - 5
10
+ version: 1.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eivind Uggedal
@@ -15,16 +15,18 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-03-17 00:00:00 +06:00
18
+ date: 2010-08-05 00:00:00 +07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rubyforge
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 7
28
30
  segments:
29
31
  - 2
30
32
  - 0
@@ -32,34 +34,22 @@ dependencies:
32
34
  version: 2.0.4
33
35
  type: :development
34
36
  version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: gemcutter
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- segments:
43
- - 0
44
- - 5
45
- - 0
46
- version: 0.5.0
47
- type: :development
48
- version_requirements: *id002
49
37
  - !ruby/object:Gem::Dependency
50
38
  name: hoe
51
39
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
53
42
  requirements:
54
43
  - - ">="
55
44
  - !ruby/object:Gem::Version
45
+ hash: 21
56
46
  segments:
57
47
  - 2
58
- - 5
59
- - 0
60
- version: 2.5.0
48
+ - 6
49
+ - 1
50
+ version: 2.6.1
61
51
  type: :development
62
- version_requirements: *id003
52
+ version_requirements: *id002
63
53
  description: Build LaTeX documents.
64
54
  email: eu@redflavor.com
65
55
  executables:
@@ -110,23 +100,27 @@ rdoc_options:
110
100
  require_paths:
111
101
  - lib
112
102
  required_ruby_version: !ruby/object:Gem::Requirement
103
+ none: false
113
104
  requirements:
114
105
  - - ">="
115
106
  - !ruby/object:Gem::Version
107
+ hash: 3
116
108
  segments:
117
109
  - 0
118
110
  version: "0"
119
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
+ none: false
120
113
  requirements:
121
114
  - - ">="
122
115
  - !ruby/object:Gem::Version
116
+ hash: 3
123
117
  segments:
124
118
  - 0
125
119
  version: "0"
126
120
  requirements: []
127
121
 
128
- rubyforge_project: rubbr
129
- rubygems_version: 1.3.6
122
+ rubyforge_project: be9-rubbr
123
+ rubygems_version: 1.3.7
130
124
  signing_key:
131
125
  specification_version: 3
132
126
  summary: LaTeX builder