pimento 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/.gitignore +3 -0
  2. data/{spec/spec.opts → .rspec} +0 -0
  3. data/Gemfile +4 -0
  4. data/README.rdoc +6 -5
  5. data/Rakefile +6 -41
  6. data/examples/banner.rb +74 -0
  7. data/lib/pimento.rb +4 -2
  8. data/lib/pimento/canvas.rb +55 -13
  9. data/lib/pimento/component.rb +69 -0
  10. data/lib/pimento/component/bevel_button.rb +5 -0
  11. data/lib/pimento/component/check_box.rb +5 -0
  12. data/lib/pimento/component/circular_progress_indicator.rb +7 -0
  13. data/lib/pimento/component/disclosure_button.rb +5 -0
  14. data/lib/pimento/component/disclosure_triangle.rb +5 -0
  15. data/lib/pimento/component/help_button.rb +5 -0
  16. data/lib/pimento/component/horizontal_slider.rb +5 -0
  17. data/lib/pimento/component/popup_button.rb +5 -0
  18. data/lib/pimento/component/progress_indicator.rb +7 -0
  19. data/lib/pimento/component/round_button.rb +5 -0
  20. data/lib/pimento/component/rounded_rect_button.rb +5 -0
  21. data/lib/pimento/component/search_field.rb +5 -0
  22. data/lib/pimento/component/vertical_slider.rb +5 -0
  23. data/lib/pimento/renderable.rb +8 -0
  24. data/lib/pimento/util.rb +11 -0
  25. data/pimento.gemspec +17 -59
  26. data/spec/fixtures/1dot.xib +207 -222
  27. data/spec/fixtures/empty.xib +164 -174
  28. data/spec/pimento_spec.rb +2 -0
  29. data/spec/spec_helper.rb +7 -4
  30. data/template/bevel_button_ro.xml.erb +24 -0
  31. data/template/{canvas.xib.erb → canvas.xml.erb} +15 -52
  32. data/template/check_box_ro.xml.erb +31 -0
  33. data/template/circular_progress_indicator_ro.xml.erb +10 -0
  34. data/template/disclosure_button_ro.xml.erb +44 -0
  35. data/template/disclosure_triangle_ro.xml.erb +24 -0
  36. data/template/help_button_ro.xml.erb +24 -0
  37. data/template/horizontal_slider_ro.xml.erb +27 -0
  38. data/template/or_1.xml.erb +5 -0
  39. data/template/or_2.xml.erb +14 -0
  40. data/template/popup_button_ro.xml.erb +23 -0
  41. data/template/progress_indicator_ro.xml.erb +10 -0
  42. data/template/round_button_ro.xml.erb +24 -0
  43. data/template/rounded_rect_button_ro.xml.erb +24 -0
  44. data/template/search_field_ro.xml.erb +39 -0
  45. data/template/vertical_slider_ro.xml.erb +26 -0
  46. metadata +98 -69
  47. data/.document +0 -5
  48. data/examples/hello.rb +0 -32
  49. data/lib/pimento/dot.rb +0 -12
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
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')
data/lib/pimento/dot.rb DELETED
@@ -1,12 +0,0 @@
1
- module Pimento
2
- class Dot
3
- attr_reader :x, :y, :id, :cell_id
4
-
5
- def initialize(x, y, id, cell_id)
6
- @x = x
7
- @y = y
8
- @id = id
9
- @cell_id = cell_id
10
- end
11
- end
12
- end