lash-sprites 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +165 -0
  4. data/README +38 -0
  5. data/Rakefile +38 -0
  6. data/examples/css/css.rb +17 -0
  7. data/examples/css/css_cli.rb +29 -0
  8. data/examples/example_imgs/1.png +0 -0
  9. data/examples/example_imgs/10.png +0 -0
  10. data/examples/example_imgs/11.png +0 -0
  11. data/examples/example_imgs/12.png +0 -0
  12. data/examples/example_imgs/13.png +0 -0
  13. data/examples/example_imgs/14.png +0 -0
  14. data/examples/example_imgs/15.png +0 -0
  15. data/examples/example_imgs/16.png +0 -0
  16. data/examples/example_imgs/17.png +0 -0
  17. data/examples/example_imgs/18.png +0 -0
  18. data/examples/example_imgs/19.png +0 -0
  19. data/examples/example_imgs/2.png +0 -0
  20. data/examples/example_imgs/20.png +0 -0
  21. data/examples/example_imgs/21.png +0 -0
  22. data/examples/example_imgs/22.png +0 -0
  23. data/examples/example_imgs/23.png +0 -0
  24. data/examples/example_imgs/24.png +0 -0
  25. data/examples/example_imgs/25.png +0 -0
  26. data/examples/example_imgs/26.png +0 -0
  27. data/examples/example_imgs/27.png +0 -0
  28. data/examples/example_imgs/28.png +0 -0
  29. data/examples/example_imgs/29.png +0 -0
  30. data/examples/example_imgs/3.png +0 -0
  31. data/examples/example_imgs/30.png +0 -0
  32. data/examples/example_imgs/31.png +0 -0
  33. data/examples/example_imgs/32.png +0 -0
  34. data/examples/example_imgs/33.png +0 -0
  35. data/examples/example_imgs/34.png +0 -0
  36. data/examples/example_imgs/35.png +0 -0
  37. data/examples/example_imgs/36.png +0 -0
  38. data/examples/example_imgs/37.png +0 -0
  39. data/examples/example_imgs/38.png +0 -0
  40. data/examples/example_imgs/39.png +0 -0
  41. data/examples/example_imgs/4.png +0 -0
  42. data/examples/example_imgs/40.png +0 -0
  43. data/examples/example_imgs/41.png +0 -0
  44. data/examples/example_imgs/42.png +0 -0
  45. data/examples/example_imgs/43.png +0 -0
  46. data/examples/example_imgs/44.png +0 -0
  47. data/examples/example_imgs/45.png +0 -0
  48. data/examples/example_imgs/46.png +0 -0
  49. data/examples/example_imgs/47.png +0 -0
  50. data/examples/example_imgs/48.png +0 -0
  51. data/examples/example_imgs/49.png +0 -0
  52. data/examples/example_imgs/5.png +0 -0
  53. data/examples/example_imgs/50.png +0 -0
  54. data/examples/example_imgs/51.png +0 -0
  55. data/examples/example_imgs/52.png +0 -0
  56. data/examples/example_imgs/53.png +0 -0
  57. data/examples/example_imgs/54.png +0 -0
  58. data/examples/example_imgs/55.png +0 -0
  59. data/examples/example_imgs/56.png +0 -0
  60. data/examples/example_imgs/57.png +0 -0
  61. data/examples/example_imgs/58.png +0 -0
  62. data/examples/example_imgs/59.png +0 -0
  63. data/examples/example_imgs/6.png +0 -0
  64. data/examples/example_imgs/60.png +0 -0
  65. data/examples/example_imgs/7.png +0 -0
  66. data/examples/example_imgs/8.png +0 -0
  67. data/examples/example_imgs/9.png +0 -0
  68. data/examples/packing/packing.rb +19 -0
  69. data/lash-sprites.gemspec +21 -0
  70. data/lib/.DS_Store +0 -0
  71. data/lib/lash-sprites/.DS_Store +0 -0
  72. data/lib/lash-sprites/block.rb +34 -0
  73. data/lib/lash-sprites/css.rb +27 -0
  74. data/lib/lash-sprites/graphics_manager/gd2.rb +43 -0
  75. data/lib/lash-sprites/graphics_manager/graphics_manager.rb +22 -0
  76. data/lib/lash-sprites/graphics_manager/rmagick.rb +45 -0
  77. data/lib/lash-sprites/image.rb +46 -0
  78. data/lib/lash-sprites/packer/both_smart.rb +90 -0
  79. data/lib/lash-sprites/packer/both_split.rb +171 -0
  80. data/lib/lash-sprites/packer/even.rb +78 -0
  81. data/lib/lash-sprites/packer/horizontal_smart.rb +72 -0
  82. data/lib/lash-sprites/packer/horizontal_split.rb +156 -0
  83. data/lib/lash-sprites/packer/horizontal_stack.rb +22 -0
  84. data/lib/lash-sprites/packer/ratio.rb +94 -0
  85. data/lib/lash-sprites/packer/vertical_smart.rb +72 -0
  86. data/lib/lash-sprites/packer/vertical_split.rb +164 -0
  87. data/lib/lash-sprites/packer/vertical_stack.rb +23 -0
  88. data/lib/lash-sprites/sprite.rb +272 -0
  89. data/lib/lash-sprites/version.rb +5 -0
  90. data/test/b_graphics.rb +37 -0
  91. data/test/b_packers.rb +53 -0
  92. data/test/imgs/1.png +0 -0
  93. data/test/imgs/10.png +0 -0
  94. data/test/imgs/11.png +0 -0
  95. data/test/imgs/12.png +0 -0
  96. data/test/imgs/13.png +0 -0
  97. data/test/imgs/14.png +0 -0
  98. data/test/imgs/15.png +0 -0
  99. data/test/imgs/16.png +0 -0
  100. data/test/imgs/17.png +0 -0
  101. data/test/imgs/18.png +0 -0
  102. data/test/imgs/19.png +0 -0
  103. data/test/imgs/2.png +0 -0
  104. data/test/imgs/20.png +0 -0
  105. data/test/imgs/21.png +0 -0
  106. data/test/imgs/22.png +0 -0
  107. data/test/imgs/23.png +0 -0
  108. data/test/imgs/24.png +0 -0
  109. data/test/imgs/25.png +0 -0
  110. data/test/imgs/26.png +0 -0
  111. data/test/imgs/27.png +0 -0
  112. data/test/imgs/28.png +0 -0
  113. data/test/imgs/29.png +0 -0
  114. data/test/imgs/3.png +0 -0
  115. data/test/imgs/30.png +0 -0
  116. data/test/imgs/31.png +0 -0
  117. data/test/imgs/32.png +0 -0
  118. data/test/imgs/33.png +0 -0
  119. data/test/imgs/34.png +0 -0
  120. data/test/imgs/35.png +0 -0
  121. data/test/imgs/36.png +0 -0
  122. data/test/imgs/37.png +0 -0
  123. data/test/imgs/38.png +0 -0
  124. data/test/imgs/39.png +0 -0
  125. data/test/imgs/4.png +0 -0
  126. data/test/imgs/40.png +0 -0
  127. data/test/imgs/41.png +0 -0
  128. data/test/imgs/42.png +0 -0
  129. data/test/imgs/43.png +0 -0
  130. data/test/imgs/44.png +0 -0
  131. data/test/imgs/45.png +0 -0
  132. data/test/imgs/46.png +0 -0
  133. data/test/imgs/47.png +0 -0
  134. data/test/imgs/48.png +0 -0
  135. data/test/imgs/49.png +0 -0
  136. data/test/imgs/5.png +0 -0
  137. data/test/imgs/50.png +0 -0
  138. data/test/imgs/51.png +0 -0
  139. data/test/imgs/52.png +0 -0
  140. data/test/imgs/53.png +0 -0
  141. data/test/imgs/54.png +0 -0
  142. data/test/imgs/55.png +0 -0
  143. data/test/imgs/56.png +0 -0
  144. data/test/imgs/57.png +0 -0
  145. data/test/imgs/58.png +0 -0
  146. data/test/imgs/59.png +0 -0
  147. data/test/imgs/6.png +0 -0
  148. data/test/imgs/60.png +0 -0
  149. data/test/imgs/7.png +0 -0
  150. data/test/imgs/8.png +0 -0
  151. data/test/imgs/9.png +0 -0
  152. data/test/t_gd2.rb +28 -0
  153. data/test/t_generic.rb +183 -0
  154. data/test/t_rmagick.rb +29 -0
  155. metadata +269 -0
