ruhoh 1.0 → 1.1

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 (63) hide show
  1. data/Gemfile +2 -2
  2. data/README.md +16 -0
  3. data/bin/ruhoh +5 -1
  4. data/history.json +19 -0
  5. data/lib/ruhoh/client/client.rb +35 -48
  6. data/lib/ruhoh/client/console_methods.rb +9 -0
  7. data/lib/ruhoh/client/help.yml +0 -4
  8. data/lib/ruhoh/config.rb +3 -2
  9. data/lib/ruhoh/db.rb +7 -28
  10. data/lib/ruhoh/page.rb +1 -1
  11. data/lib/ruhoh/parsers/pages.rb +2 -4
  12. data/lib/ruhoh/parsers/partials.rb +11 -2
  13. data/lib/ruhoh/parsers/payload.rb +2 -2
  14. data/lib/ruhoh/parsers/posts.rb +21 -24
  15. data/lib/ruhoh/parsers/scaffolds.rb +35 -0
  16. data/lib/ruhoh/paths.rb +11 -3
  17. data/lib/ruhoh/previewer.rb +3 -2
  18. data/lib/ruhoh/urls.rb +5 -1
  19. data/lib/ruhoh/version.rb +1 -1
  20. data/lib/ruhoh.rb +3 -1
  21. data/ruhoh.gemspec +24 -25
  22. data/spec/config_spec.rb +3 -3
  23. data/spec/db_spec.rb +5 -9
  24. data/spec/page_spec.rb +1 -1
  25. data/spec/parsers/layouts_spec.rb +0 -4
  26. data/spec/parsers/pages_spec.rb +44 -36
  27. data/spec/parsers/posts_spec.rb +2 -7
  28. data/spec/parsers/routes_spec.rb +0 -7
  29. data/spec/parsers/site_spec.rb +2 -7
  30. data/spec/setup_spec.rb +0 -3
  31. data/spec/spec_helper.rb +10 -6
  32. data/spec/support/shared_contexts.rb +24 -0
  33. data/{dash.html → system/dash.html} +0 -0
  34. data/system/partials/categories_list.html +3 -0
  35. data/system/partials/pages_list.html +7 -0
  36. data/system/partials/posts_collate.html +9 -0
  37. data/system/partials/posts_list.html +1 -0
  38. data/system/partials/posts_summary.html +30 -0
  39. data/system/partials/tags_list.html +3 -0
  40. data/{scaffolds → system/scaffolds}/draft.html +0 -0
  41. data/{scaffolds → system/scaffolds}/layout.html +0 -0
  42. data/{scaffolds → system/scaffolds}/page.html +0 -0
  43. data/{scaffolds → system/scaffolds}/post.html +0 -0
  44. data/{widgets → system/widgets}/analytics/config.yml +0 -0
  45. data/{widgets → system/widgets}/analytics/layouts/getclicky.html +0 -0
  46. data/{widgets → system/widgets}/analytics/layouts/google.html +0 -0
  47. data/{widgets → system/widgets}/comments/config.yml +0 -0
  48. data/{widgets → system/widgets}/comments/layouts/disqus.html +0 -0
  49. data/{widgets → system/widgets}/comments/layouts/facebook.html +0 -0
  50. data/{widgets → system/widgets}/comments/layouts/intensedebate.html +0 -0
  51. data/{widgets → system/widgets}/comments/layouts/livefyre.html +0 -0
  52. data/{widgets → system/widgets}/google_prettify/config.yml +0 -0
  53. data/{widgets → system/widgets}/google_prettify/layouts/google_prettify.html +0 -0
  54. metadata +32 -42
  55. data/scaffolds/theme/javascripts/.gitkeep +0 -0
  56. data/scaffolds/theme/layouts/default.html +0 -15
  57. data/scaffolds/theme/layouts/page.html +0 -7
  58. data/scaffolds/theme/layouts/post.html +0 -8
  59. data/scaffolds/theme/media/.gitkeep +0 -0
  60. data/scaffolds/theme/partials/.gitkeep +0 -0
  61. data/scaffolds/theme/stylesheets/style.css +0 -0
  62. data/scaffolds/theme/theme.yml +0 -27
  63. data/scaffolds/theme/widgets/.gitkeep +0 -0
