octopress 3.0.0.alpha2 → 3.0.0.alpha3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.gitignore +15 -18
- data/Gemfile +3 -1
- data/LICENSE +20 -0
- data/README.md +66 -0
- data/Rakefile +1 -76
- data/bin/octopress +14 -58
- data/lib/octopress.rb +40 -79
- data/lib/octopress/command.rb +10 -4
- data/lib/octopress/commands/new.rb +50 -12
- data/lib/octopress/commands/publish.rb +18 -0
- data/lib/octopress/core_ext.rb +1 -0
- data/lib/octopress/draft.rb +43 -0
- data/lib/octopress/page.rb +109 -0
- data/lib/octopress/post.rb +30 -0
- data/lib/octopress/version.rb +1 -1
- data/octopress.gemspec +7 -32
- metadata +31 -437
- data/.editorconfig +0 -22
- data/.gitattributes +0 -1
- data/.powrc +0 -4
- data/.rspec +0 -5
- data/.rubocop.yml +0 -119
- data/.slugignore +0 -3
- data/.travis.yml +0 -6
- data/CHANGELOG.markdown +0 -46
- data/CONTRIBUTING.markdown +0 -17
- data/README.markdown +0 -37
- data/lib/console +0 -17
- data/lib/guard/jekyll.rb +0 -33
- data/lib/octopress/commands.rb +0 -14
- data/lib/octopress/commands/build.rb +0 -17
- data/lib/octopress/commands/build_javascripts.rb +0 -11
- data/lib/octopress/commands/build_jekyll.rb +0 -42
- data/lib/octopress/commands/build_stylesheets.rb +0 -13
- data/lib/octopress/commands/install.rb +0 -44
- data/lib/octopress/commands/scaffold.rb +0 -102
- data/lib/octopress/commands/serve.rb +0 -25
- data/lib/octopress/configuration.rb +0 -237
- data/lib/octopress/dependency_installer.rb +0 -287
- data/lib/octopress/errors.rb +0 -3
- data/lib/octopress/filters/content.rb +0 -66
- data/lib/octopress/filters/date.rb +0 -46
- data/lib/octopress/filters/post.rb +0 -175
- data/lib/octopress/filters/url.rb +0 -34
- data/lib/octopress/formatters.rb +0 -9
- data/lib/octopress/formatters/base_formatter.rb +0 -17
- data/lib/octopress/formatters/simple_formatter.rb +0 -9
- data/lib/octopress/formatters/verbose_formatter.rb +0 -9
- data/lib/octopress/generators/category_generator.rb +0 -196
- data/lib/octopress/generators/sitemap_generator.rb +0 -308
- data/lib/octopress/guardfile +0 -43
- data/lib/octopress/helpers/titlecase.rb +0 -37
- data/lib/octopress/ink.rb +0 -12
- data/lib/octopress/inquirable_string.rb +0 -12
- data/lib/octopress/installer.rb +0 -96
- data/lib/octopress/js_assets_manager.rb +0 -97
- data/lib/octopress/liquid_helpers/conditional.rb +0 -36
- data/lib/octopress/liquid_helpers/config.rb +0 -58
- data/lib/octopress/liquid_helpers/include.rb +0 -33
- data/lib/octopress/liquid_helpers/url.rb +0 -29
- data/lib/octopress/liquid_helpers/vars.rb +0 -30
- data/lib/octopress/plugin.rb +0 -33
- data/lib/octopress/rake.rb +0 -16
- data/lib/octopress/scaffold/.gitignore +0 -18
- data/lib/octopress/scaffold/site/Gemfile +0 -3
- data/lib/octopress/scaffold/site/config.ru +0 -25
- data/lib/octopress/scaffold/site/config/compass.rb +0 -27
- data/lib/octopress/scaffold/site/config/rack.rb +0 -25
- data/lib/octopress/scaffold/site/config/site.yml +0 -0
- data/lib/octopress/scaffold/site/javascripts/lib/ios-rotate-scaling-fix.js +0 -19
- data/lib/octopress/scaffold/site/javascripts/lib/jquery-1.9.1.js +0 -9598
- data/lib/octopress/scaffold/site/javascripts/lib/jquery.cookie.js +0 -93
- data/lib/octopress/scaffold/site/stylesheets/_config.scss +0 -1
- data/lib/octopress/scaffold/site/stylesheets/_style.scss +0 -1
- data/lib/octopress/scaffold/site/stylesheets/site.scss +0 -16
- data/lib/octopress/tags/assign.rb +0 -34
- data/lib/octopress/tags/capture.rb +0 -31
- data/lib/octopress/tags/config-tag.rb +0 -23
- data/lib/octopress/tags/include.rb +0 -63
- data/lib/octopress/tags/js-assets.rb +0 -23
- data/lib/octopress/tags/puts.rb +0 -39
- data/lib/octopress/tags/render-partial.rb +0 -89
- data/lib/octopress/tags/return.rb +0 -21
- data/lib/rake/clean.rake +0 -8
- data/lib/rake/clobber.rake +0 -5
- data/lib/rake/console.rake +0 -5
- data/lib/rake/deploy.rake +0 -4
- data/lib/rake/gen_deploy.rake +0 -2
- data/lib/rake/generate.rake +0 -4
- data/lib/rake/generate_only.rake +0 -14
- data/lib/rake/hygiene.rake +0 -29
- data/lib/rake/install.rake +0 -8
- data/lib/rake/integrate.rake +0 -4
- data/lib/rake/isolate.rake +0 -13
- data/lib/rake/list_drafts.rake +0 -7
- data/lib/rake/new.rake +0 -7
- data/lib/rake/new_page.rake +0 -49
- data/lib/rake/new_post.rake +0 -32
- data/lib/rake/nuke.rake +0 -4
- data/lib/rake/preview.rake +0 -4
- data/lib/rake/push.rake +0 -37
- data/lib/rake/rsync.rake +0 -20
- data/lib/rake/set_root_dir.rake +0 -35
- data/lib/rake/setup_github_pages.rake +0 -115
- data/lib/rake/watch.rake +0 -11
- data/lib/scaffold/Rakefile +0 -142
- data/lib/scaffold/plugin-name.gemspec +0 -43
- data/lib/spec/fixtures/env/defaults/classic.yml +0 -2
- data/lib/spec/fixtures/no_override/defaults/classic.yml +0 -11
- data/lib/spec/fixtures/override/defaults/classic.yml +0 -11
- data/lib/spec/fixtures/override/site.yml +0 -11
- data/lib/spec/octopress/configuration_spec.rb +0 -67
- data/lib/spec/octopress/dependency_installer_spec.rb +0 -66
- data/lib/spec/octopress/ink_spec.rb +0 -10
- data/lib/spec/octopress/octopress_spec.rb +0 -97
- data/lib/spec/spec_helper.rb +0 -22
- data/lib/spec/support/env.rb +0 -36
- data/lib/spec/support/simplecov.rb +0 -52
data/lib/spec/spec_helper.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
-
require './lib/spec/support/simplecov'
|
3
|
-
require File.expand_path("../../octopress", __FILE__)
|
4
|
-
require 'rspec'
|
5
|
-
require 'rspec/autorun'
|
6
|
-
|
7
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
8
|
-
# in spec/support/ and its subdirectories.
|
9
|
-
Dir[Octopress.lib_root.concat("/spec/support/**/*.rb")].each {|f| require f}
|
10
|
-
|
11
|
-
RSpec.configure do |config|
|
12
|
-
# Include FactoryGirl helpers
|
13
|
-
# config.include FactoryGirl::Syntax::Methods
|
14
|
-
|
15
|
-
# Run specs in random order to surface order dependencies. If you find an
|
16
|
-
# order dependency and want to debug it, you can fix the order by providing
|
17
|
-
# the seed, which is printed after each run.
|
18
|
-
# --seed 1234
|
19
|
-
config.order = "random"
|
20
|
-
|
21
|
-
config.include Octopress::Test::Environment
|
22
|
-
end
|
data/lib/spec/support/env.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
module Octopress
|
2
|
-
# Infrastructure for simplifying test setup and teardown for Octopress.
|
3
|
-
module Test
|
4
|
-
# Manage the `OCTOPRESS_ENV` environment variable to prevent
|
5
|
-
# cross-test-method tainting.
|
6
|
-
#
|
7
|
-
# Simply put the following in the top of your outer-most `describe` block
|
8
|
-
# and the rest will be taken care of automatically:
|
9
|
-
#
|
10
|
-
# ```ruby
|
11
|
-
# include Octopress::Test::Environment
|
12
|
-
# ```
|
13
|
-
module Environment
|
14
|
-
def fixture_path(fixture=nil)
|
15
|
-
@base_fixture_path ||= File.expand_path(File.join(File.dirname(__FILE__), '..', 'fixtures'))
|
16
|
-
path = @base_fixture_path
|
17
|
-
path = File.join(path, fixture) if fixture
|
18
|
-
return path
|
19
|
-
end
|
20
|
-
|
21
|
-
def self.included(target)
|
22
|
-
target.instance_eval do
|
23
|
-
before do
|
24
|
-
Octopress.clear_config!
|
25
|
-
@old_env = ENV['OCTOPRESS_ENV']
|
26
|
-
ENV['OCTOPRESS_ENV'] = nil
|
27
|
-
end
|
28
|
-
|
29
|
-
after do
|
30
|
-
ENV['OCTOPRESS_ENV'] = @old_env
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
using_coverage = ENV['USING_COVERAGE'] || ''
|
2
|
-
if(using_coverage == '')
|
3
|
-
using_coverage = false
|
4
|
-
else
|
5
|
-
using_coverage = (using_coverage.to_i != 0)
|
6
|
-
end
|
7
|
-
|
8
|
-
if(using_coverage)
|
9
|
-
puts "Enabling SimpleCov..."
|
10
|
-
BASE_DIR = File.expand_path(File.join(__FILE__, '../../../..'))
|
11
|
-
def expand_path(p)
|
12
|
-
return File.expand_path(File.join(BASE_DIR, p))
|
13
|
-
end
|
14
|
-
CORE_PATHS=[
|
15
|
-
expand_path("lib/octopress.rb"),
|
16
|
-
expand_path("lib/octopress"),
|
17
|
-
]
|
18
|
-
RAKE_PATHS=[
|
19
|
-
expand_path("Rakefile"),
|
20
|
-
expand_path("lib/rake"),
|
21
|
-
]
|
22
|
-
GUARD_PATHS=[
|
23
|
-
expand_path("lib/guard"),
|
24
|
-
]
|
25
|
-
MISC_PATHS=[
|
26
|
-
expand_path("config.rb"),
|
27
|
-
expand_path("config.ru"),
|
28
|
-
expand_path("lib/console"),
|
29
|
-
]
|
30
|
-
TEST_PATHS=[
|
31
|
-
expand_path("lib/spec"),
|
32
|
-
]
|
33
|
-
|
34
|
-
require 'simplecov'
|
35
|
-
SimpleCov.start do
|
36
|
-
add_group "Core" do |src_file|
|
37
|
-
CORE_PATHS.map { |p| src_file.filename.start_with?(p) }.select { |tf| tf }.count != 0
|
38
|
-
end
|
39
|
-
add_group "Rake" do |src_file|
|
40
|
-
RAKE_PATHS.map { |p| src_file.filename.start_with?(p) }.select { |tf| tf }.count != 0
|
41
|
-
end
|
42
|
-
add_group "Guard" do |src_file|
|
43
|
-
GUARD_PATHS.map { |p| src_file.filename.start_with?(p) }.select { |tf| tf }.count != 0
|
44
|
-
end
|
45
|
-
add_group "Misc" do |src_file|
|
46
|
-
MISC_PATHS.map { |p| src_file.filename.start_with?(p) }.select { |tf| tf }.count != 0
|
47
|
-
end
|
48
|
-
add_group "Test" do |src_file|
|
49
|
-
TEST_PATHS.map { |p| src_file.filename.start_with?(p) }.select { |tf| tf }.count != 0
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|