middleman / middleman-syntax

Code syntax highlighting plugin via Rouge for Middleman
https://middlemanapp.com
MIT License
179 stars 57 forks source link

Version incompatibility with pygments.rb (0.3.x) #1

Closed adam-stokes closed 11 years ago

adam-stokes commented 11 years ago

Error when attempting to install via rubygems:

Bundler could not find compatible versions for gem "pygments.rb":
In Gemfile:
middleman-syntax (>= 0) ruby depends on
  pygments.rb (~> 0.2.13) ruby

pygments.rb (0.3.1)
bhollis commented 11 years ago

What does your Gemfile look like? It sounds like you're just requiring a newer version of pygments.rb than middleman-syntax likes.

adam-stokes commented 11 years ago

I am pulling pygments.rb without a version number

source :rubygems

gem "middleman", :git => "git://[1]github.com/middleman/middleman.git"

gem "haml"

gem "redcarpet"

gem "coffee-script"

gem "susy"

gem "middleman-deploy"

gem "middleman-smusher"

gem "middleman-blog", :git => "git://[2]github.com/middleman/middleman-blog.git"

gem "builder", "~> 3.0.0"

gem "therubyracer"

gem "oj"

gem "pygments.rb"

gem "rack-codehighlighter", :git => "git://[3]github.com/wbzyl/rack-codehighlighter.git"

Maybe I need to decrease the pygments.rb version?

On Fri, Oct 12, 2012, at 09:48 PM, Ben Hollis wrote:

What does your Gemfile look like? It sounds like you're just requiring a newer version of pygments.rb than middleman-syntax likes.

Reply to this email directly or [4]view it on GitHub.

[Jshd8sI44GVrKZBvymxqKE1ApxNzwbbsihvD__8a6S6FpDMr6CK-kro5iph1zb4x.gi f]

References

  1. http://github.com/middleman/middleman.git
  2. http://github.com/middleman/middleman-blog.git
  3. http://github.com/wbzyl/rack-codehighlighter.git
  4. https://github.com/middleman/middleman-syntax/issues/1#issuecomment-9399807
bhollis commented 11 years ago

It looks like your gemfile doesn't use middleman-syntax at all.

adam-stokes commented 11 years ago

Yea not currently because it wasn't working :)

bhollis commented 11 years ago

Well, I would have expected Bundler to do the right thing, but for now you can constrain your pycments.rb dependency to the 2.x line. I'll have an update out in a while that relaxes middleman-syntax's dependency too.

adam-stokes commented 11 years ago

Ok will do thanks a lot!

bhollis commented 11 years ago

middleman-syntax 1.0.1 has been released which requires the newer pygments.rb.