nbio-csshttprequest 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ # CSSHttpRequest is cross-domain AJAX using CSS.
2
+
3
+ ### Please see the latest info at [http://nb.io/hacks/csshttprequest/](http://nb.io/hacks/csshttprequest/)
4
+
5
+ Like JavaScript includes, this works because CSS is not subject to the
6
+ same-origin policy that affects XMLHttpRequest. CSSHttpRequest functions
7
+ similarly to JSONP, and is limited to making GET requests. Unlike JSONP,
8
+ untrusted third-party JavaScript cannot execute in the context of the calling
9
+ page.
10
+
11
+ The transport encodes the payload in the background-image property:
12
+
13
+ #c0 { background: url(data:,Hello%20World!); }
14
+
15
+ This version has been tested in cross-domain contexts in Safari 3.x, Firefox 3.x
16
+ and Internet Explorer 6.
17
+
@@ -0,0 +1,4 @@
1
+ ---
2
+ :minor: 0
3
+ :patch: 2
4
+ :major: 1
@@ -0,0 +1,33 @@
1
+ # CSSHTTPRequest Ruby Encoder
2
+ #
3
+ # Author: Cameron Walters <cameron@nb.io>
4
+ # License: Apache License 2.0 <http://www.apache.org/licenses/LICENSE-2.0.html>
5
+ # Copyright (c) 2008, Cameron Walters
6
+
7
+ require "erb"
8
+
9
+ class CSSHTTPRequest
10
+ PREFIX = "data:,".freeze
11
+ LENGTH = (2000 - PREFIX.size).freeze # Internet Explorer 2KB URI limit
12
+
13
+ def self.encode(str)
14
+ quoted = ERB::Util.url_encode(str)
15
+ slice_num = 0
16
+ last_start = 0
17
+ chunks = (quoted.length.to_f / LENGTH).ceil
18
+ STDERR << chunks
19
+ output = ""
20
+ chunks.times do |n|
21
+ finish = last_start + LENGTH
22
+ output += "#c%d{background:url(%s%s);}\n" % [slice_num, PREFIX, quoted[last_start...finish]]
23
+ slice_num += 1
24
+ last_start = finish
25
+ end
26
+ output
27
+ end
28
+ end
29
+
30
+ if __FILE__ == $PROGRAM_NAME
31
+
32
+ puts CSSHTTPRequest.encode(STDIN.read)
33
+ end
@@ -0,0 +1,7 @@
1
+ require File.dirname(__FILE__) + '/test_helper'
2
+
3
+ class TryJewelerTest < Test::Unit::TestCase
4
+ should "use the python-based tests, they run all inputs through all implementations" do
5
+ flunk "hey buddy, you should probably really run the python tests"
6
+ end
7
+ end
@@ -0,0 +1 @@
1
+ Hello World!
@@ -0,0 +1,229 @@
1
+ {
2
+ "title": "Recent Uploads tagged favorite",
3
+ "link": "http://www.flickr.com/photos/tags/favorite/",
4
+ "description": "",
5
+ "modified": "2008-12-23T01:39:21Z",
6
+ "generator": "http://www.flickr.com/",
7
+ "items": [
8
+ {
9
+ "title": "nyhavn",
10
+ "link": "http://www.flickr.com/photos/mcm/3129802228/",
11
+ "media": {"m":"http://farm4.static.flickr.com/3130/3129802228_4509c87972_m.jpg"},
12
+ "date_taken": "2008-12-05T22:13:31-08:00",
13
+ "description": "<p><a href=\"http://www.flickr.com/people/mcm/\">mcmCPH<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/mcm/3129802228/\" title=\"nyhavn\"><img src=\"http://farm4.static.flickr.com/3130/3129802228_4509c87972_m.jpg\" width=\"240\" height=\"180\" alt=\"nyhavn\" /><\/a><\/p> ",
14
+ "published": "2008-12-23T01:39:21Z",
15
+ "author": "nobody@flickr.com (mcmCPH)",
16
+ "author_id": "47341069@N00",
17
+ "tags": "favorite copenhagen denmark nyhavn"
18
+ },
19
+ {
20
+ "title": "denmark - me and malcolm ice skating in copenhagen",
21
+ "link": "http://www.flickr.com/photos/mcm/3129782702/",
22
+ "media": {"m":"http://farm4.static.flickr.com/3229/3129782702_4da69b2b74_m.jpg"},
23
+ "date_taken": "2008-09-29T11:31:29-08:00",
24
+ "description": "<p><a href=\"http://www.flickr.com/people/mcm/\">mcmCPH<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/mcm/3129782702/\" title=\"denmark - me and malcolm ice skating in copenhagen\"><img src=\"http://farm4.static.flickr.com/3229/3129782702_4da69b2b74_m.jpg\" width=\"181\" height=\"240\" alt=\"denmark - me and malcolm ice skating in copenhagen\" /><\/a><\/p> ",
25
+ "published": "2008-12-23T01:29:55Z",
26
+ "author": "nobody@flickr.com (mcmCPH)",
27
+ "author_id": "47341069@N00",
28
+ "tags": "favorite copenhagen denmark michael malcolm frederiksberg"
29
+ },
30
+ {
31
+ "title": "farewells2007",
32
+ "link": "http://www.flickr.com/photos/mcm/3128878401/",
33
+ "media": {"m":"http://farm4.static.flickr.com/3205/3128878401_bcdd01d3c7_m.jpg"},
34
+ "date_taken": "2008-12-05T22:15:17-08:00",
35
+ "description": "<p><a href=\"http://www.flickr.com/people/mcm/\">mcmCPH<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/mcm/3128878401/\" title=\"farewells2007\"><img src=\"http://farm4.static.flickr.com/3205/3128878401_bcdd01d3c7_m.jpg\" width=\"180\" height=\"240\" alt=\"farewells2007\" /><\/a><\/p> <p>a collage of farewells from when we left DK, July 2007<\/p>",
36
+ "published": "2008-12-23T00:52:17Z",
37
+ "author": "nobody@flickr.com (mcmCPH)",
38
+ "author_id": "47341069@N00",
39
+ "tags": "friends favorite denmark"
40
+ },
41
+ {
42
+ "title": "Choices.",
43
+ "link": "http://www.flickr.com/photos/marvelous_nature/3129615474/",
44
+ "media": {"m":"http://farm4.static.flickr.com/3120/3129615474_d9f7a3d892_m.jpg"},
45
+ "date_taken": "2008-12-22T17:04:41-08:00",
46
+ "description": "<p><a href=\"http://www.flickr.com/people/marvelous_nature/\">marvelous_nature<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/marvelous_nature/3129615474/\" title=\"Choices.\"><img src=\"http://farm4.static.flickr.com/3120/3129615474_d9f7a3d892_m.jpg\" width=\"240\" height=\"180\" alt=\"Choices.\" /><\/a><\/p> <p>&quot;Buddy the Elf! What\'s your favorite color?&quot; <br /> <br /> Choose one! :)<\/p>",
47
+ "published": "2008-12-23T00:04:41Z",
48
+ "author": "nobody@flickr.com (marvelous_nature)",
49
+ "author_id": "27243539@N06",
50
+ "tags": "favorite color green thread sewing shades choices"
51
+ },
52
+ {
53
+ "title": "denmark - first day at bornehave on christiania - susan and malcolm",
54
+ "link": "http://www.flickr.com/photos/mcm/3128743785/",
55
+ "media": {"m":"http://farm4.static.flickr.com/3255/3128743785_281a363c36_m.jpg"},
56
+ "date_taken": "2008-12-22T15:42:38-08:00",
57
+ "description": "<p><a href=\"http://www.flickr.com/people/mcm/\">mcmCPH<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/mcm/3128743785/\" title=\"denmark - first day at bornehave on christiania - susan and malcolm\"><img src=\"http://farm4.static.flickr.com/3255/3128743785_281a363c36_m.jpg\" width=\"226\" height=\"240\" alt=\"denmark - first day at bornehave on christiania - susan and malcolm\" /><\/a><\/p> ",
58
+ "published": "2008-12-22T23:42:38Z",
59
+ "author": "nobody@flickr.com (mcmCPH)",
60
+ "author_id": "47341069@N00",
61
+ "tags": "favorite denmark malcolm susan christiania børnehave birkerød"
62
+ },
63
+ {
64
+ "title": "Panorama desde la Alberca Caesar\'s",
65
+ "link": "http://www.flickr.com/photos/rafachapa/3128676265/",
66
+ "media": {"m":"http://farm4.static.flickr.com/3206/3128676265_c413958e81_m.jpg"},
67
+ "date_taken": "2008-10-29T08:49:24-08:00",
68
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3128676265/\" title=\"Panorama desde la Alberca Caesar\'s\"><img src=\"http://farm4.static.flickr.com/3206/3128676265_c413958e81_m.jpg\" width=\"159\" height=\"240\" alt=\"Panorama desde la Alberca Caesar\'s\" /><\/a><\/p> ",
69
+ "published": "2008-12-22T23:08:47Z",
70
+ "author": "nobody@flickr.com (rafachapa)",
71
+ "author_id": "8960796@N03",
72
+ "tags": "trees panorama sculpture horse favorite usa water caballo hotel agua américa arboles lasvegas nevada esculturas nv strip animales caesarspalace 2008 estadosunidos eeuu"
73
+ },
74
+ {
75
+ "title": "Panorama Lobby Caesar\'s de Noche - 2",
76
+ "link": "http://www.flickr.com/photos/rafachapa/3129463284/",
77
+ "media": {"m":"http://farm4.static.flickr.com/3262/3129463284_e707c40218_m.jpg"},
78
+ "date_taken": "2008-10-28T23:16:57-08:00",
79
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3129463284/\" title=\"Panorama Lobby Caesar\'s de Noche - 2\"><img src=\"http://farm4.static.flickr.com/3262/3129463284_e707c40218_m.jpg\" width=\"240\" height=\"93\" alt=\"Panorama Lobby Caesar\'s de Noche - 2\" /><\/a><\/p> ",
80
+ "published": "2008-12-22T22:48:06Z",
81
+ "author": "nobody@flickr.com (rafachapa)",
82
+ "author_id": "8960796@N03",
83
+ "tags": "wallpaper panorama sculpture favorite usa detalle detail restaurant hotel américa lasvegas nevada decoration esculturas nv strip caesarspalace fountains 2008 fuentes slotmachine estadosunidos onearmbandit eeuu decoración maquinitas tragamonedas"
84
+ },
85
+ {
86
+ "title": "Panorama Venetian Mirage 08",
87
+ "link": "http://www.flickr.com/photos/rafachapa/3129455268/",
88
+ "media": {"m":"http://farm4.static.flickr.com/3198/3129455268_276c8bcfee_m.jpg"},
89
+ "date_taken": "2008-10-28T22:07:31-08:00",
90
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3129455268/\" title=\"Panorama Venetian Mirage 08\"><img src=\"http://farm4.static.flickr.com/3198/3129455268_276c8bcfee_m.jpg\" width=\"240\" height=\"104\" alt=\"Panorama Venetian Mirage 08\" /><\/a><\/p> ",
91
+ "published": "2008-12-22T22:44:38Z",
92
+ "author": "nobody@flickr.com (rafachapa)",
93
+ "author_id": "8960796@N03",
94
+ "tags": "longexposure trees wallpaper panorama favorite usa night ads hotel noche américa arboles lasvegas nevada movimiento nv strip mirage 2008 thebeatles estadosunidos anuncios thevenetian eeuu largaexposición"
95
+ },
96
+ {
97
+ "title": "The Strip at Night",
98
+ "link": "http://www.flickr.com/photos/rafachapa/3128614027/",
99
+ "media": {"m":"http://farm4.static.flickr.com/3133/3128614027_b725fb3f1f_m.jpg"},
100
+ "date_taken": "2008-09-15T23:15:30-08:00",
101
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3128614027/\" title=\"The Strip at Night\"><img src=\"http://farm4.static.flickr.com/3133/3128614027_b725fb3f1f_m.jpg\" width=\"240\" height=\"180\" alt=\"The Strip at Night\" /><\/a><\/p> ",
102
+ "published": "2008-12-22T22:39:34Z",
103
+ "author": "nobody@flickr.com (rafachapa)",
104
+ "author_id": "8960796@N03",
105
+ "tags": "wallpaper favorite usa water night ads hotel noche agua américa lasvegas nevada nv strip bellagio fountains planethollywood ballys 2008 citycenter fuentes parislasvegas estadosunidos anuncios eeuu"
106
+ },
107
+ {
108
+ "title": "Path to Wynn",
109
+ "link": "http://www.flickr.com/photos/rafachapa/3128552637/",
110
+ "media": {"m":"http://farm4.static.flickr.com/3292/3128552637_c52084a68a_m.jpg"},
111
+ "date_taken": "2008-09-15T16:37:38-08:00",
112
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3128552637/\" title=\"Path to Wynn\"><img src=\"http://farm4.static.flickr.com/3292/3128552637_c52084a68a_m.jpg\" width=\"240\" height=\"180\" alt=\"Path to Wynn\" /><\/a><\/p> ",
113
+ "published": "2008-12-22T22:12:02Z",
114
+ "author": "nobody@flickr.com (rafachapa)",
115
+ "author_id": "8960796@N03",
116
+ "tags": "trees wallpaper favorite usa ads hotel américa arboles treasureisland lasvegas nevada nv strip wynn 2008 encore estadosunidos anuncios fashionshowmall eeuu favorito"
117
+ },
118
+ {
119
+ "title": "X-MAS FAVE",
120
+ "link": "http://www.flickr.com/photos/mundoperfeito/3129365080/",
121
+ "media": {"m":"http://farm4.static.flickr.com/3252/3129365080_1e36a7c459_m.jpg"},
122
+ "date_taken": "2008-12-22T20:04:03-08:00",
123
+ "description": "<p><a href=\"http://www.flickr.com/people/mundoperfeito/\">MundoPerfeito<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/mundoperfeito/3129365080/\" title=\"X-MAS FAVE\"><img src=\"http://farm4.static.flickr.com/3252/3129365080_1e36a7c459_m.jpg\" width=\"240\" height=\"240\" alt=\"X-MAS FAVE\" /><\/a><\/p> <p>1. <a href=\"http://flickr.com/photos/14422482@N00/3123343058/\">Merry X-Mas!<\/a>, 2. <a href=\"http://flickr.com/photos/22882495@N00/3125022609/\">Cupcakes<\/a>, 3. <a href=\"http://flickr.com/photos/66942581@N00/3128342871/\">wishing on a star.<\/a>, 4. <a href=\"http://flickr.com/photos/46973832@N00/3118385296/\">*muse*<\/a>, 5. <a href=\"http://flickr.com/photos/45562894@N00/3116650022/\">Untitled<\/a>, 6. <a href=\"http://flickr.com/photos/45562894@N00/3114368952/\">Untitled<\/a>, 7. <a href=\"http://flickr.com/photos/42933826@N00/3113362205/\">snowflakes<\/a>, 8. <a href=\"http://flickr.com/photos/53611153@N00/3112932019/\">bokeh berries<\/a>, 9. <a href=\"http://flickr.com/photos/85824446@N00/3112493885/\">Untitled<\/a>, 10. <a href=\"http://flickr.com/photos/66942581@N00/3077470137/\">untold stories<\/a>, 11. <a href=\"http://flickr.com/photos/12079881@N00/3097253336/\">i see christmas bokeh everywhere...<\/a>, 12. <a href=\"http://flickr.com/photos/38242913@N00/3110568000/\">Xmas Birds<\/a>, 13. <a href=\"http://flickr.com/photos/19055148@N00/3110320492/\">Reaching for a star 2008!<\/a>, 14. <a href=\"http://flickr.com/photos/65086288@N00/3107683961/\">Anjos<\/a>, 15. <a href=\"http://flickr.com/photos/94161900@N00/3105865650/\">Sangue di Dionisio<\/a>, 16. <a href=\"http://flickr.com/photos/81877607@N00/3101178934/\">self-portrait on a christmas ball<\/a><br /> <br /> Created with <a href=\"http://bighugelabs.com/flickr/\">fd\'s Flickr Toys<\/a>.<\/p>",
124
+ "published": "2008-12-22T22:04:03Z",
125
+ "author": "nobody@flickr.com (MundoPerfeito)",
126
+ "author_id": "56153257@N00",
127
+ "tags": "favorite fdsflickrtoys mosaic mosaico faves favoritos"
128
+ },
129
+ {
130
+ "title": "Wynn and Encore from the Bay - 3",
131
+ "link": "http://www.flickr.com/photos/rafachapa/3128528607/",
132
+ "media": {"m":"http://farm4.static.flickr.com/3091/3128528607_50633094ba_m.jpg"},
133
+ "date_taken": "2008-09-15T16:35:00-08:00",
134
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3128528607/\" title=\"Wynn and Encore from the Bay - 3\"><img src=\"http://farm4.static.flickr.com/3091/3128528607_50633094ba_m.jpg\" width=\"240\" height=\"180\" alt=\"Wynn and Encore from the Bay - 3\" /><\/a><\/p> ",
135
+ "published": "2008-12-22T22:00:54Z",
136
+ "author": "nobody@flickr.com (rafachapa)",
137
+ "author_id": "8960796@N03",
138
+ "tags": "trees wallpaper favorite usa water ads hotel agua américa arboles treasureisland lasvegas nevada nv strip wynn 2008 estadosunidos anuncios eeuu"
139
+ },
140
+ {
141
+ "title": "Wynn and Encore from the Bay - 2",
142
+ "link": "http://www.flickr.com/photos/rafachapa/3129353258/",
143
+ "media": {"m":"http://farm4.static.flickr.com/3178/3129353258_e3171fa245_m.jpg"},
144
+ "date_taken": "2008-09-15T16:34:37-08:00",
145
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3129353258/\" title=\"Wynn and Encore from the Bay - 2\"><img src=\"http://farm4.static.flickr.com/3178/3129353258_e3171fa245_m.jpg\" width=\"240\" height=\"180\" alt=\"Wynn and Encore from the Bay - 2\" /><\/a><\/p> ",
146
+ "published": "2008-12-22T21:58:49Z",
147
+ "author": "nobody@flickr.com (rafachapa)",
148
+ "author_id": "8960796@N03",
149
+ "tags": "trees wallpaper favorite usa water ads hotel agua américa arboles treasureisland lasvegas nevada nv strip wynn 2008 estadosunidos anuncios eeuu"
150
+ },
151
+ {
152
+ "title": "Net Worth",
153
+ "link": "http://www.flickr.com/photos/rafachapa/3129347366/",
154
+ "media": {"m":"http://farm4.static.flickr.com/3230/3129347366_6eaafd1a4e_m.jpg"},
155
+ "date_taken": "2008-09-15T16:33:48-08:00",
156
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3129347366/\" title=\"Net Worth\"><img src=\"http://farm4.static.flickr.com/3230/3129347366_6eaafd1a4e_m.jpg\" width=\"240\" height=\"180\" alt=\"Net Worth\" /><\/a><\/p> ",
157
+ "published": "2008-12-22T21:56:17Z",
158
+ "author": "nobody@flickr.com (rafachapa)",
159
+ "author_id": "8960796@N03",
160
+ "tags": "trees wallpaper favorite usa detalle detail water hotel agua américa arboles treasureisland lasvegas nevada nv strip wynn 2008 estadosunidos thevenetian eeuu"
161
+ },
162
+ {
163
+ "title": "Pirate Boat - 1",
164
+ "link": "http://www.flickr.com/photos/rafachapa/3129334974/",
165
+ "media": {"m":"http://farm4.static.flickr.com/3263/3129334974_d72be7a466_m.jpg"},
166
+ "date_taken": "2008-09-15T16:32:24-08:00",
167
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3129334974/\" title=\"Pirate Boat - 1\"><img src=\"http://farm4.static.flickr.com/3263/3129334974_d72be7a466_m.jpg\" width=\"180\" height=\"240\" alt=\"Pirate Boat - 1\" /><\/a><\/p> ",
168
+ "published": "2008-12-22T21:50:55Z",
169
+ "author": "nobody@flickr.com (rafachapa)",
170
+ "author_id": "8960796@N03",
171
+ "tags": "trees favorite usa water hotel boat agua américa arboles treasureisland lasvegas nevada nv strip wynn 2008 bote estadosunidos eeuu"
172
+ },
173
+ {
174
+ "title": "Caesar\'s Choice - 4",
175
+ "link": "http://www.flickr.com/photos/rafachapa/3128489659/",
176
+ "media": {"m":"http://farm4.static.flickr.com/3266/3128489659_b5f68d0011_m.jpg"},
177
+ "date_taken": "2008-09-15T12:34:57-08:00",
178
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3128489659/\" title=\"Caesar\'s Choice - 4\"><img src=\"http://farm4.static.flickr.com/3266/3128489659_b5f68d0011_m.jpg\" width=\"180\" height=\"240\" alt=\"Caesar\'s Choice - 4\" /><\/a><\/p> ",
179
+ "published": "2008-12-22T21:43:13Z",
180
+ "author": "nobody@flickr.com (rafachapa)",
181
+ "author_id": "8960796@N03",
182
+ "tags": "sculpture favorite usa ads hotel américa lasvegas nevada esculturas nv strip caesarspalace ballys 2008 parislasvegas estadosunidos anuncios eeuu construcciones"
183
+ },
184
+ {
185
+ "title": "Wynn and Encore from the Bay - 1",
186
+ "link": "http://www.flickr.com/photos/rafachapa/3129329092/",
187
+ "media": {"m":"http://farm4.static.flickr.com/3207/3129329092_3f7f2e81f9_m.jpg"},
188
+ "date_taken": "2008-09-15T16:32:07-08:00",
189
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3129329092/\" title=\"Wynn and Encore from the Bay - 1\"><img src=\"http://farm4.static.flickr.com/3207/3129329092_3f7f2e81f9_m.jpg\" width=\"240\" height=\"180\" alt=\"Wynn and Encore from the Bay - 1\" /><\/a><\/p> ",
190
+ "published": "2008-12-22T21:48:07Z",
191
+ "author": "nobody@flickr.com (rafachapa)",
192
+ "author_id": "8960796@N03",
193
+ "tags": "trees wallpaper favorite usa water hotel boat store agua américa arboles treasureisland lasvegas nevada nv tienda strip wynn 2008 bote estadosunidos eeuu favorito"
194
+ },
195
+ {
196
+ "title": "Independencia de México - 1",
197
+ "link": "http://www.flickr.com/photos/rafachapa/3128472897/",
198
+ "media": {"m":"http://farm4.static.flickr.com/3128/3128472897_d068b57ee5_m.jpg"},
199
+ "date_taken": "2008-09-15T12:32:19-08:00",
200
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3128472897/\" title=\"Independencia de México - 1\"><img src=\"http://farm4.static.flickr.com/3128/3128472897_d068b57ee5_m.jpg\" width=\"240\" height=\"180\" alt=\"Independencia de México - 1\" /><\/a><\/p> ",
201
+ "published": "2008-12-22T21:35:40Z",
202
+ "author": "nobody@flickr.com (rafachapa)",
203
+ "author_id": "8960796@N03",
204
+ "tags": "trees wallpaper sculpture favorite usa detalle detail water ads hotel agua américa arboles lasvegas nevada esculturas nv strip carro caesarspalace fountains 2008 fuentes estadosunidos anuncios eeuu construcciones favorito"
205
+ },
206
+ {
207
+ "title": "Shadow at Caesar\'s Palace - 1",
208
+ "link": "http://www.flickr.com/photos/rafachapa/3128462155/",
209
+ "media": {"m":"http://farm4.static.flickr.com/3079/3128462155_7fffba38a2_m.jpg"},
210
+ "date_taken": "2008-09-15T12:12:00-08:00",
211
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3128462155/\" title=\"Shadow at Caesar\'s Palace - 1\"><img src=\"http://farm4.static.flickr.com/3079/3128462155_7fffba38a2_m.jpg\" width=\"240\" height=\"180\" alt=\"Shadow at Caesar\'s Palace - 1\" /><\/a><\/p> ",
212
+ "published": "2008-12-22T21:30:50Z",
213
+ "author": "nobody@flickr.com (rafachapa)",
214
+ "author_id": "8960796@N03",
215
+ "tags": "wallpaper favorite usa bar ads restaurant hotel américa shadows lasvegas nevada nv strip caesarspalace 2008 sombras unfocus estadosunidos anuncios desenfocada eeuu"
216
+ },
217
+ {
218
+ "title": "By the Pool - 1",
219
+ "link": "http://www.flickr.com/photos/rafachapa/3128423615/",
220
+ "media": {"m":"http://farm4.static.flickr.com/3228/3128423615_05d9edb75d_m.jpg"},
221
+ "date_taken": "2008-09-15T12:00:10-08:00",
222
+ "description": "<p><a href=\"http://www.flickr.com/people/rafachapa/\">rafachapa<\/a> posted a photo:<\/p> <p><a href=\"http://www.flickr.com/photos/rafachapa/3128423615/\" title=\"By the Pool - 1\"><img src=\"http://farm4.static.flickr.com/3228/3128423615_05d9edb75d_m.jpg\" width=\"240\" height=\"180\" alt=\"By the Pool - 1\" /><\/a><\/p> ",
223
+ "published": "2008-12-22T21:13:47Z",
224
+ "author": "nobody@flickr.com (rafachapa)",
225
+ "author_id": "8960796@N03",
226
+ "tags": "2008 nevada américa nv estadosunidos lasvegas eeuu usa caesarspalace strip esculturas sculpture hotel animales horse caballo arboles trees construcciones wallpaper favorite"
227
+ }
228
+ ]
229
+ }
@@ -0,0 +1 @@
1
+ {"hour": 2, "month": 12, "second": 19, "year": 2008, "isoformat": "2008-12-23T02:02:19.788260", "day": 23, "minute": 2}
@@ -0,0 +1 @@
1
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+ require 'mocha'
5
+
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'csshttprequest'
8
+
9
+ class Test::Unit::TestCase
10
+ end
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nbio-csshttprequest
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Cameron Walters
8
+ - Randy Reddig
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-01-23 00:00:00 -08:00
14
+ default_executable:
15
+ dependencies: []
16
+
17
+ description: Please see the latest info at http://nb.io/hacks/csshttprequest/
18
+ email: ping+csshttprequest@nb.io
19
+ executables: []
20
+
21
+ extensions: []
22
+
23
+ extra_rdoc_files: []
24
+
25
+ files:
26
+ - README.markdown
27
+ - VERSION.yml
28
+ - lib/csshttprequest.rb
29
+ - test/csshttprequest_test.rb
30
+ - test/inputs
31
+ - test/inputs/hello-world.in
32
+ - test/inputs/json-flickr.in
33
+ - test/inputs/json-time.in
34
+ - test/inputs/lorem.in
35
+ - test/test_helper.rb
36
+ has_rdoc: true
37
+ homepage: http://github.com/nbio/csshttprequest
38
+ post_install_message:
39
+ rdoc_options:
40
+ - --inline-source
41
+ - --charset=UTF-8
42
+ require_paths:
43
+ - lib
44
+ required_ruby_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: "0"
49
+ version:
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: "0"
55
+ version:
56
+ requirements: []
57
+
58
+ rubyforge_project:
59
+ rubygems_version: 1.2.0
60
+ signing_key:
61
+ specification_version: 2
62
+ summary: CSSHttpRequest is cross-domain AJAX using CSS as a transport.
63
+ test_files: []
64
+