Code Monkey home page Code Monkey logo

blog's People

Contributors

plusjade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blog's Issues

Upgrade psych

psych 1.3.4 doesn't seem to install correctly on Mac OS. The issue seems to be fixed in later versions.

Would it be possible to upgrade this to use, e.g. psych 2.0.10?

`ruhoh posts titleize` doesn't work

I try to execute ruhoh posts titleize in my blog folder

~ ruhoh posts titleize

, but nothing happen at all. The only returned message is

Using theme: "twitter"

I'm sure that the posts/drafts folder has contained a untitled.md and untitled-1.md after I executed the draft command.

By the way, I try to use the scaffold function by adding a _scaffold.html file in the posts folder, but the script seems doesn't work. It's so weird. Anyone suffer from the same problem?

~  ruhoh --version
ruhoh 2.1
RuhohSpec 2.1
➜  ~  ruby --version
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
➜  ~  uname -a                                 
Linux 3.9.4-1-ARCH #1 SMP PREEMPT Sat May 25 16:14:55 CEST 2013 x86_64 GNU/Linux

Make date-formatting onfigurable

Currently, dates with times are rendered as 2012-10-22 08:54 +0200. This is somewhat hard to read.

I would like to be able to format dates and times by changing just some configuration values.

Error running rackup with cygwin Ruby 1.9.3

I got this error when running rackup:

$ bundle exec rackup -p 9292
/usr/lib/ruby/gems/1.9.1/bundler/gems/ruhoh.rb-910e74a82e52/lib/ruhoh.rb:7:in `require': cannot load such file -- json (LoadError)
        from /usr/lib/ruby/gems/1.9.1/bundler/gems/ruhoh.rb-910e74a82e52/lib/ruhoh.rb:7:in `<top (required)>'
        from /cygdrive/d/proyects/marcel-valdez.ruhoh.com/config.ru:2:in `require'
        from /cygdrive/d/proyects/marcel-valdez.ruhoh.com/config.ru:2:in `block in <main>'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:51:in `instance_eval'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:51:in `initialize'
        from /cygdrive/d/proyects/marcel-valdez.ruhoh.com/config.ru:in `new'
        from /cygdrive/d/proyects/marcel-valdez.ruhoh.com/config.ru:in `<main>'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:40:in `eval'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:40:in `parse_file'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/server.rb:200:in `app'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/server.rb:304:in `wrapped_app'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/server.rb:254:in `start'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/server.rb:137:in `start'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/bin/rackup:4:in `<top (required)>'
        from /usr/bin/rackup:23:in `load'
        from /usr/bin/rackup:23:in `<main>'

I did 2 things:
1st. I tried running

gem install json

and then I ran the same command, but I got the same error.

2nd. I added to the Gemfile

gem 'json' 

and this time everything ran correctly.

NoMethodError when I try runing without Bundler

  • Bundler version: 1.3.5
  • ruhoh version: 2.1
  • RuhuhSpec: 2.1

When I try to preview my draft by using this command

$ rackup -p 9294

I see the following result:

NoMethodError: undefined method `with_index' for #<Array:0x007f2564442948>
    /home/ehome/.gem/ruby/2.0.0/gems/ruhoh-2.1/lib/ruhoh/base/model_view.rb:117:in `summary'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/context.rb:135:in `[]'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/context.rb:135:in `find'
    /home/ehome/.gem/ruby/2.0.0/gems/ruhoh-2.1/lib/ruhoh/views/rmustache.rb:7:in `find'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/context.rb:99:in `block in fetch'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/context.rb:95:in `each'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/context.rb:95:in `fetch'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/context.rb:77:in `[]'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/template.rb:97:in `block in render'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/template.rb:82:in `map'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/template.rb:82:in `render'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/template.rb:43:in `render'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache.rb:119:in `render'
    /home/ehome/.gem/ruby/2.0.0/gems/ruhoh-2.1/lib/ruhoh/base/model_view.rb:83:in `content'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/context.rb:135:in `[]'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/context.rb:135:in `find'
    /home/ehome/.gem/ruby/2.0.0/gems/ruhoh-2.1/lib/ruhoh/views/rmustache.rb:7:in `find'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/template.rb:79:in `block in render'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/template.rb:78:in `each'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/template.rb:78:in `inject'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/template.rb:78:in `render'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache/template.rb:43:in `render'
    /home/ehome/.gem/ruby/2.0.0/gems/mustache-0.99.4/lib/mustache.rb:119:in `render'
    /home/ehome/.gem/ruby/2.0.0/gems/ruhoh-2.1/lib/ruhoh/views/master_view.rb:31:in `render_full'
    /home/ehome/.gem/ruby/2.0.0/gems/ruhoh-2.1/lib/ruhoh/resources/pages/previewer.rb:18:in `call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/showexceptions.rb:24:in `call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lint.rb:49:in `_call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lint.rb:37:in `call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lint.rb:49:in `_call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lint.rb:37:in `call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/showexceptions.rb:24:in `call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in `call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/chunked.rb:43:in `call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
    /home/ehome/.gem/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
    /usr/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
    /usr/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
    /usr/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'

If I try to run it with bundler:

$ bundle exec rackup -p 9294

I can see the main page successfully, but another strange problem occurs: I cannot see the code highlighting. I can only see a grey text box for code. The version of ruhoh which bundler executes is 2.1.1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.