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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84cc9db0cef3d5f682daea5505c9115f0c16fbf5
4
- data.tar.gz: ebc929e0cfd645e12829b981652bcd24752089e0
3
+ metadata.gz: ff041b361662a5a92e1bee5679c32a0e9287e42c
4
+ data.tar.gz: 4087b5d74d19e34ddbf1291e0af08f5aba0cf465
5
5
  SHA512:
6
- metadata.gz: b3ab49837d507527c8d0ed66feaddd2968abc2f3282244a6b21633d4fe050188c27acaf5f8aec70c40a6e0387b007223ca7109eda198d1b215d465f9f684088e
7
- data.tar.gz: c138e4c0fab28f1ee4af097b0327671107de39104803e6d7b87aad12611577c7e2dbad19874cdfd5dee948857d15382e3abffbfe7ac2374935c7832801f4e3db
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
@@ -1,3 +1,3 @@
1
1
  module Sibu
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
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.3
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-05 00:00:00.000000000 Z
11
+ date: 2018-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails