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 +12 -0
- data/Rakefile +1 -1
- data/lib/rubbr/builder/tex.rb +10 -5
- data/lib/rubbr/change.rb +1 -1
- data/lib/rubbr.rb +4 -4
- metadata +19 -25
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
data/lib/rubbr/builder/tex.rb
CHANGED
@@ -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
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
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
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.
|
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
|
-
-
|
9
|
-
|
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-
|
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: &
|
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
|
-
-
|
59
|
-
-
|
60
|
-
version: 2.
|
48
|
+
- 6
|
49
|
+
- 1
|
50
|
+
version: 2.6.1
|
61
51
|
type: :development
|
62
|
-
version_requirements: *
|
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.
|
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
|