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: opal/opal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6edaa05daadf
Choose a base ref
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 67bcfade0faf
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jan 6, 2015

  1. Fix typo in variable name

    wasnotrice committed Jan 6, 2015
    Copy the full SHA
    5611cfe View commit details
  2. Merge pull request #683 from wasnotrice/fix-typo

    Fix typo in variable name
    elia committed Jan 6, 2015
    Copy the full SHA
    67bcfad View commit details
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/opal/paths.rb
10 changes: 5 additions & 5 deletions lib/opal/paths.rb
Original file line number Diff line number Diff line change
@@ -19,19 +19,19 @@ def self.append_path(path)
paths << path
end

def self.use_gem(gem_name, include_dependecies = true)
require_paths_for_gem(gem_name, include_dependecies).each do |path|
def self.use_gem(gem_name, include_dependencies = true)
require_paths_for_gem(gem_name, include_dependencies).each do |path|
append_path path
end
end

def self.require_paths_for_gem(gem_name, include_dependecies)
def self.require_paths_for_gem(gem_name, include_dependencies)
paths = []
spec = Gem::Specification.find_by_name(gem_name)

spec.runtime_dependencies.each do |dependency|
paths += require_paths_for_gem(dependency.name, include_dependecies)
end if include_dependecies
paths += require_paths_for_gem(dependency.name, include_dependencies)
end if include_dependencies

gem_dir = spec.gem_dir
spec.require_paths.map do |path|