meme_captain 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/ChangeLog +4 -0
  2. data/README.md +0 -45
  3. data/lib/meme_captain.rb +0 -6
  4. data/lib/meme_captain/caption.rb +6 -4
  5. data/lib/meme_captain/caption_choice.rb +3 -1
  6. data/lib/meme_captain/image_list.rb +0 -5
  7. data/lib/meme_captain/text_pos.rb +8 -6
  8. data/lib/meme_captain/version.rb +1 -1
  9. data/meme_captain.gemspec +5 -18
  10. metadata +2 -181
  11. data/config.ru +0 -50
  12. data/doc/lightweight_front_end.md +0 -64
  13. data/doc/setup.md +0 -13
  14. data/lib/meme_captain/image_list/cache.rb +0 -49
  15. data/lib/meme_captain/image_list/fetch.rb +0 -28
  16. data/lib/meme_captain/image_list/fetch_error.rb +0 -17
  17. data/lib/meme_captain/image_list/source_image.rb +0 -30
  18. data/lib/meme_captain/meme_data.rb +0 -33
  19. data/lib/meme_captain/norm_params.rb +0 -92
  20. data/lib/meme_captain/pretty_format.rb +0 -12
  21. data/lib/meme_captain/server.rb +0 -303
  22. data/lib/meme_captain/source_fetch_fail.rb +0 -28
  23. data/lib/meme_captain/upload.rb +0 -30
  24. data/public/css/screen.css +0 -80
  25. data/public/favicon.ico +0 -0
  26. data/public/js/fabric.min.js +0 -4
  27. data/public/js/jquery-1.7.2.min.js +0 -4
  28. data/public/js/meme_captain.js +0 -391
  29. data/public/source_images.json +0 -234
  30. data/public/thumbs.jpg +0 -0
  31. data/public/thumbs_1330486916.jpg +0 -0
  32. data/public/thumbs_1333591668.jpg +0 -0
  33. data/public/thumbs_1334189407.jpg +0 -0
  34. data/public/thumbs_1334973608.jpg +0 -0
  35. data/public/thumbs_1336623277.jpg +0 -0
  36. data/public/thumbs_1336624196.jpg +0 -0
  37. data/public/thumbs_1339811279.jpg +0 -0
  38. data/public/tmp/.gitignore +0 -0
  39. data/script/thumb_sprites.rb +0 -76
  40. data/spec/image_list/fetch_spec.rb +0 -33
  41. data/spec/norm_params_spec.rb +0 -223
  42. data/spec/pretty_format_spec.rb +0 -9
  43. data/views/404.erb +0 -17
  44. data/views/index.erb +0 -130
  45. data/watermark.png +0 -0
