Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct paths for Imba 0.14.3 #2

Merged
merged 3 commits into from
Jan 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ JavaScript source code for the [Imba](https://github.com/somebee/imba) compiler
require 'imba/source'

# The Imba runtime:
Imba::Source.path_for("imba.dev.js")
Imba::Source.path_for("imba.js")
Imba::Source.path_for("imba.min.js")

# The Imba compiler:
Imba::Source.path_for("imbac.dev.js")
Imba::Source.path_for("imbac.js")
Imba::Source.path_for("imbac.min.js")

# Path to the directory which contains the files above
Imba::Source::BROWSER_PATH # => Pathname instance
Expand Down
2 changes: 1 addition & 1 deletion imba-source.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
"README.md",
"lib/imba/source.rb",
*Dir.glob("lib/**/*"),
*Dir.glob("vendor/imba/lib/browser/imba{,c}*.js")
*Dir.glob("vendor/imba/dist/imba{,c}*.js")
]

spec.require_paths = ["lib"]
Expand Down
2 changes: 1 addition & 1 deletion lib/imba/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
module Imba
module Source
VENDOR_PATH = Pathname.new(__FILE__).expand_path + "../../../vendor/imba"
BROWSER_PATH = VENDOR_PATH + "lib/browser"
BROWSER_PATH = VENDOR_PATH + "dist"

def self.path_for(name)
(BROWSER_PATH + name).to_s
Expand Down