wedge 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wedge.rb +2 -10
- data/lib/wedge/component.rb +1 -1
- data/lib/wedge/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af418ce6886e6fa3eee260087428493516a32f0f
|
4
|
+
data.tar.gz: 839e40d9c95003e142ac074f11b5af0a68c1a4b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a449dcbb6616c22a21b98aef2097970910d8be80fb257a220b6ff6c14636d2611034102a29859f8b756edade7784a35b9543eed598528c2b5ed4acd56ca15e24
|
7
|
+
data.tar.gz: 73e9ac6539b6949cb1f44dd639b671d8ead67ed6bdc3874086231b5dd207ec3b124d03b9f2ed2d5d2fcdd8bec9ee55f80b58cd343157270444f7f1bce37105e8
|
data/lib/wedge.rb
CHANGED
@@ -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
|
-
|
129
|
-
|
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
|
data/lib/wedge/component.rb
CHANGED
@@ -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
|
|
data/lib/wedge/version.rb
CHANGED