muck-engine 0.2.21 → 0.2.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (775) hide show
  1. data/VERSION +1 -1
  2. data/app/helpers/muck_engine_helper.rb +24 -0
  3. data/lib/muck_engine/populate.rb +744 -0
  4. data/lib/muck_engine/tasks.rb +12 -717
  5. data/lib/muck_test_helper.rb +5 -1
  6. data/lib/test/muck_factories.rb +5 -0
  7. data/lib/test/shoulda_macros/scopes.rb +348 -0
  8. data/muck-engine.gemspec +745 -2
  9. data/public/images/service_icons/16/amazon.png +0 -0
  10. data/public/images/service_icons/16/ask.png +0 -0
  11. data/public/images/service_icons/16/bibsonomy.png +0 -0
  12. data/public/images/service_icons/16/bing.png +0 -0
  13. data/public/images/service_icons/16/blogger.png +0 -0
  14. data/public/images/service_icons/16/bloglines.png +0 -0
  15. data/public/images/service_icons/16/citeulike.png +0 -0
  16. data/public/images/service_icons/16/clipmarks.png +0 -0
  17. data/public/images/service_icons/16/connotea.png +0 -0
  18. data/public/images/service_icons/16/dailymotion.png +0 -0
  19. data/public/images/service_icons/16/delicious.png +0 -0
  20. data/public/images/service_icons/16/digg.png +0 -0
  21. data/public/images/service_icons/16/diigo.png +0 -0
  22. data/public/images/service_icons/16/facebook.png +0 -0
  23. data/public/images/service_icons/16/feed.png +0 -0
  24. data/public/images/service_icons/16/flickr.png +0 -0
  25. data/public/images/service_icons/16/fotolog.png +0 -0
  26. data/public/images/service_icons/16/friendfeed.png +0 -0
  27. data/public/images/service_icons/16/friendster.png +0 -0
  28. data/public/images/service_icons/16/furl.png +0 -0
  29. data/public/images/service_icons/16/goodreads.png +0 -0
  30. data/public/images/service_icons/16/google.png +0 -0
  31. data/public/images/service_icons/16/googleblog.png +0 -0
  32. data/public/images/service_icons/16/googlenews.png +0 -0
  33. data/public/images/service_icons/16/icerocket.png +0 -0
  34. data/public/images/service_icons/16/identica.png +0 -0
  35. data/public/images/service_icons/16/joost.png +0 -0
  36. data/public/images/service_icons/16/lastfm.png +0 -0
  37. data/public/images/service_icons/16/librarything.png +0 -0
  38. data/public/images/service_icons/16/linkedin.png +0 -0
  39. data/public/images/service_icons/16/livejournal.png +0 -0
  40. data/public/images/service_icons/16/magnolia.png +0 -0
  41. data/public/images/service_icons/16/mendeley.png +0 -0
  42. data/public/images/service_icons/16/metacafe.png +0 -0
  43. data/public/images/service_icons/16/mixx.png +0 -0
  44. data/public/images/service_icons/16/myspace.png +0 -0
  45. data/public/images/service_icons/16/netflix.png +0 -0
  46. data/public/images/service_icons/16/netvibes.png +0 -0
  47. data/public/images/service_icons/16/newsvine.png +0 -0
  48. data/public/images/service_icons/16/oai.png +0 -0
  49. data/public/images/service_icons/16/odeo.png +0 -0
  50. data/public/images/service_icons/16/opml.png +0 -0
  51. data/public/images/service_icons/16/pandora.png +0 -0
  52. data/public/images/service_icons/16/photobucket.png +0 -0
  53. data/public/images/service_icons/16/picasa.png +0 -0
  54. data/public/images/service_icons/16/polyvore.png +0 -0
  55. data/public/images/service_icons/16/pownce.png +0 -0
  56. data/public/images/service_icons/16/reddit.png +0 -0
  57. data/public/images/service_icons/16/simpy.png +0 -0
  58. data/public/images/service_icons/16/smugmug.png +0 -0
  59. data/public/images/service_icons/16/stumbleupon.png +0 -0
  60. data/public/images/service_icons/16/tag.png +0 -0
  61. data/public/images/service_icons/16/technorati.png +0 -0
  62. data/public/images/service_icons/16/tumblr.png +0 -0
  63. data/public/images/service_icons/16/twine.png +0 -0
  64. data/public/images/service_icons/16/twitter.png +0 -0
  65. data/public/images/service_icons/16/vimeo.png +0 -0
  66. data/public/images/service_icons/16/webshots.png +0 -0
  67. data/public/images/service_icons/16/wordpress.png +0 -0
  68. data/public/images/service_icons/16/xanga.png +0 -0
  69. data/public/images/service_icons/16/yahoo.png +0 -0
  70. data/public/images/service_icons/16/yelp.png +0 -0
  71. data/public/images/service_icons/16/youtube.png +0 -0
  72. data/public/images/service_icons/16/zooomr.png +0 -0
  73. data/public/images/service_icons/16/zotero.png +0 -0
  74. data/public/images/service_icons/24/amazon.png +0 -0
  75. data/public/images/service_icons/24/ask.png +0 -0
  76. data/public/images/service_icons/24/bibsonomy.png +0 -0
  77. data/public/images/service_icons/24/bing.png +0 -0
  78. data/public/images/service_icons/24/blogger.png +0 -0
  79. data/public/images/service_icons/24/bloglines.png +0 -0
  80. data/public/images/service_icons/24/citeulike.png +0 -0
  81. data/public/images/service_icons/24/clipmarks.png +0 -0
  82. data/public/images/service_icons/24/connotea.png +0 -0
  83. data/public/images/service_icons/24/dailymotion.png +0 -0
  84. data/public/images/service_icons/24/delicious.png +0 -0
  85. data/public/images/service_icons/24/digg.png +0 -0
  86. data/public/images/service_icons/24/diigo.png +0 -0
  87. data/public/images/service_icons/24/facebook.png +0 -0
  88. data/public/images/service_icons/24/feed.png +0 -0
  89. data/public/images/service_icons/24/flickr.png +0 -0
  90. data/public/images/service_icons/24/fotolog.png +0 -0
  91. data/public/images/service_icons/24/friendfeed.png +0 -0
  92. data/public/images/service_icons/24/friendster.png +0 -0
  93. data/public/images/service_icons/24/furl.png +0 -0
  94. data/public/images/service_icons/24/goodreads.png +0 -0
  95. data/public/images/service_icons/24/google.png +0 -0
  96. data/public/images/service_icons/24/googleblog.png +0 -0
  97. data/public/images/service_icons/24/googlenews.png +0 -0
  98. data/public/images/service_icons/24/icerocket.png +0 -0
  99. data/public/images/service_icons/24/identica.png +0 -0
  100. data/public/images/service_icons/24/joost.png +0 -0
  101. data/public/images/service_icons/24/lastfm.png +0 -0
  102. data/public/images/service_icons/24/librarything.png +0 -0
  103. data/public/images/service_icons/24/linkedin.png +0 -0
  104. data/public/images/service_icons/24/livejournal.png +0 -0
  105. data/public/images/service_icons/24/magnolia.png +0 -0
  106. data/public/images/service_icons/24/mendeley.png +0 -0
  107. data/public/images/service_icons/24/metacafe.png +0 -0
  108. data/public/images/service_icons/24/mixx.png +0 -0
  109. data/public/images/service_icons/24/myspace.png +0 -0
  110. data/public/images/service_icons/24/netflix.png +0 -0
  111. data/public/images/service_icons/24/netvibes.png +0 -0
  112. data/public/images/service_icons/24/newsvine.png +0 -0
  113. data/public/images/service_icons/24/oai.png +0 -0
  114. data/public/images/service_icons/24/odeo.png +0 -0
  115. data/public/images/service_icons/24/opml.png +0 -0
  116. data/public/images/service_icons/24/pandora.png +0 -0
  117. data/public/images/service_icons/24/photobucket.png +0 -0
  118. data/public/images/service_icons/24/picasa.png +0 -0
  119. data/public/images/service_icons/24/polyvore.png +0 -0
  120. data/public/images/service_icons/24/pownce.png +0 -0
  121. data/public/images/service_icons/24/reddit.png +0 -0
  122. data/public/images/service_icons/24/simpy.png +0 -0
  123. data/public/images/service_icons/24/smugmug.png +0 -0
  124. data/public/images/service_icons/24/stumbleupon.png +0 -0
  125. data/public/images/service_icons/24/tag.png +0 -0
  126. data/public/images/service_icons/24/technorati.png +0 -0
  127. data/public/images/service_icons/24/tumblr.png +0 -0
  128. data/public/images/service_icons/24/twine.png +0 -0
  129. data/public/images/service_icons/24/twitter.png +0 -0
  130. data/public/images/service_icons/24/vimeo.png +0 -0
  131. data/public/images/service_icons/24/webshots.png +0 -0
  132. data/public/images/service_icons/24/wordpress.png +0 -0
  133. data/public/images/service_icons/24/xanga.png +0 -0
  134. data/public/images/service_icons/24/yahoo.png +0 -0
  135. data/public/images/service_icons/24/yelp.png +0 -0
  136. data/public/images/service_icons/24/youtube.png +0 -0
  137. data/public/images/service_icons/24/zooomr.png +0 -0
  138. data/public/images/service_icons/24/zotero.png +0 -0
  139. data/public/images/service_icons/48/amazon.png +0 -0
  140. data/public/images/service_icons/48/ask.png +0 -0
  141. data/public/images/service_icons/48/bibsonomy.png +0 -0
  142. data/public/images/service_icons/48/bing.png +0 -0
  143. data/public/images/service_icons/48/blogger.png +0 -0
  144. data/public/images/service_icons/48/bloglines.png +0 -0
  145. data/public/images/service_icons/48/citeulike.png +0 -0
  146. data/public/images/service_icons/48/clipmarks.png +0 -0
  147. data/public/images/service_icons/48/connotea.png +0 -0
  148. data/public/images/service_icons/48/dailymotion.png +0 -0
  149. data/public/images/service_icons/48/delicious.png +0 -0
  150. data/public/images/service_icons/48/digg.png +0 -0
  151. data/public/images/service_icons/48/diigo.png +0 -0
  152. data/public/images/service_icons/48/facebook.png +0 -0
  153. data/public/images/service_icons/48/feed.png +0 -0
  154. data/public/images/service_icons/48/flickr.png +0 -0
  155. data/public/images/service_icons/48/fotolog.png +0 -0
  156. data/public/images/service_icons/48/friendfeed.png +0 -0
  157. data/public/images/service_icons/48/friendster.png +0 -0
  158. data/public/images/service_icons/48/furl.png +0 -0
  159. data/public/images/service_icons/48/goodreads.png +0 -0
  160. data/public/images/service_icons/48/google.png +0 -0
  161. data/public/images/service_icons/48/googleblog.png +0 -0
  162. data/public/images/service_icons/48/googlenews.png +0 -0
  163. data/public/images/service_icons/48/icerocket.png +0 -0
  164. data/public/images/service_icons/48/identica.png +0 -0
  165. data/public/images/service_icons/48/joost.png +0 -0
  166. data/public/images/service_icons/48/lastfm.png +0 -0
  167. data/public/images/service_icons/48/librarything.png +0 -0
  168. data/public/images/service_icons/48/linkedin.png +0 -0
  169. data/public/images/service_icons/48/livejournal.png +0 -0
  170. data/public/images/service_icons/48/magnolia.png +0 -0
  171. data/public/images/service_icons/48/mendeley.png +0 -0
  172. data/public/images/service_icons/48/metacafe.png +0 -0
  173. data/public/images/service_icons/48/mixx.png +0 -0
  174. data/public/images/service_icons/48/myspace.png +0 -0
  175. data/public/images/service_icons/48/netflix.png +0 -0
  176. data/public/images/service_icons/48/netvibes.png +0 -0
  177. data/public/images/service_icons/48/newsvine.png +0 -0
  178. data/public/images/service_icons/48/oai.png +0 -0
  179. data/public/images/service_icons/48/odeo.png +0 -0
  180. data/public/images/service_icons/48/opml.png +0 -0
  181. data/public/images/service_icons/48/pandora.png +0 -0
  182. data/public/images/service_icons/48/photobucket.png +0 -0
  183. data/public/images/service_icons/48/picasa.png +0 -0
  184. data/public/images/service_icons/48/polyvore.png +0 -0
  185. data/public/images/service_icons/48/pownce.png +0 -0
  186. data/public/images/service_icons/48/reddit.png +0 -0
  187. data/public/images/service_icons/48/simpy.png +0 -0
  188. data/public/images/service_icons/48/smugmug.png +0 -0
  189. data/public/images/service_icons/48/stumbleupon.png +0 -0
  190. data/public/images/service_icons/48/tag.png +0 -0
  191. data/public/images/service_icons/48/technorati.png +0 -0
  192. data/public/images/service_icons/48/tumblr.png +0 -0
  193. data/public/images/service_icons/48/twine.png +0 -0
  194. data/public/images/service_icons/48/twitter.png +0 -0
  195. data/public/images/service_icons/48/vimeo.png +0 -0
  196. data/public/images/service_icons/48/webshots.png +0 -0
  197. data/public/images/service_icons/48/wordpress.png +0 -0
  198. data/public/images/service_icons/48/xanga.png +0 -0
  199. data/public/images/service_icons/48/yahoo.png +0 -0
  200. data/public/images/service_icons/48/yelp.png +0 -0
  201. data/public/images/service_icons/48/youtube.png +0 -0
  202. data/public/images/service_icons/48/zooomr.png +0 -0
  203. data/public/images/service_icons/48/zotero.png +0 -0
  204. data/public/images/service_icons/60/amazon.png +0 -0
  205. data/public/images/service_icons/60/ask.png +0 -0
  206. data/public/images/service_icons/60/bibsonomy.png +0 -0
  207. data/public/images/service_icons/60/bing.png +0 -0
  208. data/public/images/service_icons/60/blogger.png +0 -0
  209. data/public/images/service_icons/60/bloglines.png +0 -0
  210. data/public/images/service_icons/60/citeulike.png +0 -0
  211. data/public/images/service_icons/60/clipmarks.png +0 -0
  212. data/public/images/service_icons/60/connotea.png +0 -0
  213. data/public/images/service_icons/60/dailymotion.png +0 -0
  214. data/public/images/service_icons/60/delicious.png +0 -0
  215. data/public/images/service_icons/60/digg.png +0 -0
  216. data/public/images/service_icons/60/diigo.png +0 -0
  217. data/public/images/service_icons/60/facebook.png +0 -0
  218. data/public/images/service_icons/60/feed.png +0 -0
  219. data/public/images/service_icons/60/flickr.png +0 -0
  220. data/public/images/service_icons/60/fotolog.png +0 -0
  221. data/public/images/service_icons/60/friendfeed.png +0 -0
  222. data/public/images/service_icons/60/friendster.png +0 -0
  223. data/public/images/service_icons/60/furl.png +0 -0
  224. data/public/images/service_icons/60/goodreads.png +0 -0
  225. data/public/images/service_icons/60/google.png +0 -0
  226. data/public/images/service_icons/60/googleblog.png +0 -0
  227. data/public/images/service_icons/60/googlenews.png +0 -0
  228. data/public/images/service_icons/60/icerocket.png +0 -0
  229. data/public/images/service_icons/60/identica.png +0 -0
  230. data/public/images/service_icons/60/joost.png +0 -0
  231. data/public/images/service_icons/60/lastfm.png +0 -0
  232. data/public/images/service_icons/60/librarything.png +0 -0
  233. data/public/images/service_icons/60/linkedin.png +0 -0
  234. data/public/images/service_icons/60/livejournal.png +0 -0
  235. data/public/images/service_icons/60/magnolia.png +0 -0
  236. data/public/images/service_icons/60/mendeley.png +0 -0
  237. data/public/images/service_icons/60/metacafe.png +0 -0
  238. data/public/images/service_icons/60/mixx.png +0 -0
  239. data/public/images/service_icons/60/myspace.png +0 -0
  240. data/public/images/service_icons/60/netflix.png +0 -0
  241. data/public/images/service_icons/60/netvibes.png +0 -0
  242. data/public/images/service_icons/60/newsvine.png +0 -0
  243. data/public/images/service_icons/60/oai.png +0 -0
  244. data/public/images/service_icons/60/odeo.png +0 -0
  245. data/public/images/service_icons/60/opml.png +0 -0
  246. data/public/images/service_icons/60/pandora.png +0 -0
  247. data/public/images/service_icons/60/photobucket.png +0 -0
  248. data/public/images/service_icons/60/picasa.png +0 -0
  249. data/public/images/service_icons/60/polyvore.png +0 -0
  250. data/public/images/service_icons/60/pownce.png +0 -0
  251. data/public/images/service_icons/60/reddit.png +0 -0
  252. data/public/images/service_icons/60/simpy.png +0 -0
  253. data/public/images/service_icons/60/smugmug.png +0 -0
  254. data/public/images/service_icons/60/stumbleupon.png +0 -0
  255. data/public/images/service_icons/60/tag.png +0 -0
  256. data/public/images/service_icons/60/technorati.png +0 -0
  257. data/public/images/service_icons/60/tumblr.png +0 -0
  258. data/public/images/service_icons/60/twine.png +0 -0
  259. data/public/images/service_icons/60/twitter.png +0 -0
  260. data/public/images/service_icons/60/vimeo.png +0 -0
  261. data/public/images/service_icons/60/webshots.png +0 -0
  262. data/public/images/service_icons/60/wordpress.png +0 -0
  263. data/public/images/service_icons/60/xanga.png +0 -0
  264. data/public/images/service_icons/60/yahoo.png +0 -0
  265. data/public/images/service_icons/60/yelp.png +0 -0
  266. data/public/images/service_icons/60/youtube.png +0 -0
  267. data/public/images/service_icons/60/zooomr.png +0 -0
  268. data/public/images/service_icons/60/zotero.png +0 -0
  269. data/public/images/service_icons/facebook_friend_links.jpg +0 -0
  270. data/public/images/service_icons/facebook_my_links.jpg +0 -0
  271. data/public/images/service_icons/source/Aquaticus_Social_Icon_template_by_jwloh.psd +0 -0
  272. data/public/images/service_icons/source/Google.psd +0 -0
  273. data/public/images/service_icons/source/Quake 9 Design.webloc b/data/public/images/service_icons/source/Quake 9 → Design.webloc +0 -0
  274. data/public/images/service_icons/source/ReadMe.rtf +52 -0
  275. data/public/images/service_icons/source/amazon.png +0 -0
  276. data/public/images/service_icons/source/aquaticus.social.png +0 -0
  277. data/public/images/service_icons/source/ask.png +0 -0
  278. data/public/images/service_icons/source/ask.psd +0 -0
  279. data/public/images/service_icons/source/bibsonomy.png +0 -0
  280. data/public/images/service_icons/source/bibsonomy.psd +0 -0
  281. data/public/images/service_icons/source/bing.png +0 -0
  282. data/public/images/service_icons/source/bing.psd +0 -0
  283. data/public/images/service_icons/source/blogger.png +0 -0
  284. data/public/images/service_icons/source/bloglines.png +0 -0
  285. data/public/images/service_icons/source/bloglines.psd +0 -0
  286. data/public/images/service_icons/source/citeulike.png +0 -0
  287. data/public/images/service_icons/source/clipmarks.png +0 -0
  288. data/public/images/service_icons/source/connotea.png +0 -0
  289. data/public/images/service_icons/source/connotea.psd +0 -0
  290. data/public/images/service_icons/source/dailymotion.png +0 -0
  291. data/public/images/service_icons/source/delicious.png +0 -0
  292. data/public/images/service_icons/source/digg.png +0 -0
  293. data/public/images/service_icons/source/diigo.png +0 -0
  294. data/public/images/service_icons/source/facebook.png +0 -0
  295. data/public/images/service_icons/source/feed.png +0 -0
  296. data/public/images/service_icons/source/flickr.png +0 -0
  297. data/public/images/service_icons/source/fotolog.png +0 -0
  298. data/public/images/service_icons/source/friendfeed.png +0 -0
  299. data/public/images/service_icons/source/friendster.png +0 -0
  300. data/public/images/service_icons/source/furl.png +0 -0
  301. data/public/images/service_icons/source/goodreads.png +0 -0
  302. data/public/images/service_icons/source/google.png +0 -0
  303. data/public/images/service_icons/source/googleblog.png +0 -0
  304. data/public/images/service_icons/source/googlenews.png +0 -0
  305. data/public/images/service_icons/source/icerocket.png +0 -0
  306. data/public/images/service_icons/source/icerocket.psd +0 -0
  307. data/public/images/service_icons/source/identica.png +0 -0
  308. data/public/images/service_icons/source/joost.png +0 -0
  309. data/public/images/service_icons/source/lastfm.png +0 -0
  310. data/public/images/service_icons/source/librarything.png +0 -0
  311. data/public/images/service_icons/source/linkedin.png +0 -0
  312. data/public/images/service_icons/source/livejournal.png +0 -0
  313. data/public/images/service_icons/source/magnolia.png +0 -0
  314. data/public/images/service_icons/source/mendeley.png +0 -0
  315. data/public/images/service_icons/source/metacafe.png +0 -0
  316. data/public/images/service_icons/source/metacafe.psd +0 -0
  317. data/public/images/service_icons/source/mixx.png +0 -0
  318. data/public/images/service_icons/source/myspace.png +0 -0
  319. data/public/images/service_icons/source/netflix.png +0 -0
  320. data/public/images/service_icons/source/netvibes.png +0 -0
  321. data/public/images/service_icons/source/newsvine.png +0 -0
  322. data/public/images/service_icons/source/oai.png +0 -0
  323. data/public/images/service_icons/source/odeo.png +0 -0
  324. data/public/images/service_icons/source/opml.png +0 -0
  325. data/public/images/service_icons/source/pandora.png +0 -0
  326. data/public/images/service_icons/source/photobucket.png +0 -0
  327. data/public/images/service_icons/source/picasa.png +0 -0
  328. data/public/images/service_icons/source/polyvore.png +0 -0
  329. data/public/images/service_icons/source/pownce.png +0 -0
  330. data/public/images/service_icons/source/reddit.png +0 -0
  331. data/public/images/service_icons/source/simpy.png +0 -0
  332. data/public/images/service_icons/source/smugmug.png +0 -0
  333. data/public/images/service_icons/source/stumbleupon.png +0 -0
  334. data/public/images/service_icons/source/tag.png +0 -0
  335. data/public/images/service_icons/source/technorati.png +0 -0
  336. data/public/images/service_icons/source/template.png +0 -0
  337. data/public/images/service_icons/source/tumblr.png +0 -0
  338. data/public/images/service_icons/source/twine.png +0 -0
  339. data/public/images/service_icons/source/twine.psd +0 -0
  340. data/public/images/service_icons/source/twitter.png +0 -0
  341. data/public/images/service_icons/source/vimeo.png +0 -0
  342. data/public/images/service_icons/source/webshots.png +0 -0
  343. data/public/images/service_icons/source/wordpress.png +0 -0
  344. data/public/images/service_icons/source/xanga.png +0 -0
  345. data/public/images/service_icons/source/yahoo.png +0 -0
  346. data/public/images/service_icons/source/yelp.png +0 -0
  347. data/public/images/service_icons/source/youtube.png +0 -0
  348. data/public/images/service_icons/source/zooomr.png +0 -0
  349. data/public/images/service_icons/source/zotero.png +0 -0
  350. data/public/stylesheets/styles.css +4 -0
  351. data/rails/init.rb +2 -1
  352. data/rails_i18n/bg.yml +22 -20
  353. data/rails_i18n/da.yml +18 -0
  354. data/rails_i18n/de.yml +1 -0
  355. data/rails_i18n/dsb.yml +182 -0
  356. data/rails_i18n/el.yml +4 -4
  357. data/rails_i18n/es-CO.yml +117 -0
  358. data/rails_i18n/es-MX.yml +6 -0
  359. data/rails_i18n/es.yml +13 -3
  360. data/rails_i18n/fi.yml +26 -15
  361. data/rails_i18n/fr.yml +2 -0
  362. data/rails_i18n/fur.yml +141 -0
  363. data/rails_i18n/he.yml +1 -1
  364. data/rails_i18n/hr.yml +116 -0
  365. data/rails_i18n/hsb.yml +190 -0
  366. data/rails_i18n/hu.yml +32 -15
  367. data/rails_i18n/is.yml +61 -27
  368. data/rails_i18n/ja.yml +7 -3
  369. data/rails_i18n/lo.yml +201 -0
  370. data/rails_i18n/lt.yml +12 -1
  371. data/rails_i18n/nl.yml +45 -45
  372. data/rails_i18n/pl.yml +1 -1
  373. data/rails_i18n/pt-BR.yml +1 -0
  374. data/rails_i18n/pt-PT.yml +96 -9
  375. data/rails_i18n/ro.yml +22 -6
  376. data/rails_i18n/sv-SE.yml +32 -21
  377. data/rails_i18n/sw.yml +8 -7
  378. data/rails_i18n/th.yml +201 -0
  379. data/test/rails_root/db/migrate/20090402234137_create_languages.rb +1 -1
  380. data/test/rails_root/public/images/arrow_down.gif +0 -0
  381. data/test/rails_root/public/images/arrow_up.gif +0 -0
  382. data/test/rails_root/public/images/fancybox/fancy_closebox.png +0 -0
  383. data/test/rails_root/public/images/fancybox/fancy_left.png +0 -0
  384. data/test/rails_root/public/images/fancybox/fancy_progress.png +0 -0
  385. data/test/rails_root/public/images/fancybox/fancy_right.png +0 -0
  386. data/test/rails_root/public/images/fancybox/fancy_shadow_e.png +0 -0
  387. data/test/rails_root/public/images/fancybox/fancy_shadow_n.png +0 -0
  388. data/test/rails_root/public/images/fancybox/fancy_shadow_ne.png +0 -0
  389. data/test/rails_root/public/images/fancybox/fancy_shadow_nw.png +0 -0
  390. data/test/rails_root/public/images/fancybox/fancy_shadow_s.png +0 -0
  391. data/test/rails_root/public/images/fancybox/fancy_shadow_se.png +0 -0
  392. data/test/rails_root/public/images/fancybox/fancy_shadow_sw.png +0 -0
  393. data/test/rails_root/public/images/fancybox/fancy_shadow_w.png +0 -0
  394. data/test/rails_root/public/images/fancybox/fancy_title_left.png +0 -0
  395. data/test/rails_root/public/images/fancybox/fancy_title_main.png +0 -0
  396. data/test/rails_root/public/images/fancybox/fancy_title_right.png +0 -0
  397. data/test/rails_root/public/images/icons/blue_guy.png +0 -0
  398. data/test/rails_root/public/images/icons/button_background.png +0 -0
  399. data/test/rails_root/public/images/icons/cancel.png +0 -0
  400. data/test/rails_root/public/images/icons/close.png +0 -0
  401. data/test/rails_root/public/images/icons/comment.png +0 -0
  402. data/test/rails_root/public/images/icons/exclaim.png +0 -0
  403. data/test/rails_root/public/images/icons/external.png +0 -0
  404. data/test/rails_root/public/images/icons/feed.png +0 -0
  405. data/test/rails_root/public/images/icons/grey_guy.png +0 -0
  406. data/test/rails_root/public/images/icons/hide.png +0 -0
  407. data/test/rails_root/public/images/icons/information.png +0 -0
  408. data/test/rails_root/public/images/icons/minus.png +0 -0
  409. data/test/rails_root/public/images/icons/pending.png +0 -0
  410. data/test/rails_root/public/images/icons/question.png +0 -0
  411. data/test/rails_root/public/images/icons/search_box.png +0 -0
  412. data/test/rails_root/public/images/icons/star.png +0 -0
  413. data/test/rails_root/public/images/icons/stop.png +0 -0
  414. data/test/rails_root/public/images/icons/thumb_down.png +0 -0
  415. data/test/rails_root/public/images/icons/thumb_up.png +0 -0
  416. data/test/rails_root/public/images/nothing.png +0 -0
  417. data/test/rails_root/public/images/service_icons/16/amazon.png +0 -0
  418. data/test/rails_root/public/images/service_icons/16/ask.png +0 -0
  419. data/test/rails_root/public/images/service_icons/16/bibsonomy.png +0 -0
  420. data/test/rails_root/public/images/service_icons/16/bing.png +0 -0
  421. data/test/rails_root/public/images/service_icons/16/blogger.png +0 -0
  422. data/test/rails_root/public/images/service_icons/16/bloglines.png +0 -0
  423. data/test/rails_root/public/images/service_icons/16/citeulike.png +0 -0
  424. data/test/rails_root/public/images/service_icons/16/clipmarks.png +0 -0
  425. data/test/rails_root/public/images/service_icons/16/connotea.png +0 -0
  426. data/test/rails_root/public/images/service_icons/16/dailymotion.png +0 -0
  427. data/test/rails_root/public/images/service_icons/16/delicious.png +0 -0
  428. data/test/rails_root/public/images/service_icons/16/digg.png +0 -0
  429. data/test/rails_root/public/images/service_icons/16/diigo.png +0 -0
  430. data/test/rails_root/public/images/service_icons/16/facebook.png +0 -0
  431. data/test/rails_root/public/images/service_icons/16/feed.png +0 -0
  432. data/test/rails_root/public/images/service_icons/16/flickr.png +0 -0
  433. data/test/rails_root/public/images/service_icons/16/fotolog.png +0 -0
  434. data/test/rails_root/public/images/service_icons/16/friendfeed.png +0 -0
  435. data/test/rails_root/public/images/service_icons/16/friendster.png +0 -0
  436. data/test/rails_root/public/images/service_icons/16/furl.png +0 -0
  437. data/test/rails_root/public/images/service_icons/16/goodreads.png +0 -0
  438. data/test/rails_root/public/images/service_icons/16/google.png +0 -0
  439. data/test/rails_root/public/images/service_icons/16/googleblog.png +0 -0
  440. data/test/rails_root/public/images/service_icons/16/googlenews.png +0 -0
  441. data/test/rails_root/public/images/service_icons/16/icerocket.png +0 -0
  442. data/test/rails_root/public/images/service_icons/16/identica.png +0 -0
  443. data/test/rails_root/public/images/service_icons/16/joost.png +0 -0
  444. data/test/rails_root/public/images/service_icons/16/lastfm.png +0 -0
  445. data/test/rails_root/public/images/service_icons/16/librarything.png +0 -0
  446. data/test/rails_root/public/images/service_icons/16/linkedin.png +0 -0
  447. data/test/rails_root/public/images/service_icons/16/livejournal.png +0 -0
  448. data/test/rails_root/public/images/service_icons/16/magnolia.png +0 -0
  449. data/test/rails_root/public/images/service_icons/16/mendeley.png +0 -0
  450. data/test/rails_root/public/images/service_icons/16/metacafe.png +0 -0
  451. data/test/rails_root/public/images/service_icons/16/mixx.png +0 -0
  452. data/test/rails_root/public/images/service_icons/16/myspace.png +0 -0
  453. data/test/rails_root/public/images/service_icons/16/netflix.png +0 -0
  454. data/test/rails_root/public/images/service_icons/16/netvibes.png +0 -0
  455. data/test/rails_root/public/images/service_icons/16/newsvine.png +0 -0
  456. data/test/rails_root/public/images/service_icons/16/oai.png +0 -0
  457. data/test/rails_root/public/images/service_icons/16/odeo.png +0 -0
  458. data/test/rails_root/public/images/service_icons/16/opml.png +0 -0
  459. data/test/rails_root/public/images/service_icons/16/pandora.png +0 -0
  460. data/test/rails_root/public/images/service_icons/16/photobucket.png +0 -0
  461. data/test/rails_root/public/images/service_icons/16/picasa.png +0 -0
  462. data/test/rails_root/public/images/service_icons/16/polyvore.png +0 -0
  463. data/test/rails_root/public/images/service_icons/16/pownce.png +0 -0
  464. data/test/rails_root/public/images/service_icons/16/reddit.png +0 -0
  465. data/test/rails_root/public/images/service_icons/16/simpy.png +0 -0
  466. data/test/rails_root/public/images/service_icons/16/smugmug.png +0 -0
  467. data/test/rails_root/public/images/service_icons/16/stumbleupon.png +0 -0
  468. data/test/rails_root/public/images/service_icons/16/tag.png +0 -0
  469. data/test/rails_root/public/images/service_icons/16/technorati.png +0 -0
  470. data/test/rails_root/public/images/service_icons/16/tumblr.png +0 -0
  471. data/test/rails_root/public/images/service_icons/16/twine.png +0 -0
  472. data/test/rails_root/public/images/service_icons/16/twitter.png +0 -0
  473. data/test/rails_root/public/images/service_icons/16/vimeo.png +0 -0
  474. data/test/rails_root/public/images/service_icons/16/webshots.png +0 -0
  475. data/test/rails_root/public/images/service_icons/16/wordpress.png +0 -0
  476. data/test/rails_root/public/images/service_icons/16/xanga.png +0 -0
  477. data/test/rails_root/public/images/service_icons/16/yahoo.png +0 -0
  478. data/test/rails_root/public/images/service_icons/16/yelp.png +0 -0
  479. data/test/rails_root/public/images/service_icons/16/youtube.png +0 -0
  480. data/test/rails_root/public/images/service_icons/16/zooomr.png +0 -0
  481. data/test/rails_root/public/images/service_icons/16/zotero.png +0 -0
  482. data/test/rails_root/public/images/service_icons/24/amazon.png +0 -0
  483. data/test/rails_root/public/images/service_icons/24/ask.png +0 -0
  484. data/test/rails_root/public/images/service_icons/24/bibsonomy.png +0 -0
  485. data/test/rails_root/public/images/service_icons/24/bing.png +0 -0
  486. data/test/rails_root/public/images/service_icons/24/blogger.png +0 -0
  487. data/test/rails_root/public/images/service_icons/24/bloglines.png +0 -0
  488. data/test/rails_root/public/images/service_icons/24/citeulike.png +0 -0
  489. data/test/rails_root/public/images/service_icons/24/clipmarks.png +0 -0
  490. data/test/rails_root/public/images/service_icons/24/connotea.png +0 -0
  491. data/test/rails_root/public/images/service_icons/24/dailymotion.png +0 -0
  492. data/test/rails_root/public/images/service_icons/24/delicious.png +0 -0
  493. data/test/rails_root/public/images/service_icons/24/digg.png +0 -0
  494. data/test/rails_root/public/images/service_icons/24/diigo.png +0 -0
  495. data/test/rails_root/public/images/service_icons/24/facebook.png +0 -0
  496. data/test/rails_root/public/images/service_icons/24/feed.png +0 -0
  497. data/test/rails_root/public/images/service_icons/24/flickr.png +0 -0
  498. data/test/rails_root/public/images/service_icons/24/fotolog.png +0 -0
  499. data/test/rails_root/public/images/service_icons/24/friendfeed.png +0 -0
  500. data/test/rails_root/public/images/service_icons/24/friendster.png +0 -0
  501. data/test/rails_root/public/images/service_icons/24/furl.png +0 -0
  502. data/test/rails_root/public/images/service_icons/24/goodreads.png +0 -0
  503. data/test/rails_root/public/images/service_icons/24/google.png +0 -0
  504. data/test/rails_root/public/images/service_icons/24/googleblog.png +0 -0
  505. data/test/rails_root/public/images/service_icons/24/googlenews.png +0 -0
  506. data/test/rails_root/public/images/service_icons/24/icerocket.png +0 -0
  507. data/test/rails_root/public/images/service_icons/24/identica.png +0 -0
  508. data/test/rails_root/public/images/service_icons/24/joost.png +0 -0
  509. data/test/rails_root/public/images/service_icons/24/lastfm.png +0 -0
  510. data/test/rails_root/public/images/service_icons/24/librarything.png +0 -0
  511. data/test/rails_root/public/images/service_icons/24/linkedin.png +0 -0
  512. data/test/rails_root/public/images/service_icons/24/livejournal.png +0 -0
  513. data/test/rails_root/public/images/service_icons/24/magnolia.png +0 -0
  514. data/test/rails_root/public/images/service_icons/24/mendeley.png +0 -0
  515. data/test/rails_root/public/images/service_icons/24/metacafe.png +0 -0
  516. data/test/rails_root/public/images/service_icons/24/mixx.png +0 -0
  517. data/test/rails_root/public/images/service_icons/24/myspace.png +0 -0
  518. data/test/rails_root/public/images/service_icons/24/netflix.png +0 -0
  519. data/test/rails_root/public/images/service_icons/24/netvibes.png +0 -0
  520. data/test/rails_root/public/images/service_icons/24/newsvine.png +0 -0
  521. data/test/rails_root/public/images/service_icons/24/oai.png +0 -0
  522. data/test/rails_root/public/images/service_icons/24/odeo.png +0 -0
  523. data/test/rails_root/public/images/service_icons/24/opml.png +0 -0
  524. data/test/rails_root/public/images/service_icons/24/pandora.png +0 -0
  525. data/test/rails_root/public/images/service_icons/24/photobucket.png +0 -0
  526. data/test/rails_root/public/images/service_icons/24/picasa.png +0 -0
  527. data/test/rails_root/public/images/service_icons/24/polyvore.png +0 -0
  528. data/test/rails_root/public/images/service_icons/24/pownce.png +0 -0
  529. data/test/rails_root/public/images/service_icons/24/reddit.png +0 -0
  530. data/test/rails_root/public/images/service_icons/24/simpy.png +0 -0
  531. data/test/rails_root/public/images/service_icons/24/smugmug.png +0 -0
  532. data/test/rails_root/public/images/service_icons/24/stumbleupon.png +0 -0
  533. data/test/rails_root/public/images/service_icons/24/tag.png +0 -0
  534. data/test/rails_root/public/images/service_icons/24/technorati.png +0 -0
  535. data/test/rails_root/public/images/service_icons/24/tumblr.png +0 -0
  536. data/test/rails_root/public/images/service_icons/24/twine.png +0 -0
  537. data/test/rails_root/public/images/service_icons/24/twitter.png +0 -0
  538. data/test/rails_root/public/images/service_icons/24/vimeo.png +0 -0
  539. data/test/rails_root/public/images/service_icons/24/webshots.png +0 -0
  540. data/test/rails_root/public/images/service_icons/24/wordpress.png +0 -0
  541. data/test/rails_root/public/images/service_icons/24/xanga.png +0 -0
  542. data/test/rails_root/public/images/service_icons/24/yahoo.png +0 -0
  543. data/test/rails_root/public/images/service_icons/24/yelp.png +0 -0
  544. data/test/rails_root/public/images/service_icons/24/youtube.png +0 -0
  545. data/test/rails_root/public/images/service_icons/24/zooomr.png +0 -0
  546. data/test/rails_root/public/images/service_icons/24/zotero.png +0 -0
  547. data/test/rails_root/public/images/service_icons/48/amazon.png +0 -0
  548. data/test/rails_root/public/images/service_icons/48/ask.png +0 -0
  549. data/test/rails_root/public/images/service_icons/48/bibsonomy.png +0 -0
  550. data/test/rails_root/public/images/service_icons/48/bing.png +0 -0
  551. data/test/rails_root/public/images/service_icons/48/blogger.png +0 -0
  552. data/test/rails_root/public/images/service_icons/48/bloglines.png +0 -0
  553. data/test/rails_root/public/images/service_icons/48/citeulike.png +0 -0
  554. data/test/rails_root/public/images/service_icons/48/clipmarks.png +0 -0
  555. data/test/rails_root/public/images/service_icons/48/connotea.png +0 -0
  556. data/test/rails_root/public/images/service_icons/48/dailymotion.png +0 -0
  557. data/test/rails_root/public/images/service_icons/48/delicious.png +0 -0
  558. data/test/rails_root/public/images/service_icons/48/digg.png +0 -0
  559. data/test/rails_root/public/images/service_icons/48/diigo.png +0 -0
  560. data/test/rails_root/public/images/service_icons/48/facebook.png +0 -0
  561. data/test/rails_root/public/images/service_icons/48/feed.png +0 -0
  562. data/test/rails_root/public/images/service_icons/48/flickr.png +0 -0
  563. data/test/rails_root/public/images/service_icons/48/fotolog.png +0 -0
  564. data/test/rails_root/public/images/service_icons/48/friendfeed.png +0 -0
  565. data/test/rails_root/public/images/service_icons/48/friendster.png +0 -0
  566. data/test/rails_root/public/images/service_icons/48/furl.png +0 -0
  567. data/test/rails_root/public/images/service_icons/48/goodreads.png +0 -0
  568. data/test/rails_root/public/images/service_icons/48/google.png +0 -0
  569. data/test/rails_root/public/images/service_icons/48/googleblog.png +0 -0
  570. data/test/rails_root/public/images/service_icons/48/googlenews.png +0 -0
  571. data/test/rails_root/public/images/service_icons/48/icerocket.png +0 -0
  572. data/test/rails_root/public/images/service_icons/48/identica.png +0 -0
  573. data/test/rails_root/public/images/service_icons/48/joost.png +0 -0
  574. data/test/rails_root/public/images/service_icons/48/lastfm.png +0 -0
  575. data/test/rails_root/public/images/service_icons/48/librarything.png +0 -0
  576. data/test/rails_root/public/images/service_icons/48/linkedin.png +0 -0
  577. data/test/rails_root/public/images/service_icons/48/livejournal.png +0 -0
  578. data/test/rails_root/public/images/service_icons/48/magnolia.png +0 -0
  579. data/test/rails_root/public/images/service_icons/48/mendeley.png +0 -0
  580. data/test/rails_root/public/images/service_icons/48/metacafe.png +0 -0
  581. data/test/rails_root/public/images/service_icons/48/mixx.png +0 -0
  582. data/test/rails_root/public/images/service_icons/48/myspace.png +0 -0
  583. data/test/rails_root/public/images/service_icons/48/netflix.png +0 -0
  584. data/test/rails_root/public/images/service_icons/48/netvibes.png +0 -0
  585. data/test/rails_root/public/images/service_icons/48/newsvine.png +0 -0
  586. data/test/rails_root/public/images/service_icons/48/oai.png +0 -0
  587. data/test/rails_root/public/images/service_icons/48/odeo.png +0 -0
  588. data/test/rails_root/public/images/service_icons/48/opml.png +0 -0
  589. data/test/rails_root/public/images/service_icons/48/pandora.png +0 -0
  590. data/test/rails_root/public/images/service_icons/48/photobucket.png +0 -0
  591. data/test/rails_root/public/images/service_icons/48/picasa.png +0 -0
  592. data/test/rails_root/public/images/service_icons/48/polyvore.png +0 -0
  593. data/test/rails_root/public/images/service_icons/48/pownce.png +0 -0
  594. data/test/rails_root/public/images/service_icons/48/reddit.png +0 -0
  595. data/test/rails_root/public/images/service_icons/48/simpy.png +0 -0
  596. data/test/rails_root/public/images/service_icons/48/smugmug.png +0 -0
  597. data/test/rails_root/public/images/service_icons/48/stumbleupon.png +0 -0
  598. data/test/rails_root/public/images/service_icons/48/tag.png +0 -0
  599. data/test/rails_root/public/images/service_icons/48/technorati.png +0 -0
  600. data/test/rails_root/public/images/service_icons/48/tumblr.png +0 -0
  601. data/test/rails_root/public/images/service_icons/48/twine.png +0 -0
  602. data/test/rails_root/public/images/service_icons/48/twitter.png +0 -0
  603. data/test/rails_root/public/images/service_icons/48/vimeo.png +0 -0
  604. data/test/rails_root/public/images/service_icons/48/webshots.png +0 -0
  605. data/test/rails_root/public/images/service_icons/48/wordpress.png +0 -0
  606. data/test/rails_root/public/images/service_icons/48/xanga.png +0 -0
  607. data/test/rails_root/public/images/service_icons/48/yahoo.png +0 -0
  608. data/test/rails_root/public/images/service_icons/48/yelp.png +0 -0
  609. data/test/rails_root/public/images/service_icons/48/youtube.png +0 -0
  610. data/test/rails_root/public/images/service_icons/48/zooomr.png +0 -0
  611. data/test/rails_root/public/images/service_icons/48/zotero.png +0 -0
  612. data/test/rails_root/public/images/service_icons/60/amazon.png +0 -0
  613. data/test/rails_root/public/images/service_icons/60/ask.png +0 -0
  614. data/test/rails_root/public/images/service_icons/60/bibsonomy.png +0 -0
  615. data/test/rails_root/public/images/service_icons/60/bing.png +0 -0
  616. data/test/rails_root/public/images/service_icons/60/blogger.png +0 -0
  617. data/test/rails_root/public/images/service_icons/60/bloglines.png +0 -0
  618. data/test/rails_root/public/images/service_icons/60/citeulike.png +0 -0
  619. data/test/rails_root/public/images/service_icons/60/clipmarks.png +0 -0
  620. data/test/rails_root/public/images/service_icons/60/connotea.png +0 -0
  621. data/test/rails_root/public/images/service_icons/60/dailymotion.png +0 -0
  622. data/test/rails_root/public/images/service_icons/60/delicious.png +0 -0
  623. data/test/rails_root/public/images/service_icons/60/digg.png +0 -0
  624. data/test/rails_root/public/images/service_icons/60/diigo.png +0 -0
  625. data/test/rails_root/public/images/service_icons/60/facebook.png +0 -0
  626. data/test/rails_root/public/images/service_icons/60/feed.png +0 -0
  627. data/test/rails_root/public/images/service_icons/60/flickr.png +0 -0
  628. data/test/rails_root/public/images/service_icons/60/fotolog.png +0 -0
  629. data/test/rails_root/public/images/service_icons/60/friendfeed.png +0 -0
  630. data/test/rails_root/public/images/service_icons/60/friendster.png +0 -0
  631. data/test/rails_root/public/images/service_icons/60/furl.png +0 -0
  632. data/test/rails_root/public/images/service_icons/60/goodreads.png +0 -0
  633. data/test/rails_root/public/images/service_icons/60/google.png +0 -0
  634. data/test/rails_root/public/images/service_icons/60/googleblog.png +0 -0
  635. data/test/rails_root/public/images/service_icons/60/googlenews.png +0 -0
  636. data/test/rails_root/public/images/service_icons/60/icerocket.png +0 -0
  637. data/test/rails_root/public/images/service_icons/60/identica.png +0 -0
  638. data/test/rails_root/public/images/service_icons/60/joost.png +0 -0
  639. data/test/rails_root/public/images/service_icons/60/lastfm.png +0 -0
  640. data/test/rails_root/public/images/service_icons/60/librarything.png +0 -0
  641. data/test/rails_root/public/images/service_icons/60/linkedin.png +0 -0
  642. data/test/rails_root/public/images/service_icons/60/livejournal.png +0 -0
  643. data/test/rails_root/public/images/service_icons/60/magnolia.png +0 -0
  644. data/test/rails_root/public/images/service_icons/60/mendeley.png +0 -0
  645. data/test/rails_root/public/images/service_icons/60/metacafe.png +0 -0
  646. data/test/rails_root/public/images/service_icons/60/mixx.png +0 -0
  647. data/test/rails_root/public/images/service_icons/60/myspace.png +0 -0
  648. data/test/rails_root/public/images/service_icons/60/netflix.png +0 -0
  649. data/test/rails_root/public/images/service_icons/60/netvibes.png +0 -0
  650. data/test/rails_root/public/images/service_icons/60/newsvine.png +0 -0
  651. data/test/rails_root/public/images/service_icons/60/oai.png +0 -0
  652. data/test/rails_root/public/images/service_icons/60/odeo.png +0 -0
  653. data/test/rails_root/public/images/service_icons/60/opml.png +0 -0
  654. data/test/rails_root/public/images/service_icons/60/pandora.png +0 -0
  655. data/test/rails_root/public/images/service_icons/60/photobucket.png +0 -0
  656. data/test/rails_root/public/images/service_icons/60/picasa.png +0 -0
  657. data/test/rails_root/public/images/service_icons/60/polyvore.png +0 -0
  658. data/test/rails_root/public/images/service_icons/60/pownce.png +0 -0
  659. data/test/rails_root/public/images/service_icons/60/reddit.png +0 -0
  660. data/test/rails_root/public/images/service_icons/60/simpy.png +0 -0
  661. data/test/rails_root/public/images/service_icons/60/smugmug.png +0 -0
  662. data/test/rails_root/public/images/service_icons/60/stumbleupon.png +0 -0
  663. data/test/rails_root/public/images/service_icons/60/tag.png +0 -0
  664. data/test/rails_root/public/images/service_icons/60/technorati.png +0 -0
  665. data/test/rails_root/public/images/service_icons/60/tumblr.png +0 -0
  666. data/test/rails_root/public/images/service_icons/60/twine.png +0 -0
  667. data/test/rails_root/public/images/service_icons/60/twitter.png +0 -0
  668. data/test/rails_root/public/images/service_icons/60/vimeo.png +0 -0
  669. data/test/rails_root/public/images/service_icons/60/webshots.png +0 -0
  670. data/test/rails_root/public/images/service_icons/60/wordpress.png +0 -0
  671. data/test/rails_root/public/images/service_icons/60/xanga.png +0 -0
  672. data/test/rails_root/public/images/service_icons/60/yahoo.png +0 -0
  673. data/test/rails_root/public/images/service_icons/60/yelp.png +0 -0
  674. data/test/rails_root/public/images/service_icons/60/youtube.png +0 -0
  675. data/test/rails_root/public/images/service_icons/60/zooomr.png +0 -0
  676. data/test/rails_root/public/images/service_icons/60/zotero.png +0 -0
  677. data/test/rails_root/public/images/service_icons/facebook_friend_links.jpg +0 -0
  678. data/test/rails_root/public/images/service_icons/facebook_my_links.jpg +0 -0
  679. data/test/rails_root/public/images/service_icons/source/Aquaticus_Social_Icon_template_by_jwloh.psd +0 -0
  680. data/test/rails_root/public/images/service_icons/source/Google.psd +0 -0
  681. data/test/rails_root/public/images/service_icons/source/Quake 9 Design.webloc b/data/test/rails_root/public/images/service_icons/source/Quake 9 → Design.webloc +0 -0
  682. data/test/rails_root/public/images/service_icons/source/ReadMe.rtf +52 -0
  683. data/test/rails_root/public/images/service_icons/source/amazon.png +0 -0
  684. data/test/rails_root/public/images/service_icons/source/aquaticus.social.png +0 -0
  685. data/test/rails_root/public/images/service_icons/source/ask.png +0 -0
  686. data/test/rails_root/public/images/service_icons/source/ask.psd +0 -0
  687. data/test/rails_root/public/images/service_icons/source/bibsonomy.png +0 -0
  688. data/test/rails_root/public/images/service_icons/source/bibsonomy.psd +0 -0
  689. data/test/rails_root/public/images/service_icons/source/bing.png +0 -0
  690. data/test/rails_root/public/images/service_icons/source/bing.psd +0 -0
  691. data/test/rails_root/public/images/service_icons/source/blogger.png +0 -0
  692. data/test/rails_root/public/images/service_icons/source/bloglines.png +0 -0
  693. data/test/rails_root/public/images/service_icons/source/bloglines.psd +0 -0
  694. data/test/rails_root/public/images/service_icons/source/citeulike.png +0 -0
  695. data/test/rails_root/public/images/service_icons/source/clipmarks.png +0 -0
  696. data/test/rails_root/public/images/service_icons/source/connotea.png +0 -0
  697. data/test/rails_root/public/images/service_icons/source/connotea.psd +0 -0
  698. data/test/rails_root/public/images/service_icons/source/dailymotion.png +0 -0
  699. data/test/rails_root/public/images/service_icons/source/delicious.png +0 -0
  700. data/test/rails_root/public/images/service_icons/source/digg.png +0 -0
  701. data/test/rails_root/public/images/service_icons/source/diigo.png +0 -0
  702. data/test/rails_root/public/images/service_icons/source/facebook.png +0 -0
  703. data/test/rails_root/public/images/service_icons/source/feed.png +0 -0
  704. data/test/rails_root/public/images/service_icons/source/flickr.png +0 -0
  705. data/test/rails_root/public/images/service_icons/source/fotolog.png +0 -0
  706. data/test/rails_root/public/images/service_icons/source/friendfeed.png +0 -0
  707. data/test/rails_root/public/images/service_icons/source/friendster.png +0 -0
  708. data/test/rails_root/public/images/service_icons/source/furl.png +0 -0
  709. data/test/rails_root/public/images/service_icons/source/goodreads.png +0 -0
  710. data/test/rails_root/public/images/service_icons/source/google.png +0 -0
  711. data/test/rails_root/public/images/service_icons/source/googleblog.png +0 -0
  712. data/test/rails_root/public/images/service_icons/source/googlenews.png +0 -0
  713. data/test/rails_root/public/images/service_icons/source/icerocket.png +0 -0
  714. data/test/rails_root/public/images/service_icons/source/icerocket.psd +0 -0
  715. data/test/rails_root/public/images/service_icons/source/identica.png +0 -0
  716. data/test/rails_root/public/images/service_icons/source/joost.png +0 -0
  717. data/test/rails_root/public/images/service_icons/source/lastfm.png +0 -0
  718. data/test/rails_root/public/images/service_icons/source/librarything.png +0 -0
  719. data/test/rails_root/public/images/service_icons/source/linkedin.png +0 -0
  720. data/test/rails_root/public/images/service_icons/source/livejournal.png +0 -0
  721. data/test/rails_root/public/images/service_icons/source/magnolia.png +0 -0
  722. data/test/rails_root/public/images/service_icons/source/mendeley.png +0 -0
  723. data/test/rails_root/public/images/service_icons/source/metacafe.png +0 -0
  724. data/test/rails_root/public/images/service_icons/source/metacafe.psd +0 -0
  725. data/test/rails_root/public/images/service_icons/source/mixx.png +0 -0
  726. data/test/rails_root/public/images/service_icons/source/myspace.png +0 -0
  727. data/test/rails_root/public/images/service_icons/source/netflix.png +0 -0
  728. data/test/rails_root/public/images/service_icons/source/netvibes.png +0 -0
  729. data/test/rails_root/public/images/service_icons/source/newsvine.png +0 -0
  730. data/test/rails_root/public/images/service_icons/source/oai.png +0 -0
  731. data/test/rails_root/public/images/service_icons/source/odeo.png +0 -0
  732. data/test/rails_root/public/images/service_icons/source/opml.png +0 -0
  733. data/test/rails_root/public/images/service_icons/source/pandora.png +0 -0
  734. data/test/rails_root/public/images/service_icons/source/photobucket.png +0 -0
  735. data/test/rails_root/public/images/service_icons/source/picasa.png +0 -0
  736. data/test/rails_root/public/images/service_icons/source/polyvore.png +0 -0
  737. data/test/rails_root/public/images/service_icons/source/pownce.png +0 -0
  738. data/test/rails_root/public/images/service_icons/source/reddit.png +0 -0
  739. data/test/rails_root/public/images/service_icons/source/simpy.png +0 -0
  740. data/test/rails_root/public/images/service_icons/source/smugmug.png +0 -0
  741. data/test/rails_root/public/images/service_icons/source/stumbleupon.png +0 -0
  742. data/test/rails_root/public/images/service_icons/source/tag.png +0 -0
  743. data/test/rails_root/public/images/service_icons/source/technorati.png +0 -0
  744. data/test/rails_root/public/images/service_icons/source/template.png +0 -0
  745. data/test/rails_root/public/images/service_icons/source/tumblr.png +0 -0
  746. data/test/rails_root/public/images/service_icons/source/twine.png +0 -0
  747. data/test/rails_root/public/images/service_icons/source/twine.psd +0 -0
  748. data/test/rails_root/public/images/service_icons/source/twitter.png +0 -0
  749. data/test/rails_root/public/images/service_icons/source/vimeo.png +0 -0
  750. data/test/rails_root/public/images/service_icons/source/webshots.png +0 -0
  751. data/test/rails_root/public/images/service_icons/source/wordpress.png +0 -0
  752. data/test/rails_root/public/images/service_icons/source/xanga.png +0 -0
  753. data/test/rails_root/public/images/service_icons/source/yahoo.png +0 -0
  754. data/test/rails_root/public/images/service_icons/source/yelp.png +0 -0
  755. data/test/rails_root/public/images/service_icons/source/youtube.png +0 -0
  756. data/test/rails_root/public/images/service_icons/source/zooomr.png +0 -0
  757. data/test/rails_root/public/images/service_icons/source/zotero.png +0 -0
  758. data/test/rails_root/public/javascripts/jquery/colorpicker.js +450 -0
  759. data/test/rails_root/public/javascripts/jquery/jquery.autocomplete.js.readme +6 -0
  760. data/test/rails_root/public/javascripts/jquery/jquery.autocomplete.min.js +15 -0
  761. data/test/rails_root/public/javascripts/jquery/jquery.autocomplete.pack.js +767 -0
  762. data/test/rails_root/public/javascripts/jquery/jquery.easing.js +1 -0
  763. data/test/rails_root/public/javascripts/jquery/jquery.fancybox.js +16 -0
  764. data/test/rails_root/public/javascripts/jquery/jquery.metadata.min.js +13 -0
  765. data/test/rails_root/public/javascripts/jquery/jquery.queryString.js +33 -0
  766. data/test/rails_root/public/javascripts/jquery/jquery.swapimage.js +66 -0
  767. data/test/rails_root/public/javascripts/jquery/jquery.swapimage.min.js +11 -0
  768. data/test/rails_root/public/javascripts/jquery/jrails.js +1 -0
  769. data/test/rails_root/public/javascripts/muck.js +51 -18
  770. data/test/rails_root/public/javascripts/muck_time/en.js +53 -0
  771. data/test/rails_root/public/javascripts/tree.js +107 -0
  772. data/test/rails_root/public/stylesheets/jquery/jquery.autocomplete.css +15 -0
  773. data/test/rails_root/public/stylesheets/jquery/jquery.fancybox.css +38 -0
  774. data/test/rails_root/public/stylesheets/styles.css +7 -22
  775. metadata +745 -2
