ya_queen_role_fontana 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ya_queen_role_fontana/asset.rb +3 -3
- data/lib/ya_queen_role_fontana/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: 5164be012f2fef3f2ab93da8768d372d6f8c9841
|
4
|
+
data.tar.gz: f8acab2f1dacb192ef2e2a7cd9c1afd737c4cc74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b5162caceb3ad6ac6867d35c25cce4e64ec1c09635e809289479e192340a951668d0cbca09752d59e3ffe2846530e2320471fe09e62c150c8eaef13af78a7d7
|
7
|
+
data.tar.gz: 53647da49098f5b859d2d0599abc71a993b9621dee47a2792c9d638f33286f6f83f32b5f78b41c6ae1e78793d33a97d1e2df703379cd48b5ba48824ae49e791d
|
@@ -14,7 +14,7 @@ module YaQueenRoleFontana
|
|
14
14
|
File.join(@root, path)
|
15
15
|
end
|
16
16
|
end
|
17
|
-
class
|
17
|
+
class RailsImpl
|
18
18
|
attr_reader :root
|
19
19
|
def initialize(root)
|
20
20
|
@root = RailsRoot.new(root)
|
@@ -36,10 +36,10 @@ module YaQueenRoleFontana
|
|
36
36
|
# set :repository, root_dir
|
37
37
|
|
38
38
|
unless defined?(::Rails)
|
39
|
-
Object.const_set(:Rails,
|
39
|
+
Object.const_set(:Rails, RailsImpl.new(root_dir))
|
40
40
|
end
|
41
41
|
|
42
|
-
path = Rails.root.join("config/asset_drivers.yml.erb").to_s
|
42
|
+
path = ::Rails.root.join("config/asset_drivers.yml.erb").to_s
|
43
43
|
asset_drivers_config = YAML.load(ERB.new(File.read( path )).result)
|
44
44
|
set :deploy_from, asset_drivers_config["file"]["file_path"]
|
45
45
|
|