ro 1.4.6 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +6 -14
  2. data/Gemfile +2 -0
  3. data/Gemfile.lock +43 -0
  4. data/LICENSE +1 -0
  5. data/README.md +120 -112
  6. data/README.md.erb +159 -0
  7. data/Rakefile +129 -78
  8. data/bin/ro +241 -68
  9. data/lib/ro/_lib.rb +95 -0
  10. data/lib/ro/asset.rb +45 -0
  11. data/lib/ro/collection/list.rb +23 -0
  12. data/lib/ro/collection.rb +168 -0
  13. data/lib/ro/config.rb +68 -0
  14. data/lib/ro/error.rb +8 -0
  15. data/lib/ro/klass.rb +25 -0
  16. data/lib/ro/methods.rb +238 -0
  17. data/lib/ro/model.rb +83 -114
  18. data/lib/ro/node.rb +177 -360
  19. data/lib/ro/pagination.rb +7 -4
  20. data/lib/ro/path.rb +225 -0
  21. data/lib/ro/root.rb +52 -31
  22. data/lib/ro/script/builder.rb +221 -0
  23. data/lib/ro/script/console.rb +47 -0
  24. data/lib/ro/script/server.rb +76 -0
  25. data/lib/ro/script.rb +189 -0
  26. data/lib/ro/slug.rb +19 -18
  27. data/lib/ro/template/rouge_formatter.rb +42 -0
  28. data/lib/ro/template.rb +104 -50
  29. data/lib/ro.rb +85 -317
  30. data/public/api/ro/index-1.json +147 -0
  31. data/public/api/ro/index.json +137 -0
  32. data/public/api/ro/posts/first_post/index.json +52 -0
  33. data/public/api/ro/posts/index-1.json +145 -0
  34. data/public/api/ro/posts/index.json +135 -0
  35. data/public/api/ro/posts/second_post/index.json +51 -0
  36. data/public/api/ro/posts/third_post/index.json +51 -0
  37. data/public/ro/posts/first_post/assets/foo/bar/baz.jpg +0 -0
  38. data/public/ro/posts/first_post/assets/foo.jpg +0 -0
  39. data/public/ro/posts/first_post/assets/src/foo/bar.rb +3 -0
  40. data/public/ro/posts/first_post/attributes.yml +2 -0
  41. data/public/ro/posts/first_post/blurb.erb.md +7 -0
  42. data/public/ro/posts/first_post/body.md +16 -0
  43. data/public/ro/posts/first_post/testing.txt +3 -0
  44. data/public/ro/posts/second_post/assets/foo/bar/baz.jpg +0 -0
  45. data/public/ro/posts/second_post/assets/foo.jpg +0 -0
  46. data/public/ro/posts/second_post/assets/src/foo/bar.rb +3 -0
  47. data/public/ro/posts/second_post/attributes.yml +2 -0
  48. data/public/ro/posts/second_post/blurb.erb.md +5 -0
  49. data/public/ro/posts/second_post/body.md +16 -0
  50. data/public/ro/posts/third_post/assets/foo/bar/baz.jpg +0 -0
  51. data/public/ro/posts/third_post/assets/foo.jpg +0 -0
  52. data/public/ro/posts/third_post/assets/src/foo/bar.rb +3 -0
  53. data/public/ro/posts/third_post/attributes.yml +2 -0
  54. data/public/ro/posts/third_post/blurb.erb.md +5 -0
  55. data/public/ro/posts/third_post/body.md +16 -0
  56. data/ro.gemspec +89 -29
  57. metadata +106 -90
  58. data/TODO.md +0 -50
  59. data/lib/ro/blankslate.rb +0 -7
  60. data/lib/ro/cache.rb +0 -26
  61. data/lib/ro/git.rb +0 -374
  62. data/lib/ro/initializers/env.rb +0 -5
  63. data/lib/ro/initializers/tilt.rb +0 -104
  64. data/lib/ro/lock.rb +0 -53
  65. data/lib/ro/node/list.rb +0 -142
  66. 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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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'>&nbsp;&nbsp;<span style='color: #cf222e'>class</span>&nbsp;&nbsp;<span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color: #0550ae'>@a</span>&nbsp;<span style='color: #0550ae'>=</span>&nbsp;<span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'>&nbsp;&nbsp;<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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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'>&nbsp;&nbsp;<span style='color: #cf222e'>class</span>&nbsp;&nbsp;<span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color: #0550ae'>@a</span>&nbsp;<span style='color: #0550ae'>=</span>&nbsp;<span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'>&nbsp;&nbsp;<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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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'>&nbsp;&nbsp;<span style='color: #cf222e'>class</span>&nbsp;&nbsp;<span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color: #0550ae'>@a</span>&nbsp;<span style='color: #0550ae'>=</span>&nbsp;<span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'>&nbsp;&nbsp;<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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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'>&nbsp;&nbsp;<span style='color: #cf222e'>class</span>&nbsp;&nbsp;<span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color: #0550ae'>@a</span>&nbsp;<span style='color: #0550ae'>=</span>&nbsp;<span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'>&nbsp;&nbsp;<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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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'>&nbsp;&nbsp;<span style='color: #cf222e'>class</span>&nbsp;&nbsp;<span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color: #0550ae'>@a</span>&nbsp;<span style='color: #0550ae'>=</span>&nbsp;<span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'>&nbsp;&nbsp;<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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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'>&nbsp;&nbsp;<span style='color: #cf222e'>class</span>&nbsp;&nbsp;<span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color: #0550ae'>@a</span>&nbsp;<span style='color: #0550ae'>=</span>&nbsp;<span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'>&nbsp;&nbsp;<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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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'>&nbsp;&nbsp;<span style='color: #cf222e'>class</span>&nbsp;&nbsp;<span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color: #0550ae'>@a</span>&nbsp;<span style='color: #0550ae'>=</span>&nbsp;<span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'>&nbsp;&nbsp;<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>&nbsp;<span style=\"color: #953800\">C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;<span style=\"color: #953800\">A</span>&nbsp;<span style=\"color: #0550ae\">=</span>&nbsp;<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'>&nbsp;&nbsp;<span style='color: #cf222e'>class</span>&nbsp;&nbsp;<span style='color: #953800'>C</span>\n</div><div class='code-line code-line-2'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color: #0550ae'>@a</span>&nbsp;<span style='color: #0550ae'>=</span>&nbsp;<span style='color: #0550ae'>42</span>\n</div><div class='code-line code-line-3'>&nbsp;&nbsp;<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
+ }
@@ -0,0 +1,3 @@
1
+ class C
2
+ A = 42
3
+ end
@@ -0,0 +1,2 @@
1
+ title: First Post
2
+ author: people/alice
@@ -0,0 +1,7 @@
1
+ * a
2
+ * b
3
+ * c
4
+
5
+ generated_at: <%= Time.now.utc.iso8601 %>
6
+ <br>
7
+ <%= ro.posts.second_post.title %>
@@ -0,0 +1,16 @@
1
+ * one
2
+ * two
3
+ * three
4
+
5
+ ```ruby
6
+ class C
7
+ @a = 42
8
+ end
9
+ ```
10
+
11
+ <hr/>
12
+
13
+ <img src="assets/foo.jpg" />
14
+ <br />
15
+
16
+ <img src="assets/foo/bar/baz.jpg" />
@@ -0,0 +1,3 @@
1
+ 43
2
+
3
+ 42