sibu 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/sibu/dynamic_style.rb +8 -2
- data/lib/sibu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff041b361662a5a92e1bee5679c32a0e9287e42c
|
4
|
+
data.tar.gz: 4087b5d74d19e34ddbf1291e0af08f5aba0cf465
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec5f6aa3aeba13bf27d8ae2032bdc3806e76afd6375aa7268f530fe1c7b2c9b6fc1526d37a726c7810b181dc4c9f9c14650c464565f8da052af58aec7ed1218a
|
7
|
+
data.tar.gz: 6b6b1761567e7cbf643a0b86aacbb97fab8966d1bdb9908ffc013318d42b1910ef5f2bcb893c442cf0fb1f1248f7035535e402b62ef03e08a5a978e9363e9ce1
|
@@ -16,16 +16,22 @@ module Sibu
|
|
16
16
|
|
17
17
|
begin
|
18
18
|
scss_file.write generate_css
|
19
|
+
logger.info "Generated scss file"
|
19
20
|
scss_file.flush
|
21
|
+
logger.info "flushed"
|
20
22
|
scss_file.close
|
23
|
+
logger.info "closed"
|
21
24
|
css_file_path = scss_file_path.gsub('scss', 'css')
|
25
|
+
logger.info "Generated css file : #{css_file_path}"
|
22
26
|
File.rename(scss_file_path, css_file_path)
|
27
|
+
logger.info "File renamed"
|
23
28
|
site.update(style: File.new(css_file_path))
|
29
|
+
logger.info "Style updated"
|
24
30
|
rescue Exception => ex
|
25
31
|
logger.error(ex)
|
26
32
|
ensure
|
27
|
-
File.delete(scss_file_path) if File.exist?(scss_file_path)
|
28
|
-
File.delete(css_file_path) if File.exist?(css_file_path)
|
33
|
+
File.delete(scss_file_path) if scss_file_path && File.exist?(scss_file_path)
|
34
|
+
File.delete(css_file_path) if css_file_path && File.exist?(css_file_path)
|
29
35
|
end
|
30
36
|
end
|
31
37
|
|
data/lib/sibu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sibu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean-Baptiste Vilain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|