ro 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +68 -10
- data/lib/ro.rb +1 -1
- data/notes/ara.txt +1 -1
- data/ro.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmViOTZiYmVkMjE5NjliNmRhZDlhYzBlN2VkYWQ3N2QxNDg2MjU1Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGY4OGU3Yzc2Nzg5NTllZDIxMzllNjkzN2ExNDQyMDFhM2Q1ZWI0Yw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2U4MjU2MDBjMGI4MGI3ODBiOTUwZTYyZTUyOGJiODBkNWMxNTYwZTMxOTBh
|
10
|
+
YjAzNTVhNjc5ODE3MzNiYWY1MzMwNWU2YjU0MGI5MmM2MGI5Y2IwMjU3MDM5
|
11
|
+
MjMwYjFlZmJjNzA5MmEwZGEwYjI4NzM3MWI3MjRmMTA4ZmJiNDE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDg3M2FiOTRiMTlmZGMzNmJkNzI3MWFjNTE1YjkyMzJmN2U3NTVjMGQxMjc3
|
14
|
+
MjYxYjM1OGM3Yzk2YmVmZTc4NDlkMjdiNjZkMGVkNjRmYTUwYmJmOTk5YzE2
|
15
|
+
NTJmY2NjYzNiZTcyMDQ4NTc3NTY5ZTcxYzZlYjU3ZDdkNTQ5Njk=
|
data/README.md
CHANGED
@@ -34,32 +34,83 @@ TL;DR
|
|
34
34
|
|
35
35
|
```ruby
|
36
36
|
|
37
|
-
ro
|
38
|
-
|
37
|
+
ro
|
38
|
+
#=> all the content nodes
|
39
39
|
|
40
|
-
ro.
|
41
|
-
|
40
|
+
ro.posts
|
41
|
+
#=> all the post nodes
|
42
42
|
|
43
|
+
ro.people
|
44
|
+
#=> all people nodes
|
43
45
|
|
44
|
-
ro
|
46
|
+
ro[:people]
|
47
|
+
#=> same thing
|
45
48
|
|
46
|
-
ro.people.ara
|
49
|
+
ro.people.ara
|
50
|
+
#=> data for the person named 'ara'
|
47
51
|
|
48
|
-
ro
|
52
|
+
ro[:people][:ara]
|
53
|
+
#=> same thing
|
49
54
|
|
50
|
-
ro
|
55
|
+
ro['people']['ara']
|
56
|
+
#=> same thing
|
57
|
+
|
58
|
+
ro.people.ara.first_name
|
59
|
+
#=> give you *one* guess ;-) !
|
60
|
+
|
61
|
+
ro.people.ara.url_for('ara-glacier.jpg')
|
62
|
+
#=> external timestamped url for this asset
|
63
|
+
|
64
|
+
ro.people.ara.source('a.rb')
|
65
|
+
#=> syntax highlighted source yo!
|
66
|
+
|
67
|
+
ro.posts.find('second-awesome-post').body
|
68
|
+
#=> html-z yo
|
69
|
+
|
70
|
+
ro.people.ara.related(:posts)
|
71
|
+
#=> all related posts
|
72
|
+
|
73
|
+
ro.people.ara.related(:featured_posts)
|
74
|
+
#=> all featured posts
|
51
75
|
|
52
76
|
|
53
77
|
```
|
54
78
|
|
55
|
-
|
79
|
+
TRY
|
80
|
+
---
|
56
81
|
|
57
|
-
|
82
|
+
```bash
|
58
83
|
|
59
84
|
~ > git clone https://github.com/ahoward/ro.git
|
60
85
|
~ > cd ro
|
61
86
|
~> ./bin/ro console
|
62
87
|
|
88
|
+
|
89
|
+
a:~/git/ahoward/ro $ ./bin/ro console
|
90
|
+
Ro(./ro):001:0> ro.people
|
91
|
+
=> [people/ara, people/noah]
|
92
|
+
|
93
|
+
Ro(./ro):002:0> ro.people.ara
|
94
|
+
=> people/ara
|
95
|
+
|
96
|
+
Ro(./ro):003:0> ro.people.ara.first_name
|
97
|
+
=> "Ara"
|
98
|
+
|
99
|
+
Ro(./ro):004:0> ro.people.ara.bio
|
100
|
+
=> "<ul>\n<li>one</li>\n<li>two</li>\n<li>three</li>\n</ul>\n\n<p>pretty syntax highlighting</p>\n<div class=\"highlight\"><pre> <span class=\"vi\">@a</span> <span class=\"o\">=</span> <span class=\"mi\">42</span>\n</pre></div>\n<p>Ara</p>\n\n<p>/ro/people/ara/assets/ara-glacier.jpg?_=1382999368</p>\n"
|
101
|
+
|
102
|
+
Ro(./ro):005:0> ro.people.ara.url_for('ara-glacier')
|
103
|
+
=> "/ro/people/ara/assets/ara-glacier.jpg?_=1382999368"
|
104
|
+
|
105
|
+
Ro(./ro):006:0> ro.people.ara.related
|
106
|
+
=> [posts/hello-world, posts/second-awesome-post]
|
107
|
+
|
108
|
+
Ro(./ro):007:0> ro.people.ara.related.posts
|
109
|
+
=> [posts/hello-world, posts/second-awesome-post]
|
110
|
+
|
111
|
+
Ro(./ro):008:0> ro.people.ara.related(:featured_posts)
|
112
|
+
=> [posts/second-awesome-post]
|
113
|
+
|
63
114
|
```
|
64
115
|
|
65
116
|
DESCRIPTION
|
@@ -73,6 +124,13 @@ it features:
|
|
73
124
|
- *all* teh templates supported via tilt (https://github.com/rtomayko/tilt)
|
74
125
|
- the awesomest markdown ever, with syntax highlighting and even erb evaluation
|
75
126
|
- an awesome command line tool for introspecting your data (./ro console)
|
127
|
+
- data driven relationships
|
128
|
+
|
129
|
+
|
130
|
+
ro is the *perfect* companion to a site built by a static site generator such
|
131
|
+
as middleman (http://middlemanapp.com/). especially a middleman site with a
|
132
|
+
companion rails' application doing concurrent modifications of the site's
|
133
|
+
content... ;-)
|
76
134
|
|
77
135
|
|
78
136
|
INSTALL
|
data/lib/ro.rb
CHANGED
data/notes/ara.txt
CHANGED
data/ro.gemspec
CHANGED