spree-contrib / spree_print_invoice

Create a PDF invoice for Spree orders.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
91 stars 239 forks source link

Could not find gem spree_core ~> 3.1.0.beta #90

Open frizbee opened 9 years ago

frizbee commented 9 years ago

Could not find gem 'spree_core (~> 3.1.0.beta) ruby', which is required by gem 'spree_print_invoice (>= 0) ruby', in any of the sources.


Bundler could not find compatible versions for gem "spree_core": In Gemfile: spree_print_invoice (>= 0) ruby depends on spree_core (~> 3.1.0.beta) ruby

spree_slider (>= 0) ruby depends on spree_core (3.0.1)

Gemfile

gem 'spree', '3.0.1' gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable' gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable' gem 'spree_slider', github: 'spree-contrib/spree_slider' gem 'spree_print_invoice', github: 'spree-contrib/spree_print_invoice', branch: 'master'

user12121212 commented 9 years ago

You can get the versions of spree ~> 3.1.0.beta from github.

gem 'spree'', github: 'spree/spree', branch: '3-0-stable'

frizbee commented 9 years ago

And then got this:

Bundler could not find compatible versions for gem "spree_core": In Gemfile: spree_print_invoice (>= 0) ruby depends on spree_core (~> 3.1.0.beta) ruby

Gemfile

gem 'spree', github: 'spree/spree', branch: '3-0-stable' gem 'spree_print_invoice', github: 'spree-contrib/spree_print_invoice', branch: 'master'

tvdeyen commented 9 years ago

It has to be:

gem 'spree', github: 'spree/spree', branch: 'master'

user12121212 commented 9 years ago

@tvdeyen Does it requires the master branch of spree? can you have a look at #89 ?

frizbee commented 9 years ago

actually I came back to

gem 'spree', '3.0.1' gem 'spree_print_invoice', github: 'spree-contrib/spree_print_invoice', branch: '3-0-stable'

same if I run with

gem 'spree', github: 'spree/spree', branch: '3-0-stable' gem 'spree_print_invoice', github: 'spree-contrib/spree_print_invoice', branch: '3-0-stable'

it's working now, I can set configuration in admin and I see Print Invoice number. But when I click Print Invoice in Orders I got this error:

no implicit conversion of Sprockets::Asset into String

        end
         # String or Pathname
  ----> io_or_path = Pathname.new(io_or_path)
         raise ArgumentError, "#{io_or_path} not found" unless io_or_path.file?
         io = io_or_path.open('rb')
         io

Now I have same issue as #89

user12121212 commented 9 years ago

@frizbee Have you figure out way to solve it?

frizbee commented 9 years ago

not yet, currently working on payments

user12121212 commented 9 years ago

@frizbee see the update on #89 :)