staticpress 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/NOTES.markdown +23 -0
- data/Rakefile +1 -6
- data/docs/content/docs/plugins/pagination.haml +30 -0
- data/docs/content/docs/samples/page.markdown +14 -0
- data/docs/content/docs/samples/post.markdown +18 -0
- data/docs/content/docs/themes.markdown +47 -0
- data/lib/skeleton/config.yml +1 -0
- data/lib/staticpress/cli.rb +5 -9
- data/lib/staticpress/content/base.rb +8 -10
- data/lib/staticpress/content/category.rb +17 -4
- data/lib/staticpress/content/collection_content.rb +1 -3
- data/lib/staticpress/content/index.rb +6 -3
- data/lib/staticpress/content/page.rb +4 -0
- data/lib/staticpress/content/post.rb +4 -1
- data/lib/staticpress/content/resource_content.rb +2 -8
- data/lib/staticpress/content/tag.rb +17 -4
- data/lib/staticpress/content/theme.rb +1 -1
- data/lib/staticpress/helpers.rb +5 -5
- data/lib/staticpress/plugins/menu.rb +1 -1
- data/lib/staticpress/plugins/pagination.rb +38 -0
- data/lib/staticpress/theme.rb +45 -17
- data/lib/staticpress/version.rb +1 -1
- data/lib/themes/basic/includes/github.haml +2 -0
- data/lib/themes/basic/layouts/default.haml +1 -0
- data/lib/themes/basic/views/page_paged.haml +6 -0
- data/{tests → spec/fixtures}/test_blog/Gemfile +0 -0
- data/{tests → spec/fixtures}/test_blog/README.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/config.ru +0 -0
- data/{tests → spec/fixtures}/test_blog/config.yml +0 -0
- data/{tests → spec/fixtures}/test_blog/content/_posts/2011-07-20-hello.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/_posts/2011-08-01-announcing-staticpress.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/_posts/2011-08-02-staticpress.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/_posts/2011-08-06-blogging-with-staticpress.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/_posts/2011-08-06-conferences.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/_posts/2011-08-06-in-charlotte.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/_posts/2011-08-20-forever.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/_posts/2012-09-19-unpublished.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/about.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/chain.html.markdown.erb +0 -0
- data/{tests → spec/fixtures}/test_blog/content/chained.markdown.erb +0 -0
- data/{tests → spec/fixtures}/test_blog/content/contact.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/foo/bar/baz.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/index.markdown +0 -0
- data/{tests → spec/fixtures}/test_blog/content/plain.txt +0 -0
- data/{tests → spec/fixtures}/test_blog/content/ruby.png +0 -0
- data/{tests → spec/fixtures}/test_blog/content/style1.css +0 -0
- data/{tests → spec/fixtures}/test_blog/content/style2.css.sass +0 -0
- data/{tests → spec/fixtures}/test_blog/content/style3.sass +0 -0
- data/{tests → spec/fixtures}/test_blog/themes/test_theme/assets/scripts/application.js +0 -0
- data/{tests → spec/fixtures}/test_blog/themes/test_theme/assets/styles/all.sass +0 -0
- data/{tests → spec/fixtures}/test_blog/themes/test_theme/includes/list_posts.haml +0 -0
- data/{lib/themes/basic → spec/fixtures/test_blog/themes/test_theme}/layouts/archive.haml +0 -0
- data/{lib/themes/basic → spec/fixtures/test_blog/themes/test_theme}/layouts/atom.haml +0 -0
- data/{tests → spec/fixtures}/test_blog/themes/test_theme/layouts/default.haml +0 -0
- data/{tests → spec/fixtures}/test_blog/themes/test_theme/layouts/index.haml +0 -0
- data/{tests → spec/fixtures}/test_blog/themes/test_theme/layouts/post_index.haml +0 -0
- data/{tests → spec/fixtures}/test_blog/themes/test_theme/views/default.haml +0 -0
- data/spec/integration/editing_blog_contents_spec.rb +52 -0
- data/spec/integration/editing_blog_spec.rb +42 -0
- data/spec/integration/getting_started_spec.rb +29 -0
- data/spec/spec_helper.rb +35 -0
- data/spec/support/custom_matchers.rb +15 -0
- data/spec/support/fixtures.rb +35 -0
- data/spec/support/integration_support.rb +230 -0
- data/spec/support/unit_support.rb +18 -0
- data/spec/unit/staticpress/content/base_spec.rb +327 -0
- data/spec/unit/staticpress/content/category_spec.rb +60 -0
- data/spec/unit/staticpress/content/index_spec.rb +48 -0
- data/spec/unit/staticpress/content/page_spec.rb +70 -0
- data/spec/unit/staticpress/content/post_spec.rb +54 -0
- data/spec/unit/staticpress/content/resource_content_spec.rb +21 -0
- data/spec/unit/staticpress/content/tag_spec.rb +53 -0
- data/spec/unit/staticpress/content/theme_spec.rb +31 -0
- data/spec/unit/staticpress/helpers_spec.rb +72 -0
- data/spec/unit/staticpress/js_object_spec.rb +61 -0
- data/spec/unit/staticpress/metadata_spec.rb +15 -0
- data/spec/unit/staticpress/route_spec.rb +219 -0
- data/spec/unit/staticpress/server_spec.rb +23 -0
- data/spec/unit/staticpress/settings_spec.rb +19 -0
- data/spec/unit/staticpress/site_spec.rb +26 -0
- data/spec/unit/staticpress/theme_spec.rb +80 -0
- data/spec/unit/staticpress/view_helpers_spec.rb +40 -0
- data/spec/unit/staticpress_spec.rb +27 -0
- data/staticpress.gemspec +3 -4
- metadata +133 -136
- data/features/editing_blog.feature +0 -24
- data/features/editing_blog_contents.feature +0 -40
- data/features/getting_started.feature +0 -17
- data/features/step_definitions/editing_blog_contents_steps.rb +0 -128
- data/features/step_definitions/editing_blog_steps.rb +0 -52
- data/features/step_definitions/getting_started_steps.rb +0 -51
- data/features/support/env.rb +0 -30
- data/lib/themes/basic/layouts/post_index.haml +0 -15
- data/lib/themes/basic/views/default.haml +0 -10
- data/tests/staticpress/configuration_test.rb +0 -4
- data/tests/staticpress/content/base_test.rb +0 -291
- data/tests/staticpress/content/category_test.rb +0 -48
- data/tests/staticpress/content/index_test.rb +0 -40
- data/tests/staticpress/content/page_test.rb +0 -56
- data/tests/staticpress/content/post_test.rb +0 -42
- data/tests/staticpress/content/resource_content_test.rb +0 -17
- data/tests/staticpress/content/tag_test.rb +0 -39
- data/tests/staticpress/content/theme_test.rb +0 -26
- data/tests/staticpress/helpers_test.rb +0 -63
- data/tests/staticpress/js_object_test.rb +0 -47
- data/tests/staticpress/metadata_test.rb +0 -14
- data/tests/staticpress/plugin_test.rb +0 -4
- data/tests/staticpress/pusher_test.rb +0 -9
- data/tests/staticpress/route_test.rb +0 -186
- data/tests/staticpress/server_test.rb +0 -17
- data/tests/staticpress/settings_test.rb +0 -13
- data/tests/staticpress/site_test.rb +0 -20
- data/tests/staticpress/theme_test.rb +0 -83
- data/tests/staticpress/view_helpers_test.rb +0 -32
- data/tests/staticpress_test.rb +0 -18
- data/tests/test_blog/themes/test_theme/layouts/archive.haml +0 -0
- data/tests/test_blog/themes/test_theme/layouts/atom.haml +0 -0
- data/tests/test_case.rb +0 -54
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Staticpress::Server do
|
4
|
+
basic_blog
|
5
|
+
|
6
|
+
let(:server) { Staticpress::Server.new }
|
7
|
+
|
8
|
+
describe 'GET /' do
|
9
|
+
it '...' do
|
10
|
+
response = server.call(env('/'))
|
11
|
+
expect(response.first).to eq(200)
|
12
|
+
expect(response[1]['Content-Type']).to eq('text/html')
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe 'GET /ruby.png' do
|
17
|
+
it '...' do
|
18
|
+
response = server.call(env('/ruby.png'))
|
19
|
+
expect(response.first).to eq(200)
|
20
|
+
expect(response[1]['Content-Type']).to eq('image/png')
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Staticpress::Settings do
|
4
|
+
basic_blog
|
5
|
+
|
6
|
+
describe '.default' do
|
7
|
+
it '...' do
|
8
|
+
expect(Staticpress::Settings.instance.verbose).to be_false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '.set!' do
|
13
|
+
it '...' do
|
14
|
+
expect(Staticpress::Settings.instance.favorite_number).to be_nil
|
15
|
+
Staticpress::Settings.set! :favorite_number => 42
|
16
|
+
expect(Staticpress::Settings.instance.favorite_number).to eq(42)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Staticpress::Site do
|
4
|
+
basic_blog
|
5
|
+
|
6
|
+
let(:site) { Staticpress::Site.new }
|
7
|
+
|
8
|
+
let(:index) { Staticpress::Content::Page.new :slug => '' }
|
9
|
+
let(:page) { Staticpress::Content::Page.new :slug => 'about' }
|
10
|
+
let(:post) { Staticpress::Content::Post.new :year => '2011', :month => '07', :day => '20', :title => 'hello' }
|
11
|
+
|
12
|
+
describe '.find_content_by_env' do
|
13
|
+
it '...' do
|
14
|
+
expect(site.find_content_by_env(env('/'))).to eq(index)
|
15
|
+
expect(site.find_content_by_env(env('/about'))).to eq(page)
|
16
|
+
expect(site.find_content_by_env(env('/2011/07/20/hello'))).to eq(post)
|
17
|
+
expect(site.find_content_by_env(env('/i/dont/exist'))).to be_nil
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe '#save' do
|
22
|
+
it '...' do
|
23
|
+
expect { site.save }.to_not raise_error(ArgumentError)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Staticpress::Theme do
|
4
|
+
include Staticpress::Helpers
|
5
|
+
|
6
|
+
basic_blog
|
7
|
+
|
8
|
+
let(:parent) { Staticpress::Theme.new :test_theme_parent }
|
9
|
+
let(:theme) { Staticpress::Theme.new :test_theme }
|
10
|
+
|
11
|
+
before :each do
|
12
|
+
config.theme = :test_theme
|
13
|
+
end
|
14
|
+
|
15
|
+
describe '#==' do
|
16
|
+
it '...' do
|
17
|
+
expect(Staticpress::Theme.new(:test_theme)).to be == theme
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe '#assets' do
|
22
|
+
it 'finds all files in the asset directory, top-level or nested' do
|
23
|
+
assets = theme.assets
|
24
|
+
expect(assets.count).to eq(2)
|
25
|
+
expect(assets).to include(theme.root + 'assets' + 'scripts' + 'application.js')
|
26
|
+
expect(assets).to include(theme.root + 'assets' + 'styles' + 'all.sass')
|
27
|
+
end
|
28
|
+
|
29
|
+
context 'inherit from another theme' do
|
30
|
+
before :each do
|
31
|
+
theme.copy_to :test_theme_parent
|
32
|
+
(theme.root + 'assets' + 'scripts' + 'application.js').delete
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'finds all files in parent theme along with own files' do
|
36
|
+
with_config :theme_parent => :test_theme_parent do
|
37
|
+
assets = theme.assets
|
38
|
+
expect(assets.count).to eq(3)
|
39
|
+
expect(assets).to include(parent.root + 'assets' + 'scripts' + 'application.js')
|
40
|
+
expect(assets).to include(parent.root + 'assets' + 'styles' + 'all.sass')
|
41
|
+
expect(assets).to include(theme.root + 'assets' + 'styles' + 'all.sass')
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe '#root' do
|
48
|
+
it '...' do
|
49
|
+
expect(Staticpress.blog_path + 'themes' + 'test_theme').to eq(theme.root)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe '#include_for' do
|
54
|
+
it '...' do
|
55
|
+
expect(theme.include_for(:list_posts)).to eq(theme.root + 'includes' + 'list_posts.haml')
|
56
|
+
expect(theme.include_for(:fake)).to be_nil
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe '#layout_for' do
|
61
|
+
it '...' do
|
62
|
+
expect(theme.layout_for(:default)).to eq(theme.root + 'layouts' + 'default.haml')
|
63
|
+
expect(theme.layout_for(:post_index)).to eq(theme.root + 'layouts' + 'post_index.haml')
|
64
|
+
expect(theme.layout_for(:fake)).to eq(theme.root + 'layouts' + 'default.haml')
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe '#view_for' do
|
69
|
+
it '...' do
|
70
|
+
expect(theme.view_for(:default)).to eq(theme.root + 'views' + 'default.haml')
|
71
|
+
expect(theme.view_for(:fake)).to eq(theme.root + 'views' + 'default.haml')
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
describe '.theme' do
|
76
|
+
it '...' do
|
77
|
+
expect(Staticpress::Theme.theme).to eq(theme)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Staticpress::ViewHelpers do
|
4
|
+
include Staticpress::Helpers
|
5
|
+
|
6
|
+
basic_blog
|
7
|
+
|
8
|
+
let(:post) { Staticpress::Content::Post.new :year => '2011', :month => '07', :day => '20', :title => 'hello' }
|
9
|
+
let(:view_helpers) { Staticpress::ViewHelpers.new post }
|
10
|
+
|
11
|
+
describe '#partial_with_one_post' do
|
12
|
+
it '...' do
|
13
|
+
expected = <<-HTML
|
14
|
+
<section>
|
15
|
+
<article>#{post.render_partial.strip}</article>
|
16
|
+
</section>
|
17
|
+
HTML
|
18
|
+
expect(view_helpers.partial(:list_posts, :posts => [ post ])).to eq(expected)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe '#partial_with_no_posts' do
|
23
|
+
it '...' do
|
24
|
+
expected = <<-HTML
|
25
|
+
<section>
|
26
|
+
</section>
|
27
|
+
HTML
|
28
|
+
expect(view_helpers.partial(:list_posts, :posts => [ ])).to eq(expected)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe '#tag' do
|
33
|
+
it '...' do
|
34
|
+
expect(view_helpers.tag(:t)).to eq('<t></t>')
|
35
|
+
expect(view_helpers.tag(:t, :one => 1)).to eq('<t one="1"></t>')
|
36
|
+
expect(view_helpers.tag(:t) { 'content' }).to eq('<t>content</t>')
|
37
|
+
expect(view_helpers.tag(:t) { view_helpers.tag(:n) }).to eq('<t><n></n></t>')
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Staticpress do
|
4
|
+
basic_blog
|
5
|
+
|
6
|
+
describe '.blog_path' do
|
7
|
+
it 'correctly guesses where the blog is' do
|
8
|
+
expect(Staticpress.blog_path).to eq(Pathname('tmp/test_blog').expand_path)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '.blog_path=' do
|
13
|
+
before do
|
14
|
+
Staticpress.blog_path = 'some/other/directory'
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'can set the blog path explicitly' do
|
18
|
+
expect(Staticpress.blog_path).to eq(Pathname('some/other/directory').expand_path)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe '.root' do
|
23
|
+
it 'knows where it is installed to' do
|
24
|
+
expect(Staticpress.root).to eq(Pathname('lib').expand_path)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/staticpress.gemspec
CHANGED
@@ -23,18 +23,17 @@ Staticpress is a blog-focused static site generator. It uses Tilt for rendering
|
|
23
23
|
s.require_paths = ['lib']
|
24
24
|
|
25
25
|
s.add_development_dependency 'aruba'
|
26
|
-
s.add_development_dependency '
|
27
|
-
s.add_development_dependency '
|
26
|
+
s.add_development_dependency 'pry'
|
27
|
+
s.add_development_dependency 'rspec'
|
28
28
|
|
29
29
|
# test dependencies (see Gemfile)
|
30
30
|
s.add_development_dependency 'compass'
|
31
|
-
s.add_development_dependency 'debugger'
|
32
31
|
s.add_development_dependency 'haml'
|
33
32
|
s.add_development_dependency 'redcarpet'
|
34
33
|
s.add_development_dependency 'sass'
|
35
34
|
|
36
35
|
s.add_runtime_dependency 'bundler'
|
37
|
-
|
36
|
+
s.add_runtime_dependency 'hike'
|
38
37
|
s.add_runtime_dependency 'rack'
|
39
38
|
s.add_runtime_dependency 'thor'
|
40
39
|
s.add_runtime_dependency 'tilt'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: staticpress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
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-
|
12
|
+
date: 2012-12-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aruba
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: pry
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: rspec
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
79
|
+
name: haml
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
@@ -92,7 +92,7 @@ dependencies:
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
95
|
+
name: redcarpet
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
111
|
+
name: sass
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
113
113
|
none: false
|
114
114
|
requirements:
|
@@ -124,14 +124,14 @@ dependencies:
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
127
|
+
name: bundler
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|
131
131
|
- - ! '>='
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
|
-
type: :
|
134
|
+
type: :runtime
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
none: false
|
@@ -140,7 +140,7 @@ dependencies:
|
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '0'
|
142
142
|
- !ruby/object:Gem::Dependency
|
143
|
-
name:
|
143
|
+
name: hike
|
144
144
|
requirement: !ruby/object:Gem::Requirement
|
145
145
|
none: false
|
146
146
|
requirements:
|
@@ -217,6 +217,7 @@ files:
|
|
217
217
|
- .gitignore
|
218
218
|
- .rbenv-version
|
219
219
|
- Gemfile
|
220
|
+
- NOTES.markdown
|
220
221
|
- README.markdown
|
221
222
|
- Rakefile
|
222
223
|
- bin/staticpress
|
@@ -231,17 +232,13 @@ files:
|
|
231
232
|
- docs/content/docs/help.markdown
|
232
233
|
- docs/content/docs/plugins.markdown
|
233
234
|
- docs/content/docs/plugins/menu.markdown
|
235
|
+
- docs/content/docs/plugins/pagination.haml
|
236
|
+
- docs/content/docs/samples/page.markdown
|
237
|
+
- docs/content/docs/samples/post.markdown
|
234
238
|
- docs/content/docs/setup.markdown
|
235
239
|
- docs/content/docs/themes.markdown
|
236
240
|
- docs/content/features.haml
|
237
241
|
- docs/content/index.haml
|
238
|
-
- features/editing_blog.feature
|
239
|
-
- features/editing_blog_contents.feature
|
240
|
-
- features/getting_started.feature
|
241
|
-
- features/step_definitions/editing_blog_contents_steps.rb
|
242
|
-
- features/step_definitions/editing_blog_steps.rb
|
243
|
-
- features/step_definitions/getting_started_steps.rb
|
244
|
-
- features/support/env.rb
|
245
242
|
- lib/skeleton/Gemfile
|
246
243
|
- lib/skeleton/README.markdown
|
247
244
|
- lib/skeleton/config.ru
|
@@ -269,6 +266,7 @@ files:
|
|
269
266
|
- lib/staticpress/plugins/blockquote.rb
|
270
267
|
- lib/staticpress/plugins/gist.rb
|
271
268
|
- lib/staticpress/plugins/menu.rb
|
269
|
+
- lib/staticpress/plugins/pagination.rb
|
272
270
|
- lib/staticpress/plugins/titlecase.rb
|
273
271
|
- lib/staticpress/pusher.rb
|
274
272
|
- lib/staticpress/route.rb
|
@@ -281,66 +279,68 @@ files:
|
|
281
279
|
- lib/themes/basic/assets/scripts/application.js
|
282
280
|
- lib/themes/basic/assets/styles/_normalize.scss
|
283
281
|
- lib/themes/basic/assets/styles/all.css.sass
|
284
|
-
- lib/themes/basic/
|
285
|
-
- lib/themes/basic/layouts/atom.haml
|
282
|
+
- lib/themes/basic/includes/github.haml
|
286
283
|
- lib/themes/basic/layouts/default.haml
|
287
|
-
- lib/themes/basic/
|
288
|
-
-
|
284
|
+
- lib/themes/basic/views/page_paged.haml
|
285
|
+
- spec/fixtures/test_blog/Gemfile
|
286
|
+
- spec/fixtures/test_blog/README.markdown
|
287
|
+
- spec/fixtures/test_blog/config.ru
|
288
|
+
- spec/fixtures/test_blog/config.yml
|
289
|
+
- spec/fixtures/test_blog/content/_posts/2011-07-20-hello.markdown
|
290
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-01-announcing-staticpress.markdown
|
291
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-02-staticpress.markdown
|
292
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-06-blogging-with-staticpress.markdown
|
293
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-06-conferences.markdown
|
294
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-06-in-charlotte.markdown
|
295
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-20-forever.markdown
|
296
|
+
- spec/fixtures/test_blog/content/_posts/2012-09-19-unpublished.markdown
|
297
|
+
- spec/fixtures/test_blog/content/about.markdown
|
298
|
+
- spec/fixtures/test_blog/content/chain.html.markdown.erb
|
299
|
+
- spec/fixtures/test_blog/content/chained.markdown.erb
|
300
|
+
- spec/fixtures/test_blog/content/contact.markdown
|
301
|
+
- spec/fixtures/test_blog/content/foo/bar/baz.markdown
|
302
|
+
- spec/fixtures/test_blog/content/index.markdown
|
303
|
+
- spec/fixtures/test_blog/content/plain.txt
|
304
|
+
- spec/fixtures/test_blog/content/ruby.png
|
305
|
+
- spec/fixtures/test_blog/content/style1.css
|
306
|
+
- spec/fixtures/test_blog/content/style2.css.sass
|
307
|
+
- spec/fixtures/test_blog/content/style3.sass
|
308
|
+
- spec/fixtures/test_blog/themes/test_theme/assets/scripts/application.js
|
309
|
+
- spec/fixtures/test_blog/themes/test_theme/assets/styles/all.sass
|
310
|
+
- spec/fixtures/test_blog/themes/test_theme/includes/list_posts.haml
|
311
|
+
- spec/fixtures/test_blog/themes/test_theme/layouts/archive.haml
|
312
|
+
- spec/fixtures/test_blog/themes/test_theme/layouts/atom.haml
|
313
|
+
- spec/fixtures/test_blog/themes/test_theme/layouts/default.haml
|
314
|
+
- spec/fixtures/test_blog/themes/test_theme/layouts/index.haml
|
315
|
+
- spec/fixtures/test_blog/themes/test_theme/layouts/post_index.haml
|
316
|
+
- spec/fixtures/test_blog/themes/test_theme/views/default.haml
|
317
|
+
- spec/integration/editing_blog_contents_spec.rb
|
318
|
+
- spec/integration/editing_blog_spec.rb
|
319
|
+
- spec/integration/getting_started_spec.rb
|
320
|
+
- spec/spec_helper.rb
|
321
|
+
- spec/support/custom_matchers.rb
|
322
|
+
- spec/support/fixtures.rb
|
323
|
+
- spec/support/integration_support.rb
|
324
|
+
- spec/support/unit_support.rb
|
325
|
+
- spec/unit/staticpress/content/base_spec.rb
|
326
|
+
- spec/unit/staticpress/content/category_spec.rb
|
327
|
+
- spec/unit/staticpress/content/index_spec.rb
|
328
|
+
- spec/unit/staticpress/content/page_spec.rb
|
329
|
+
- spec/unit/staticpress/content/post_spec.rb
|
330
|
+
- spec/unit/staticpress/content/resource_content_spec.rb
|
331
|
+
- spec/unit/staticpress/content/tag_spec.rb
|
332
|
+
- spec/unit/staticpress/content/theme_spec.rb
|
333
|
+
- spec/unit/staticpress/helpers_spec.rb
|
334
|
+
- spec/unit/staticpress/js_object_spec.rb
|
335
|
+
- spec/unit/staticpress/metadata_spec.rb
|
336
|
+
- spec/unit/staticpress/route_spec.rb
|
337
|
+
- spec/unit/staticpress/server_spec.rb
|
338
|
+
- spec/unit/staticpress/settings_spec.rb
|
339
|
+
- spec/unit/staticpress/site_spec.rb
|
340
|
+
- spec/unit/staticpress/theme_spec.rb
|
341
|
+
- spec/unit/staticpress/view_helpers_spec.rb
|
342
|
+
- spec/unit/staticpress_spec.rb
|
289
343
|
- staticpress.gemspec
|
290
|
-
- tests/staticpress/configuration_test.rb
|
291
|
-
- tests/staticpress/content/base_test.rb
|
292
|
-
- tests/staticpress/content/category_test.rb
|
293
|
-
- tests/staticpress/content/index_test.rb
|
294
|
-
- tests/staticpress/content/page_test.rb
|
295
|
-
- tests/staticpress/content/post_test.rb
|
296
|
-
- tests/staticpress/content/resource_content_test.rb
|
297
|
-
- tests/staticpress/content/tag_test.rb
|
298
|
-
- tests/staticpress/content/theme_test.rb
|
299
|
-
- tests/staticpress/helpers_test.rb
|
300
|
-
- tests/staticpress/js_object_test.rb
|
301
|
-
- tests/staticpress/metadata_test.rb
|
302
|
-
- tests/staticpress/plugin_test.rb
|
303
|
-
- tests/staticpress/pusher_test.rb
|
304
|
-
- tests/staticpress/route_test.rb
|
305
|
-
- tests/staticpress/server_test.rb
|
306
|
-
- tests/staticpress/settings_test.rb
|
307
|
-
- tests/staticpress/site_test.rb
|
308
|
-
- tests/staticpress/theme_test.rb
|
309
|
-
- tests/staticpress/view_helpers_test.rb
|
310
|
-
- tests/staticpress_test.rb
|
311
|
-
- tests/test_blog/Gemfile
|
312
|
-
- tests/test_blog/README.markdown
|
313
|
-
- tests/test_blog/config.ru
|
314
|
-
- tests/test_blog/config.yml
|
315
|
-
- tests/test_blog/content/_posts/2011-07-20-hello.markdown
|
316
|
-
- tests/test_blog/content/_posts/2011-08-01-announcing-staticpress.markdown
|
317
|
-
- tests/test_blog/content/_posts/2011-08-02-staticpress.markdown
|
318
|
-
- tests/test_blog/content/_posts/2011-08-06-blogging-with-staticpress.markdown
|
319
|
-
- tests/test_blog/content/_posts/2011-08-06-conferences.markdown
|
320
|
-
- tests/test_blog/content/_posts/2011-08-06-in-charlotte.markdown
|
321
|
-
- tests/test_blog/content/_posts/2011-08-20-forever.markdown
|
322
|
-
- tests/test_blog/content/_posts/2012-09-19-unpublished.markdown
|
323
|
-
- tests/test_blog/content/about.markdown
|
324
|
-
- tests/test_blog/content/chain.html.markdown.erb
|
325
|
-
- tests/test_blog/content/chained.markdown.erb
|
326
|
-
- tests/test_blog/content/contact.markdown
|
327
|
-
- tests/test_blog/content/foo/bar/baz.markdown
|
328
|
-
- tests/test_blog/content/index.markdown
|
329
|
-
- tests/test_blog/content/plain.txt
|
330
|
-
- tests/test_blog/content/ruby.png
|
331
|
-
- tests/test_blog/content/style1.css
|
332
|
-
- tests/test_blog/content/style2.css.sass
|
333
|
-
- tests/test_blog/content/style3.sass
|
334
|
-
- tests/test_blog/themes/test_theme/assets/scripts/application.js
|
335
|
-
- tests/test_blog/themes/test_theme/assets/styles/all.sass
|
336
|
-
- tests/test_blog/themes/test_theme/includes/list_posts.haml
|
337
|
-
- tests/test_blog/themes/test_theme/layouts/archive.haml
|
338
|
-
- tests/test_blog/themes/test_theme/layouts/atom.haml
|
339
|
-
- tests/test_blog/themes/test_theme/layouts/default.haml
|
340
|
-
- tests/test_blog/themes/test_theme/layouts/index.haml
|
341
|
-
- tests/test_blog/themes/test_theme/layouts/post_index.haml
|
342
|
-
- tests/test_blog/themes/test_theme/views/default.haml
|
343
|
-
- tests/test_case.rb
|
344
344
|
homepage: https://github.com/ravinggenius/staticpress
|
345
345
|
licenses:
|
346
346
|
- MIT
|
@@ -367,64 +367,61 @@ signing_key:
|
|
367
367
|
specification_version: 3
|
368
368
|
summary: Blog-centric static site builder
|
369
369
|
test_files:
|
370
|
-
-
|
371
|
-
-
|
372
|
-
-
|
373
|
-
-
|
374
|
-
-
|
375
|
-
-
|
376
|
-
-
|
377
|
-
-
|
378
|
-
-
|
379
|
-
-
|
380
|
-
-
|
381
|
-
-
|
382
|
-
-
|
383
|
-
-
|
384
|
-
-
|
385
|
-
-
|
386
|
-
-
|
387
|
-
-
|
388
|
-
-
|
389
|
-
-
|
390
|
-
-
|
391
|
-
-
|
392
|
-
-
|
393
|
-
-
|
394
|
-
-
|
395
|
-
-
|
396
|
-
-
|
397
|
-
-
|
398
|
-
-
|
399
|
-
-
|
400
|
-
-
|
401
|
-
-
|
402
|
-
-
|
403
|
-
-
|
404
|
-
-
|
405
|
-
-
|
406
|
-
-
|
407
|
-
-
|
408
|
-
-
|
409
|
-
-
|
410
|
-
-
|
411
|
-
-
|
412
|
-
-
|
413
|
-
-
|
414
|
-
-
|
415
|
-
-
|
416
|
-
-
|
417
|
-
-
|
418
|
-
-
|
419
|
-
-
|
420
|
-
-
|
421
|
-
-
|
422
|
-
-
|
423
|
-
-
|
424
|
-
-
|
425
|
-
-
|
426
|
-
-
|
427
|
-
-
|
428
|
-
- tests/test_blog/themes/test_theme/layouts/post_index.haml
|
429
|
-
- tests/test_blog/themes/test_theme/views/default.haml
|
430
|
-
- tests/test_case.rb
|
370
|
+
- spec/fixtures/test_blog/Gemfile
|
371
|
+
- spec/fixtures/test_blog/README.markdown
|
372
|
+
- spec/fixtures/test_blog/config.ru
|
373
|
+
- spec/fixtures/test_blog/config.yml
|
374
|
+
- spec/fixtures/test_blog/content/_posts/2011-07-20-hello.markdown
|
375
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-01-announcing-staticpress.markdown
|
376
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-02-staticpress.markdown
|
377
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-06-blogging-with-staticpress.markdown
|
378
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-06-conferences.markdown
|
379
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-06-in-charlotte.markdown
|
380
|
+
- spec/fixtures/test_blog/content/_posts/2011-08-20-forever.markdown
|
381
|
+
- spec/fixtures/test_blog/content/_posts/2012-09-19-unpublished.markdown
|
382
|
+
- spec/fixtures/test_blog/content/about.markdown
|
383
|
+
- spec/fixtures/test_blog/content/chain.html.markdown.erb
|
384
|
+
- spec/fixtures/test_blog/content/chained.markdown.erb
|
385
|
+
- spec/fixtures/test_blog/content/contact.markdown
|
386
|
+
- spec/fixtures/test_blog/content/foo/bar/baz.markdown
|
387
|
+
- spec/fixtures/test_blog/content/index.markdown
|
388
|
+
- spec/fixtures/test_blog/content/plain.txt
|
389
|
+
- spec/fixtures/test_blog/content/ruby.png
|
390
|
+
- spec/fixtures/test_blog/content/style1.css
|
391
|
+
- spec/fixtures/test_blog/content/style2.css.sass
|
392
|
+
- spec/fixtures/test_blog/content/style3.sass
|
393
|
+
- spec/fixtures/test_blog/themes/test_theme/assets/scripts/application.js
|
394
|
+
- spec/fixtures/test_blog/themes/test_theme/assets/styles/all.sass
|
395
|
+
- spec/fixtures/test_blog/themes/test_theme/includes/list_posts.haml
|
396
|
+
- spec/fixtures/test_blog/themes/test_theme/layouts/archive.haml
|
397
|
+
- spec/fixtures/test_blog/themes/test_theme/layouts/atom.haml
|
398
|
+
- spec/fixtures/test_blog/themes/test_theme/layouts/default.haml
|
399
|
+
- spec/fixtures/test_blog/themes/test_theme/layouts/index.haml
|
400
|
+
- spec/fixtures/test_blog/themes/test_theme/layouts/post_index.haml
|
401
|
+
- spec/fixtures/test_blog/themes/test_theme/views/default.haml
|
402
|
+
- spec/integration/editing_blog_contents_spec.rb
|
403
|
+
- spec/integration/editing_blog_spec.rb
|
404
|
+
- spec/integration/getting_started_spec.rb
|
405
|
+
- spec/spec_helper.rb
|
406
|
+
- spec/support/custom_matchers.rb
|
407
|
+
- spec/support/fixtures.rb
|
408
|
+
- spec/support/integration_support.rb
|
409
|
+
- spec/support/unit_support.rb
|
410
|
+
- spec/unit/staticpress/content/base_spec.rb
|
411
|
+
- spec/unit/staticpress/content/category_spec.rb
|
412
|
+
- spec/unit/staticpress/content/index_spec.rb
|
413
|
+
- spec/unit/staticpress/content/page_spec.rb
|
414
|
+
- spec/unit/staticpress/content/post_spec.rb
|
415
|
+
- spec/unit/staticpress/content/resource_content_spec.rb
|
416
|
+
- spec/unit/staticpress/content/tag_spec.rb
|
417
|
+
- spec/unit/staticpress/content/theme_spec.rb
|
418
|
+
- spec/unit/staticpress/helpers_spec.rb
|
419
|
+
- spec/unit/staticpress/js_object_spec.rb
|
420
|
+
- spec/unit/staticpress/metadata_spec.rb
|
421
|
+
- spec/unit/staticpress/route_spec.rb
|
422
|
+
- spec/unit/staticpress/server_spec.rb
|
423
|
+
- spec/unit/staticpress/settings_spec.rb
|
424
|
+
- spec/unit/staticpress/site_spec.rb
|
425
|
+
- spec/unit/staticpress/theme_spec.rb
|
426
|
+
- spec/unit/staticpress/view_helpers_spec.rb
|
427
|
+
- spec/unit/staticpress_spec.rb
|