metadata ADDED
@@ -0,0 +1,269 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lash-sprites
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Cullen Walsh
9
+ - Paul Alexander
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2011-04-16 00:00:00.000000000 -07:00
14
+ default_executable:
15
+ dependencies: []
16
+ description:
17
+ email:
18
+ - gems@appsinyourpants.com
19
+ executables: []
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - .gitignore
24
+ - Gemfile
25
+ - LICENSE
26
+ - README
27
+ - Rakefile
28
+ - examples/css/css.rb
29
+ - examples/css/css_cli.rb
30
+ - examples/example_imgs/1.png
31
+ - examples/example_imgs/10.png
32
+ - examples/example_imgs/11.png
33
+ - examples/example_imgs/12.png
34
+ - examples/example_imgs/13.png
35
+ - examples/example_imgs/14.png
36
+ - examples/example_imgs/15.png
37
+ - examples/example_imgs/16.png
38
+ - examples/example_imgs/17.png
39
+ - examples/example_imgs/18.png
40
+ - examples/example_imgs/19.png
41
+ - examples/example_imgs/2.png
42
+ - examples/example_imgs/20.png
43
+ - examples/example_imgs/21.png
44
+ - examples/example_imgs/22.png
45
+ - examples/example_imgs/23.png
46
+ - examples/example_imgs/24.png
47
+ - examples/example_imgs/25.png
48
+ - examples/example_imgs/26.png
49
+ - examples/example_imgs/27.png
50
+ - examples/example_imgs/28.png
51
+ - examples/example_imgs/29.png
52
+ - examples/example_imgs/3.png
53
+ - examples/example_imgs/30.png
54
+ - examples/example_imgs/31.png
55
+ - examples/example_imgs/32.png
56
+ - examples/example_imgs/33.png
57
+ - examples/example_imgs/34.png
58
+ - examples/example_imgs/35.png
59
+ - examples/example_imgs/36.png
60
+ - examples/example_imgs/37.png
61
+ - examples/example_imgs/38.png
62
+ - examples/example_imgs/39.png
63
+ - examples/example_imgs/4.png
64
+ - examples/example_imgs/40.png
65
+ - examples/example_imgs/41.png
66
+ - examples/example_imgs/42.png
67
+ - examples/example_imgs/43.png
68
+ - examples/example_imgs/44.png
69
+ - examples/example_imgs/45.png
70
+ - examples/example_imgs/46.png
71
+ - examples/example_imgs/47.png
72
+ - examples/example_imgs/48.png
73
+ - examples/example_imgs/49.png
74
+ - examples/example_imgs/5.png
75
+ - examples/example_imgs/50.png
76
+ - examples/example_imgs/51.png
77
+ - examples/example_imgs/52.png
78
+ - examples/example_imgs/53.png
79
+ - examples/example_imgs/54.png
80
+ - examples/example_imgs/55.png
81
+ - examples/example_imgs/56.png
82
+ - examples/example_imgs/57.png
83
+ - examples/example_imgs/58.png
84
+ - examples/example_imgs/59.png
85
+ - examples/example_imgs/6.png
86
+ - examples/example_imgs/60.png
87
+ - examples/example_imgs/7.png
88
+ - examples/example_imgs/8.png
89
+ - examples/example_imgs/9.png
90
+ - examples/packing/packing.rb
91
+ - lash-sprites.gemspec
92
+ - lib/.DS_Store
93
+ - lib/lash-sprites/.DS_Store
94
+ - lib/lash-sprites/block.rb
95
+ - lib/lash-sprites/css.rb
96
+ - lib/lash-sprites/graphics_manager/gd2.rb
97
+ - lib/lash-sprites/graphics_manager/graphics_manager.rb
98
+ - lib/lash-sprites/graphics_manager/rmagick.rb
99
+ - lib/lash-sprites/image.rb
100
+ - lib/lash-sprites/packer/both_smart.rb
101
+ - lib/lash-sprites/packer/both_split.rb
102
+ - lib/lash-sprites/packer/even.rb
103
+ - lib/lash-sprites/packer/horizontal_smart.rb
104
+ - lib/lash-sprites/packer/horizontal_split.rb
105
+ - lib/lash-sprites/packer/horizontal_stack.rb
106
+ - lib/lash-sprites/packer/ratio.rb
107
+ - lib/lash-sprites/packer/vertical_smart.rb
108
+ - lib/lash-sprites/packer/vertical_split.rb
109
+ - lib/lash-sprites/packer/vertical_stack.rb
110
+ - lib/lash-sprites/sprite.rb
111
+ - lib/lash-sprites/version.rb
112
+ - test/b_graphics.rb
113
+ - test/b_packers.rb
114
+ - test/imgs/1.png
115
+ - test/imgs/10.png
116
+ - test/imgs/11.png
117
+ - test/imgs/12.png
118
+ - test/imgs/13.png
119
+ - test/imgs/14.png
120
+ - test/imgs/15.png
121
+ - test/imgs/16.png
122
+ - test/imgs/17.png
123
+ - test/imgs/18.png
124
+ - test/imgs/19.png
125
+ - test/imgs/2.png
126
+ - test/imgs/20.png
127
+ - test/imgs/21.png
128
+ - test/imgs/22.png
129
+ - test/imgs/23.png
130
+ - test/imgs/24.png
131
+ - test/imgs/25.png
132
+ - test/imgs/26.png
133
+ - test/imgs/27.png
134
+ - test/imgs/28.png
135
+ - test/imgs/29.png
136
+ - test/imgs/3.png
137
+ - test/imgs/30.png
138
+ - test/imgs/31.png
139
+ - test/imgs/32.png
140
+ - test/imgs/33.png
141
+ - test/imgs/34.png
142
+ - test/imgs/35.png
143
+ - test/imgs/36.png
144
+ - test/imgs/37.png
145
+ - test/imgs/38.png
146
+ - test/imgs/39.png
147
+ - test/imgs/4.png
148
+ - test/imgs/40.png
149
+ - test/imgs/41.png
150
+ - test/imgs/42.png
151
+ - test/imgs/43.png
152
+ - test/imgs/44.png
153
+ - test/imgs/45.png
154
+ - test/imgs/46.png
155
+ - test/imgs/47.png
156
+ - test/imgs/48.png
157
+ - test/imgs/49.png
158
+ - test/imgs/5.png
159
+ - test/imgs/50.png
160
+ - test/imgs/51.png
161
+ - test/imgs/52.png
162
+ - test/imgs/53.png
163
+ - test/imgs/54.png
164
+ - test/imgs/55.png
165
+ - test/imgs/56.png
166
+ - test/imgs/57.png
167
+ - test/imgs/58.png
168
+ - test/imgs/59.png
169
+ - test/imgs/6.png
170
+ - test/imgs/60.png
171
+ - test/imgs/7.png
172
+ - test/imgs/8.png
173
+ - test/imgs/9.png
174
+ - test/t_gd2.rb
175
+ - test/t_generic.rb
176
+ - test/t_rmagick.rb
177
+ has_rdoc: true
178
+ homepage: https://github.com/appsinyourpants/lash-sprites
179
+ licenses: []
180
+ post_install_message:
181
+ rdoc_options: []
182
+ require_paths:
183
+ - lib
184
+ required_ruby_version: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ required_rubygems_version: !ruby/object:Gem::Requirement
191
+ none: false
192
+ requirements:
193
+ - - ! '>='
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ requirements: []
197
+ rubyforge_project: lash-sprites
198
+ rubygems_version: 1.5.3
199
+ signing_key:
200
+ specification_version: 3
201
+ summary: A library to ease the dynamic generation of CSS spritesfrom a list of images
202
+ or a css file. Supports multiple image libraries, including GD2 and ImageMagick,
203
+ and multiple different packing algorithms.
204
+ test_files:
205
+ - test/b_graphics.rb
206
+ - test/b_packers.rb
207
+ - test/imgs/1.png
208
+ - test/imgs/10.png
209
+ - test/imgs/11.png
210
+ - test/imgs/12.png
211
+ - test/imgs/13.png
212
+ - test/imgs/14.png
213
+ - test/imgs/15.png
214
+ - test/imgs/16.png
215
+ - test/imgs/17.png
216
+ - test/imgs/18.png
217
+ - test/imgs/19.png
218
+ - test/imgs/2.png
219
+ - test/imgs/20.png
220
+ - test/imgs/21.png
221
+ - test/imgs/22.png
222
+ - test/imgs/23.png
223
+ - test/imgs/24.png
224
+ - test/imgs/25.png
225
+ - test/imgs/26.png
226
+ - test/imgs/27.png
227
+ - test/imgs/28.png
228
+ - test/imgs/29.png
229
+ - test/imgs/3.png
230
+ - test/imgs/30.png
231
+ - test/imgs/31.png
232
+ - test/imgs/32.png
233
+ - test/imgs/33.png
234
+ - test/imgs/34.png
235
+ - test/imgs/35.png
236
+ - test/imgs/36.png
237
+ - test/imgs/37.png
238
+ - test/imgs/38.png
239
+ - test/imgs/39.png
240
+ - test/imgs/4.png
241
+ - test/imgs/40.png
242
+ - test/imgs/41.png
243
+ - test/imgs/42.png
244
+ - test/imgs/43.png
245
+ - test/imgs/44.png
246
+ - test/imgs/45.png
247
+ - test/imgs/46.png
248
+ - test/imgs/47.png
249
+ - test/imgs/48.png
250
+ - test/imgs/49.png
251
+ - test/imgs/5.png
252
+ - test/imgs/50.png
253
+ - test/imgs/51.png
254
+ - test/imgs/52.png
255
+ - test/imgs/53.png
256
+ - test/imgs/54.png
257
+ - test/imgs/55.png
258
+ - test/imgs/56.png
259
+ - test/imgs/57.png
260
+ - test/imgs/58.png
261
+ - test/imgs/59.png
262
+ - test/imgs/6.png
263
+ - test/imgs/60.png
264
+ - test/imgs/7.png
265
+ - test/imgs/8.png
266
+ - test/imgs/9.png
267
+ - test/t_gd2.rb
268
+ - test/t_generic.rb
269
+ - test/t_rmagick.rb