data/ruhoh.gemspec CHANGED
@@ -18,7 +18,6 @@ Gem::Specification.new do |s|
18
18
  s.add_dependency 'mustache', "~> 0.99"
19
19
  s.add_dependency 'directory_watcher', "~> 1.4"
20
20
  s.add_dependency 'redcarpet', "~> 2.1"
21
- s.add_dependency 'psych', "~> 1.3"
22
21
  s.add_dependency 'nokogiri', "~> 1.5"
23
22
 
24
23
  # = MANIFEST =
@@ -27,10 +26,10 @@ Gem::Specification.new do |s|
27
26
  README.md
28
27
  Rakefile
29
28
  bin/ruhoh
30
- dash.html
31
29
  history.json
32
30
  lib/ruhoh.rb
33
31
  lib/ruhoh/client/client.rb
32
+ lib/ruhoh/client/console_methods.rb
34
33
  lib/ruhoh/client/help.yml
35
34
  lib/ruhoh/compiler.rb
36
35
  lib/ruhoh/compilers/rss.rb
@@ -50,6 +49,7 @@ Gem::Specification.new do |s|
50
49
  lib/ruhoh/parsers/payload.rb
51
50
  lib/ruhoh/parsers/posts.rb
52
51
  lib/ruhoh/parsers/routes.rb
52
+ lib/ruhoh/parsers/scaffolds.rb
53
53
  lib/ruhoh/parsers/site.rb
54
54
  lib/ruhoh/parsers/stylesheets.rb
55
55
  lib/ruhoh/parsers/theme_config.rb
@@ -66,19 +66,6 @@ Gem::Specification.new do |s|
66
66
  lib/ruhoh/version.rb
67
67
  lib/ruhoh/watch.rb
68
68
  ruhoh.gemspec
69
- scaffolds/draft.html
70
- scaffolds/layout.html
71
- scaffolds/page.html
72
- scaffolds/post.html
73
- scaffolds/theme/javascripts/.gitkeep
74
- scaffolds/theme/layouts/default.html
75
- scaffolds/theme/layouts/page.html
76
- scaffolds/theme/layouts/post.html
77
- scaffolds/theme/media/.gitkeep
78
- scaffolds/theme/partials/.gitkeep
79
- scaffolds/theme/stylesheets/style.css
80
- scaffolds/theme/theme.yml
81
- scaffolds/theme/widgets/.gitkeep
82
69
  spec/config_spec.rb
83
70
  spec/db_spec.rb
84
71
  spec/page_spec.rb
@@ -89,16 +76,28 @@ Gem::Specification.new do |s|
89
76
  spec/parsers/site_spec.rb
90
77
  spec/setup_spec.rb
91
78
  spec/spec_helper.rb
92
- widgets/analytics/config.yml
93
- widgets/analytics/layouts/getclicky.html
94
- widgets/analytics/layouts/google.html
95
- widgets/comments/config.yml
96
- widgets/comments/layouts/disqus.html
97
- widgets/comments/layouts/facebook.html
98
- widgets/comments/layouts/intensedebate.html
99
- widgets/comments/layouts/livefyre.html
100
- widgets/google_prettify/config.yml
101
- widgets/google_prettify/layouts/google_prettify.html
79
+ spec/support/shared_contexts.rb
80
+ system/dash.html
81
+ system/partials/categories_list.html
82
+ system/partials/pages_list.html
83
+ system/partials/posts_collate.html
84
+ system/partials/posts_list.html
85
+ system/partials/posts_summary.html
86
+ system/partials/tags_list.html
87
+ system/scaffolds/draft.html
88
+ system/scaffolds/layout.html
89
+ system/scaffolds/page.html
90
+ system/scaffolds/post.html
91
+ system/widgets/analytics/config.yml
92
+ system/widgets/analytics/layouts/getclicky.html
93
+ system/widgets/analytics/layouts/google.html
94
+ system/widgets/comments/config.yml
95
+ system/widgets/comments/layouts/disqus.html
96
+ system/widgets/comments/layouts/facebook.html
97
+ system/widgets/comments/layouts/intensedebate.html
98
+ system/widgets/comments/layouts/livefyre.html
99
+ system/widgets/google_prettify/config.yml
100
+ system/widgets/google_prettify/layouts/google_prettify.html
102
101
  ]
103
102
  # = MANIFEST =
104
103
  end
