Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

convert to use rakegem

  • Loading branch information...
commit 03cb12aeb3f050f255c805a978e5365bc3e629d5 1 parent 3efe008
Tom Preston-Werner mojombo authored
21 LICENSE
... ... @@ -0,0 +1,21 @@
  1 +(The MIT License)
  2 +
  3 +Copyright (c) 2008 Tom Preston-Werner
  4 +
  5 +Permission is hereby granted, free of charge, to any person obtaining a copy
  6 +of this software and associated documentation files (the 'Software'), to deal
  7 +in the Software without restriction, including without limitation the rights
  8 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9 +copies of the Software, and to permit persons to whom the Software is
  10 +furnished to do so, subject to the following conditions:
  11 +
  12 +The above copyright notice and this permission notice shall be included in all
  13 +copies or substantial portions of the Software.
  14 +
  15 +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  21 +SOFTWARE.
10 README.textile
Source Rendered
@@ -38,12 +38,4 @@ h2. Developer Dependencies
38 38
39 39 h2. License
40 40
41   -(The MIT License)
42   -
43   -Copyright (c) 2008 Tom Preston-Werner
44   -
45   -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
46   -
47   -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
48   -
49   -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  41 +See LICENSE.
170 Rakefile
... ... @@ -1,85 +1,101 @@
  1 +require 'rubygems'
1 2 require 'rake'
2   -require 'rake/testtask'
3   -require 'rake/rdoctask'
  3 +require 'date'
4 4
5   -begin
6   - gem 'jeweler', '>= 0.11.0'
7   - require 'jeweler'
8   - Jeweler::Tasks.new do |s|
9   - s.name = "jekyll"
10   - s.summary = %Q{Jekyll is a simple, blog aware, static site generator.}
11   - s.email = "tom@mojombo.com"
12   - s.homepage = "http://github.com/mojombo/jekyll"
13   - s.description = "Jekyll is a simple, blog aware, static site generator."
14   - s.authors = ["Tom Preston-Werner"]
15   - s.rubyforge_project = "jekyll"
16   - s.files.exclude 'test/dest'
17   - s.test_files.exclude 'test/dest'
18   - s.add_dependency('RedCloth', '>= 4.2.1')
19   - s.add_dependency('liquid', '>= 1.9.0')
20   - s.add_dependency('classifier', '>= 1.3.1')
21   - s.add_dependency('maruku', '>= 0.5.9')
22   - s.add_dependency('directory_watcher', '>= 1.1.1')
23   - s.add_dependency('open4', '>= 0.9.6')
24   - end
25   -rescue LoadError
26   - puts "Jeweler not available. Install it with: sudo gem install jeweler --version '>= 0.11.0'"
27   - exit(1)
  5 +#############################################################################
  6 +#
  7 +# Helper functions
  8 +#
  9 +#############################################################################
  10 +
  11 +def name
  12 + @name ||= Dir['*.gemspec'].first.split('.').first
28 13 end
29 14
30   -Rake::TestTask.new do |t|
31   - t.libs << 'lib'
32   - t.pattern = 'test/**/test_*.rb'
33   - t.verbose = false
  15 +def version
  16 + line = File.read("lib/#{name}.rb")[/^\s*VERSION\s*=\s*.*/]
  17 + line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
34 18 end
35 19
36   -Rake::RDocTask.new do |rdoc|
37   - rdoc.rdoc_dir = 'rdoc'
38   - rdoc.title = 'jekyll'
39   - rdoc.options << '--line-numbers' << '--inline-source'
40   - rdoc.rdoc_files.include('README*')
41   - rdoc.rdoc_files.include('lib/**/*.rb')
  20 +def date
  21 + Date.today.to_s
42 22 end
43 23
44   -begin
45   - require 'rcov/rcovtask'
46   - Rcov::RcovTask.new do |t|
47   - t.libs << 'test'
48   - t.test_files = FileList['test/**/test_*.rb']
49   - t.verbose = true
50   - end
51   -rescue LoadError
  24 +def rubyforge_project
  25 + name
  26 +end
  27 +
  28 +def gemspec_file
  29 + "#{name}.gemspec"
  30 +end
  31 +
  32 +def gem_file
  33 + "#{name}-#{version}.gem"
  34 +end
  35 +
  36 +def replace_header(head, header_name)
  37 + head.sub!(/(\.#{header_name}\s*= ').*'/) { "#{$1}#{send(header_name)}'"}
52 38 end
53 39
  40 +#############################################################################
  41 +#
  42 +# Standard tasks
  43 +#
  44 +#############################################################################
  45 +
54 46 task :default => [:test, :features]
55 47
56   -# console
  48 +require 'rake/testtask'
  49 +Rake::TestTask.new(:test) do |test|
  50 + test.libs << 'lib' << 'test'
  51 + test.pattern = 'test/**/test_*.rb'
  52 + test.verbose = true
  53 +end
  54 +
  55 +desc "Generate RCov test coverage and open in your browser"
  56 +task :coverage do
  57 + require 'rcov'
  58 + sh "rm -fr coverage"
  59 + sh "rcov test/test_*.rb"
  60 + sh "open coverage/index.html"
  61 +end
  62 +
  63 +require 'rake/rdoctask'
  64 +Rake::RDocTask.new do |rdoc|
  65 + rdoc.rdoc_dir = 'rdoc'
  66 + rdoc.title = "#{name} #{version}"
  67 + rdoc.rdoc_files.include('README*')
  68 + rdoc.rdoc_files.include('lib/**/*.rb')
  69 +end
57 70
58 71 desc "Open an irb session preloaded with this library"
59 72 task :console do
60   - sh "irb -rubygems -I lib -r jekyll.rb"
  73 + sh "irb -rubygems -r ./lib/#{name}.rb"
61 74 end
62 75
63   -# converters
  76 +#############################################################################
  77 +#
  78 +# Custom tasks (add your own tasks here)
  79 +#
  80 +#############################################################################
64 81
65   -namespace :convert do
  82 +namespace :migrate do
66 83 desc "Migrate from mephisto in the current directory"
67 84 task :mephisto do
68   - sh %q(ruby -r './lib/jekyll/converters/mephisto' -e 'Jekyll::Mephisto.postgres(:database => "#{ENV["DB"]}")')
  85 + sh %q(ruby -r './lib/jekyll/migrators/mephisto' -e 'Jekyll::Mephisto.postgres(:database => "#{ENV["DB"]}")')
69 86 end
70 87 desc "Migrate from Movable Type in the current directory"
71 88 task :mt do
72   - sh %q(ruby -r './lib/jekyll/converters/mt' -e 'Jekyll::MT.process("#{ENV["DB"]}", "#{ENV["USER"]}", "#{ENV["PASS"]}")')
  89 + sh %q(ruby -r './lib/jekyll/migrators/mt' -e 'Jekyll::MT.process("#{ENV["DB"]}", "#{ENV["USER"]}", "#{ENV["PASS"]}")')
73 90 end
74 91 desc "Migrate from Typo in the current directory"
75 92 task :typo do
76   - sh %q(ruby -r './lib/jekyll/converters/typo' -e 'Jekyll::Typo.process("#{ENV["DB"]}", "#{ENV["USER"]}", "#{ENV["PASS"]}")')
  93 + sh %q(ruby -r './lib/jekyll/migrators/typo' -e 'Jekyll::Typo.process("#{ENV["DB"]}", "#{ENV["USER"]}", "#{ENV["PASS"]}")')
77 94 end
78 95 end
79 96
80 97 begin
81 98 require 'cucumber/rake/task'
82   -
83 99 Cucumber::Rake::Task.new(:features) do |t|
84 100 t.cucumber_opts = "--format progress"
85 101 end
@@ -89,3 +105,55 @@ rescue LoadError
89 105 abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
90 106 end
91 107 end
  108 +
  109 +#############################################################################
  110 +#
  111 +# Packaging tasks
  112 +#
  113 +#############################################################################
  114 +
  115 +task :release => :build do
  116 + unless `git branch` =~ /^\* master$/
  117 + puts "You must be on the master branch to release!"
  118 + exit!
  119 + end
  120 + sh "git commit --allow-empty -a -m 'Release #{version}'"
  121 + sh "git tag v#{version}"
  122 + sh "git push origin master"
  123 + sh "git push v#{version}"
  124 + sh "gem push pkg/#{name}-#{version}.gem"
  125 +end
  126 +
  127 +task :build => :gemspec do
  128 + sh "mkdir -p pkg"
  129 + sh "gem build #{gemspec_file}"
  130 + sh "mv #{gem_file} pkg"
  131 +end
  132 +
  133 +task :gemspec do
  134 + # read spec file and split out manifest section
  135 + spec = File.read(gemspec_file)
  136 + head, manifest, tail = spec.split(" # = MANIFEST =\n")
  137 +
  138 + # replace name version and date
  139 + replace_header(head, :name)
  140 + replace_header(head, :version)
  141 + replace_header(head, :date)
  142 + #comment this out if your rubyforge_project has a different name
  143 + replace_header(head, :rubyforge_project)
  144 +
  145 + # determine file list from git ls-files
  146 + files = `git ls-files`.
  147 + split("\n").
  148 + sort.
  149 + reject { |file| file =~ /^\./ }.
  150 + reject { |file| file =~ /^(rdoc|pkg|coverage)/ }.
  151 + map { |file| " #{file}" }.
  152 + join("\n")
  153 +
  154 + # piece file back together and write
  155 + manifest = " s.files = %w[\n#{files}\n ]\n"
  156 + spec = [head, manifest, tail].join(" # = MANIFEST =\n")
  157 + File.open(gemspec_file, 'w') { |io| io.write(spec) }
  158 + puts "Updated #{gemspec_file}"
  159 +end
5 VERSION.yml
... ... @@ -1,5 +0,0 @@
1   ----
2   -:minor: 5
3   -:patch: 7
4   -:build:
5   -:major: 0
2  bin/jekyll
@@ -75,7 +75,7 @@ opts = OptionParser.new do |opts|
75 75 end
76 76
77 77 opts.on("--version", "Display current version") do
78   - puts "Jekyll " + Jekyll.version
  78 + puts "Jekyll " + Jekyll::VERSION
79 79 exit 0
80 80 end
81 81 end
260 jekyll.gemspec
... ... @@ -1,147 +1,127 @@
1   -# Generated by jeweler
2   -# DO NOT EDIT THIS FILE DIRECTLY
3   -# Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4   -# -*- encoding: utf-8 -*-
5   -
6 1 Gem::Specification.new do |s|
7   - s.name = %q{jekyll}
8   - s.version = "0.5.7"
9   -
  2 + s.specification_version = 2 if s.respond_to? :specification_version=
10 3 s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11   - s.authors = ["Tom Preston-Werner"]
12   - s.date = %q{2010-01-12}
13   - s.default_executable = %q{jekyll}
14   - s.description = %q{Jekyll is a simple, blog aware, static site generator.}
15   - s.email = %q{tom@mojombo.com}
  4 + s.rubygems_version = '1.3.5'
  5 +
  6 + s.name = 'jekyll'
  7 + s.version = '0.5.7'
  8 + s.date = '2010-04-21'
  9 + s.rubyforge_project = 'jekyll'
  10 +
  11 + s.summary = "A simple, blog aware, static site generator."
  12 + s.description = "Jekyll is a simple, blog aware, static site generator."
  13 +
  14 + s.authors = ["Tom Preston-Werner"]
  15 + s.email = 'tom@mojombo.com'
  16 + s.homepage = 'http://github.com/mojombo/jekyll'
  17 +
  18 + s.require_paths = %w[lib]
  19 +
16 20 s.executables = ["jekyll"]
17   - s.extra_rdoc_files = [
18   - "README.textile"
19   - ]
20   - s.files = [
21   - ".gitignore",
22   - "History.txt",
23   - "README.textile",
24   - "Rakefile",
25   - "VERSION.yml",
26   - "bin/jekyll",
27   - "features/create_sites.feature",
28   - "features/embed_filters.feature",
29   - "features/markdown.feature",
30   - "features/pagination.feature",
31   - "features/permalinks.feature",
32   - "features/post_data.feature",
33   - "features/site_configuration.feature",
34   - "features/site_data.feature",
35   - "features/step_definitions/jekyll_steps.rb",
36   - "features/support/env.rb",
37   - "jekyll.gemspec",
38   - "lib/jekyll.rb",
39   - "lib/jekyll/albino.rb",
40   - "lib/jekyll/converters/csv.rb",
41   - "lib/jekyll/converters/mephisto.rb",
42   - "lib/jekyll/converters/mt.rb",
43   - "lib/jekyll/converters/textpattern.rb",
44   - "lib/jekyll/converters/typo.rb",
45   - "lib/jekyll/converters/wordpress.rb",
46   - "lib/jekyll/convertible.rb",
47   - "lib/jekyll/core_ext.rb",
48   - "lib/jekyll/filters.rb",
49   - "lib/jekyll/layout.rb",
50   - "lib/jekyll/page.rb",
51   - "lib/jekyll/pager.rb",
52   - "lib/jekyll/post.rb",
53   - "lib/jekyll/site.rb",
54   - "lib/jekyll/static_file.rb",
55   - "lib/jekyll/tags/highlight.rb",
56   - "lib/jekyll/tags/include.rb",
57   - "test/helper.rb",
58   - "test/source/_includes/sig.markdown",
59   - "test/source/_layouts/default.html",
60   - "test/source/_layouts/simple.html",
61   - "test/source/_posts/2008-02-02-not-published.textile",
62   - "test/source/_posts/2008-02-02-published.textile",
63   - "test/source/_posts/2008-10-18-foo-bar.textile",
64   - "test/source/_posts/2008-11-21-complex.textile",
65   - "test/source/_posts/2008-12-03-permalinked-post.textile",
66   - "test/source/_posts/2008-12-13-include.markdown",
67   - "test/source/_posts/2009-01-27-array-categories.textile",
68   - "test/source/_posts/2009-01-27-categories.textile",
69   - "test/source/_posts/2009-01-27-category.textile",
70   - "test/source/_posts/2009-01-27-empty-categories.textile",
71   - "test/source/_posts/2009-01-27-empty-category.textile",
72   - "test/source/_posts/2009-03-12-hash-#1.markdown",
73   - "test/source/_posts/2009-05-18-empty-tag.textile",
74   - "test/source/_posts/2009-05-18-empty-tags.textile",
75   - "test/source/_posts/2009-05-18-tag.textile",
76   - "test/source/_posts/2009-05-18-tags.textile",
77   - "test/source/_posts/2009-06-22-empty-yaml.textile",
78   - "test/source/_posts/2009-06-22-no-yaml.textile",
79   - "test/source/_posts/2010-01-08-triple-dash.markdown",
80   - "test/source/_posts/2010-01-09-date-override.textile",
81   - "test/source/_posts/2010-01-09-time-override.textile",
82   - "test/source/about.html",
83   - "test/source/category/_posts/2008-9-23-categories.textile",
84   - "test/source/contacts.html",
85   - "test/source/css/screen.css",
86   - "test/source/foo/_posts/bar/2008-12-12-topical-post.textile",
87   - "test/source/index.html",
88   - "test/source/sitemap.xml",
89   - "test/source/win/_posts/2009-05-24-yaml-linebreak.markdown",
90   - "test/source/z_category/_posts/2008-9-23-categories.textile",
91   - "test/suite.rb",
92   - "test/test_configuration.rb",
93   - "test/test_core_ext.rb",
94   - "test/test_filters.rb",
95   - "test/test_generated_site.rb",
96   - "test/test_page.rb",
97   - "test/test_pager.rb",
98   - "test/test_post.rb",
99   - "test/test_site.rb",
100   - "test/test_tags.rb"
101   - ]
102   - s.homepage = %q{http://github.com/mojombo/jekyll}
  21 + s.default_executable = 'jekyll'
  22 +
103 23 s.rdoc_options = ["--charset=UTF-8"]
104   - s.require_paths = ["lib"]
105   - s.rubyforge_project = %q{jekyll}
106   - s.rubygems_version = %q{1.3.5}
107   - s.summary = %q{Jekyll is a simple, blog aware, static site generator.}
108   - s.test_files = [
109   - "test/helper.rb",
110   - "test/suite.rb",
111   - "test/test_configuration.rb",
112   - "test/test_core_ext.rb",
113   - "test/test_filters.rb",
114   - "test/test_generated_site.rb",
115   - "test/test_page.rb",
116   - "test/test_pager.rb",
117   - "test/test_post.rb",
118   - "test/test_site.rb",
119   - "test/test_tags.rb"
120   - ]
  24 + s.extra_rdoc_files = %w[README.textile LICENSE]
121 25
122   - if s.respond_to? :specification_version then
123   - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
124   - s.specification_version = 3
  26 + s.add_runtime_dependency('RedCloth', [">= 4.2.1"])
  27 + s.add_runtime_dependency('liquid', [">= 1.9.0"])
  28 + s.add_runtime_dependency('classifier', [">= 1.3.1"])
  29 + s.add_runtime_dependency('maruku', [">= 0.5.9"])
  30 + s.add_runtime_dependency('directory_watcher', [">= 1.1.1"])
125 31
126   - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
127   - s.add_runtime_dependency(%q<RedCloth>, [">= 4.2.1"])
128   - s.add_runtime_dependency(%q<liquid>, [">= 1.9.0"])
129   - s.add_runtime_dependency(%q<classifier>, [">= 1.3.1"])
130   - s.add_runtime_dependency(%q<maruku>, [">= 0.5.9"])
131   - s.add_runtime_dependency(%q<directory_watcher>, [">= 1.1.1"])
132   - else
133   - s.add_dependency(%q<RedCloth>, [">= 4.2.1"])
134   - s.add_dependency(%q<liquid>, [">= 1.9.0"])
135   - s.add_dependency(%q<classifier>, [">= 1.3.1"])
136   - s.add_dependency(%q<maruku>, [">= 0.5.9"])
137   - s.add_dependency(%q<directory_watcher>, [">= 1.1.1"])
138   - end
139   - else
140   - s.add_dependency(%q<RedCloth>, [">= 4.2.1"])
141   - s.add_dependency(%q<liquid>, [">= 1.9.0"])
142   - s.add_dependency(%q<classifier>, [">= 1.3.1"])
143   - s.add_dependency(%q<maruku>, [">= 0.5.9"])
144   - s.add_dependency(%q<directory_watcher>, [">= 1.1.1"])
145   - end
146   -end
  32 + s.add_development_dependency('DEVDEPNAME', [">= 1.1.0", "< 2.0.0"])
147 33
  34 + # = MANIFEST =
  35 + s.files = %w[
  36 + History.txt
  37 + README.textile
  38 + Rakefile
  39 + bin/jekyll
  40 + cucumber.yml
  41 + features/create_sites.feature
  42 + features/embed_filters.feature
  43 + features/markdown.feature
  44 + features/pagination.feature
  45 + features/permalinks.feature
  46 + features/post_data.feature
  47 + features/site_configuration.feature
  48 + features/site_data.feature
  49 + features/step_definitions/jekyll_steps.rb
  50 + features/support/env.rb
  51 + jekyll.gemspec
  52 + lib/jekyll.rb
  53 + lib/jekyll/albino.rb
  54 + lib/jekyll/converter.rb
  55 + lib/jekyll/converters/identity.rb
  56 + lib/jekyll/converters/markdown.rb
  57 + lib/jekyll/converters/textile.rb
  58 + lib/jekyll/convertible.rb
  59 + lib/jekyll/core_ext.rb
  60 + lib/jekyll/extension.rb
  61 + lib/jekyll/filters.rb
  62 + lib/jekyll/generator.rb
  63 + lib/jekyll/generators/pagination.rb
  64 + lib/jekyll/layout.rb
  65 + lib/jekyll/migrators/csv.rb
  66 + lib/jekyll/migrators/mephisto.rb
  67 + lib/jekyll/migrators/mt.rb
  68 + lib/jekyll/migrators/textpattern.rb
  69 + lib/jekyll/migrators/typo.rb
  70 + lib/jekyll/migrators/wordpress.rb
  71 + lib/jekyll/page.rb
  72 + lib/jekyll/post.rb
  73 + lib/jekyll/site.rb
  74 + lib/jekyll/static_file.rb
  75 + lib/jekyll/tags/highlight.rb
  76 + lib/jekyll/tags/include.rb
  77 + test/helper.rb
  78 + test/source/_includes/sig.markdown
  79 + test/source/_layouts/default.html
  80 + test/source/_layouts/simple.html
  81 + test/source/_posts/2008-02-02-not-published.textile
  82 + test/source/_posts/2008-02-02-published.textile
  83 + test/source/_posts/2008-10-18-foo-bar.textile
  84 + test/source/_posts/2008-11-21-complex.textile
  85 + test/source/_posts/2008-12-03-permalinked-post.textile
  86 + test/source/_posts/2008-12-13-include.markdown
  87 + test/source/_posts/2009-01-27-array-categories.textile
  88 + test/source/_posts/2009-01-27-categories.textile
  89 + test/source/_posts/2009-01-27-category.textile
  90 + test/source/_posts/2009-01-27-empty-categories.textile
  91 + test/source/_posts/2009-01-27-empty-category.textile
  92 + test/source/_posts/2009-03-12-hash-#1.markdown
  93 + test/source/_posts/2009-05-18-empty-tag.textile
  94 + test/source/_posts/2009-05-18-empty-tags.textile
  95 + test/source/_posts/2009-05-18-tag.textile
  96 + test/source/_posts/2009-05-18-tags.textile
  97 + test/source/_posts/2009-06-22-empty-yaml.textile
  98 + test/source/_posts/2009-06-22-no-yaml.textile
  99 + test/source/_posts/2010-01-08-triple-dash.markdown
  100 + test/source/_posts/2010-01-09-date-override.textile
  101 + test/source/_posts/2010-01-09-time-override.textile
  102 + test/source/_posts/2010-01-09-timezone-override.textile
  103 + test/source/_posts/2010-01-16-override-data.textile
  104 + test/source/about.html
  105 + test/source/category/_posts/2008-9-23-categories.textile
  106 + test/source/contacts.html
  107 + test/source/css/screen.css
  108 + test/source/foo/_posts/bar/2008-12-12-topical-post.textile
  109 + test/source/index.html
  110 + test/source/sitemap.xml
  111 + test/source/win/_posts/2009-05-24-yaml-linebreak.markdown
  112 + test/source/z_category/_posts/2008-9-23-categories.textile
  113 + test/suite.rb
  114 + test/test_configuration.rb
  115 + test/test_core_ext.rb
  116 + test/test_filters.rb
  117 + test/test_generated_site.rb
  118 + test/test_page.rb
  119 + test/test_pager.rb
  120 + test/test_post.rb
  121 + test/test_site.rb
  122 + test/test_tags.rb
  123 + ]
  124 + # = MANIFEST =
  125 +
  126 + s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
  127 +end
7 lib/jekyll.rb
@@ -44,6 +44,8 @@ def require_all(path)
44 44 require_all 'jekyll/tags'
45 45
46 46 module Jekyll
  47 + VERSION = '0.5.7'
  48 +
47 49 # Default options. Overriden by values in _config.yml or command-line opts.
48 50 # (Strings rather symbols used for compatability with YAML).
49 51 DEFAULTS = {
@@ -98,9 +100,4 @@ def self.configuration(override)
98 100 # Merge DEFAULTS < _config.yml < override
99 101 Jekyll::DEFAULTS.deep_merge(config).deep_merge(override)
100 102 end
101   -
102   - def self.version
103   - yml = YAML.load(File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION.yml])))
104   - "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}"
105   - end
106 103 end

0 comments on commit 03cb12a

Please sign in to comment.
Something went wrong with that request. Please try again.