webpack_driver 0.3.2 → 0.3.3

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: 3eaea8c63bb4e9449b98fe84dfb9cdd9fae3e33f
4
- data.tar.gz: cfcec6ce86a39d2310957ce1cad1a601ee33b6a9
3
+ metadata.gz: dad579448a101e34dd5551f75caa200b4ab3ce51
4
+ data.tar.gz: 6d1a90ade82516a21086df7d7b04fc656d90d1eb
5
5
  SHA512:
6
- metadata.gz: ba9f6518701d3eac7bfbd93458a393e06493d2874f90babff65f1a26185f6961db537e0797b5d8bed2084155ccdcc268365cc60788150a6f59907a49460ea6a3
7
- data.tar.gz: 05d46424de9d6e4a01d863ccb6bca6247cb42c4add20f9455c3647c1c092d4b3dfcbbda1ce2fe9860a91330848356c19fd5daf01b8c8747697f32c6b4cfcc663
6
+ metadata.gz: a6595da1ed44fe81a525ef2f7aec712321fe7a828efa70c0c197a540c0f40bbe22859e6ea378969eed2d166170a34deb824704757f26842deacec0d0f60939b7
7
+ data.tar.gz: d3507e717fa9e05feb61ecc0d9a905f877640cfae7d143bd5ffb8b06a2c475c25aada500ced763d76dcdcc40e9638f9899e90ab49c3073040a82d9d7180b274f
@@ -67,7 +67,6 @@ module WebpackDriver
67
67
 
68
68
  def launch(development:)
69
69
  raise "Already launched" unless @process.nil?
70
- logger.info "Startint"
71
70
  @process = development ? DevServer.new(self) : Compile.new(self)
72
71
  end
73
72
 
@@ -71,7 +71,10 @@ module WebpackDriver
71
71
  end
72
72
 
73
73
  def record_message(msg)
74
- @messages << msg unless msg['type'] == 'progress'
74
+ unless msg['type'] == 'progress'
75
+ @messages << msg
76
+ config.logger.debug(msg)
77
+ end
75
78
  case msg['type']
76
79
  when 'status'
77
80
  @last_status = msg['value']
@@ -83,8 +86,6 @@ module WebpackDriver
83
86
  record_error(msg['value'])
84
87
  when 'config'
85
88
  config.output_path = Pathname.new(msg['value']['output_path'])
86
- else
87
- config.logger.debug(msg)
88
89
  end
89
90
  end
90
91
 
@@ -96,7 +97,6 @@ module WebpackDriver
96
97
  match = l.match(/^STATUS: (.*)/)
97
98
  if match
98
99
  record_message(JSON.parse(match[1]))
99
- config.logger.debug(l.chomp)
100
100
  else
101
101
  config.logger.info(l.chomp)
102
102
  end
@@ -1,3 +1,3 @@
1
1
  module WebpackDriver
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpack_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Stitt