data/spec/config_spec.rb CHANGED
@@ -8,7 +8,7 @@ module Config
8
8
  Ruhoh::Utils.should_receive(:parse_yaml_file).and_return({})
9
9
 
10
10
  Ruhoh.log.should_receive(:error)
11
- Ruhoh::Config.generate('config.yml').should be_false
11
+ Ruhoh::Config.generate.should be_false
12
12
  end
13
13
  end
14
14
  context "Valid _config.yml file" do
@@ -24,7 +24,7 @@ module Config
24
24
  }
25
25
  })
26
26
 
27
- config = Ruhoh::Config.generate('config.yml')
27
+ config = Ruhoh::Config.generate
28
28
  config.theme.should == custom_theme
29
29
  config.posts_exclude.should == [/.secret/]
30
30
  end
@@ -41,7 +41,7 @@ module Config
41
41
  },
42
42
  })
43
43
 
44
- config = Ruhoh::Config.generate('config.yml')
44
+ config = Ruhoh::Config.generate
45
45
  config.posts_exclude.should include(/.secret/)
46
46
  config.posts_exclude.should include(/^test/)
47
47
  end
data/spec/db_spec.rb CHANGED
@@ -1,14 +1,11 @@
1
+ require 'spec_helper'
2
+
1
3
  module DB
2
-
3
4
  describe Ruhoh::DB do
4
- let(:whitelist){ Ruhoh::DB::WhiteList }
5
-
6
- before(:each) do
7
- Ruhoh::Utils.stub(:parse_yaml_file).and_return({'theme' => "twitter"})
8
- Ruhoh::Paths.stub(:theme_is_valid?).and_return(true)
9
- Ruhoh.setup(:source => SampleSitePath)
10
- end
5
+ include_context "write_default_theme"
6
+ include_context "default_setup"
11
7
 
8
+ let(:whitelist){ Ruhoh::DB::WhiteList }
12
9
  context "database has not been updated" do
13
10
  it "should return nil for all whitelisted variables except payload" do
14
11
  whitelist.each do |var|
@@ -20,7 +17,6 @@ module DB
20
17
  end
21
18
 
22
19
  describe "#update" do
23
-
24
20
  it "should raise an exception when updating a variable not whitelisted" do
25
21
  lambda { Ruhoh::DB.update(:table) }.should raise_error
26
22
  end
data/spec/page_spec.rb CHANGED
@@ -7,7 +7,7 @@ module Page
7
7
  before(:each) do
8
8
  Ruhoh::Utils.stub(:parse_yaml_file).and_return({'theme' => "twitter"})
9
9
  Ruhoh::Paths.stub(:theme_is_valid?).and_return(true)
10
- Ruhoh.setup(:source => SampleSitePath)
10
+
11
11
  end
12
12
 
13
13
  describe "Page initialization" do
@@ -5,7 +5,6 @@ module Layouts
5
5
  before(:each) do
6
6
  expected_theme = "twitter"
7
7
  the_layouts_dir = File.join(SampleSitePath, Ruhoh.names.themes, expected_theme, Ruhoh.names.layouts)
8
- FileUtils.remove_dir(the_layouts_dir, 1) if Dir.exists? the_layouts_dir
9
8
  FileUtils.makedirs the_layouts_dir
10
9
  expected_layouts.each do |layout_name|
11
10
  full_file_name = File.join(the_layouts_dir, layout_name)
@@ -18,9 +17,6 @@ title: #{layout_name} (test)
18
17
  TEXT
19
18
  end
20
19
  end
21
-
22
- Ruhoh::Utils.should_receive(:parse_yaml_file).and_return({'theme' => expected_theme})
23
- Ruhoh.setup(:source => SampleSitePath)
24
20
  end
25
21
 
26
22
  let(:expected_layouts) { %w{default.html page.html post.html} }
@@ -1,15 +1,13 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  module Pages
4
-
5
4
  describe Ruhoh::Parsers::Pages do
6
-
7
5
  describe "#generate" do
6
+ include_context "write_default_theme"
7
+ include_context "default_setup"
8
8
 
9
9
  before(:each) do
10
- Ruhoh::Utils.should_receive(:parse_yaml_file).and_return({'theme' => "twitter"})
11
10
  the_pages_dir = File.join(SampleSitePath, Ruhoh.names.pages)
