trackman 0.2.64 → 0.2.65
Sign up to get free protection for your applications and to get access to all the features.
@@ -28,18 +28,16 @@ module Trackman
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def init_env
|
31
|
-
|
32
|
-
|
31
|
+
# should be like this but we will change it when it is testable
|
33
32
|
# if defined?(::Rails) && ::Rails.application
|
34
|
-
# env = ::Rails.application.
|
33
|
+
# env = ::Rails.application.class.assets
|
35
34
|
# else
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
# end
|
35
|
+
env = ::Sprockets::Environment.new
|
36
|
+
paths = ['app', 'lib', 'vendor'].inject([]) do |array, f|
|
37
|
+
array + ["images", "stylesheets", "javascripts"].map{|p| "#{working_dir}/#{f}/assets/#{p}" }
|
38
|
+
end
|
39
|
+
paths << "#{working_dir}/public"
|
40
|
+
paths.each{|p| env.append_path p }
|
43
41
|
|
44
42
|
env
|
45
43
|
end
|
data/lib/trackman/version.rb
CHANGED