plateau 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.md +11 -3
  2. data/lib/Plateau.rb +3 -3
  3. metadata +5 -5
data/README.md CHANGED
@@ -1,9 +1,17 @@
1
1
  #Plateau!
2
2
 
3
- plateau init
3
+ A database-less publishing engine which takes markdown copy (or straight html) and mustache templates and builds a flat-file html website & blog with rss, sitemap.xml tagging, custom metadata and per-post/page css & javascript. No serverside infrastructure required other than serving of flat html files, though publishing via git is recommended for speed.
4
4
 
5
- Creates a boilerplate site with example theme
5
+ Install:
6
6
 
7
- plateau build
7
+ gem install plateau
8
+
9
+ Create a project in current folder:
10
+
11
+ plateau init
12
+
13
+ Build into rendered html:
14
+
15
+ plateau build
8
16
 
9
17
  Builds a static html website in ./site using content from ./content and the theme specified in plateau.yml
data/lib/Plateau.rb CHANGED
@@ -11,7 +11,7 @@ class Plateau
11
11
  end
12
12
 
13
13
  def init_dir(name="plateau")
14
- version = "0.0.1"
14
+ version = "0.0.2"
15
15
  @gem_path = Gem.path[0]+"/gems/plateau-"+version
16
16
  @resources_path = Gem.path[0]+"/gems/plateau-"+version+"/resources"
17
17
  system("tar -xzvf #{@resources_path}/Plateau.tar.gz")
@@ -223,8 +223,8 @@ class Plateau
223
223
  }
224
224
  @posts << post
225
225
  }
226
- @posts.sort_by!{ |post| post['date'] }.reverse!
227
-
226
+ # @posts.sort_by!{ |post| post['date'] }.reverse!
227
+ @posts.sort! {|x,y| y['date'] <=> x['date'] }#.reverse!
228
228
  end
229
229
 
230
230
  def exhale
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plateau
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-02-13 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mustache
17
- requirement: &70112699833120 !ruby/object:Gem::Requirement
17
+ requirement: &70197986810400 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 0.99.4
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70112699833120
25
+ version_requirements: *70197986810400
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: maruku
28
- requirement: &70112699832400 !ruby/object:Gem::Requirement
28
+ requirement: &70197986809640 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 0.6.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70112699832400
36
+ version_requirements: *70197986809640
37
37
  description: Flat file publishing engine
38
38
  email: dan@explodingbox.com
39
39
  executables: