ro 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +68 -10
  3. data/lib/ro.rb +1 -1
  4. data/notes/ara.txt +1 -1
  5. data/ro.gemspec +1 -1
  6. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzI0NGMwM2VlMDE4OWU1NzkzN2ZkZThlYTJiNTM4YjU1YjJiYmMzOQ==
4
+ YmViOTZiYmVkMjE5NjliNmRhZDlhYzBlN2VkYWQ3N2QxNDg2MjU1Yg==
5
5
  data.tar.gz: !binary |-
6
- Y2Q1ODc5M2MxZWJmNTIzODdkNGM5NzVhYmQzZjQ1OGE3MDM3YTkwNQ==
6
+ ZGY4OGU3Yzc2Nzg5NTllZDIxMzllNjkzN2ExNDQyMDFhM2Q1ZWI0Yw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- N2Y0ZDI3YWQxMTlhNGQyNzRiNWI3NGI3NGIxODgxZjE0OTdkNjM5NTFlNjdk
10
- YTI1MjM1MTc4ZDk0MDYyZThlM2FkNTc1M2QyYjg3MWUyZTlkYzA2N2VhODQ3
11
- M2Q4N2U1YWEzMzZmNTQ1MDE1OWFlYmE1M2FlMzJhNGFkOTA2NGM=
9
+ Y2U4MjU2MDBjMGI4MGI3ODBiOTUwZTYyZTUyOGJiODBkNWMxNTYwZTMxOTBh
10
+ YjAzNTVhNjc5ODE3MzNiYWY1MzMwNWU2YjU0MGI5MmM2MGI5Y2IwMjU3MDM5
11
+ MjMwYjFlZmJjNzA5MmEwZGEwYjI4NzM3MWI3MjRmMTA4ZmJiNDE=
12
12
  data.tar.gz: !binary |-
13
- MTE3ZWQyMTA4M2RjMDgxY2E3ZGM5MjhlZDA3NmE4MWFmZjk2NDQ5MzdjNjNm
14
- YzU5NmYxNjFkMzRlYmE3OWE0NWVhNDQ4MjA3M2ZiYzRkMzk4NDAzODI4MTE0
15
- NThmYThmNmUyNjY0ODI4NzgxMDUzNDQzZWFhZDZkODNlYTI5MjU=
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.people #=> all people nodes
38
- ro[:people] #=> same thing
37
+ ro
38
+ #=> all the content nodes
39
39
 
40
- ro.people.ara #=> data for the person named 'ara'
41
- ro[:people][:ara] #=> same thing
40
+ ro.posts
41
+ #=> all the post nodes
42
42
 
43
+ ro.people
44
+ #=> all people nodes
43
45
 
44
- ro.people.ara.first_name #=> give you *one* guess ;-) !
46
+ ro[:people]
47
+ #=> same thing
45
48
 
46
- ro.people.ara.url_for('ara-glacier.jpg') #=> external, timestamped, url for this asset
49
+ ro.people.ara
50
+ #=> data for the person named 'ara'
47
51
 
48
- ro.people.ara.source('a.rb') #=> syntax highlighted source yo!
52
+ ro[:people][:ara]
53
+ #=> same thing
49
54
 
50
- ro.posts.find('second-awesome-post').body #=> html-z yo
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
- ```bash
79
+ TRY
80
+ ---
56
81
 
57
- ### CHECK IT OUT!
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
@@ -10,7 +10,7 @@
10
10
 
11
11
  #
12
12
  module Ro
13
- Version = '1.1.0' unless defined?(Version)
13
+ Version = '1.1.1' unless defined?(Version)
14
14
 
15
15
  def version
16
16
  Ro::Version
data/notes/ara.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  todo:
2
- - helper/model extension
2
+ - helper/model extension ?
3
3
 
4
4
  Ro.helper(:posts) do
5
5
  end
data/ro.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "ro"
6
- spec.version = "1.1.0"
6
+ spec.version = "1.1.1"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "ro"
9
9
  spec.description = "description: ro kicks the ass"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard