ro 1.4.6 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/Gemfile +2 -0
- data/Gemfile.lock +43 -0
- data/LICENSE +1 -0
- data/README.md +120 -112
- data/README.md.erb +159 -0
- data/Rakefile +129 -78
- data/bin/ro +241 -68
- data/lib/ro/_lib.rb +95 -0
- data/lib/ro/asset.rb +45 -0
- data/lib/ro/collection/list.rb +23 -0
- data/lib/ro/collection.rb +168 -0
- data/lib/ro/config.rb +68 -0
- data/lib/ro/error.rb +8 -0
- data/lib/ro/klass.rb +25 -0
- data/lib/ro/methods.rb +238 -0
- data/lib/ro/model.rb +83 -114
- data/lib/ro/node.rb +177 -360
- data/lib/ro/pagination.rb +7 -4
- data/lib/ro/path.rb +225 -0
- data/lib/ro/root.rb +52 -31
- data/lib/ro/script/builder.rb +221 -0
- data/lib/ro/script/console.rb +47 -0
- data/lib/ro/script/server.rb +76 -0
- data/lib/ro/script.rb +189 -0
- data/lib/ro/slug.rb +19 -18
- data/lib/ro/template/rouge_formatter.rb +42 -0
- data/lib/ro/template.rb +104 -50
- data/lib/ro.rb +85 -317
- data/public/api/ro/index-1.json +147 -0
- data/public/api/ro/index.json +137 -0
- data/public/api/ro/posts/first_post/index.json +52 -0
- data/public/api/ro/posts/index-1.json +145 -0
- data/public/api/ro/posts/index.json +135 -0
- data/public/api/ro/posts/second_post/index.json +51 -0
- data/public/api/ro/posts/third_post/index.json +51 -0
- data/public/ro/posts/first_post/assets/foo/bar/baz.jpg +0 -0
- data/public/ro/posts/first_post/assets/foo.jpg +0 -0
- data/public/ro/posts/first_post/assets/src/foo/bar.rb +3 -0
- data/public/ro/posts/first_post/attributes.yml +2 -0
- data/public/ro/posts/first_post/blurb.erb.md +7 -0
- data/public/ro/posts/first_post/body.md +16 -0
- data/public/ro/posts/first_post/testing.txt +3 -0
- data/public/ro/posts/second_post/assets/foo/bar/baz.jpg +0 -0
- data/public/ro/posts/second_post/assets/foo.jpg +0 -0
- data/public/ro/posts/second_post/assets/src/foo/bar.rb +3 -0
- data/public/ro/posts/second_post/attributes.yml +2 -0
- data/public/ro/posts/second_post/blurb.erb.md +5 -0
- data/public/ro/posts/second_post/body.md +16 -0
- data/public/ro/posts/third_post/assets/foo/bar/baz.jpg +0 -0
- data/public/ro/posts/third_post/assets/foo.jpg +0 -0
- data/public/ro/posts/third_post/assets/src/foo/bar.rb +3 -0
- data/public/ro/posts/third_post/attributes.yml +2 -0
- data/public/ro/posts/third_post/blurb.erb.md +5 -0
- data/public/ro/posts/third_post/body.md +16 -0
- data/ro.gemspec +89 -29
- metadata +106 -90
- data/TODO.md +0 -50
- data/lib/ro/blankslate.rb +0 -7
- data/lib/ro/cache.rb +0 -26
- data/lib/ro/git.rb +0 -374
- data/lib/ro/initializers/env.rb +0 -5
- data/lib/ro/initializers/tilt.rb +0 -104
- data/lib/ro/lock.rb +0 -53
- data/lib/ro/node/list.rb +0 -142
- data/notes/ara.txt +0 -215
@@ -0,0 +1,137 @@
|
|
1
|
+
{
|
2
|
+
"data": {
|
3
|
+
"posts/first_post": {
|
4
|
+
"title": "First Post",
|
5
|
+
"author": "people/alice",
|
6
|
+
"assets": {
|
7
|
+
"assets/foo.jpg": {
|
8
|
+
"url": "/ro/posts/first_post/assets/foo.jpg",
|
9
|
+
"path": "posts/first_post/assets/foo.jpg",
|
10
|
+
"src": null
|
11
|
+
},
|
12
|
+
"assets/foo/bar/baz.jpg": {
|
13
|
+
"url": "/ro/posts/first_post/assets/foo/bar/baz.jpg",
|
14
|
+
"path": "posts/first_post/assets/foo/bar/baz.jpg",
|
15
|
+
"src": null
|
16
|
+
},
|
17
|
+
"assets/src/foo/bar.rb": {
|
18
|
+
"url": "/ro/posts/first_post/assets/src/foo/bar.rb",
|
19
|
+
"path": "posts/first_post/assets/src/foo/bar.rb",
|
20
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"_meta": {
|
24
|
+
"identifier": "posts/first_post",
|
25
|
+
"type": "posts",
|
26
|
+
"id": "first_post",
|
27
|
+
"urls": [
|
28
|
+
"/ro/posts/first_post/assets/foo.jpg",
|
29
|
+
"/ro/posts/first_post/assets/foo/bar/baz.jpg",
|
30
|
+
"/ro/posts/first_post/assets/src/foo/bar.rb",
|
31
|
+
"/ro/posts/first_post/attributes.yml",
|
32
|
+
"/ro/posts/first_post/blurb.erb.md",
|
33
|
+
"/ro/posts/first_post/body.md",
|
34
|
+
"/ro/posts/first_post/testing.txt"
|
35
|
+
],
|
36
|
+
"rel": {
|
37
|
+
"curr": "posts/first_post",
|
38
|
+
"prev": null,
|
39
|
+
"next": "posts/second_post"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"posts": {
|
43
|
+
"first_post": "43\n\n42\n"
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"posts/second_post": {
|
47
|
+
"title": "Second Post",
|
48
|
+
"author": "people/alice",
|
49
|
+
"assets": {
|
50
|
+
"assets/foo.jpg": {
|
51
|
+
"url": "/ro/posts/second_post/assets/foo.jpg",
|
52
|
+
"path": "posts/second_post/assets/foo.jpg",
|
53
|
+
"src": null
|
54
|
+
},
|
55
|
+
"assets/foo/bar/baz.jpg": {
|
56
|
+
"url": "/ro/posts/second_post/assets/foo/bar/baz.jpg",
|
57
|
+
"path": "posts/second_post/assets/foo/bar/baz.jpg",
|
58
|
+
"src": null
|
59
|
+
},
|
60
|
+
"assets/src/foo/bar.rb": {
|
61
|
+
"url": "/ro/posts/second_post/assets/src/foo/bar.rb",
|
62
|
+
"path": "posts/second_post/assets/src/foo/bar.rb",
|
63
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"_meta": {
|
67
|
+
"identifier": "posts/second_post",
|
68
|
+
"type": "posts",
|
69
|
+
"id": "second_post",
|
70
|
+
"urls": [
|
71
|
+
"/ro/posts/second_post/assets/foo.jpg",
|
72
|
+
"/ro/posts/second_post/assets/foo/bar/baz.jpg",
|
73
|
+
"/ro/posts/second_post/assets/src/foo/bar.rb",
|
74
|
+
"/ro/posts/second_post/attributes.yml",
|
75
|
+
"/ro/posts/second_post/blurb.erb.md",
|
76
|
+
"/ro/posts/second_post/body.md"
|
77
|
+
],
|
78
|
+
"rel": {
|
79
|
+
"curr": "posts/second_post",
|
80
|
+
"prev": "posts/first_post",
|
81
|
+
"next": "posts/third_post"
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"posts": {
|
85
|
+
"second_post": "<div class='ro markdown'>\n <ul>\n <li>one</li>\n <li>two</li>\n <li>three</li>\n</ul>\n\n<div class='language-ruby highlighter-rouge'><code class='code' style='white-space:pre;'><div class='code-line code-line-1'> <span style='color: #cf222e'>class</span> <span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'> <span style='color: #0550ae'>@a</span> <span style='color: #0550ae'>=</span> <span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'> <span style='color: #cf222e'>end</span>\n</div></code></div>\n\n<hr/>\n\n<p><img src='/ro/posts/second_post/assets/foo.jpg'/><br/>\n<br/></p>\n\n<p><img src='/ro/posts/second_post/assets/foo/bar/baz.jpg'/></p>\n\n</div>"
|
86
|
+
}
|
87
|
+
},
|
88
|
+
"posts/third_post": {
|
89
|
+
"title": "First Post",
|
90
|
+
"author": "people/alice",
|
91
|
+
"assets": {
|
92
|
+
"assets/foo.jpg": {
|
93
|
+
"url": "/ro/posts/third_post/assets/foo.jpg",
|
94
|
+
"path": "posts/third_post/assets/foo.jpg",
|
95
|
+
"src": null
|
96
|
+
},
|
97
|
+
"assets/foo/bar/baz.jpg": {
|
98
|
+
"url": "/ro/posts/third_post/assets/foo/bar/baz.jpg",
|
99
|
+
"path": "posts/third_post/assets/foo/bar/baz.jpg",
|
100
|
+
"src": null
|
101
|
+
},
|
102
|
+
"assets/src/foo/bar.rb": {
|
103
|
+
"url": "/ro/posts/third_post/assets/src/foo/bar.rb",
|
104
|
+
"path": "posts/third_post/assets/src/foo/bar.rb",
|
105
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
106
|
+
}
|
107
|
+
},
|
108
|
+
"_meta": {
|
109
|
+
"identifier": "posts/third_post",
|
110
|
+
"type": "posts",
|
111
|
+
"id": "third_post",
|
112
|
+
"urls": [
|
113
|
+
"/ro/posts/third_post/assets/foo.jpg",
|
114
|
+
"/ro/posts/third_post/assets/foo/bar/baz.jpg",
|
115
|
+
"/ro/posts/third_post/assets/src/foo/bar.rb",
|
116
|
+
"/ro/posts/third_post/attributes.yml",
|
117
|
+
"/ro/posts/third_post/blurb.erb.md",
|
118
|
+
"/ro/posts/third_post/body.md"
|
119
|
+
],
|
120
|
+
"rel": {
|
121
|
+
"curr": "posts/third_post",
|
122
|
+
"prev": "posts/second_post",
|
123
|
+
"next": null
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"posts": {
|
127
|
+
"third_post": "<div class='ro markdown'>\n <ul>\n <li>one</li>\n <li>two</li>\n <li>three</li>\n</ul>\n\n<div class='language-ruby highlighter-rouge'><code class='code' style='white-space:pre;'><div class='code-line code-line-1'> <span style='color: #cf222e'>class</span> <span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'> <span style='color: #0550ae'>@a</span> <span style='color: #0550ae'>=</span> <span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'> <span style='color: #cf222e'>end</span>\n</div></code></div>\n\n<hr/>\n\n<p><img src='/ro/posts/third_post/assets/foo.jpg'/><br/>\n<br/></p>\n\n<p><img src='/ro/posts/third_post/assets/foo/bar/baz.jpg'/></p>\n\n</div>"
|
128
|
+
}
|
129
|
+
}
|
130
|
+
},
|
131
|
+
"_meta": {
|
132
|
+
"url": "/ro",
|
133
|
+
"types": [
|
134
|
+
"posts"
|
135
|
+
]
|
136
|
+
}
|
137
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"data": {
|
3
|
+
"posts/first_post": {
|
4
|
+
"title": "First Post",
|
5
|
+
"author": "people/alice",
|
6
|
+
"assets": {
|
7
|
+
"assets/foo.jpg": {
|
8
|
+
"url": "/ro/posts/first_post/assets/foo.jpg",
|
9
|
+
"path": "posts/first_post/assets/foo.jpg",
|
10
|
+
"src": null
|
11
|
+
},
|
12
|
+
"assets/foo/bar/baz.jpg": {
|
13
|
+
"url": "/ro/posts/first_post/assets/foo/bar/baz.jpg",
|
14
|
+
"path": "posts/first_post/assets/foo/bar/baz.jpg",
|
15
|
+
"src": null
|
16
|
+
},
|
17
|
+
"assets/src/foo/bar.rb": {
|
18
|
+
"url": "/ro/posts/first_post/assets/src/foo/bar.rb",
|
19
|
+
"path": "posts/first_post/assets/src/foo/bar.rb",
|
20
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"_meta": {
|
24
|
+
"identifier": "posts/first_post",
|
25
|
+
"type": "posts",
|
26
|
+
"id": "first_post",
|
27
|
+
"urls": [
|
28
|
+
"/ro/posts/first_post/assets/foo.jpg",
|
29
|
+
"/ro/posts/first_post/assets/foo/bar/baz.jpg",
|
30
|
+
"/ro/posts/first_post/assets/src/foo/bar.rb",
|
31
|
+
"/ro/posts/first_post/attributes.yml",
|
32
|
+
"/ro/posts/first_post/blurb.erb.md",
|
33
|
+
"/ro/posts/first_post/body.md",
|
34
|
+
"/ro/posts/first_post/testing.txt"
|
35
|
+
],
|
36
|
+
"rel": {
|
37
|
+
"curr": "posts/first_post",
|
38
|
+
"prev": null,
|
39
|
+
"next": "posts/second_post"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"posts": {
|
43
|
+
"first_post": "43\n\n42\n"
|
44
|
+
}
|
45
|
+
}
|
46
|
+
},
|
47
|
+
"_meta": {
|
48
|
+
"url": "/ro",
|
49
|
+
"type": "posts",
|
50
|
+
"id": "first_post"
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,145 @@
|
|
1
|
+
{
|
2
|
+
"data": {
|
3
|
+
"posts/first_post": {
|
4
|
+
"title": "First Post",
|
5
|
+
"author": "people/alice",
|
6
|
+
"assets": {
|
7
|
+
"assets/foo.jpg": {
|
8
|
+
"url": "/ro/posts/first_post/assets/foo.jpg",
|
9
|
+
"path": "posts/first_post/assets/foo.jpg",
|
10
|
+
"src": null
|
11
|
+
},
|
12
|
+
"assets/foo/bar/baz.jpg": {
|
13
|
+
"url": "/ro/posts/first_post/assets/foo/bar/baz.jpg",
|
14
|
+
"path": "posts/first_post/assets/foo/bar/baz.jpg",
|
15
|
+
"src": null
|
16
|
+
},
|
17
|
+
"assets/src/foo/bar.rb": {
|
18
|
+
"url": "/ro/posts/first_post/assets/src/foo/bar.rb",
|
19
|
+
"path": "posts/first_post/assets/src/foo/bar.rb",
|
20
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"_meta": {
|
24
|
+
"identifier": "posts/first_post",
|
25
|
+
"type": "posts",
|
26
|
+
"id": "first_post",
|
27
|
+
"urls": [
|
28
|
+
"/ro/posts/first_post/assets/foo.jpg",
|
29
|
+
"/ro/posts/first_post/assets/foo/bar/baz.jpg",
|
30
|
+
"/ro/posts/first_post/assets/src/foo/bar.rb",
|
31
|
+
"/ro/posts/first_post/attributes.yml",
|
32
|
+
"/ro/posts/first_post/blurb.erb.md",
|
33
|
+
"/ro/posts/first_post/body.md",
|
34
|
+
"/ro/posts/first_post/testing.txt"
|
35
|
+
],
|
36
|
+
"rel": {
|
37
|
+
"curr": "posts/first_post",
|
38
|
+
"prev": null,
|
39
|
+
"next": "posts/second_post"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"posts": {
|
43
|
+
"first_post": "43\n\n42\n"
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"posts/second_post": {
|
47
|
+
"title": "Second Post",
|
48
|
+
"author": "people/alice",
|
49
|
+
"assets": {
|
50
|
+
"assets/foo.jpg": {
|
51
|
+
"url": "/ro/posts/second_post/assets/foo.jpg",
|
52
|
+
"path": "posts/second_post/assets/foo.jpg",
|
53
|
+
"src": null
|
54
|
+
},
|
55
|
+
"assets/foo/bar/baz.jpg": {
|
56
|
+
"url": "/ro/posts/second_post/assets/foo/bar/baz.jpg",
|
57
|
+
"path": "posts/second_post/assets/foo/bar/baz.jpg",
|
58
|
+
"src": null
|
59
|
+
},
|
60
|
+
"assets/src/foo/bar.rb": {
|
61
|
+
"url": "/ro/posts/second_post/assets/src/foo/bar.rb",
|
62
|
+
"path": "posts/second_post/assets/src/foo/bar.rb",
|
63
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"_meta": {
|
67
|
+
"identifier": "posts/second_post",
|
68
|
+
"type": "posts",
|
69
|
+
"id": "second_post",
|
70
|
+
"urls": [
|
71
|
+
"/ro/posts/second_post/assets/foo.jpg",
|
72
|
+
"/ro/posts/second_post/assets/foo/bar/baz.jpg",
|
73
|
+
"/ro/posts/second_post/assets/src/foo/bar.rb",
|
74
|
+
"/ro/posts/second_post/attributes.yml",
|
75
|
+
"/ro/posts/second_post/blurb.erb.md",
|
76
|
+
"/ro/posts/second_post/body.md"
|
77
|
+
],
|
78
|
+
"rel": {
|
79
|
+
"curr": "posts/second_post",
|
80
|
+
"prev": "posts/first_post",
|
81
|
+
"next": "posts/third_post"
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"posts": {
|
85
|
+
"second_post": "<div class='ro markdown'>\n <ul>\n <li>one</li>\n <li>two</li>\n <li>three</li>\n</ul>\n\n<div class='language-ruby highlighter-rouge'><code class='code' style='white-space:pre;'><div class='code-line code-line-1'> <span style='color: #cf222e'>class</span> <span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'> <span style='color: #0550ae'>@a</span> <span style='color: #0550ae'>=</span> <span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'> <span style='color: #cf222e'>end</span>\n</div></code></div>\n\n<hr/>\n\n<p><img src='/ro/posts/second_post/assets/foo.jpg'/><br/>\n<br/></p>\n\n<p><img src='/ro/posts/second_post/assets/foo/bar/baz.jpg'/></p>\n\n</div>"
|
86
|
+
}
|
87
|
+
},
|
88
|
+
"posts/third_post": {
|
89
|
+
"title": "First Post",
|
90
|
+
"author": "people/alice",
|
91
|
+
"assets": {
|
92
|
+
"assets/foo.jpg": {
|
93
|
+
"url": "/ro/posts/third_post/assets/foo.jpg",
|
94
|
+
"path": "posts/third_post/assets/foo.jpg",
|
95
|
+
"src": null
|
96
|
+
},
|
97
|
+
"assets/foo/bar/baz.jpg": {
|
98
|
+
"url": "/ro/posts/third_post/assets/foo/bar/baz.jpg",
|
99
|
+
"path": "posts/third_post/assets/foo/bar/baz.jpg",
|
100
|
+
"src": null
|
101
|
+
},
|
102
|
+
"assets/src/foo/bar.rb": {
|
103
|
+
"url": "/ro/posts/third_post/assets/src/foo/bar.rb",
|
104
|
+
"path": "posts/third_post/assets/src/foo/bar.rb",
|
105
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
106
|
+
}
|
107
|
+
},
|
108
|
+
"_meta": {
|
109
|
+
"identifier": "posts/third_post",
|
110
|
+
"type": "posts",
|
111
|
+
"id": "third_post",
|
112
|
+
"urls": [
|
113
|
+
"/ro/posts/third_post/assets/foo.jpg",
|
114
|
+
"/ro/posts/third_post/assets/foo/bar/baz.jpg",
|
115
|
+
"/ro/posts/third_post/assets/src/foo/bar.rb",
|
116
|
+
"/ro/posts/third_post/attributes.yml",
|
117
|
+
"/ro/posts/third_post/blurb.erb.md",
|
118
|
+
"/ro/posts/third_post/body.md"
|
119
|
+
],
|
120
|
+
"rel": {
|
121
|
+
"curr": "posts/third_post",
|
122
|
+
"prev": "posts/second_post",
|
123
|
+
"next": null
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"posts": {
|
127
|
+
"third_post": "<div class='ro markdown'>\n <ul>\n <li>one</li>\n <li>two</li>\n <li>three</li>\n</ul>\n\n<div class='language-ruby highlighter-rouge'><code class='code' style='white-space:pre;'><div class='code-line code-line-1'> <span style='color: #cf222e'>class</span> <span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'> <span style='color: #0550ae'>@a</span> <span style='color: #0550ae'>=</span> <span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'> <span style='color: #cf222e'>end</span>\n</div></code></div>\n\n<hr/>\n\n<p><img src='/ro/posts/third_post/assets/foo.jpg'/><br/>\n<br/></p>\n\n<p><img src='/ro/posts/third_post/assets/foo/bar/baz.jpg'/></p>\n\n</div>"
|
128
|
+
}
|
129
|
+
}
|
130
|
+
},
|
131
|
+
"_meta": {
|
132
|
+
"url": "/ro",
|
133
|
+
"type": "posts",
|
134
|
+
"page": {
|
135
|
+
"count": 1,
|
136
|
+
"size": 42,
|
137
|
+
"first": 0,
|
138
|
+
"last": 0,
|
139
|
+
"index": 0,
|
140
|
+
"curr": 0,
|
141
|
+
"prev": null,
|
142
|
+
"next": null
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
@@ -0,0 +1,135 @@
|
|
1
|
+
{
|
2
|
+
"data": {
|
3
|
+
"posts/first_post": {
|
4
|
+
"title": "First Post",
|
5
|
+
"author": "people/alice",
|
6
|
+
"assets": {
|
7
|
+
"assets/foo.jpg": {
|
8
|
+
"url": "/ro/posts/first_post/assets/foo.jpg",
|
9
|
+
"path": "posts/first_post/assets/foo.jpg",
|
10
|
+
"src": null
|
11
|
+
},
|
12
|
+
"assets/foo/bar/baz.jpg": {
|
13
|
+
"url": "/ro/posts/first_post/assets/foo/bar/baz.jpg",
|
14
|
+
"path": "posts/first_post/assets/foo/bar/baz.jpg",
|
15
|
+
"src": null
|
16
|
+
},
|
17
|
+
"assets/src/foo/bar.rb": {
|
18
|
+
"url": "/ro/posts/first_post/assets/src/foo/bar.rb",
|
19
|
+
"path": "posts/first_post/assets/src/foo/bar.rb",
|
20
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"_meta": {
|
24
|
+
"identifier": "posts/first_post",
|
25
|
+
"type": "posts",
|
26
|
+
"id": "first_post",
|
27
|
+
"urls": [
|
28
|
+
"/ro/posts/first_post/assets/foo.jpg",
|
29
|
+
"/ro/posts/first_post/assets/foo/bar/baz.jpg",
|
30
|
+
"/ro/posts/first_post/assets/src/foo/bar.rb",
|
31
|
+
"/ro/posts/first_post/attributes.yml",
|
32
|
+
"/ro/posts/first_post/blurb.erb.md",
|
33
|
+
"/ro/posts/first_post/body.md",
|
34
|
+
"/ro/posts/first_post/testing.txt"
|
35
|
+
],
|
36
|
+
"rel": {
|
37
|
+
"curr": "posts/first_post",
|
38
|
+
"prev": null,
|
39
|
+
"next": "posts/second_post"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"posts": {
|
43
|
+
"first_post": "43\n\n42\n"
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"posts/second_post": {
|
47
|
+
"title": "Second Post",
|
48
|
+
"author": "people/alice",
|
49
|
+
"assets": {
|
50
|
+
"assets/foo.jpg": {
|
51
|
+
"url": "/ro/posts/second_post/assets/foo.jpg",
|
52
|
+
"path": "posts/second_post/assets/foo.jpg",
|
53
|
+
"src": null
|
54
|
+
},
|
55
|
+
"assets/foo/bar/baz.jpg": {
|
56
|
+
"url": "/ro/posts/second_post/assets/foo/bar/baz.jpg",
|
57
|
+
"path": "posts/second_post/assets/foo/bar/baz.jpg",
|
58
|
+
"src": null
|
59
|
+
},
|
60
|
+
"assets/src/foo/bar.rb": {
|
61
|
+
"url": "/ro/posts/second_post/assets/src/foo/bar.rb",
|
62
|
+
"path": "posts/second_post/assets/src/foo/bar.rb",
|
63
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"_meta": {
|
67
|
+
"identifier": "posts/second_post",
|
68
|
+
"type": "posts",
|
69
|
+
"id": "second_post",
|
70
|
+
"urls": [
|
71
|
+
"/ro/posts/second_post/assets/foo.jpg",
|
72
|
+
"/ro/posts/second_post/assets/foo/bar/baz.jpg",
|
73
|
+
"/ro/posts/second_post/assets/src/foo/bar.rb",
|
74
|
+
"/ro/posts/second_post/attributes.yml",
|
75
|
+
"/ro/posts/second_post/blurb.erb.md",
|
76
|
+
"/ro/posts/second_post/body.md"
|
77
|
+
],
|
78
|
+
"rel": {
|
79
|
+
"curr": "posts/second_post",
|
80
|
+
"prev": "posts/first_post",
|
81
|
+
"next": "posts/third_post"
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"posts": {
|
85
|
+
"second_post": "<div class='ro markdown'>\n <ul>\n <li>one</li>\n <li>two</li>\n <li>three</li>\n</ul>\n\n<div class='language-ruby highlighter-rouge'><code class='code' style='white-space:pre;'><div class='code-line code-line-1'> <span style='color: #cf222e'>class</span> <span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'> <span style='color: #0550ae'>@a</span> <span style='color: #0550ae'>=</span> <span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'> <span style='color: #cf222e'>end</span>\n</div></code></div>\n\n<hr/>\n\n<p><img src='/ro/posts/second_post/assets/foo.jpg'/><br/>\n<br/></p>\n\n<p><img src='/ro/posts/second_post/assets/foo/bar/baz.jpg'/></p>\n\n</div>"
|
86
|
+
}
|
87
|
+
},
|
88
|
+
"posts/third_post": {
|
89
|
+
"title": "First Post",
|
90
|
+
"author": "people/alice",
|
91
|
+
"assets": {
|
92
|
+
"assets/foo.jpg": {
|
93
|
+
"url": "/ro/posts/third_post/assets/foo.jpg",
|
94
|
+
"path": "posts/third_post/assets/foo.jpg",
|
95
|
+
"src": null
|
96
|
+
},
|
97
|
+
"assets/foo/bar/baz.jpg": {
|
98
|
+
"url": "/ro/posts/third_post/assets/foo/bar/baz.jpg",
|
99
|
+
"path": "posts/third_post/assets/foo/bar/baz.jpg",
|
100
|
+
"src": null
|
101
|
+
},
|
102
|
+
"assets/src/foo/bar.rb": {
|
103
|
+
"url": "/ro/posts/third_post/assets/src/foo/bar.rb",
|
104
|
+
"path": "posts/third_post/assets/src/foo/bar.rb",
|
105
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
106
|
+
}
|
107
|
+
},
|
108
|
+
"_meta": {
|
109
|
+
"identifier": "posts/third_post",
|
110
|
+
"type": "posts",
|
111
|
+
"id": "third_post",
|
112
|
+
"urls": [
|
113
|
+
"/ro/posts/third_post/assets/foo.jpg",
|
114
|
+
"/ro/posts/third_post/assets/foo/bar/baz.jpg",
|
115
|
+
"/ro/posts/third_post/assets/src/foo/bar.rb",
|
116
|
+
"/ro/posts/third_post/attributes.yml",
|
117
|
+
"/ro/posts/third_post/blurb.erb.md",
|
118
|
+
"/ro/posts/third_post/body.md"
|
119
|
+
],
|
120
|
+
"rel": {
|
121
|
+
"curr": "posts/third_post",
|
122
|
+
"prev": "posts/second_post",
|
123
|
+
"next": null
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"posts": {
|
127
|
+
"third_post": "<div class='ro markdown'>\n <ul>\n <li>one</li>\n <li>two</li>\n <li>three</li>\n</ul>\n\n<div class='language-ruby highlighter-rouge'><code class='code' style='white-space:pre;'><div class='code-line code-line-1'> <span style='color: #cf222e'>class</span> <span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'> <span style='color: #0550ae'>@a</span> <span style='color: #0550ae'>=</span> <span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'> <span style='color: #cf222e'>end</span>\n</div></code></div>\n\n<hr/>\n\n<p><img src='/ro/posts/third_post/assets/foo.jpg'/><br/>\n<br/></p>\n\n<p><img src='/ro/posts/third_post/assets/foo/bar/baz.jpg'/></p>\n\n</div>"
|
128
|
+
}
|
129
|
+
}
|
130
|
+
},
|
131
|
+
"_meta": {
|
132
|
+
"url": "/ro",
|
133
|
+
"type": "posts"
|
134
|
+
}
|
135
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{
|
2
|
+
"data": {
|
3
|
+
"posts/second_post": {
|
4
|
+
"title": "Second Post",
|
5
|
+
"author": "people/alice",
|
6
|
+
"assets": {
|
7
|
+
"assets/foo.jpg": {
|
8
|
+
"url": "/ro/posts/second_post/assets/foo.jpg",
|
9
|
+
"path": "posts/second_post/assets/foo.jpg",
|
10
|
+
"src": null
|
11
|
+
},
|
12
|
+
"assets/foo/bar/baz.jpg": {
|
13
|
+
"url": "/ro/posts/second_post/assets/foo/bar/baz.jpg",
|
14
|
+
"path": "posts/second_post/assets/foo/bar/baz.jpg",
|
15
|
+
"src": null
|
16
|
+
},
|
17
|
+
"assets/src/foo/bar.rb": {
|
18
|
+
"url": "/ro/posts/second_post/assets/src/foo/bar.rb",
|
19
|
+
"path": "posts/second_post/assets/src/foo/bar.rb",
|
20
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"_meta": {
|
24
|
+
"identifier": "posts/second_post",
|
25
|
+
"type": "posts",
|
26
|
+
"id": "second_post",
|
27
|
+
"urls": [
|
28
|
+
"/ro/posts/second_post/assets/foo.jpg",
|
29
|
+
"/ro/posts/second_post/assets/foo/bar/baz.jpg",
|
30
|
+
"/ro/posts/second_post/assets/src/foo/bar.rb",
|
31
|
+
"/ro/posts/second_post/attributes.yml",
|
32
|
+
"/ro/posts/second_post/blurb.erb.md",
|
33
|
+
"/ro/posts/second_post/body.md"
|
34
|
+
],
|
35
|
+
"rel": {
|
36
|
+
"curr": "posts/second_post",
|
37
|
+
"prev": "posts/first_post",
|
38
|
+
"next": "posts/third_post"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"posts": {
|
42
|
+
"second_post": "<div class='ro markdown'>\n <ul>\n <li>one</li>\n <li>two</li>\n <li>three</li>\n</ul>\n\n<div class='language-ruby highlighter-rouge'><code class='code' style='white-space:pre;'><div class='code-line code-line-1'> <span style='color: #cf222e'>class</span> <span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'> <span style='color: #0550ae'>@a</span> <span style='color: #0550ae'>=</span> <span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'> <span style='color: #cf222e'>end</span>\n</div></code></div>\n\n<hr/>\n\n<p><img src='/ro/posts/second_post/assets/foo.jpg'/><br/>\n<br/></p>\n\n<p><img src='/ro/posts/second_post/assets/foo/bar/baz.jpg'/></p>\n\n</div>"
|
43
|
+
}
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"_meta": {
|
47
|
+
"url": "/ro",
|
48
|
+
"type": "posts",
|
49
|
+
"id": "second_post"
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{
|
2
|
+
"data": {
|
3
|
+
"posts/third_post": {
|
4
|
+
"title": "First Post",
|
5
|
+
"author": "people/alice",
|
6
|
+
"assets": {
|
7
|
+
"assets/foo.jpg": {
|
8
|
+
"url": "/ro/posts/third_post/assets/foo.jpg",
|
9
|
+
"path": "posts/third_post/assets/foo.jpg",
|
10
|
+
"src": null
|
11
|
+
},
|
12
|
+
"assets/foo/bar/baz.jpg": {
|
13
|
+
"url": "/ro/posts/third_post/assets/foo/bar/baz.jpg",
|
14
|
+
"path": "posts/third_post/assets/foo/bar/baz.jpg",
|
15
|
+
"src": null
|
16
|
+
},
|
17
|
+
"assets/src/foo/bar.rb": {
|
18
|
+
"url": "/ro/posts/third_post/assets/src/foo/bar.rb",
|
19
|
+
"path": "posts/third_post/assets/src/foo/bar.rb",
|
20
|
+
"src": "<div class=\"ro markdown src\">\n <code class='code' style='white-space:pre;'><div class='code-line code-line-1'><span style=\"color: #cf222e\">class</span> <span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'> <span style=\"color: #953800\">A</span> <span style=\"color: #0550ae\">=</span> <span style=\"color: #0550ae\">42</span>\n</div><div class='code-line code-line-3'><span style=\"color: #cf222e\">end</span>\n</div></code>\n</div>\n"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"_meta": {
|
24
|
+
"identifier": "posts/third_post",
|
25
|
+
"type": "posts",
|
26
|
+
"id": "third_post",
|
27
|
+
"urls": [
|
28
|
+
"/ro/posts/third_post/assets/foo.jpg",
|
29
|
+
"/ro/posts/third_post/assets/foo/bar/baz.jpg",
|
30
|
+
"/ro/posts/third_post/assets/src/foo/bar.rb",
|
31
|
+
"/ro/posts/third_post/attributes.yml",
|
32
|
+
"/ro/posts/third_post/blurb.erb.md",
|
33
|
+
"/ro/posts/third_post/body.md"
|
34
|
+
],
|
35
|
+
"rel": {
|
36
|
+
"curr": "posts/third_post",
|
37
|
+
"prev": "posts/second_post",
|
38
|
+
"next": null
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"posts": {
|
42
|
+
"third_post": "<div class='ro markdown'>\n <ul>\n <li>one</li>\n <li>two</li>\n <li>three</li>\n</ul>\n\n<div class='language-ruby highlighter-rouge'><code class='code' style='white-space:pre;'><div class='code-line code-line-1'> <span style='color: #cf222e'>class</span> <span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'> <span style='color: #0550ae'>@a</span> <span style='color: #0550ae'>=</span> <span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'> <span style='color: #cf222e'>end</span>\n</div></code></div>\n\n<hr/>\n\n<p><img src='/ro/posts/third_post/assets/foo.jpg'/><br/>\n<br/></p>\n\n<p><img src='/ro/posts/third_post/assets/foo/bar/baz.jpg'/></p>\n\n</div>"
|
43
|
+
}
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"_meta": {
|
47
|
+
"url": "/ro",
|
48
|
+
"type": "posts",
|
49
|
+
"id": "third_post"
|
50
|
+
}
|
51
|
+
}
|
Binary file
|
Binary file
|
Binary file
|