12
- FileUtils.remove_dir(the_pages_dir, 1) if Dir.exists? the_pages_dir
13
11
  Dir.mkdir the_pages_dir
14
12
  expected_pages.each do |page_name|
15
13
  full_file_name = File.join(the_pages_dir, page_name)
@@ -21,9 +19,6 @@ title: #{page_name} (test)
21
19
  TEXT
22
20
  end
23
21
  end
24
-
25
- Ruhoh::Paths.stub(:theme_is_valid?).and_return(true)
26
- Ruhoh.setup(:source => SampleSitePath)
27
22
  end
28
23
 
29
24
  let(:expected_pages) {
@@ -49,15 +44,7 @@ title: #{page_name} (test)
49
44
  end
50
45
 
51
46
  describe "#is_valid_page?" do
52
-
53
47
  context "No user specified exclusions in config." do
54
-
55
- before(:each) do
56
- Ruhoh::Utils.should_receive(:parse_yaml_file).and_return({'theme' => "twitter"})
57
- Ruhoh::Paths.stub(:theme_is_valid?).and_return(true)
58
- Ruhoh.setup(:source => SampleSitePath)
59
- end
60
-
61
48
  it "should return true for a valid page filepath" do
62
49
  filepath = 'about.md'
63
50
  Ruhoh::Parsers::Pages.is_valid_page?(filepath).should == true
@@ -71,39 +58,60 @@ title: #{page_name} (test)
71
58
  end
72
59
 
73
60
  context "Exclude array is passed into config." do
74
-
75
- it "should return false for a page whose filepath matches a page exclude regular expression." do
76
- filepath = 'about.md'
77
- Ruhoh::Utils.should_receive(:parse_yaml_file).and_return({
78
- 'theme' => "twitter",
79
- 'pages' => {'exclude' => "#{filepath}$"}
80
- })
81
- Ruhoh::Paths.stub(:theme_is_valid?).and_return(true)
82
- Ruhoh.setup(:source => SampleSitePath)
83
- Ruhoh::Parsers::Pages.is_valid_page?(filepath).should == false
84
- end
61
+ before(:each){
62
+ Dir.mkdir SampleSitePath
63
+ theme = "twitter"
64
+ # Create base config.yml + base theme
65
+ File.open(File.join(SampleSitePath, Ruhoh.names.config_data), "w+") { |file|
66
+ file.puts <<-TEXT
67
+ ---
68
+ theme: '#{theme}'
69
+ pages:
70
+ exclude: ['^test', 'blah']
71
+ ---
72
+ TEXT
73
+ }
74
+ theme_dir = File.join(SampleSitePath, Ruhoh.names.themes, theme)
75
+ FileUtils.makedirs theme_dir
76
+ }
77
+ include_context "default_setup"
85
78
 
86
79
  it "should return false for a page filepath matching a regular expression in pages exclude array" do
87
80
  filepath1 = 'test/about.md'
88
81
  filepath2 = 'test/yay.md'
89
82
  filepath3 = 'vest/yay.md'
90
- Ruhoh::Utils.should_receive(:parse_yaml_file).and_return({
91
- 'theme' => "twitter",
92
- 'pages' => {'exclude' => ['^test', 'blah'] }
93
- })
94
- Ruhoh::Paths.stub(:theme_is_valid?).and_return(true)
95
- Ruhoh.setup(:source => SampleSitePath)
96
-
97
83
  Ruhoh::Parsers::Pages.is_valid_page?(filepath1).should == false
98
84
  Ruhoh::Parsers::Pages.is_valid_page?(filepath2).should == false
99
85
  Ruhoh::Parsers::Pages.is_valid_page?(filepath3).should == true
100
86
  end
101
-
102
87
  end
103
88
 
89
+ context "Exclude string is passed into config." do
90
+ let(:filepath){'about.md'}
91
+ before(:each){
92
+ Dir.mkdir SampleSitePath
93
+ theme = "twitter"
94
+ # Create base config.yml + base theme
95
+ File.open(File.join(SampleSitePath, Ruhoh.names.config_data), "w+") { |file|
96
+ file.puts <<-TEXT
97
+ ---
98
+ theme: '#{theme}'
99
+ pages:
100
+ exclude: '#{filepath}$'
101
+ ---
102
+ TEXT
103
+ }
104
+ theme_dir = File.join(SampleSitePath, Ruhoh.names.themes, theme)
105
+ FileUtils.makedirs theme_dir
106
+ }
107
+ include_context "default_setup"
108
+
109
+ it "should return false for a page whose filepath matches a page exclude regular expression." do
110
+ Ruhoh::Parsers::Pages.is_valid_page?(filepath).should == false
111
+ end
112
+ end
104
113
  end
105
-
106
-
114
+
107
115
  describe "#to_title"
108
116
  describe "#permalink"
109
117
 
@@ -2,14 +2,9 @@
2
2
  require 'spec_helper'
3
3
 
4
4
  module Posts
5
-
6
5
  describe Ruhoh::Parsers::Posts do
7
-
8
- before(:each) do
9
- Ruhoh::Utils.should_receive(:parse_yaml_file).and_return({'theme' => "twitter"})
10
- Ruhoh::Paths.stub(:theme_is_valid?).and_return(true)
11
- Ruhoh.setup(:source => SampleSitePath)
12
- end
6
+ include_context "write_default_theme"
7
+ include_context "default_setup"
13
8
 
14
9
  pending "#generate" do
15
10
 
@@ -5,13 +5,6 @@ module Routes
5
5
  describe Ruhoh::Parsers::Routes do
6
6
 
7
7
  describe "#generate" do
8
-
9
- before(:each) do
10
- Ruhoh::Utils.should_receive(:parse_yaml_file).and_return({'theme' => "twitter"})
11
- Ruhoh::Paths.stub(:theme_is_valid?).and_return(true)
12
- Ruhoh.setup(:source => SampleSitePath)
13
- end
14
-
15
8
  let(:pages){
16
9
  {
17
10
  "blah.md" => {'url' => '/blah.html', "id" => "blah.md"},
@@ -3,15 +3,10 @@ require 'spec_helper'
3
3
  module Site
4
4
 
5
5
  describe Ruhoh::Parsers::Site do
6
+ include_context "write_default_theme"
7
+ include_context "default_setup"
6
8
 
7
9
  describe "#generate" do
8
-
9
- before(:each) do
10
- Ruhoh::Utils.should_receive(:parse_yaml_file).and_return({'theme' => "twitter"})
11
- Ruhoh::Paths.stub(:theme_is_valid?).and_return(true)
12
- Ruhoh.setup(:source => SampleSitePath)
13
- end
14
-
15
10
  it 'should parse the config and site yaml files' do
16
11
  Ruhoh::Utils.should_receive(:parse_yaml_file).with(Ruhoh.paths.site_data).and_return({})
17
12
  Ruhoh::Utils.should_receive(:parse_yaml_file).with(Ruhoh.paths.config_data).and_return({})
data/spec/setup_spec.rb CHANGED
@@ -5,9 +5,6 @@ module Setup
5
5
  describe "#setup" do
6
6
  it 'should setup config, paths, and filters' do
7
7
  Ruhoh::Config.should_receive(:generate).and_return(true)
8
- Ruhoh::Paths.should_receive(:generate).and_return(true)
9
- Ruhoh::Urls.should_receive(:generate).and_return(true)
10
- Ruhoh.should_receive(:setup_plugins).and_return(true)
11
8
  Ruhoh.setup
12
9
  end
13
10
  end
data/spec/spec_helper.rb CHANGED
@@ -12,14 +12,18 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
12
12
  $LOAD_PATH.unshift(File.dirname(__FILE__))
13
13
  require 'ruhoh'
14
14
 
15
+ Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f}
16
+
17
+ # Full path to mock blog directory
18
+ SampleSitePath = File.expand_path(File.join(File.dirname(__FILE__), '..', '__tmp'))
19
+
15
20
  RSpec.configure do |config|
21
+ config.before(:each){
22
+ FileUtils.remove_dir(SampleSitePath,1) if Dir.exists? SampleSitePath
23
+ }
16
24
  config.after(:each) do
17
25
  # Reset all configuration variables after each test.
18
26
  Ruhoh.reset
27
+ FileUtils.remove_dir(SampleSitePath,1) if Dir.exists? SampleSitePath
19
28
  end
20
- end
21
-
22
- SampleSitePath = '__tmp'
23
-
24
- FileUtils.remove_dir(SampleSitePath,1) if Dir.exists? SampleSitePath
25
- Dir.mkdir SampleSitePath
29
+ end
@@ -0,0 +1,24 @@
1
+ shared_context 'write_default_theme' do
2
+ before(:each) do
3
+ Dir.mkdir SampleSitePath
4
+ theme = "twitter"
5
+ # Create base config.yml + base theme
6
+ File.open(File.join(SampleSitePath, Ruhoh.names.config_data), "w+") { |file|
7
+ file.puts <<-TEXT
8
+ ---
9
+ theme: '#{theme}'
10
+ ---
11
+ TEXT
12
+ }
13
+ theme_dir = File.join(SampleSitePath, Ruhoh.names.themes, theme)
14
+ FileUtils.makedirs theme_dir
15
+ end
16
+ end
17
+
18
+ shared_context 'default_setup' do
19
+ before(:each) do
20
+ Ruhoh.setup(:source => SampleSitePath)
21
+ Ruhoh.setup_paths
22
+ Ruhoh.setup_urls
23
+ end
24
+ end
File without changes
@@ -0,0 +1,3 @@
1
+ <li>
2
+ <a href="{{ url }}">{{ name }} <span>{{ count }}</span></a>
3
+ </li>
@@ -0,0 +1,7 @@
1
+ {{#is_active_page }}
2
+ <li class="active"><a href="{{url}}" class="active">{{title}}</a></li>
3
+ {{/is_active_page}}
4
+
5
+ {{^is_active_page}}
6
+ <li><a href="{{url}}">{{title}}</a></li>
7
+ {{/is_active_page }}
@@ -0,0 +1,9 @@
1
+ <h2>{{year}}</h2>
2
+ {{#months}}
3
+ <h3>{{month}}</h3>
4
+ <ul>
5
+ {{#posts?to_posts}}
6
+ <li><span>{{date}}</span> &raquo; <a href="{{url}}">{{title}}</a></li>
7
+ {{/posts?to_posts}}
8
+ </ul>
9
+ {{/months}}
@@ -0,0 +1 @@
1
+ <li><a href="{{url}}">{{title}}</a></li>
@@ -0,0 +1,30 @@
1
+ <br/><br/>
2
+ <div class="page-header">
3
+ <h1>{{ title }} {{# tagline }} <small>{{ . }}</small>{{/ tagline }}</h1>
4
+ </div>
5
+
6
+ <div class="row">
7
+ <div class="span8">
8
+ {{{ content }}}
9
+
10
+ <hr>
11
+
12
+ {{{comments_count}}}
13
+
14
+ </div>
15
+
16
+ <div class="span4">
17
+ <h4>Published</h4>
18
+ <div class="date"><span>{{ date }}</span></div>
19
+ <br>
20
+
21
+ <h4>Tags</h4>
22
+ <ul class="tag_box">
23
+ {{# tags?to_tags }}
24
+ {{> tags_list }}
25
+ {{/ tags?to_tags }}
26
+ </ul>
27
+
28
+ {{{share_this}}}
29
+ </div>
30
+ </div>
@@ -0,0 +1,3 @@
1
+ <li>
2
+ <a href="{{ url }}">{{ name }} <span>{{ count }}</span></a>
3
+ </li>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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: '1.0'
4
+ version: '1.1'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-22 00:00:00.000000000 Z
12
+ date: 2012-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -75,22 +75,6 @@ dependencies:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
77
  version: '2.1'
78
- - !ruby/object:Gem::Dependency
79
- name: psych
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ~>
84
- - !ruby/object:Gem::Version
85
- version: '1.3'
86
- type: :runtime
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: '1.3'
94
78
  - !ruby/object:Gem::Dependency
95
79
  name: nokogiri
96
80
  requirement: !ruby/object:Gem::Requirement
@@ -118,10 +102,10 @@ files:
118
102
  - README.md
119
103
  - Rakefile
120
104
  - bin/ruhoh
121
- - dash.html
122
105
  - history.json
123
106
  - lib/ruhoh.rb
124
107
  - lib/ruhoh/client/client.rb
108
+ - lib/ruhoh/client/console_methods.rb
125
109
  - lib/ruhoh/client/help.yml
126
110
  - lib/ruhoh/compiler.rb
127
111
  - lib/ruhoh/compilers/rss.rb
@@ -141,6 +125,7 @@ files:
141
125
  - lib/ruhoh/parsers/payload.rb
142
126
  - lib/ruhoh/parsers/posts.rb
143
127
  - lib/ruhoh/parsers/routes.rb
128
+ - lib/ruhoh/parsers/scaffolds.rb
144
129
  - lib/ruhoh/parsers/site.rb
145
130
  - lib/ruhoh/parsers/stylesheets.rb
146
131
  - lib/ruhoh/parsers/theme_config.rb
@@ -157,19 +142,6 @@ files:
157
142
  - lib/ruhoh/version.rb
158
143
  - lib/ruhoh/watch.rb
159
144
  - ruhoh.gemspec
160
- - scaffolds/draft.html
161
- - scaffolds/layout.html
162
- - scaffolds/page.html
163
- - scaffolds/post.html
164
- - scaffolds/theme/javascripts/.gitkeep
165
- - scaffolds/theme/layouts/default.html
166
- - scaffolds/theme/layouts/page.html
167
- - scaffolds/theme/layouts/post.html
168
- - scaffolds/theme/media/.gitkeep
169
- - scaffolds/theme/partials/.gitkeep
170
- - scaffolds/theme/stylesheets/style.css
171
- - scaffolds/theme/theme.yml
172
- - scaffolds/theme/widgets/.gitkeep
173
145
  - spec/config_spec.rb
174
146
  - spec/db_spec.rb
175
147
  - spec/page_spec.rb
@@ -180,16 +152,28 @@ files:
180
152
  - spec/parsers/site_spec.rb
181
153
  - spec/setup_spec.rb
182
154
  - spec/spec_helper.rb
183
- - widgets/analytics/config.yml
184
- - widgets/analytics/layouts/getclicky.html
185
- - widgets/analytics/layouts/google.html
186
- - widgets/comments/config.yml
187
- - widgets/comments/layouts/disqus.html
188
- - widgets/comments/layouts/facebook.html
189
- - widgets/comments/layouts/intensedebate.html
190
- - widgets/comments/layouts/livefyre.html
191
- - widgets/google_prettify/config.yml
192
- - widgets/google_prettify/layouts/google_prettify.html
155
+ - spec/support/shared_contexts.rb
156
+ - system/dash.html
157
+ - system/partials/categories_list.html
158
+ - system/partials/pages_list.html
159
+ - system/partials/posts_collate.html
160
+ - system/partials/posts_list.html
161
+ - system/partials/posts_summary.html
162
+ - system/partials/tags_list.html
163
+ - system/scaffolds/draft.html
164
+ - system/scaffolds/layout.html
165
+ - system/scaffolds/page.html
166
+ - system/scaffolds/post.html
167
+ - system/widgets/analytics/config.yml
168
+ - system/widgets/analytics/layouts/getclicky.html
169
+ - system/widgets/analytics/layouts/google.html
170
+ - system/widgets/comments/config.yml
171
+ - system/widgets/comments/layouts/disqus.html
172
+ - system/widgets/comments/layouts/facebook.html
173
+ - system/widgets/comments/layouts/intensedebate.html
174
+ - system/widgets/comments/layouts/livefyre.html
175
+ - system/widgets/google_prettify/config.yml
176
+ - system/widgets/google_prettify/layouts/google_prettify.html
193
177
  homepage: http://github.com/ruhoh/ruhoh.rb
194
178
  licenses:
195
179
  - http://www.opensource.org/licenses/MIT
@@ -203,12 +187,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
187
  - - ! '>='
204
188
  - !ruby/object:Gem::Version
205
189
  version: '0'
190
+ segments:
191
+ - 0
192
+ hash: -2404318061189800228
206
193
  required_rubygems_version: !ruby/object:Gem::Requirement
207
194
  none: false
208
195
  requirements:
209
196
  - - ! '>='
210
197
  - !ruby/object:Gem::Version
211
198
  version: '0'
199
+ segments:
200
+ - 0
201
+ hash: -2404318061189800228
212
202
  requirements: []
213
203
  rubyforge_project:
214
204
  rubygems_version: 1.8.24
File without changes
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- {{{ assets }}}
6
- </head>
7
- <body>
8
-
9
- <div class="content">
10
- {{{ content }}}
11
- </div>
12
-
13
- {{{ analytics }}}
14
- </body>
15
- </html>