savage 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/.document +5 -0
  2. data/.gitignore +21 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +17 -0
  5. data/Rakefile +45 -0
  6. data/VERSION +1 -0
  7. data/lib/savage/core_extensions/string.rb +8 -0
  8. data/lib/savage/direction.rb +29 -0
  9. data/lib/savage/directions/arc_to.rb +24 -0
  10. data/lib/savage/directions/close_path.rb +14 -0
  11. data/lib/savage/directions/coordinate_target.rb +20 -0
  12. data/lib/savage/directions/cubic_curve_to.rb +25 -0
  13. data/lib/savage/directions/horizontal_to.rb +10 -0
  14. data/lib/savage/directions/line_to.rb +10 -0
  15. data/lib/savage/directions/move_to.rb +10 -0
  16. data/lib/savage/directions/point_target.rb +20 -0
  17. data/lib/savage/directions/quadratic_curve_to.rb +22 -0
  18. data/lib/savage/directions/vertical_to.rb +10 -0
  19. data/lib/savage/path.rb +16 -0
  20. data/lib/savage/sub_path.rb +47 -0
  21. data/lib/savage/utils.rb +7 -0
  22. data/lib/savage.rb +9 -0
  23. data/savage.gemspec +100 -0
  24. data/spec/savage/directions/arc_to_spec.rb +96 -0
  25. data/spec/savage/directions/close_path_spec.rb +29 -0
  26. data/spec/savage/directions/cubic_curve_to_spec.rb +117 -0
  27. data/spec/savage/directions/horizontal_to_spec.rb +10 -0
  28. data/spec/savage/directions/line_to_spec.rb +10 -0
  29. data/spec/savage/directions/move_to_spec.rb +10 -0
  30. data/spec/savage/directions/point_spec.rb +12 -0
  31. data/spec/savage/directions/quadratic_curve_spec.rb +80 -0
  32. data/spec/savage/directions/vertical_to_spec.rb +10 -0
  33. data/spec/savage/path_spec.rb +24 -0
  34. data/spec/savage/sub_path_spec.rb +112 -0
  35. data/spec/savage_spec.rb +5 -0
  36. data/spec/shared/command.rb +13 -0
  37. data/spec/shared/coordinate_target.rb +35 -0
  38. data/spec/shared/direction.rb +21 -0
  39. data/spec/shared/point_target.rb +44 -0
  40. data/spec/spec.opts +1 -0
  41. data/spec/spec_helper.rb +36 -0
  42. metadata +132 -0
metadata ADDED
@@ -0,0 +1,132 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: savage
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - Jeremy Holland
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-05-02 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rspec
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 2
30
+ - 9
31
+ version: 1.2.9
32
+ type: :development
33
+ version_requirements: *id001
34
+ description: A little gem for extracting and manipulating SVG vector path data.
35
+ email: jeremy@jeremypholland.com
36
+ executables: []
37
+
38
+ extensions: []
39
+
40
+ extra_rdoc_files:
41
+ - LICENSE
42
+ - README.rdoc
43
+ files:
44
+ - .document
45
+ - .gitignore
46
+ - LICENSE
47
+ - README.rdoc
48
+ - Rakefile
49
+ - VERSION
50
+ - lib/savage.rb
51
+ - lib/savage/core_extensions/string.rb
52
+ - lib/savage/direction.rb
53
+ - lib/savage/directions/arc_to.rb
54
+ - lib/savage/directions/close_path.rb
55
+ - lib/savage/directions/coordinate_target.rb
56
+ - lib/savage/directions/cubic_curve_to.rb
57
+ - lib/savage/directions/horizontal_to.rb
58
+ - lib/savage/directions/line_to.rb
59
+ - lib/savage/directions/move_to.rb
60
+ - lib/savage/directions/point_target.rb
61
+ - lib/savage/directions/quadratic_curve_to.rb
62
+ - lib/savage/directions/vertical_to.rb
63
+ - lib/savage/path.rb
64
+ - lib/savage/sub_path.rb
65
+ - lib/savage/utils.rb
66
+ - savage.gemspec
67
+ - spec/savage/directions/arc_to_spec.rb
68
+ - spec/savage/directions/close_path_spec.rb
69
+ - spec/savage/directions/cubic_curve_to_spec.rb
70
+ - spec/savage/directions/horizontal_to_spec.rb
71
+ - spec/savage/directions/line_to_spec.rb
72
+ - spec/savage/directions/move_to_spec.rb
73
+ - spec/savage/directions/point_spec.rb
74
+ - spec/savage/directions/quadratic_curve_spec.rb
75
+ - spec/savage/directions/vertical_to_spec.rb
76
+ - spec/savage/path_spec.rb
77
+ - spec/savage/sub_path_spec.rb
78
+ - spec/savage_spec.rb
79
+ - spec/shared/command.rb
80
+ - spec/shared/coordinate_target.rb
81
+ - spec/shared/direction.rb
82
+ - spec/shared/point_target.rb
83
+ - spec/spec.opts
84
+ - spec/spec_helper.rb
85
+ has_rdoc: true
86
+ homepage: http://github.com/therubyneck/savage
87
+ licenses: []
88
+
89
+ post_install_message:
90
+ rdoc_options:
91
+ - --charset=UTF-8
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ segments:
99
+ - 0
100
+ version: "0"
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ segments:
106
+ - 0
107
+ version: "0"
108
+ requirements: []
109
+
110
+ rubyforge_project:
111
+ rubygems_version: 1.3.6
112
+ signing_key:
113
+ specification_version: 3
114
+ summary: A little library to manipulate SVG path data
115
+ test_files:
116
+ - spec/savage/directions/arc_to_spec.rb
117
+ - spec/savage/directions/close_path_spec.rb
118
+ - spec/savage/directions/cubic_curve_to_spec.rb
119
+ - spec/savage/directions/horizontal_to_spec.rb
120
+ - spec/savage/directions/line_to_spec.rb
121
+ - spec/savage/directions/move_to_spec.rb
122
+ - spec/savage/directions/point_spec.rb
123
+ - spec/savage/directions/quadratic_curve_spec.rb
124
+ - spec/savage/directions/vertical_to_spec.rb
125
+ - spec/savage/path_spec.rb
126
+ - spec/savage/sub_path_spec.rb
127
+ - spec/savage_spec.rb
128
+ - spec/shared/command.rb
129
+ - spec/shared/coordinate_target.rb
130
+ - spec/shared/direction.rb
131
+ - spec/shared/point_target.rb
132
+ - spec/spec_helper.rb