@@ -1,9 +0,0 @@
1
- require 'meme_captain'
2
-
3
- describe MemeCaptain, '.pretty_format' do
4
-
5
- it 'should format a hash like pp would' do
6
- MemeCaptain.pretty_format(:a => 1).should == "{:a=>1}\n"
7
- end
8
-
9
- end
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>Meme Captain meme generator - Not Found</title>
7
- </head>
8
-
9
- <body>
10
-
11
- <h1>Not Found</h1>
12
-
13
- <p><a href="<%= h @root_url %>"><%= h @root_url %></a></p>
14
-
15
- </body>
16
-
17
- </html>
@@ -1,130 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en" xmlns:fb="https://www.facebook.com/2008/fbml">
3
-
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>Meme Captain meme generator</title>
7
- <link rel="stylesheet" href="css/screen.css" />
8
- </head>
9
-
10
- <body>
11
-
12
- <a href="<%= h @root_url %>"><img id="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcwAAAAyAgMAAACsWgPIAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wBHwQoJY1iyrwAAAAJUExURQAAAAAAAP///4Pdz9IAAAABdFJOUwBA5thmAAAAAWJLR0QB/wIt3gAAAHpJREFUWIXt1zESgCAMRNE03s9mG+9ns6e0EaKCqDOWf4sUJOHREvqciOn7Us0cEZiYmJhnc7HtVbJtS5LsVRo09DScZzmSG5iYmJit2RTVlduGquS920hFvxRMTEzMRzOv6TfKheMX9ThMTEzMnvlj5ld/S0xMTMxjNoGjc3pdi6L4AAAAAElFTkSuQmCC" alt="Meme Captain" width="460" height="50" /></a>
13
-
14
- <div id="chooseSourceImage">
15
-
16
- <p>
17
- Enter an image URL, upload an image, click a thumbnail or search for an image
18
- then click its thumbnail.
19
- </p>
20
-
21
- <p>
22
- <label for="u">Source image URL: </label>
23
- <input type="text" id="u" name="u" size="64" value="<%= h @u %>" />
24
- <form action="upload" method="post" enctype="multipart/form-data">
25
- <input type="file" id="upload" name="upload" />
26
- <input type="submit" id="uploadSubmit" value="Upload" disabled="disabled" />
27
- </form>
28
- </p>
29
-
30
- <div id="localSourceImages"></div>
31
-
32
- <p>
33
- <input type="text" id="imageSearch" />
34
- <input type="button" id="imageSearchButton" value="Image Search" /> powered by Google
35
- </p>
36
-
37
- <div id="imageSearchResults"></div>
38
-
39
- </div>
40
-
41
- <div id="chooseText">
42
-
43
- <p>
44
- <label for="t1">Text 1: </label>
45
- <input type="text" id="t1" name="t1" size="64" value="<%= h @t1 %>" />
46
- </p>
47
-
48
- <p>
49
- <label for="t2">Text 2: </label>
50
- <input type="text" id="t2" name="t2" size="64" value="<%= h @t2 %>" />
51
- </p>
52
-
53
- </div>
54
-
55
- <div id="positionText">
56
-
57
- <p class="noCanvas" style="display : none;">
58
- If you were using a browser with canvas support such as Chrome, Firefox,
59
- Safari or Internet Explorer 9 you could position the text on the image here.
60
- </p>
61
-
62
- <p class="hasCanvas">
63
- <input type="button" id="positionTextButton" value="Position Text" />
64
- Optionally set the position and size of the text on the image.
65
- </p>
66
-
67
- <table id="positionTable">
68
-
69
- <tr>
70
-
71
- <td><label for="t1x">Text 1 X: </label></td>
72
- <td><input type="text" id="t1x" name="t1x" size="4" value="<%= h @t1x %>" /></td>
73
-
74
- <td><label for="t1y">Y: </label></td>
75
- <td><input type="text" id="t1y" name="t1y" size="4" value="<%= h @t1y %>" /></td>
76
-
77
- <td><label for="t1w">Width: </label></td>
78
- <td><input type="text" id="t1w" name="t1w" size="4" value="<%= h @t1w %>" /></td>
79
-
80
- <td><label for="t1h">Height: </label></td>
81
- <td><input type="text" id="t1h" name="t1h" size="4" value="<%= h @t1h %>" /></td>
82
-
83
- </tr>
84
-
85
- <tr>
86
-
87
- <td><label for="t2x">Text 2 X: </label></td>
88
- <td><input type="text" id="t2x" name="t2x" size="4" value="<%= h @t2x %>" /></td>
89
-
90
- <td><label for="t2y">Y: </label></td>
91
- <td><input type="text" id="t2y" name="t2y" size="4" value="<%= h @t2y %>" /></td>
92
-
93
- <td><label for="t2w">Width: </label></td>
94
- <td><input type="text" id="t2w" name="t2w" size="4" value="<%= h @t2w %>" /></td>
95
-
96
- <td><label for="t2h">Height: </label></td>
97
- <td><input type="text" id="t2h" name="t2h" size="4" value="<%= h @t2h %>" /></td>
98
-
99
- </tr>
100
-
101
- </table>
102
-
103
- <div id="positionTextCanvasDiv"></div>
104
-
105
- </div>
106
-
107
- <div id="createdImageContainer">
108
-
109
- <p>
110
- <input type="button" id="createImageButton" value="Create Image" />
111
- </p>
112
-
113
- <div id="createdImage"></div>
114
-
115
- </div>
116
-
117
- <p>
118
- Contact: Matthew M. Boedicker <a href="mailto:matthewm@boedicker.org">matthewm@boedicker.org</a> |
119
- <a href="http://twitter.com/memecaptain">@memecaptain</a>
120
- </p>
121
-
122
- <p><a href="https://github.com/mmb/meme_captain">source code and API</a></p>
123
-
124
- <script src="js/jquery-1.7.2.min.js"></script>
125
- <script src="js/fabric.min.js"></script>
126
- <script src="js/meme_captain.js"></script>
127
-
128
- </body>
129
-
130
- </html>
Binary file