bourbon_integrator 1.0.1 → 1.0.2

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: 2ce8867b9a22301d0b4d33f8970913af91743aad
4
- data.tar.gz: 8d1e2e5aecfbe267f10573b6d01dd29bdd7a4fd4
3
+ metadata.gz: 5a847075203abf5a4105ccd1c9f91c4c8e25b406
4
+ data.tar.gz: ef53a05a2223eb6bf49980a71a5c702ece5d8869
5
5
  SHA512:
6
- metadata.gz: 41d5a8a0fb48e57aa0afe15a009b01f8eddd06a5fb5711c4512852afca874a2c08241bf425e6d78feba5d4c5395b6254547f2ca3ede11ecd9c610463ecab3d7e
7
- data.tar.gz: 7393a32fcdb74dfe629a30e0505390e2603a73921bc8c597405b381d6e8414210fc90408cbf239e99c323a5972ec33388bff71321434d29992b04391402e45cf
6
+ metadata.gz: 5a130a222c48ecfc99ea36f85b3914c43721e6cf3240e282c13ba1e2c197ebf25b737a923aa384622b18574bdbc5464577c8762d61caea077f606ce27ac639f4
7
+ data.tar.gz: 836cbc2b8ada47dd83bf7bb81d4683e5e1b6f95032dda6bf3c7da02783633134dbde7e818b6aea80fd4c3ee367fcefa15f49e2dac661213a02cd42b301b42055
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.0.2 (2016.10.14)
2
+
3
+ * disable sourcemap when assets verbose is disabled
4
+
1
5
  === 1.0.1 (2016.10.14)
2
6
 
3
7
  * fix bug in struct_vars template
@@ -25,7 +25,7 @@ module BourbonIntegrator
25
25
  def run
26
26
  @output.puts "*** Compile CSS ***"
27
27
  @executor.system(
28
- "sass --scss --style #{sass_style} --update #{sass_path}:#{stylesheets_path}"
28
+ "sass --scss --style #{sass_style} #{sourcemap} --update #{sass_path}:#{stylesheets_path}"
29
29
  )
30
30
  end
31
31
  end
@@ -24,7 +24,9 @@ module BourbonIntegrator
24
24
  class Watch < CommandTemplate
25
25
  def run
26
26
  @output.puts "*** Watching for changes ***"
27
- @executor.exec "sass --scss --style #{sass_style} --watch #{sass_path}:#{stylesheets_path}"
27
+ @executor.exec(
28
+ "sass --scss --style #{sass_style} #{sourcemap} --watch #{sass_path}:#{stylesheets_path}"
29
+ )
28
30
  end
29
31
  end
30
32
  end
@@ -43,6 +43,10 @@ module BourbonIntegrator
43
43
  @config.fetch("project_assets_verbose") ? "nested" : "compressed"
44
44
  end
45
45
 
46
+ def sourcemap
47
+ "--sourcemap=none" unless @config.fetch("project_assets_verbose")
48
+ end
49
+
46
50
  def stylesheets_path
47
51
  File.join(
48
52
  @config.fetch("project_ui_dir"),
@@ -18,5 +18,5 @@
18
18
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module BourbonIntegrator
21
- VERSION = "1.0.1".freeze
21
+ VERSION = "1.0.2".freeze
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bourbon_integrator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Szymon Kopciewski