polyfillrb 1.1.1 → 1.1.2
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 +4 -4
- data/lib/polyfillrb/rails/railtie.rb +12 -9
- data/lib/polyfillrb/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: 42f5a4d590bc49e08e6cf1bc90507695998226b2
|
|
4
|
+
data.tar.gz: 8e722cc77441967c48793a3b8dd7bb8cf071d85f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3cde01caa6e8f5486f4cf2e654c064c9cad6107e9daaed1d94b25f8bb35348e35958c79b280eab5712912480e376284dfdf676887375710e9d76efa13df27f7f
|
|
7
|
+
data.tar.gz: cb6a835c07b9c676b3e01abf2a17ce7f875faee81ced98f8dfa1fe88d23b9500a0205f9bfb671e6dea454d0fe9e496a360992445f37c9b0140a58275bf7fd4b3
|
|
@@ -15,16 +15,19 @@ module Polyfillrb
|
|
|
15
15
|
config.to_prepare do
|
|
16
16
|
|
|
17
17
|
# clone polyfill
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
Thread.new do
|
|
19
|
+
if !::Polyfillrb.has_installed_service?
|
|
20
|
+
::Rails.logger.info "Gathering Polyfill Library..."
|
|
21
|
+
%x( cd #{::Polyfillrb::PROJECT_DIRECTORY} && git clone git@github.com:Financial-Times/polyfill-service.git )
|
|
22
|
+
end
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
if !::Polyfillrb.has_built_sources?
|
|
25
|
+
# build the npm locals
|
|
26
|
+
::Rails.logger.info "Buidling Polyfills...\n this may take a minute\n You're server may not respond until this is done"
|
|
27
|
+
%x( cd #{::Polyfillrb::PROJECT_DIRECTORY}/polyfill-service && npm install )
|
|
28
|
+
%x( cd #{::Polyfillrb::PROJECT_DIRECTORY}/polyfill-service && grunt buildsources )
|
|
29
|
+
::Rails.logger.info " Done! Polyfills are built. You're server should be back in action"
|
|
30
|
+
end
|
|
28
31
|
end
|
|
29
32
|
|
|
30
33
|
end
|
data/lib/polyfillrb/version.rb
CHANGED