rugular 0.9.12 → 0.9.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rugular/tasks/build.rb +1 -20
- data/lib/rugular/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: c52eed33ed0ae4e4e49aff479e0f833f29a0f9eb
|
4
|
+
data.tar.gz: c62d41476d659cb31167700ca4738c0552a6d738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 551c30a02abc31f4d9ab63b11bb6c815ee06a8e64ab21eb0e30d1f7b7209761206e8df093f5c61c938b3def3545eb64c63efcf6405451585763dd6c311ab984f
|
7
|
+
data.tar.gz: d93965f4c8c61acf3e8fc87c4f60d9e2b0647b3cb8c9ae825a44cd8d428e524afbad718f189fe0329e31ee6cbe30d91244a34f16e050ced94ea355503775781f
|
data/lib/rugular/tasks/build.rb
CHANGED
@@ -34,7 +34,7 @@ module Rugular
|
|
34
34
|
file.write(
|
35
35
|
Uglifier.compile(
|
36
36
|
|
37
|
-
Rugular::JavascriptFiles.ordered_array.map do |javascript_file|
|
37
|
+
::Rugular::JavascriptFiles.ordered_array.map do |javascript_file|
|
38
38
|
text = File.read(javascript_file).gsub('templateUrl', 'template')
|
39
39
|
|
40
40
|
CoffeeScript.compile(text)
|
@@ -59,25 +59,6 @@ module Rugular
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
-
def inject_backend_urls
|
63
|
-
Rugular::BackendURLInjector.inject_urls(
|
64
|
-
config_file: 'config.yaml',
|
65
|
-
constant_file: 'dist/application.js',
|
66
|
-
environment: :production
|
67
|
-
)
|
68
|
-
end
|
69
|
-
|
70
|
-
def add_template_application_sass_file
|
71
|
-
FileUtils.cp(
|
72
|
-
"#{lib_directory}/templates/server/application.sass",
|
73
|
-
"#{destination_root}/.application.sass"
|
74
|
-
)
|
75
|
-
end
|
76
|
-
|
77
|
-
def create_application_css_file
|
78
|
-
`sass .application.sass dist/application.css -r sass-globbing`
|
79
|
-
end
|
80
|
-
|
81
62
|
def copy_images
|
82
63
|
FileUtils.cp_r('src/images', 'dist')
|
83
64
|
end
|
data/lib/rugular/version.rb
CHANGED