rack-jekyll 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -20,3 +20,4 @@ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
20
  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
21
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
22
  OTHER DEALINGS IN THE SOFTWARE.
23
+
data/README.markdown CHANGED
@@ -68,3 +68,8 @@ It now can read the `_config.yml` file for destination path. Read [Jekyll Config
68
68
  ## 404 page
69
69
 
70
70
  You can create a new file: `404.html` with YAML Front Matter. See my [Heroku Demo 404](http://bry4n.heroku.com/show/me/404/)
71
+
72
+
73
+ ## Contribution
74
+
75
+ Contributing this is more than just welcome. Fork this and create a new branch then pull request.
@@ -1,7 +1,7 @@
1
1
  module Rack
2
2
  class Jekyll
3
3
  def self.version
4
- '0.3.2'
4
+ '0.3.3'
5
5
  end
6
6
  end
7
7
  end
data/lib/rack/jekyll.rb CHANGED
@@ -6,8 +6,8 @@ module Rack
6
6
  class Jekyll
7
7
 
8
8
  def initialize(opts = {})
9
- if ::File.exist?("_config.yml")
10
- @config = ::YAML.load(::File.read("_config.yml"))
9
+ if ::File.exist?(Dir.pwd + "/_config.yml")
10
+ @config = ::YAML.load(::File.read(Dir.pwd + "/_config.yml"))
11
11
  if @config[:desination].nil?
12
12
  @path = opts[:desination].nil? ? "_site" : opts[:desination]
13
13
  else
@@ -16,7 +16,7 @@ module Rack
16
16
  end
17
17
  end
18
18
  @files = ::Dir[@path + "/**/*"].inspect
19
- @mimes = Rack::Mime::MIME_TYPES.map{|k,v|%r{#{k.gsub('.','\.')}$}i}
19
+ @mimes = Rack::Mime::MIME_TYPES.map{|k,v| /#{k.gsub('.','\.')}$/i }
20
20
  @compiling = false
21
21
  if ::Dir[@path + "/**/*"].empty?
22
22
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Goines