marnen / middleman-breadcrumbs

Breadcrumbs helper for Middleman (http://www.middlemanapp.com)
MIT License
11 stars 12 forks source link

Problem with Breadcrumbs::BreadcrumbsVersion #6

Closed lchojnowski closed 8 years ago

lchojnowski commented 9 years ago

I get the following error during middleman launch:

/Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/middleman-breadcrumbs-0.3.2/lib/middleman-breadcrumbs/breadcrumbs.rb
/Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/middleman-breadcrumbs-0.3.2/lib/middleman-breadcrumbs/breadcrumbs.rb:4:in `<class:Breadcrumbs>': uninitialized constant Breadcrumbs::BreadcrumbsVersion (NameError)
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/middleman-breadcrumbs-0.3.2/lib/middleman-breadcrumbs/breadcrumbs.rb:3:in `<top (required)>'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/middleman-breadcrumbs-0.3.2/lib/middleman-breadcrumbs.rb:1:in `require'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/middleman-breadcrumbs-0.3.2/lib/middleman-breadcrumbs.rb:1:in `block in <top (required)>'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/middleman-breadcrumbs-0.3.2/lib/middleman-breadcrumbs.rb:1:in `each'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/middleman-breadcrumbs-0.3.2/lib/middleman-breadcrumbs.rb:1:in `<top (required)>'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `require'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `each'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `block in require'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `each'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `require'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler.rb:134:in `require'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/load_paths.rb:37:in `setup_load_paths'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/bin/middleman:10:in `<top (required)>'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/bin/middleman:23:in `load'
    from /Users/lchojnowski/.rbenv/versions/2.0.0-p598/bin/middleman:23:in `<main>'

Below is my gemfile:

  source "http://rubygems.org"
  gem "middleman"
  gem "middleman-blog"
  gem "builder"
  gem "bootstrap-sass"
  gem "middleman-google-analytics"
  gem "middleman-webp"
  gem "middleman-sitemap"
  gem "middleman-protect-emails"
  gem "middleman-meta-tags"
  gem "middleman-fontcustom"
  gem "middleman-favicon-maker"
  gem "middleman-disqus"
  gem "middleman-deploy"
  gem "middleman-build-info"
  gem "middleman-breadcrumbs"
  gem "middleman-bootstrap-navbar"
  gem "middleman-blog-similar"
  gem "middleman-blog-drafts"
  gem "bh"
  gem "middleman-minify-html"
  gem "middleman-livereload"

And gemfile.lock:

GEM
  remote: http://rubygems.org/
  specs:
    actionpack (4.1.13)
      actionview (= 4.1.13)
      activesupport (= 4.1.13)
      rack (~> 1.5.2)
      rack-test (~> 0.6.2)
    actionview (4.1.13)
      activesupport (= 4.1.13)
      builder (~> 3.1)
      erubis (~> 2.7.0)
    activesupport (4.1.13)
      i18n (~> 0.6, >= 0.6.9)
      json (~> 1.7, >= 1.7.7)
      minitest (~> 5.1)
      thread_safe (~> 0.1)
      tzinfo (~> 1.1)
    addressable (2.3.8)
    autoprefixer-rails (6.1.0.1)
      execjs
      json
    bh (1.3.4)
      actionpack
      activesupport
    bootstrap-navbar (2.2.4)
      gem_config (~> 0.3)
    bootstrap-sass (3.3.5.1)
      autoprefixer-rails (>= 5.0.0.1)
      sass (>= 3.3.0)
    builder (3.2.2)
    celluloid (0.16.0)
      timers (~> 4.0.0)
    chunky_png (1.3.5)
    coffee-script (2.4.1)
      coffee-script-source
      execjs
    coffee-script-source (1.10.0)
    compass (1.0.3)
      chunky_png (~> 1.2)
      compass-core (~> 1.0.2)
      compass-import-once (~> 1.0.5)
      rb-fsevent (>= 0.9.3)
      rb-inotify (>= 0.9)
      sass (>= 3.3.13, < 3.5)
    compass-core (1.0.3)
      multi_json (~> 1.0)
      sass (>= 3.3.0, < 3.5)
    compass-import-once (1.0.5)
      sass (>= 3.2, < 3.5)
    docile (1.1.5)
    em-websocket (0.5.1)
      eventmachine (>= 0.12.9)
      http_parser.rb (~> 0.6.0)
    erubis (2.7.0)
    eventmachine (1.0.8)
    execjs (2.6.0)
    fast-stemmer (1.0.2)
    favicon_maker (1.3)
      docile (~> 1.1)
    ffi (1.9.10)
    fontcustom (1.3.8)
      json (~> 1.4)
      listen (>= 1.0, < 3.0)
      thor (~> 0.14)
    gem_config (0.3.1)
    haml (4.0.7)
      tilt
    hike (1.2.3)
    hitimes (1.2.3)
    hooks (0.4.1)
      uber (~> 0.0.14)
    htmlcompressor (0.2.0)
    http_parser.rb (0.6.0)
    i18n (0.7.0)
    json (1.8.3)
    kramdown (1.9.0)
    listen (2.10.1)
      celluloid (~> 0.16.0)
      rb-fsevent (>= 0.9.3)
      rb-inotify (>= 0.9)
    middleman (3.3.12)
      coffee-script (~> 2.2)
      compass (>= 1.0.0, < 2.0.0)
      compass-import-once (= 1.0.5)
      execjs (~> 2.0)
      haml (>= 4.0.5)
      kramdown (~> 1.2)
      middleman-core (= 3.3.12)
      middleman-sprockets (>= 3.1.2)
      sass (>= 3.4.0, < 4.0)
      uglifier (~> 2.5)
    middleman-blog (3.5.3)
      addressable (~> 2.3.5)
      middleman-core (~> 3.2)
      tzinfo (>= 0.3.0)
    middleman-blog-drafts (0.3.3)
      middleman-blog (~> 3.5)
      middleman-core (~> 3.2)
    middleman-blog-similar (1.1.1)
      fast-stemmer (~> 1.0.2)
      middleman-blog (~> 3.5)
      middleman-core (~> 3.2)
    middleman-bootstrap-navbar (2.0.0)
      bootstrap-navbar (~> 2.0)
      middleman-core (>= 3.0)
    middleman-breadcrumbs (0.3.2)
      middleman (>= 3.3.5)
    middleman-build-info (0.0.3)
      middleman-core (~> 3.3)
    middleman-core (3.3.12)
      activesupport (~> 4.1.0)
      bundler (~> 1.1)
      erubis
      hooks (~> 0.3)
      i18n (~> 0.7.0)
      listen (>= 2.7.9, < 3.0)
      padrino-helpers (~> 0.12.3)
      rack (>= 1.4.5, < 2.0)
      rack-test (~> 0.6.2)
      thor (>= 0.15.2, < 2.0)
      tilt (~> 1.4.1, < 2.0)
    middleman-deploy (1.0.0)
      middleman-core (>= 3.2)
      net-sftp
      ptools
    middleman-disqus (1.1.0)
      middleman-core (~> 3.3)
    middleman-favicon-maker (3.7)
      favicon_maker (~> 1.3)
      middleman-core (>= 3.0.0)
    middleman-fontcustom (0.3.0)
      fontcustom (~> 1.3)
      middleman-core (>= 3.3)
    middleman-google-analytics (1.1.0)
      middleman-core (~> 3.2)
      uglifier (>= 2.1, < 3.0)
    middleman-livereload (3.4.3)
      em-websocket (~> 0.5.1)
      middleman-core (>= 3.3)
      rack-livereload (~> 0.3.15)
    middleman-meta-tags (0.1.3)
      middleman-core (>= 3.0.0)
    middleman-minify-html (3.4.1)
      htmlcompressor (~> 0.2.0)
      middleman-core (>= 3.2)
    middleman-protect-emails (0.3.1)
      middleman-core (~> 3.2)
    middleman-sitemap (0.0.13)
      middleman-core (>= 3.2.2)
    middleman-sprockets (3.4.2)
      middleman-core (>= 3.3)
      sprockets (~> 2.12.1)
      sprockets-helpers (~> 1.1.0)
      sprockets-sass (~> 1.3.0)
    middleman-webp (0.3.2)
      middleman-core (>= 3.3.0, < 3.5.0)
    minitest (5.8.2)
    multi_json (1.11.2)
    net-sftp (2.1.2)
      net-ssh (>= 2.6.5)
    net-ssh (3.0.1)
    padrino-helpers (0.12.5)
      i18n (~> 0.6, >= 0.6.7)
      padrino-support (= 0.12.5)
      tilt (~> 1.4.1)
    padrino-support (0.12.5)
      activesupport (>= 3.1)
    ptools (1.3.3)
    rack (1.5.5)
    rack-livereload (0.3.16)
      rack
    rack-test (0.6.3)
      rack (>= 1.0)
    rb-fsevent (0.9.6)
    rb-inotify (0.9.5)
      ffi (>= 0.5.0)
    sass (3.4.19)
    sprockets (2.12.4)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-helpers (1.1.0)
      sprockets (~> 2.0)
    sprockets-sass (1.3.1)
      sprockets (~> 2.0)
      tilt (~> 1.1)
    thor (0.19.1)
    thread_safe (0.3.5)
    tilt (1.4.1)
    timers (4.0.4)
      hitimes
    tzinfo (1.2.2)
      thread_safe (~> 0.1)
    uber (0.0.15)
    uglifier (2.7.2)
      execjs (>= 0.3.0)
      json (>= 1.8.0)

PLATFORMS
  ruby

DEPENDENCIES
  bh
  bootstrap-sass
  builder
  middleman
  middleman-blog
  middleman-blog-drafts
  middleman-blog-similar
  middleman-bootstrap-navbar
  middleman-breadcrumbs
  middleman-build-info
  middleman-deploy
  middleman-disqus
  middleman-favicon-maker
  middleman-fontcustom
  middleman-google-analytics
  middleman-livereload
  middleman-meta-tags
  middleman-minify-html
  middleman-protect-emails
  middleman-sitemap
  middleman-webp

BUNDLED WITH
   1.10.6
marnen commented 9 years ago

That's extremely odd. I'll take a look.

marnen commented 9 years ago

I suspect this is a scoping issue on the BreadcrumbsVersion constant.

Daverius commented 8 years ago

+1. I've got the same issue.

marnen commented 8 years ago

@Daverius Sorry for the delay. I'll try to fix this tonight.

ghost commented 8 years ago

+1 Guess the files are loaded in the wrong order: https://github.com/marnen/middleman-breadcrumbs/blob/master/lib/middleman-breadcrumbs.rb#L1

marnen commented 8 years ago

@GhostGambler Most likely. Fixing this right now.

marnen commented 8 years ago

Fixed in v0.3.3.