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.
Files changed (119) hide show
  1. checksums.yaml +6 -14
  2. data/.gitignore +15 -18
  3. data/Gemfile +3 -1
  4. data/LICENSE +20 -0
  5. data/README.md +66 -0
  6. data/Rakefile +1 -76
  7. data/bin/octopress +14 -58
  8. data/lib/octopress.rb +40 -79
  9. data/lib/octopress/command.rb +10 -4
  10. data/lib/octopress/commands/new.rb +50 -12
  11. data/lib/octopress/commands/publish.rb +18 -0
  12. data/lib/octopress/core_ext.rb +1 -0
  13. data/lib/octopress/draft.rb +43 -0
  14. data/lib/octopress/page.rb +109 -0
  15. data/lib/octopress/post.rb +30 -0
  16. data/lib/octopress/version.rb +1 -1
  17. data/octopress.gemspec +7 -32
  18. metadata +31 -437
  19. data/.editorconfig +0 -22
  20. data/.gitattributes +0 -1
  21. data/.powrc +0 -4
  22. data/.rspec +0 -5
  23. data/.rubocop.yml +0 -119
  24. data/.slugignore +0 -3
  25. data/.travis.yml +0 -6
  26. data/CHANGELOG.markdown +0 -46
  27. data/CONTRIBUTING.markdown +0 -17
  28. data/README.markdown +0 -37
  29. data/lib/console +0 -17
  30. data/lib/guard/jekyll.rb +0 -33
  31. data/lib/octopress/commands.rb +0 -14
  32. data/lib/octopress/commands/build.rb +0 -17
  33. data/lib/octopress/commands/build_javascripts.rb +0 -11
  34. data/lib/octopress/commands/build_jekyll.rb +0 -42
  35. data/lib/octopress/commands/build_stylesheets.rb +0 -13
  36. data/lib/octopress/commands/install.rb +0 -44
  37. data/lib/octopress/commands/scaffold.rb +0 -102
  38. data/lib/octopress/commands/serve.rb +0 -25
  39. data/lib/octopress/configuration.rb +0 -237
  40. data/lib/octopress/dependency_installer.rb +0 -287
  41. data/lib/octopress/errors.rb +0 -3
  42. data/lib/octopress/filters/content.rb +0 -66
  43. data/lib/octopress/filters/date.rb +0 -46
  44. data/lib/octopress/filters/post.rb +0 -175
  45. data/lib/octopress/filters/url.rb +0 -34
  46. data/lib/octopress/formatters.rb +0 -9
  47. data/lib/octopress/formatters/base_formatter.rb +0 -17
  48. data/lib/octopress/formatters/simple_formatter.rb +0 -9
  49. data/lib/octopress/formatters/verbose_formatter.rb +0 -9
  50. data/lib/octopress/generators/category_generator.rb +0 -196
  51. data/lib/octopress/generators/sitemap_generator.rb +0 -308
  52. data/lib/octopress/guardfile +0 -43
  53. data/lib/octopress/helpers/titlecase.rb +0 -37
  54. data/lib/octopress/ink.rb +0 -12
  55. data/lib/octopress/inquirable_string.rb +0 -12
  56. data/lib/octopress/installer.rb +0 -96
  57. data/lib/octopress/js_assets_manager.rb +0 -97
  58. data/lib/octopress/liquid_helpers/conditional.rb +0 -36
  59. data/lib/octopress/liquid_helpers/config.rb +0 -58
  60. data/lib/octopress/liquid_helpers/include.rb +0 -33
  61. data/lib/octopress/liquid_helpers/url.rb +0 -29
  62. data/lib/octopress/liquid_helpers/vars.rb +0 -30
  63. data/lib/octopress/plugin.rb +0 -33
  64. data/lib/octopress/rake.rb +0 -16
  65. data/lib/octopress/scaffold/.gitignore +0 -18
  66. data/lib/octopress/scaffold/site/Gemfile +0 -3
  67. data/lib/octopress/scaffold/site/config.ru +0 -25
  68. data/lib/octopress/scaffold/site/config/compass.rb +0 -27
  69. data/lib/octopress/scaffold/site/config/rack.rb +0 -25
  70. data/lib/octopress/scaffold/site/config/site.yml +0 -0
  71. data/lib/octopress/scaffold/site/javascripts/lib/ios-rotate-scaling-fix.js +0 -19
  72. data/lib/octopress/scaffold/site/javascripts/lib/jquery-1.9.1.js +0 -9598
  73. data/lib/octopress/scaffold/site/javascripts/lib/jquery.cookie.js +0 -93
  74. data/lib/octopress/scaffold/site/stylesheets/_config.scss +0 -1
  75. data/lib/octopress/scaffold/site/stylesheets/_style.scss +0 -1
  76. data/lib/octopress/scaffold/site/stylesheets/site.scss +0 -16
  77. data/lib/octopress/tags/assign.rb +0 -34
  78. data/lib/octopress/tags/capture.rb +0 -31
  79. data/lib/octopress/tags/config-tag.rb +0 -23
  80. data/lib/octopress/tags/include.rb +0 -63
  81. data/lib/octopress/tags/js-assets.rb +0 -23
  82. data/lib/octopress/tags/puts.rb +0 -39
  83. data/lib/octopress/tags/render-partial.rb +0 -89
  84. data/lib/octopress/tags/return.rb +0 -21
  85. data/lib/rake/clean.rake +0 -8
  86. data/lib/rake/clobber.rake +0 -5
  87. data/lib/rake/console.rake +0 -5
  88. data/lib/rake/deploy.rake +0 -4
  89. data/lib/rake/gen_deploy.rake +0 -2
  90. data/lib/rake/generate.rake +0 -4
  91. data/lib/rake/generate_only.rake +0 -14
  92. data/lib/rake/hygiene.rake +0 -29
  93. data/lib/rake/install.rake +0 -8
  94. data/lib/rake/integrate.rake +0 -4
  95. data/lib/rake/isolate.rake +0 -13
  96. data/lib/rake/list_drafts.rake +0 -7
  97. data/lib/rake/new.rake +0 -7
  98. data/lib/rake/new_page.rake +0 -49
  99. data/lib/rake/new_post.rake +0 -32
  100. data/lib/rake/nuke.rake +0 -4
  101. data/lib/rake/preview.rake +0 -4
  102. data/lib/rake/push.rake +0 -37
  103. data/lib/rake/rsync.rake +0 -20
  104. data/lib/rake/set_root_dir.rake +0 -35
  105. data/lib/rake/setup_github_pages.rake +0 -115
  106. data/lib/rake/watch.rake +0 -11
  107. data/lib/scaffold/Rakefile +0 -142
  108. data/lib/scaffold/plugin-name.gemspec +0 -43
  109. data/lib/spec/fixtures/env/defaults/classic.yml +0 -2
  110. data/lib/spec/fixtures/no_override/defaults/classic.yml +0 -11
  111. data/lib/spec/fixtures/override/defaults/classic.yml +0 -11
  112. data/lib/spec/fixtures/override/site.yml +0 -11
  113. data/lib/spec/octopress/configuration_spec.rb +0 -67
  114. data/lib/spec/octopress/dependency_installer_spec.rb +0 -66
  115. data/lib/spec/octopress/ink_spec.rb +0 -10
  116. data/lib/spec/octopress/octopress_spec.rb +0 -97
  117. data/lib/spec/spec_helper.rb +0 -22
  118. data/lib/spec/support/env.rb +0 -36
  119. data/lib/spec/support/simplecov.rb +0 -52
@@ -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
@@ -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