inesita-rb / inesita-router

MIT License
2 stars 1 forks source link

Update to work with inesita 0.7 (to support opal 0.11) #1

Closed zw963 closed 6 years ago

zw963 commented 6 years ago

Following is my example Gemfile

source "https://rubygems.org"

# inesita gem
gem 'inesita', github: 'inesita-rb/inesita'
# gem 'inesita-livereload', github: 'inesita-rb/inesita-livereload'
gem 'inesita-router', github: 'inesita-rb/inesita-router'
gem 'opal'

# add this gems to minify files on build
#
# gem 'uglifier'
# gem 'htmlcompressor'

# bootsrap assets
gem 'bootstrap-sass'

# rails-assets are also supported
# source 'https://rails-assets.org' do
#   gem 'rails-assets-bootstrap'
# end

When run bundle install, got following error message:

Fetching git://github.com/inesita-rb/inesita.git
Fetching git://github.com/inesita-rb/inesita-router.git
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "inesita":
  In Gemfile:
    inesita

    inesita-router was resolved to 0.1.0, which depends on
      inesita (~> 0.6.0)
fazibear commented 6 years ago

Thanks, I'll update it ASAP, also I need to release 0.7 version :)

fazibear commented 6 years ago

I've just updated router dependencies. Can you check if it fine?

zw963 commented 6 years ago

It worked now, thank you.

 ╰─ $ bundle list |grep inesita
  * inesita (0.7.0 23cc72e)
  * inesita-livereload (0.1.0)
  * inesita-router (0.2.0 2c983db)
zw963 commented 6 years ago

Hi, because inesita 0.7 remove slim from dep, I have to change my app/index.html.slim to app/index/html.erb to make tutorial example work.

You need to add sass and slim to gemfiles, and change config.ru

fazibear commented 6 years ago

take a loog at templates: https://github.com/inesita-rb/inesita/blob/master/lib/inesita/cli/template/config.ru.tt