wedge 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05808d3390e0b02a29aff8a0301994aa46016f3c
4
- data.tar.gz: 524dd9d224b0d92e2552d5ad4b0375b13fe8a5c3
3
+ metadata.gz: af418ce6886e6fa3eee260087428493516a32f0f
4
+ data.tar.gz: 839e40d9c95003e142ac074f11b5af0a68c1a4b4
5
5
  SHA512:
6
- metadata.gz: d6dd8fcc915e919463ba78fc15faf5e61102f7495bb9b1fbc3f5394962d2a2caa44ec96fdf6bee1e22e1416ad1db58b8e83c857825edd7b5f820487b44e0ac6d
7
- data.tar.gz: 9b3f8ea91c4a023f4d0447db590bdb09e4e1d394fff742ba0365e70faca8bb219ed18a5cc8dda3cb262e18551b62094c44e662a4d1ce7576206b0adee3c0720d
6
+ metadata.gz: a449dcbb6616c22a21b98aef2097970910d8be80fb257a220b6ff6c14636d2611034102a29859f8b756edade7784a35b9543eed598528c2b5ed4acd56ca15e24
7
+ data.tar.gz: 73e9ac6539b6949cb1f44dd639b671d8ead67ed6bdc3874086231b5dd207ec3b124d03b9f2ed2d5d2fcdd8bec9ee55f80b58cd343157270444f7f1bce37105e8
@@ -125,16 +125,8 @@ class Wedge
125
125
  # @return [Array] List of opal paths.
126
126
  def append_paths
127
127
  @append_paths ||= begin
128
- file = method(:assets_url).source_location.first.sub('/wedge.rb', '')
129
- gems_dir = ::Opal.gem_dir.gsub(/(?<=gems)\/opal-.*/, '')
130
- Wedge::Opal.append_path file
131
- Wedge::Opal.append_path Dir.pwd
132
- # fix: make this a config option i.e.
133
- # gems: [:ability_list]
134
- # then grab that path and add it to the opal path list
135
- # Dir["#{gems_dir}/**/"].sort.each do |folder|
136
- # Wedge::Opal.append_path "#{folder}/lib"
137
- # end
128
+ Wedge::Opal.append_path method(:assets_url).source_location.first.sub('/wedge.rb', '')
129
+ Wedge::Opal.append_path "#{Dir.pwd}/#{config.app_dir}"
138
130
  end
139
131
  end
140
132
  end
@@ -38,7 +38,7 @@ class Wedge
38
38
  unless RUBY_ENGINE == 'opal'
39
39
  # set the file path
40
40
  path = "#{caller[0]}".gsub(/(?<=\.rb):.*/, '')
41
- .gsub(%r{(#{Dir.pwd}/|.*(?=wedge))}, '')
41
+ .gsub(%r{(#{Dir.pwd}/#{Wedge.config.app_dir}/|.*(?=wedge))}, '')
42
42
  .gsub(/\.rb$/, '')
43
43
  end
44
44
 
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.16'
2
+ VERSION = '0.1.17'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wedge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj