prep 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/VERSION +1 -1
- data/examples/control_visible_sample.yml +153 -0
- data/examples/{generate_ttfont_sample.rb → generate_control_visible.rb} +1 -1
- data/examples/generate_control_visible_sample.rb +11 -0
- data/lib/core/arc_rectangle.rb +114 -108
- data/lib/core/drawable.rb +8 -0
- data/lib/core/line.rb +27 -20
- data/lib/core/rectangle.rb +27 -19
- data/prep.gemspec +28 -3
- metadata +10 -7
data/ChangeLog
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
2012-04-06 Tetsuhisa MAKINO <tim.makino@gmail.com>
|
2
|
+
|
3
|
+
* lib/core/drawable.rb (PREP::Core::Drawable#visible?): add visible? method to control drawable visibility
|
4
|
+
|
1
5
|
2012-03-12 Tetsuhisa MAKINO <tim.makino@gmail.com>
|
2
6
|
|
3
7
|
* lib/core/loop.rb (PREP::Core::Loop#draw_iterator): fix bug on gap calculation
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
@@ -0,0 +1,153 @@
|
|
1
|
+
page:
|
2
|
+
size: a4
|
3
|
+
orientation: portrait
|
4
|
+
margin:
|
5
|
+
top: 10
|
6
|
+
left: 10
|
7
|
+
bottom: 10
|
8
|
+
right: 10
|
9
|
+
header_height: 0
|
10
|
+
footer_height: 0
|
11
|
+
content:
|
12
|
+
type: group
|
13
|
+
title:
|
14
|
+
type: label
|
15
|
+
label: "タイトル文字列"
|
16
|
+
region:
|
17
|
+
x: 10
|
18
|
+
y: 10
|
19
|
+
width: 100
|
20
|
+
height: 20
|
21
|
+
color:
|
22
|
+
red: 0
|
23
|
+
green: 0
|
24
|
+
blue: 0
|
25
|
+
line01:
|
26
|
+
type: line
|
27
|
+
start:
|
28
|
+
x: 10
|
29
|
+
y: 10
|
30
|
+
end:
|
31
|
+
x: 100
|
32
|
+
y: 10
|
33
|
+
line02:
|
34
|
+
type: line
|
35
|
+
start:
|
36
|
+
x: 10
|
37
|
+
y: 10
|
38
|
+
end:
|
39
|
+
x: 110
|
40
|
+
y: 110
|
41
|
+
color:
|
42
|
+
red: 1
|
43
|
+
green: 0
|
44
|
+
blue: 0
|
45
|
+
rectangle01:
|
46
|
+
type: rectangle
|
47
|
+
region:
|
48
|
+
x: 120
|
49
|
+
y: 0
|
50
|
+
width: 10
|
51
|
+
height: 5
|
52
|
+
line_color:
|
53
|
+
red: 0
|
54
|
+
green: 0.3
|
55
|
+
blue: 0
|
56
|
+
line_width: 3
|
57
|
+
fill_color:
|
58
|
+
red: 0
|
59
|
+
green: 1
|
60
|
+
blue: 1
|
61
|
+
rectangle02:
|
62
|
+
type: rectangle
|
63
|
+
region:
|
64
|
+
x: 10
|
65
|
+
y: 10
|
66
|
+
width: 100
|
67
|
+
height: 100
|
68
|
+
line_width: 1
|
69
|
+
line_color:
|
70
|
+
red: 1
|
71
|
+
green: 0
|
72
|
+
blue: 0
|
73
|
+
fill_color:
|
74
|
+
red: 1
|
75
|
+
green: 1
|
76
|
+
blue: 1
|
77
|
+
rect1:
|
78
|
+
type: rectangle
|
79
|
+
region:
|
80
|
+
x: 0
|
81
|
+
y: 0
|
82
|
+
width: 10
|
83
|
+
height: 10
|
84
|
+
rect2:
|
85
|
+
type: rectangle
|
86
|
+
region:
|
87
|
+
x: 10
|
88
|
+
y: 10
|
89
|
+
width: 10
|
90
|
+
height: 10
|
91
|
+
# arc_rect_rect:
|
92
|
+
# type: rectangle
|
93
|
+
# region:
|
94
|
+
# x: 50
|
95
|
+
# y: 200
|
96
|
+
# width: 100
|
97
|
+
# height: 30
|
98
|
+
# line_color:
|
99
|
+
# red: 0
|
100
|
+
# green: 0
|
101
|
+
# blue: 1
|
102
|
+
arc_rect:
|
103
|
+
type: arc_rectangle
|
104
|
+
line_width: 10
|
105
|
+
region:
|
106
|
+
x: 50
|
107
|
+
y: 200
|
108
|
+
width: 100
|
109
|
+
height: 30
|
110
|
+
line_color:
|
111
|
+
red: 1
|
112
|
+
green: 0
|
113
|
+
blue: 1
|
114
|
+
fill_color:
|
115
|
+
red: 0
|
116
|
+
green: 1
|
117
|
+
blue: 1
|
118
|
+
round_arc: 5
|
119
|
+
control_visible_line:
|
120
|
+
type: line
|
121
|
+
start:
|
122
|
+
x: 150
|
123
|
+
y: 100
|
124
|
+
end:
|
125
|
+
x: 150
|
126
|
+
y: 150
|
127
|
+
control_visible: true
|
128
|
+
control_visible_rect:
|
129
|
+
type: rectangle
|
130
|
+
region:
|
131
|
+
x: 160
|
132
|
+
y: 100
|
133
|
+
width: 10
|
134
|
+
height: 10
|
135
|
+
control_visible: true
|
136
|
+
control_visible_arcrect:
|
137
|
+
type: arc_rectangle
|
138
|
+
line_width: 10
|
139
|
+
region:
|
140
|
+
x: 160
|
141
|
+
y: 110
|
142
|
+
width: 30
|
143
|
+
height: 30
|
144
|
+
line_color:
|
145
|
+
red: 1
|
146
|
+
green: 0
|
147
|
+
blue: 1
|
148
|
+
fill_color:
|
149
|
+
red: 0
|
150
|
+
green: 1
|
151
|
+
blue: 1
|
152
|
+
round_arc: 5
|
153
|
+
control_visible: true
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
require File.join(File.dirname(__FILE__), "..", "lib", "prep")
|
3
3
|
|
4
|
-
prep = PREP::Core::Prep.new("
|
4
|
+
prep = PREP::Core::Prep.new("control_visible_sample.yml")
|
5
5
|
prep.generate("#{$0}.pdf", { :content => { :title => "外部引き渡しタイトル文字列" } })
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require File.join(File.dirname(__FILE__), "..", "lib", "prep")
|
3
|
+
|
4
|
+
prep = PREP::Core::Prep.new("control_visible_sample.yml")
|
5
|
+
prep.generate("#{$0}.pdf",
|
6
|
+
{ :content => {
|
7
|
+
:title => "外部引き渡しタイトル文字列",
|
8
|
+
:control_visible_line => false,
|
9
|
+
:control_visible_rect => false,
|
10
|
+
:control_visible_arcrect => false,
|
11
|
+
} })
|
data/lib/core/arc_rectangle.rb
CHANGED
@@ -39,18 +39,22 @@ module PREP # nodoc
|
|
39
39
|
STDERR.puts("Draw on #{self.class} #{self.identifier}") if ENV['DEBUG']
|
40
40
|
# 領域判定
|
41
41
|
calculate_region(prep, region, values)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
prep.current_page.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
42
|
+
|
43
|
+
if visible?(values)
|
44
|
+
# 円弧描画時は 5% 太さを上げる
|
45
|
+
prep.current_page.set_line_width(@line_width.to_f * 1.05)
|
46
|
+
unless @line_color.white?
|
47
|
+
prep.current_page.set_rgb_stroke(@line_color.red.to_f,
|
48
|
+
@line_color.green.to_f,
|
49
|
+
@line_color.blue.to_f)
|
50
|
+
end
|
51
|
+
unless @fill_color.white?
|
52
|
+
prep.current_page.set_rgb_fill(@fill_color.red.to_f,
|
53
|
+
@fill_color.green.to_f,
|
54
|
+
@fill_color.blue.to_f)
|
55
|
+
end
|
53
56
|
end
|
57
|
+
|
54
58
|
region_backup = @region.dup
|
55
59
|
if @expand_region
|
56
60
|
@region = @expand_region.dup
|
@@ -58,106 +62,108 @@ module PREP # nodoc
|
|
58
62
|
end
|
59
63
|
pos_x, pos_y = calculate_pos(prep.current_page, region, @region.x, @region.y)
|
60
64
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
65
|
+
if visible?(values)
|
66
|
+
### 塗り潰し描画
|
67
|
+
unless @fill_color.white?
|
68
|
+
# 縦方向
|
69
|
+
prep.current_page.rectangle(pos_x + @round_arc, pos_y - @region.height,
|
70
|
+
@region.width - (@round_arc * 2), @region.height)
|
71
|
+
prep.current_page.fill
|
72
|
+
# 横方向
|
73
|
+
prep.current_page.rectangle(pos_x, pos_y - @region.height + @round_arc,
|
74
|
+
@region.width, @region.height - (@round_arc * 2))
|
75
|
+
prep.current_page.fill
|
76
|
+
end
|
72
77
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
78
|
+
# ここからが本番
|
79
|
+
### 4角の円弧を描画
|
80
|
+
# 左上
|
81
|
+
unless @fill_color.white?
|
82
|
+
prep.current_page.move_to(pos_x + @round_arc, pos_y - @round_arc)
|
83
|
+
prep.current_page.line_to(pos_x, pos_y - @round_arc)
|
84
|
+
prep.current_page.arc(pos_x + @round_arc,
|
85
|
+
pos_y - @round_arc,
|
86
|
+
@round_arc, 360 * 0.75, 360)
|
87
|
+
prep.current_page.line_to(pos_x + @round_arc, pos_y - @round_arc)
|
88
|
+
prep.current_page.fill
|
89
|
+
end
|
90
|
+
unless @line_color.white?
|
91
|
+
prep.current_page.arc(pos_x + @round_arc,
|
92
|
+
pos_y - @round_arc,
|
93
|
+
@round_arc, 360 * 0.75, 360)
|
94
|
+
prep.current_page.stroke
|
95
|
+
end
|
96
|
+
# 右上
|
97
|
+
unless @fill_color.white?
|
98
|
+
prep.current_page.move_to(pos_x + @region.width - @round_arc, pos_y - @round_arc)
|
99
|
+
prep.current_page.line_to(pos_x + @region.width - @round_arc, pos_y)
|
100
|
+
prep.current_page.arc(pos_x + @region.width - @round_arc,
|
101
|
+
pos_y - @round_arc,
|
102
|
+
@round_arc, 0, 360 * 0.25)
|
103
|
+
prep.current_page.line_to(pos_x + @region.width - @round_arc, pos_y - @round_arc)
|
104
|
+
prep.current_page.fill
|
105
|
+
end
|
106
|
+
unless @line_color.white?
|
107
|
+
prep.current_page.arc(pos_x + @region.width - @round_arc,
|
108
|
+
pos_y - @round_arc,
|
109
|
+
@round_arc, 0, 360 * 0.25)
|
110
|
+
prep.current_page.stroke
|
111
|
+
end
|
112
|
+
# 左下
|
113
|
+
unless @fill_color.white?
|
114
|
+
prep.current_page.move_to(pos_x + @round_arc, pos_y - @region.height + @round_arc)
|
115
|
+
prep.current_page.line_to(pos_x + @round_arc, pos_y - @region.height)
|
116
|
+
prep.current_page.arc(pos_x + @round_arc,
|
117
|
+
pos_y - @region.height + @round_arc,
|
118
|
+
@round_arc, 360 * 0.5, 360 * 0.75)
|
119
|
+
prep.current_page.line_to(pos_x + @round_arc, pos_y - @region.height + @round_arc)
|
120
|
+
prep.current_page.fill
|
121
|
+
end
|
122
|
+
unless @line_color.white?
|
123
|
+
prep.current_page.arc(pos_x + @round_arc,
|
124
|
+
pos_y - @region.height + @round_arc,
|
125
|
+
@round_arc, 360 * 0.5, 360 * 0.75)
|
126
|
+
prep.current_page.stroke
|
127
|
+
end
|
128
|
+
# 右下
|
129
|
+
unless @fill_color.white?
|
130
|
+
prep.current_page.move_to(pos_x + @region.width - @round_arc, pos_y - @region.height + @round_arc)
|
131
|
+
prep.current_page.line_to(pos_x + @region.width, pos_y - @region.height + @round_arc)
|
132
|
+
prep.current_page.arc(pos_x + @region.width - @round_arc,
|
133
|
+
pos_y - @region.height + @round_arc,
|
134
|
+
@round_arc, 360 * 0.25, 360 * 0.5)
|
135
|
+
prep.current_page.line_to(pos_x + @region.width - @round_arc, pos_y - @region.height + @round_arc)
|
136
|
+
prep.current_page.fill
|
137
|
+
end
|
138
|
+
unless @line_color.white?
|
139
|
+
prep.current_page.arc(pos_x + @region.width - @round_arc,
|
140
|
+
pos_y - @region.height + @round_arc,
|
141
|
+
@round_arc, 360 * 0.25, 360 * 0.5)
|
142
|
+
prep.current_page.stroke
|
143
|
+
end
|
139
144
|
|
140
|
-
|
141
|
-
|
145
|
+
# 元の太さへ
|
146
|
+
prep.current_page.set_line_width(@line_width.to_f)
|
142
147
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
148
|
+
# ### 4辺描画
|
149
|
+
unless @line_color.white?
|
150
|
+
# 上
|
151
|
+
prep.current_page.move_to(pos_x + @round_arc, pos_y)
|
152
|
+
prep.current_page.line_to(pos_x + @region.width - @round_arc, pos_y)
|
153
|
+
prep.current_page.stroke
|
154
|
+
# 下
|
155
|
+
prep.current_page.move_to(pos_x + @round_arc, pos_y - @region.height)
|
156
|
+
prep.current_page.line_to(pos_x + @region.width - @round_arc, pos_y - @region.height)
|
157
|
+
prep.current_page.stroke
|
158
|
+
# 左
|
159
|
+
prep.current_page.move_to(pos_x, pos_y - @region.height + @round_arc)
|
160
|
+
prep.current_page.line_to(pos_x, pos_y - @round_arc)
|
161
|
+
prep.current_page.stroke
|
162
|
+
# 右
|
163
|
+
prep.current_page.move_to(pos_x + @region.width, pos_y - @region.height + @round_arc)
|
164
|
+
prep.current_page.line_to(pos_x + @region.width, pos_y - @round_arc)
|
165
|
+
prep.current_page.stroke
|
166
|
+
end
|
161
167
|
end
|
162
168
|
|
163
169
|
@region = region_backup
|
data/lib/core/drawable.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
1
2
|
# Drawable クラスのソースファイル
|
2
3
|
# Author:: maki-tetsu
|
3
4
|
# Date:: 2011/03/11
|
@@ -158,6 +159,13 @@ module PREP # nodoc
|
|
158
159
|
|
159
160
|
return values
|
160
161
|
end
|
162
|
+
|
163
|
+
# 実際の描画を行うかどうかの判定
|
164
|
+
def visible?(value)
|
165
|
+
return true unless @control_visible
|
166
|
+
|
167
|
+
return !!value
|
168
|
+
end
|
161
169
|
end
|
162
170
|
end
|
163
171
|
end
|
data/lib/core/line.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
1
2
|
# Line クラスのソースファイル
|
2
3
|
# Author:: maki-tetsu
|
3
4
|
# Date:: 2011/03/11
|
@@ -17,10 +18,11 @@ module PREP # nodoc
|
|
17
18
|
}
|
18
19
|
|
19
20
|
@@default_values = {
|
20
|
-
:color
|
21
|
-
:width
|
22
|
-
:style
|
23
|
-
:layer
|
21
|
+
:color => { :red => 0, :green => 0, :blue => 0 },
|
22
|
+
:width => 1,
|
23
|
+
:style => STYLES[:solid],
|
24
|
+
:layer => 2,
|
25
|
+
:control_visible => false,
|
24
26
|
}
|
25
27
|
|
26
28
|
attr_reader :start_point, :end_point, :color, :width, :style
|
@@ -34,6 +36,7 @@ module PREP # nodoc
|
|
34
36
|
@color = Color.new(values[:color][:red], values[:color][:green], values[:color][:blue])
|
35
37
|
self.width = values[:width]
|
36
38
|
self.style = values[:style]
|
39
|
+
@control_visible = values[:control_visible]
|
37
40
|
end
|
38
41
|
|
39
42
|
def width=(w)
|
@@ -67,27 +70,31 @@ module PREP # nodoc
|
|
67
70
|
end
|
68
71
|
|
69
72
|
# 直線の描画
|
70
|
-
def draw(prep, region,
|
73
|
+
def draw(prep, region, value, stop_on_drawable = nil)
|
71
74
|
if self === stop_on_drawable
|
72
75
|
raise ReRenderJump.new(region)
|
73
76
|
end
|
74
77
|
STDERR.puts("Draw on #{self.class} #{self.identifier}") if ENV['DEBUG']
|
75
78
|
# 領域判定
|
76
|
-
calculate_region(prep, region,
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
79
|
+
calculate_region(prep, region, value)
|
80
|
+
|
81
|
+
if visible?(value)
|
82
|
+
# 幅指定
|
83
|
+
prep.current_page.set_line_width(@width)
|
84
|
+
# 色指定
|
85
|
+
prep.current_page.set_rgb_stroke(@color.red.to_f,
|
86
|
+
@color.green.to_f,
|
87
|
+
@color.blue.to_f)
|
88
|
+
# 開始位置へ移動
|
89
|
+
start_x, start_y = calculate_pos(prep.current_page, region, @start_point.x.to_f, @start_point.y.to_f)
|
90
|
+
end_x, end_y = calculate_pos(prep.current_page, region, @end_point.x.to_f, @end_point.y.to_f)
|
91
|
+
prep.current_page.move_to(start_x, start_y)
|
92
|
+
# 終了位置へ向けて直線描画
|
93
|
+
prep.current_page.line_to(end_x, end_y)
|
94
|
+
# 実描画
|
95
|
+
prep.current_page.stroke
|
96
|
+
end
|
97
|
+
|
91
98
|
prep.current_page.drawed = true
|
92
99
|
end
|
93
100
|
end
|
data/lib/core/rectangle.rb
CHANGED
@@ -22,13 +22,14 @@ module PREP # nodoc
|
|
22
22
|
}
|
23
23
|
|
24
24
|
@@default_values = {
|
25
|
-
:line_color
|
26
|
-
:line_width
|
27
|
-
:line_style
|
28
|
-
:fill_pattern
|
29
|
-
:fill_color
|
30
|
-
:layer
|
31
|
-
:expand
|
25
|
+
:line_color => { :red => 0, :green => 0, :blue => 0 },
|
26
|
+
:line_width => 1,
|
27
|
+
:line_style => STYLES[:solid],
|
28
|
+
:fill_pattern => FILL_PATTERNS[:flat],
|
29
|
+
:fill_color => { :red => 1, :green => 1, :blue => 1 },
|
30
|
+
:layer => 1,
|
31
|
+
:expand => false,
|
32
|
+
:control_visible => false,
|
32
33
|
}
|
33
34
|
|
34
35
|
attr_reader :region, :line_color, :line_width, :line_style, :fill_pattern, :fill_color, :expand
|
@@ -51,6 +52,7 @@ module PREP # nodoc
|
|
51
52
|
values[:fill_color][:blue])
|
52
53
|
self.line_width = values[:line_width]
|
53
54
|
@expand = values[:expand]
|
55
|
+
@control_visible = values[:control_visible]
|
54
56
|
end
|
55
57
|
|
56
58
|
def expand_region(setting)
|
@@ -104,26 +106,32 @@ module PREP # nodoc
|
|
104
106
|
STDERR.puts("Draw on #{self.class} #{self.identifier}") if ENV['DEBUG']
|
105
107
|
# 領域判定
|
106
108
|
calculate_region(prep, region, values)
|
107
|
-
|
108
|
-
|
109
|
-
prep.current_page.
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
109
|
+
|
110
|
+
if visible?(values)
|
111
|
+
prep.current_page.set_line_width(@line_width.to_f)
|
112
|
+
unless @line_color.white?
|
113
|
+
prep.current_page.set_rgb_stroke(@line_color.red.to_f,
|
114
|
+
@line_color.green.to_f,
|
115
|
+
@line_color.blue.to_f)
|
116
|
+
end
|
117
|
+
unless @fill_color.white?
|
118
|
+
prep.current_page.set_rgb_fill(@fill_color.red.to_f,
|
119
|
+
@fill_color.green.to_f,
|
120
|
+
@fill_color.blue.to_f)
|
121
|
+
end
|
117
122
|
end
|
123
|
+
|
118
124
|
region_backup = @region.dup
|
119
125
|
if @expand_region
|
120
126
|
@region = @expand_region.dup
|
121
127
|
@expand_region = nil
|
122
128
|
end
|
123
129
|
pos_x, pos_y = calculate_pos(prep.current_page, region, @region.x, @region.y)
|
124
|
-
prep.current_page.rectangle(pos_x, pos_y - @region.height, @region.width, @region.height)
|
125
130
|
|
126
|
-
|
131
|
+
if visible?(values)
|
132
|
+
prep.current_page.rectangle(pos_x, pos_y - @region.height, @region.width, @region.height)
|
133
|
+
fill_and_or_stroke(prep)
|
134
|
+
end
|
127
135
|
|
128
136
|
@region = region_backup
|
129
137
|
prep.current_page.drawed = true
|
data/prep.gemspec
CHANGED
@@ -5,21 +5,23 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{prep}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tetsuhisa MAKINO"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2012-04-09}
|
13
13
|
s.description = %q{PREP is PDF Report generator depends on HPDF.}
|
14
14
|
s.email = %q{tim.makino@gmail.com}
|
15
15
|
s.executables = ["prep-test", "prep-helper"]
|
16
16
|
s.extra_rdoc_files = [
|
17
|
+
"ChangeLog",
|
17
18
|
"LICENSE.txt",
|
18
19
|
"README.rdoc"
|
19
20
|
]
|
20
21
|
s.files = [
|
21
22
|
".document",
|
22
23
|
".rspec",
|
24
|
+
"ChangeLog",
|
23
25
|
"Gemfile",
|
24
26
|
"Gemfile.lock",
|
25
27
|
"LICENSE.txt",
|
@@ -28,23 +30,39 @@ Gem::Specification.new do |s|
|
|
28
30
|
"VERSION",
|
29
31
|
"bin/prep-helper",
|
30
32
|
"bin/prep-test",
|
33
|
+
"examples/control_visible_sample.yml",
|
34
|
+
"examples/gap_test.yml",
|
35
|
+
"examples/generate_control_visible.rb",
|
36
|
+
"examples/generate_control_visible_sample.rb",
|
37
|
+
"examples/generate_gap_test.rb",
|
31
38
|
"examples/generate_group_sample.rb",
|
39
|
+
"examples/generate_image_sample.rb",
|
40
|
+
"examples/generate_rect_line_width_zero_sample.rb",
|
32
41
|
"examples/generate_sample.rb",
|
33
42
|
"examples/generate_sample2.rb",
|
34
43
|
"examples/generate_sample3.rb",
|
35
44
|
"examples/generate_sample4.rb",
|
36
45
|
"examples/generate_sample5.rb",
|
37
46
|
"examples/generate_sample6.rb",
|
47
|
+
"examples/generate_sample7.rb",
|
48
|
+
"examples/generate_sample8.rb",
|
38
49
|
"examples/generate_sample_dataset.rb",
|
39
50
|
"examples/group_sample.yml",
|
51
|
+
"examples/image_sample.yml",
|
52
|
+
"examples/qrimage.png",
|
53
|
+
"examples/rect_line_width_zero_sample.yml",
|
40
54
|
"examples/sample.yml",
|
41
55
|
"examples/sample2.yml",
|
42
56
|
"examples/sample3.yml",
|
43
57
|
"examples/sample5.yml",
|
44
58
|
"examples/sample6.yml",
|
59
|
+
"examples/sample7.yml",
|
60
|
+
"examples/sample8.yml",
|
61
|
+
"lib/core/arc_rectangle.rb",
|
45
62
|
"lib/core/color.rb",
|
46
63
|
"lib/core/drawable.rb",
|
47
64
|
"lib/core/group.rb",
|
65
|
+
"lib/core/image.rb",
|
48
66
|
"lib/core/label.rb",
|
49
67
|
"lib/core/line.rb",
|
50
68
|
"lib/core/loop.rb",
|
@@ -64,16 +82,23 @@ Gem::Specification.new do |s|
|
|
64
82
|
s.homepage = %q{http://github.com/maki-tetsu/prep}
|
65
83
|
s.licenses = ["MIT"]
|
66
84
|
s.require_paths = ["lib"]
|
67
|
-
s.rubygems_version = %q{1.
|
85
|
+
s.rubygems_version = %q{1.6.2}
|
68
86
|
s.summary = %q{PREP is PDF Report generator depends on HPDF.}
|
69
87
|
s.test_files = [
|
88
|
+
"examples/generate_control_visible.rb",
|
89
|
+
"examples/generate_control_visible_sample.rb",
|
90
|
+
"examples/generate_gap_test.rb",
|
70
91
|
"examples/generate_group_sample.rb",
|
92
|
+
"examples/generate_image_sample.rb",
|
93
|
+
"examples/generate_rect_line_width_zero_sample.rb",
|
71
94
|
"examples/generate_sample.rb",
|
72
95
|
"examples/generate_sample2.rb",
|
73
96
|
"examples/generate_sample3.rb",
|
74
97
|
"examples/generate_sample4.rb",
|
75
98
|
"examples/generate_sample5.rb",
|
76
99
|
"examples/generate_sample6.rb",
|
100
|
+
"examples/generate_sample7.rb",
|
101
|
+
"examples/generate_sample8.rb",
|
77
102
|
"examples/generate_sample_dataset.rb",
|
78
103
|
"spec/component_spec.rb",
|
79
104
|
"spec/prep_spec.rb",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tetsuhisa MAKINO
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-04-09 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -119,7 +119,10 @@ files:
|
|
119
119
|
- VERSION
|
120
120
|
- bin/prep-helper
|
121
121
|
- bin/prep-test
|
122
|
+
- examples/control_visible_sample.yml
|
122
123
|
- examples/gap_test.yml
|
124
|
+
- examples/generate_control_visible.rb
|
125
|
+
- examples/generate_control_visible_sample.rb
|
123
126
|
- examples/generate_gap_test.rb
|
124
127
|
- examples/generate_group_sample.rb
|
125
128
|
- examples/generate_image_sample.rb
|
@@ -164,7 +167,6 @@ files:
|
|
164
167
|
- spec/component_spec.rb
|
165
168
|
- spec/prep_spec.rb
|
166
169
|
- spec/spec_helper.rb
|
167
|
-
- examples/generate_ttfont_sample.rb
|
168
170
|
has_rdoc: true
|
169
171
|
homepage: http://github.com/maki-tetsu/prep
|
170
172
|
licenses:
|
@@ -200,6 +202,8 @@ signing_key:
|
|
200
202
|
specification_version: 3
|
201
203
|
summary: PREP is PDF Report generator depends on HPDF.
|
202
204
|
test_files:
|
205
|
+
- examples/generate_control_visible.rb
|
206
|
+
- examples/generate_control_visible_sample.rb
|
203
207
|
- examples/generate_gap_test.rb
|
204
208
|
- examples/generate_group_sample.rb
|
205
209
|
- examples/generate_image_sample.rb
|
@@ -213,7 +217,6 @@ test_files:
|
|
213
217
|
- examples/generate_sample7.rb
|
214
218
|
- examples/generate_sample8.rb
|
215
219
|
- examples/generate_sample_dataset.rb
|
216
|
-
- examples/generate_ttfont_sample.rb
|
217
220
|
- spec/component_spec.rb
|
218
221
|
- spec/prep_spec.rb
|
219
222
|
- spec/spec_helper.rb
|