Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: meh/lissio
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a3cfd7ebfad9
Choose a base ref
...
head repository: meh/lissio
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9eca5c0c82d1
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Mar 3, 2015

  1. Copy the full SHA
    e1b2b2b View commit details
  2. Copy the full SHA
    9eca5c0 View commit details
Showing with 10 additions and 2 deletions.
  1. +5 −1 lib/lissio/builder.rb
  2. +5 −1 lib/lissio/server.rb
6 changes: 5 additions & 1 deletion lib/lissio/builder.rb
Original file line number Diff line number Diff line change
@@ -11,9 +11,13 @@ class Builder
def_delegators :@sprockets, :append_path, :use_gem

def initialize(&block)
@sprockets = Opal::Environment.new
@sprockets = Sprockets::Environment.new
@main = 'app'

Opal.paths.each {|path|
@sprockets.append_path path
}

block.call(self) if block
end

6 changes: 5 additions & 1 deletion lib/lissio/server.rb
Original file line number Diff line number Diff line change
@@ -101,9 +101,13 @@ def lissio(source = @server.main)
def_delegators :@sprockets, :append_path, :use_gem

def initialize(&block)
@sprockets = Opal::Environment.new
@sprockets = Sprockets::Environment.new
@main = 'app'

Opal.paths.each {|path|
@sprockets.append_path path
}

block.call(self) if block
end