pimento 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/{spec/spec.opts → .rspec} +0 -0
- data/Gemfile +4 -0
- data/README.rdoc +6 -5
- data/Rakefile +6 -41
- data/examples/banner.rb +74 -0
- data/lib/pimento.rb +4 -2
- data/lib/pimento/canvas.rb +55 -13
- data/lib/pimento/component.rb +69 -0
- data/lib/pimento/component/bevel_button.rb +5 -0
- data/lib/pimento/component/check_box.rb +5 -0
- data/lib/pimento/component/circular_progress_indicator.rb +7 -0
- data/lib/pimento/component/disclosure_button.rb +5 -0
- data/lib/pimento/component/disclosure_triangle.rb +5 -0
- data/lib/pimento/component/help_button.rb +5 -0
- data/lib/pimento/component/horizontal_slider.rb +5 -0
- data/lib/pimento/component/popup_button.rb +5 -0
- data/lib/pimento/component/progress_indicator.rb +7 -0
- data/lib/pimento/component/round_button.rb +5 -0
- data/lib/pimento/component/rounded_rect_button.rb +5 -0
- data/lib/pimento/component/search_field.rb +5 -0
- data/lib/pimento/component/vertical_slider.rb +5 -0
- data/lib/pimento/renderable.rb +8 -0
- data/lib/pimento/util.rb +11 -0
- data/pimento.gemspec +17 -59
- data/spec/fixtures/1dot.xib +207 -222
- data/spec/fixtures/empty.xib +164 -174
- data/spec/pimento_spec.rb +2 -0
- data/spec/spec_helper.rb +7 -4
- data/template/bevel_button_ro.xml.erb +24 -0
- data/template/{canvas.xib.erb → canvas.xml.erb} +15 -52
- data/template/check_box_ro.xml.erb +31 -0
- data/template/circular_progress_indicator_ro.xml.erb +10 -0
- data/template/disclosure_button_ro.xml.erb +44 -0
- data/template/disclosure_triangle_ro.xml.erb +24 -0
- data/template/help_button_ro.xml.erb +24 -0
- data/template/horizontal_slider_ro.xml.erb +27 -0
- data/template/or_1.xml.erb +5 -0
- data/template/or_2.xml.erb +14 -0
- data/template/popup_button_ro.xml.erb +23 -0
- data/template/progress_indicator_ro.xml.erb +10 -0
- data/template/round_button_ro.xml.erb +24 -0
- data/template/rounded_rect_button_ro.xml.erb +24 -0
- data/template/search_field_ro.xml.erb +39 -0
- data/template/vertical_slider_ro.xml.erb +26 -0
- metadata +98 -69
- data/.document +0 -5
- data/examples/hello.rb +0 -32
- data/lib/pimento/dot.rb +0 -12
data/.document
DELETED
data/examples/hello.rb
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
require 'ubygems'
|
2
|
-
require 'pimento'
|
3
|
-
|
4
|
-
c = Pimento::Canvas.new(0, 0, 620, 200)
|
5
|
-
c.step = 1
|
6
|
-
|
7
|
-
# H
|
8
|
-
c.line(20, 20, 20, 180)
|
9
|
-
c.line(20, 100, 100, 100)
|
10
|
-
c.line(100, 20, 100, 180)
|
11
|
-
|
12
|
-
# E
|
13
|
-
c.line(140, 20, 140, 180)
|
14
|
-
c.line(140, 20, 220, 20)
|
15
|
-
c.line(140, 100, 220, 100)
|
16
|
-
c.line(140, 180, 220, 180)
|
17
|
-
|
18
|
-
# L
|
19
|
-
c.line(260, 20, 260, 180)
|
20
|
-
c.line(260, 180, 340, 180)
|
21
|
-
|
22
|
-
# L
|
23
|
-
c.line(380, 20, 380, 180)
|
24
|
-
c.line(380, 180, 460, 180)
|
25
|
-
|
26
|
-
# O
|
27
|
-
c.line(500, 20, 500, 180)
|
28
|
-
c.line(500, 20, 580, 20)
|
29
|
-
c.line(500, 180, 580, 180)
|
30
|
-
c.line(580, 20, 580, 180)
|
31
|
-
|
32
|
-
c.to_xml.save('hello.xib')
|