ruhoh 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +0 -41
- data/history.txt +8 -4
- data/lib/ruhoh/client/client.rb +1 -1
- data/lib/ruhoh/previewer.rb +20 -7
- data/lib/ruhoh/templaters/helpers.rb +1 -1
- data/lib/ruhoh/utils.rb +0 -1
- data/lib/ruhoh/version.rb +1 -1
- metadata +10 -10
data/README.md
CHANGED
@@ -7,44 +7,3 @@
|
|
7
7
|
|
8
8
|
$ gem install ruhoh
|
9
9
|
$ ruhoh help
|
10
|
-
|
11
|
-
|
12
|
-
# SIMPLIFY SIMPLIFY SIMPLIFY
|
13
|
-
|
14
|
-
# Fronts
|
15
|
-
|
16
|
-
## ruhoh hosting
|
17
|
-
|
18
|
-
User Workflow:
|
19
|
-
|
20
|
-
- user auths with ruhoh.com
|
21
|
-
ruhoh expects a users blog to be in the GitHub repo: username.ruhoh.com
|
22
|
-
- user gives GitHub the ruhoh.com POST receive hook for his username.ruhoh.com repo
|
23
|
-
|
24
|
-
Implementation:
|
25
|
-
|
26
|
-
Sinatra app
|
27
|
-
handle POST requests from GitHub post receive hook.
|
28
|
-
oAuth via GitHub provider.
|
29
|
-
user accounts via GitHub oAuth.
|
30
|
-
wildcard domain name mapping: *.ruhoh.com
|
31
|
-
|
32
|
-
git clone/fetch repositories and compile the blog for hosting.
|
33
|
-
|
34
|
-
|
35
|
-
x] create server on linode
|
36
|
-
x] host sinatra app at app.ruhoh.com
|
37
|
-
send post receive hook to app.ruhoh.com
|
38
|
-
|
39
|
-
hook should trigger git clone if repo does not exist.
|
40
|
-
hook should trigger git pull/fetch if repo does exist
|
41
|
-
repo should compile after repo update
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
## Sbvtle
|
46
|
-
|
47
|
-
Adopt the admin UI at /\_drafts
|
48
|
-
|
49
|
-
|
50
|
-
|
data/history.txt
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
|
2
|
-
0.1.
|
3
|
-
|
1
|
+
19.4.2012
|
2
|
+
0.1.3 - BUG: Fix drafts not maintaining file extension when publishing
|
3
|
+
BUG: tags helper should use tags database.
|
4
|
+
BUG: Fix for properly handling filepaths on Windows machines.
|
5
|
+
18.4.2012
|
6
|
+
0.1.2 - BUG: Fix bug with YAML psych/syck errors.
|
7
|
+
0.1.1 - @tkellen tidies up partials + fix 'paths.theme' error in theme scaffold.
|
4
8
|
12.4.2012
|
5
|
-
0.1.0
|
9
|
+
0.1.0 - Initial public release.
|
6
10
|
|
data/lib/ruhoh/client/client.rb
CHANGED
data/lib/ruhoh/previewer.rb
CHANGED
@@ -33,14 +33,27 @@ class Ruhoh
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def drafts
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|
41
|
-
html += '</ul>'
|
36
|
+
#tmpl = File.open(File.join(Ruhoh::Root, 'dashboard.html'))
|
37
|
+
tmpl = File.open(File.join(Ruhoh.paths.site_source, 'dashboard.html'))
|
38
|
+
template = tmpl.read
|
39
|
+
tmpl.close
|
42
40
|
|
43
|
-
|
41
|
+
drafts = []
|
42
|
+
posts = []
|
43
|
+
pages = []
|
44
|
+
Ruhoh::DB.pages.each_value { |p| pages << p }
|
45
|
+
Ruhoh::DB.drafts.each_value { |draft| drafts << draft }
|
46
|
+
Ruhoh::DB.posts['dictionary'].each_value { |p| posts << p }
|
47
|
+
|
48
|
+
#Ruhoh::Templaters::Base.parse(template)
|
49
|
+
payload = {
|
50
|
+
"drafts" => drafts,
|
51
|
+
"posts" => posts,
|
52
|
+
"pages" => pages,
|
53
|
+
}
|
54
|
+
output = Mustache.render(template, payload)
|
55
|
+
|
56
|
+
[200, {'Content-Type' => 'text/html'}, [output]]
|
44
57
|
end
|
45
58
|
|
46
59
|
end #Previewer
|
data/lib/ruhoh/utils.rb
CHANGED
data/lib/ruhoh/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruhoh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-19 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
16
|
-
requirement: &
|
16
|
+
requirement: &70227452372580 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.4'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70227452372580
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mustache
|
27
|
-
requirement: &
|
27
|
+
requirement: &70227452372080 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0.99'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70227452372080
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: directory_watcher
|
38
|
-
requirement: &
|
38
|
+
requirement: &70227452371620 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '1.4'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70227452371620
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: maruku
|
49
|
-
requirement: &
|
49
|
+
requirement: &70227452371160 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0.6'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70227452371160
|
58
58
|
description: Ruhoh is a Universal API for your static blog.
|
59
59
|
email: plusjade@gmail.com
|
60
60
|
executables:
|