@@ -0,0 +1,450 @@
1
+ /**
2
+ *
3
+ * Color picker
4
+ * Author: Stefan Petre www.eyecon.ro
5
+ *
6
+ */
7
+ (function ($) {
8
+ var ColorPicker = function () {
9
+ var
10
+ ids = {},
11
+ inAction,
12
+ charMin = 65,
13
+ visible,
14
+ tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',
15
+ defaults = {
16
+ eventName: 'click',
17
+ onShow: function () {},
18
+ onBeforeShow: function(){},
19
+ onHide: function () {},
20
+ onChange: function () {},
21
+ onSubmit: function () {},
22
+ color: 'ff0000',
23
+ livePreview: true,
24
+ flat: false
25
+ },
26
+ fillRGBFields = function (hsb, cal) {
27
+ var rgb = HSBToRGB(hsb);
28
+ $(cal).data('colorpicker').fields
29
+ .eq(1).val(rgb.r).end()
30
+ .eq(2).val(rgb.g).end()
31
+ .eq(3).val(rgb.b).end();
32
+ },
33
+ fillHSBFields = function (hsb, cal) {
34
+ $(cal).data('colorpicker').fields
35
+ .eq(4).val(hsb.h).end()
36
+ .eq(5).val(hsb.s).end()
37
+ .eq(6).val(hsb.b).end();
38
+ },
39
+ fillHexFields = function (hsb, cal) {
40
+ $(cal).data('colorpicker').fields
41
+ .eq(0).val(HSBToHex(hsb)).end();
42
+ },
43
+ setSelector = function (hsb, cal) {
44
+ $(cal).data('colorpicker').selector.css('backgroundColor', '#' + HSBToHex({h: hsb.h, s: 100, b: 100}));
45
+ $(cal).data('colorpicker').selectorIndic.css({
46
+ left: parseInt(150 * hsb.s/100, 10),
47
+ top: parseInt(150 * (100-hsb.b)/100, 10)
48
+ });
49
+ },
50
+ setHue = function (hsb, cal) {
51
+ $(cal).data('colorpicker').hue.css('top', parseInt(150 - 150 * hsb.h/360, 10));
52
+ },
53
+ setCurrentColor = function (hsb, cal) {
54
+ $(cal).data('colorpicker').currentColor.css('backgroundColor', '#' + HSBToHex(hsb));
55
+ },
56
+ setNewColor = function (hsb, cal) {
57
+ $(cal).data('colorpicker').newColor.css('backgroundColor', '#' + HSBToHex(hsb));
58
+ },
59
+ keyDown = function (ev) {
60
+ var pressedKey = ev.charCode || ev.keyCode || -1;
61
+ if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) {
62
+ return false;
63
+ }
64
+ var cal = $(this).parent().parent();
65
+ if (cal.data('colorpicker').livePreview === true) {
66
+ change.apply(this);
67
+ }
68
+ },
69
+ change = function (ev) {
70
+ var cal = $(this).parent().parent(), col;
71
+ if (this.parentNode.className.indexOf('_hex') > 0) {
72
+ cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value));
73
+ } else if (this.parentNode.className.indexOf('_hsb') > 0) {
74
+ cal.data('colorpicker').color = col = fixHSB({
75
+ h: parseInt(cal.data('colorpicker').fields.eq(4).val(), 10),
76
+ s: parseInt(cal.data('colorpicker').fields.eq(5).val(), 10),
77
+ b: parseInt(cal.data('colorpicker').fields.eq(6).val(), 10)
78
+ });
79
+ } else {
80
+ cal.data('colorpicker').color = col = RGBToHSB(fixRGB({
81
+ r: parseInt(cal.data('colorpicker').fields.eq(1).val(), 10),
82
+ g: parseInt(cal.data('colorpicker').fields.eq(2).val(), 10),
83
+ b: parseInt(cal.data('colorpicker').fields.eq(3).val(), 10)
84
+ }));
85
+ }
86
+ if (ev) {
87
+ fillRGBFields(col, cal.get(0));
88
+ fillHexFields(col, cal.get(0));
89
+ fillHSBFields(col, cal.get(0));
90
+ }
91
+ setSelector(col, cal.get(0));
92
+ setHue(col, cal.get(0));
93
+ setNewColor(col, cal.get(0));
94
+ cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
95
+ },
96
+ blur = function (ev) {
97
+ var cal = $(this).parent().parent();
98
+ cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus')
99
+ },
100
+ focus = function () {
101
+ charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65;
102
+ $(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');
103
+ $(this).parent().addClass('colorpicker_focus');
104
+ },
105
+ downIncrement = function (ev) {
106
+ var field = $(this).parent().find('input').focus();
107
+ var current = {
108
+ el: $(this).parent().addClass('colorpicker_slider'),
109
+ max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255),
110
+ y: ev.pageY,
111
+ field: field,
112
+ val: parseInt(field.val(), 10),
113
+ preview: $(this).parent().parent().data('colorpicker').livePreview
114
+ };
115
+ $(document).bind('mouseup', current, upIncrement);
116
+ $(document).bind('mousemove', current, moveIncrement);
117
+ },
118
+ moveIncrement = function (ev) {
119
+ ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10))));
120
+ if (ev.data.preview) {
121
+ change.apply(ev.data.field.get(0), [true]);
122
+ }
123
+ return false;
124
+ },
125
+ upIncrement = function (ev) {
126
+ change.apply(ev.data.field.get(0), [true]);
127
+ ev.data.el.removeClass('colorpicker_slider').find('input').focus();
128
+ $(document).unbind('mouseup', upIncrement);
129
+ $(document).unbind('mousemove', moveIncrement);
130
+ return false;
131
+ },
132
+ downHue = function (ev) {
133
+ var current = {
134
+ cal: $(this).parent(),
135
+ y: $(this).offset().top
136
+ };
137
+ current.preview = current.cal.data('colorpicker').livePreview;
138
+ $(document).bind('mouseup', current, upHue);
139
+ $(document).bind('mousemove', current, moveHue);
140
+ },
141
+ moveHue = function (ev) {
142
+ change.apply(
143
+ ev.data.cal.data('colorpicker')
144
+ .fields
145
+ .eq(4)
146
+ .val(parseInt(360*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.y))))/150, 10))
147
+ .get(0),
148
+ [ev.data.preview]
149
+ );
150
+ return false;
151
+ },
152
+ upHue = function (ev) {
153
+ fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
154
+ fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
155
+ $(document).unbind('mouseup', upHue);
156
+ $(document).unbind('mousemove', moveHue);
157
+ return false;
158
+ },
159
+ downSelector = function (ev) {
160
+ var current = {
161
+ cal: $(this).parent(),
162
+ pos: $(this).offset()
163
+ };
164
+ current.preview = current.cal.data('colorpicker').livePreview;
165
+ $(document).bind('mouseup', current, upSelector);
166
+ $(document).bind('mousemove', current, moveSelector);
167
+ },
168
+ moveSelector = function (ev) {
169
+ change.apply(
170
+ ev.data.cal.data('colorpicker')
171
+ .fields
172
+ .eq(6)
173
+ .val(parseInt(100*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.pos.top))))/150, 10))
174
+ .end()
175
+ .eq(5)
176
+ .val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX - ev.data.pos.left))))/150, 10))
177
+ .get(0),
178
+ [ev.data.preview]
179
+ );
180
+ return false;
181
+ },
182
+ upSelector = function (ev) {
183
+ fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
184
+ fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
185
+ $(document).unbind('mouseup', upSelector);
186
+ $(document).unbind('mousemove', moveSelector);
187
+ return false;
188
+ },
189
+ enterSubmit = function (ev) {
190
+ $(this).addClass('colorpicker_focus');
191
+ },
192
+ leaveSubmit = function (ev) {
193
+ $(this).removeClass('colorpicker_focus');
194
+ },
195
+ clickSubmit = function (ev) {
196
+ var cal = $(this).parent();
197
+ var col = cal.data('colorpicker').color;
198
+ cal.data('colorpicker').origColor = col;
199
+ setCurrentColor(col, cal.get(0));
200
+ cal.data('colorpicker').onSubmit(col, HSBToHex(col), HSBToRGB(col));
201
+ },
202
+ show = function (ev) {
203
+ var cal = $('#' + $(this).data('colorpickerId'));
204
+ cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]);
205
+ var pos = $(this).offset();
206
+ var viewPort = getViewport();
207
+ var top = pos.top + this.offsetHeight;
208
+ var left = pos.left;
209
+ if (top + 176 > viewPort.t + viewPort.h) {
210
+ top -= this.offsetHeight + 176;
211
+ }
212
+ if (left + 356 > viewPort.l + viewPort.w) {
213
+ left -= 356;
214
+ }
215
+ cal.css({left: left + 'px', top: top + 'px'});
216
+ if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) {
217
+ cal.show();
218
+ }
219
+ $(document).bind('mousedown', {cal: cal}, hide);
220
+ return false;
221
+ },
222
+ hide = function (ev) {
223
+ if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) {
224
+ if (ev.data.cal.data('colorpicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) {
225
+ ev.data.cal.hide();
226
+ }
227
+ $(document).unbind('mousedown', hide);
228
+ }
229
+ },
230
+ isChildOf = function(parentEl, el, container) {
231
+ if (parentEl == el) {
232
+ return true;
233
+ }
234
+ if (parentEl.contains) {
235
+ return parentEl.contains(el);
236
+ }
237
+ if ( parentEl.compareDocumentPosition ) {
238
+ return !!(parentEl.compareDocumentPosition(el) & 16);
239
+ }
240
+ var prEl = el.parentNode;
241
+ while(prEl && prEl != container) {
242
+ if (prEl == parentEl)
243
+ return true;
244
+ prEl = prEl.parentNode;
245
+ }
246
+ return false;
247
+ },
248
+ getViewport = function () {
249
+ var m = document.compatMode == 'CSS1Compat';
250
+ return {
251
+ l : window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft),
252
+ t : window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop),
253
+ w : window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth),
254
+ h : window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight)
255
+ };
256
+ },
257
+ fixHSB = function (hsb) {
258
+ return {
259
+ h: Math.min(360, Math.max(0, hsb.h)),
260
+ s: Math.min(100, Math.max(0, hsb.s)),
261
+ b: Math.min(100, Math.max(0, hsb.b))
262
+ };
263
+ },
264
+ fixRGB = function (rgb) {
265
+ return {
266
+ r: Math.min(255, Math.max(0, rgb.r)),
267
+ g: Math.min(255, Math.max(0, rgb.g)),
268
+ b: Math.min(255, Math.max(0, rgb.b))
269
+ };
270
+ },
271
+ fixHex = function (hex) {
272
+ var len = 6 - hex.length;
273
+ if (len > 0) {
274
+ var o = [];
275
+ for (var i=0; i<len; i++) {
276
+ o.push('0');
277
+ }
278
+ o.push(hex);
279
+ hex = o.join('');
280
+ }
281
+ return hex;
282
+ },
283
+ HexToRGB = function (hex) {
284
+ var hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16);
285
+ return {r: hex >> 16, g: (hex & 0x00FF00) >> 8, b: (hex & 0x0000FF)};
286
+ },
287
+ HexToHSB = function (hex) {
288
+ return RGBToHSB(HexToRGB(hex));
289
+ },
290
+ RGBToHSB = function (rgb) {
291
+ var hsb = {};
292
+ hsb.b = Math.max(Math.max(rgb.r,rgb.g),rgb.b);
293
+ hsb.s = (hsb.b <= 0) ? 0 : Math.round(100*(hsb.b - Math.min(Math.min(rgb.r,rgb.g),rgb.b))/hsb.b);
294
+ hsb.b = Math.round((hsb.b /255)*100);
295
+ if((rgb.r==rgb.g) && (rgb.g==rgb.b)) hsb.h = 0;
296
+ else if(rgb.r>=rgb.g && rgb.g>=rgb.b) hsb.h = 60*(rgb.g-rgb.b)/(rgb.r-rgb.b);
297
+ else if(rgb.g>=rgb.r && rgb.r>=rgb.b) hsb.h = 60 + 60*(rgb.g-rgb.r)/(rgb.g-rgb.b);
298
+ else if(rgb.g>=rgb.b && rgb.b>=rgb.r) hsb.h = 120 + 60*(rgb.b-rgb.r)/(rgb.g-rgb.r);
299
+ else if(rgb.b>=rgb.g && rgb.g>=rgb.r) hsb.h = 180 + 60*(rgb.b-rgb.g)/(rgb.b-rgb.r);
300
+ else if(rgb.b>=rgb.r && rgb.r>=rgb.g) hsb.h = 240 + 60*(rgb.r-rgb.g)/(rgb.b-rgb.g);
301
+ else if(rgb.r>=rgb.b && rgb.b>=rgb.g) hsb.h = 300 + 60*(rgb.r-rgb.b)/(rgb.r-rgb.g);
302
+ else hsb.h = 0;
303
+ hsb.h = Math.round(hsb.h);
304
+ return hsb;
305
+ },
306
+ HSBToRGB = function (hsb) {
307
+ var rgb = {};
308
+ var h = Math.round(hsb.h);
309
+ var s = Math.round(hsb.s*255/100);
310
+ var v = Math.round(hsb.b*255/100);
311
+ if(s == 0) {
312
+ rgb.r = rgb.g = rgb.b = v;
313
+ } else {
314
+ var t1 = v;
315
+ var t2 = (255-s)*v/255;
316
+ var t3 = (t1-t2)*(h%60)/60;
317
+ if(h==360) h = 0;
318
+ if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3}
319
+ else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3}
320
+ else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3}
321
+ else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3}
322
+ else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3}
323
+ else if(h<360) {rgb.r=t1; rgb.g=t2; rgb.b=t1-t3}
324
+ else {rgb.r=0; rgb.g=0; rgb.b=0}
325
+ }
326
+ return {r:Math.round(rgb.r), g:Math.round(rgb.g), b:Math.round(rgb.b)};
327
+ },
328
+ RGBToHex = function (rgb) {
329
+ var hex = [
330
+ rgb.r.toString(16),
331
+ rgb.g.toString(16),
332
+ rgb.b.toString(16)
333
+ ];
334
+ $.each(hex, function (nr, val) {
335
+ if (val.length == 1) {
336
+ hex[nr] = '0' + val;
337
+ }
338
+ });
339
+ return hex.join('');
340
+ },
341
+ HSBToHex = function (hsb) {
342
+ return RGBToHex(HSBToRGB(hsb));
343
+ };
344
+ return {
345
+ init: function (options) {
346
+ options = $.extend({}, defaults, options||{});
347
+ if (typeof options.color == 'string') {
348
+ options.color = HexToHSB(options.color);
349
+ } else if (options.color.r != undefined && options.color.g != undefined && options.color.b != undefined) {
350
+ options.color = RGBToHSB(options.color);
351
+ } else if (options.color.h != undefined && options.color.s != undefined && options.color.b != undefined) {
352
+ options.color = fixHSB(options.color);
353
+ } else {
354
+ return this;
355
+ }
356
+ options.origColor = options.color;
357
+ return this.each(function () {
358
+ if (!$(this).data('colorpickerId')) {
359
+ var id = 'collorpicker_' + parseInt(Math.random() * 1000);
360
+ $(this).data('colorpickerId', id);
361
+ var cal = $(tpl).attr('id', id);
362
+ if (options.flat) {
363
+ cal.appendTo(this).show();
364
+ } else {
365
+ cal.appendTo(document.body);
366
+ }
367
+ options.fields = cal
368
+ .find('input')
369
+ .bind('keydown', keyDown)
370
+ .bind('change', change)
371
+ .bind('blur', blur)
372
+ .bind('focus', focus);
373
+ cal.find('span').bind('mousedown', downIncrement);
374
+ options.selector = cal.find('div.colorpicker_color').bind('mousedown', downSelector);
375
+ options.selectorIndic = options.selector.find('div div');
376
+ options.hue = cal.find('div.colorpicker_hue div');
377
+ cal.find('div.colorpicker_hue').bind('mousedown', downHue);
378
+ options.newColor = cal.find('div.colorpicker_new_color');
379
+ options.currentColor = cal.find('div.colorpicker_current_color');
380
+ cal.data('colorpicker', options);
381
+ cal.find('div.colorpicker_submit')
382
+ .bind('mouseenter', enterSubmit)
383
+ .bind('mouseleave', leaveSubmit)
384
+ .bind('click', clickSubmit);
385
+ fillRGBFields(options.color, cal.get(0));
386
+ fillHSBFields(options.color, cal.get(0));
387
+ fillHexFields(options.color, cal.get(0));
388
+ setHue(options.color, cal.get(0));
389
+ setSelector(options.color, cal.get(0));
390
+ setCurrentColor(options.color, cal.get(0));
391
+ setNewColor(options.color, cal.get(0));
392
+ if (options.flat) {
393
+ cal.css({
394
+ position: 'relative',
395
+ display: 'block'
396
+ });
397
+ } else {
398
+ $(this).bind(options.eventName, show);
399
+ }
400
+ }
401
+ });
402
+ },
403
+ showPicker: function() {
404
+ return this.each( function () {
405
+ if ($(this).data('colorpickerId')) {
406
+ show.apply(this);
407
+ }
408
+ });
409
+ },
410
+ hidePicker: function() {
411
+ return this.each( function () {
412
+ if ($(this).data('colorpickerId')) {
413
+ $('#' + $(this).data('colorpickerId')).hide();
414
+ }
415
+ });
416
+ },
417
+ setColor: function(col) {
418
+ if (typeof col == 'string') {
419
+ col = HexToHSB(col);
420
+ } else if (col.r != undefined && col.g != undefined && col.b != undefined) {
421
+ col = RGBToHSB(col);
422
+ } else if (col.h != undefined && col.s != undefined && col.b != undefined) {
423
+ col = fixHSB(col);
424
+ } else {
425
+ return this;
426
+ }
427
+ return this.each(function(){
428
+ if ($(this).data('colorpickerId')) {
429
+ var cal = $('#' + $(this).data('colorpickerId'));
430
+ cal.data('colorpicker').color = col;
431
+ cal.data('colorpicker').origColor = col;
432
+ fillRGBFields(col, cal.get(0));
433
+ fillHSBFields(col, cal.get(0));
434
+ fillHexFields(col, cal.get(0));
435
+ setHue(col, cal.get(0));
436
+ setSelector(col, cal.get(0));
437
+ setCurrentColor(col, cal.get(0));
438
+ setNewColor(col, cal.get(0));
439
+ }
440
+ });
441
+ }
442
+ };
443
+ }();
444
+ $.fn.extend({
445
+ ColorPicker: ColorPicker.init,
446
+ ColorPickerHide: ColorPicker.hide,
447
+ ColorPickerShow: ColorPicker.show,
448
+ ColorPickerSetColor: ColorPicker.setColor
449
+ });
450
+ })(jQuery)