wire-framework 0.1.6.2 → 0.1.6.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3687acebdc8a32fc29d21f17ed715e9626bdc6ed
4
- data.tar.gz: 278516b8a563a26dce287732064b1c9fff3c1f4b
3
+ metadata.gz: 936b7936fa2772c8e644c66d0dbcb91752a0bb9c
4
+ data.tar.gz: d1067151867e7f063f24dfef5dbd26ed56087cba
5
5
  SHA512:
6
- metadata.gz: 614bc3820bdeb988acdf66d1f08f99e96c488c9c9b35039593b1d8dd623acd50928cd6fd09d92251b3b17a3cfa08e7c6583a90d72dce83e589267a95867b8ea1
7
- data.tar.gz: 0f7b77427083d108124222507ccc4726ec5a11c01c1ab415f14a05f9b3920a8afa3b8dc055cb607570f45d7d00259d8dfe4765d3c9d1afa3e814a20383a74b53
6
+ metadata.gz: e13a6cc4395e4e740d011ae507cf90528e2ab1324633982c83f10dba81c13dc9627b08e8c30b78eb0339599fbf2402c01310cd994b72ddd662043681b6fa5f16
7
+ data.tar.gz: 65a54308657a697e07f18215c68b88c8d2b3c5e8df5579243b562713791a29c2304691a3ca13b4ba301d1e711a687314fdde83e0593c34656de1af3efd24e204
@@ -25,7 +25,7 @@ module History
25
25
  # @param [Hash] conf the raw configuration
26
26
  # @return [Hash] post-processed configuration
27
27
  def configure(conf)
28
- conf['log'] = Tilt.new(conf['log'], 1, { ugly: true })
28
+ conf['log'] = Tilt.new(conf['log'], 1)
29
29
  conf
30
30
  end
31
31
 
@@ -24,7 +24,7 @@ module Render
24
24
  # @return [Hash] post-processed configuration
25
25
  def self.configure(conf)
26
26
  conf['errors'].each do |k, v|
27
- conf['errors'][k] = Tilt.new(v, 1, { ugly: true })
27
+ conf['errors'][k] = Tilt.new(v, 1)
28
28
  end
29
29
  conf
30
30
  end
@@ -28,10 +28,10 @@ module Render
28
28
  def self.configure(conf)
29
29
  conf['resources'].each do |k, v|
30
30
  if v.is_a? Hash
31
- conf['resources'][k]['multiple'] = Tilt.new(v['multiple'], 1, { ugly: true })
32
- conf['resources'][k]['single'] = Tilt.new(v['single'], 1, { ugly: true })
31
+ conf['resources'][k]['multiple'] = Tilt.new(v['multiple'], 1)
32
+ conf['resources'][k]['single'] = Tilt.new(v['single'], 1)
33
33
  elsif v.is_a? String
34
- conf['resources'][k] = { 'all' => Tilt.new(v, 1, { ugly: true }) }
34
+ conf['resources'][k] = { 'all' => Tilt.new(v, 1) }
35
35
  end
36
36
  end
37
37
  conf
@@ -26,7 +26,7 @@ module Render
26
26
  # @return [Hash] post-processed configuration
27
27
  def self.configure(conf)
28
28
  conf['styles'].each do |k, v|
29
- conf['styles'][k] = Tilt.new(v, 1, { ugly: true }).render
29
+ conf['styles'][k] = Tilt.new(v, 1).render
30
30
  end
31
31
  conf
32
32
  end
@@ -26,7 +26,7 @@ module Repo
26
26
  # @param [Hash] conf the raw configuration
27
27
  # @return [Hash] post-processed configuration
28
28
  def configure(conf)
29
- conf['listing'] = Tilt.new(conf['listing'], 1, { ugly: true })
29
+ conf['listing'] = Tilt.new(conf['listing'], 1)
30
30
  conf
31
31
  end
32
32
 
@@ -119,7 +119,9 @@ module Wire
119
119
  begin
120
120
  @json = JSON.parse_clean(@body)
121
121
  rescue JSON::ParserError
122
- $stderr.puts 'Warning: Failed to parse body as JSON'
122
+ if closet.mode.eql? 'development'
123
+ $stderr.puts 'Warning: Failed to parse body as JSON'
124
+ end
123
125
  end
124
126
  end
125
127
  end
@@ -26,7 +26,7 @@ module Wire
26
26
  # @param [Hash] conf the raw configuration
27
27
  # @return [Hash] post-processed configuration
28
28
  def self.configure_partial(conf)
29
- conf['partial'] = Tilt.new(conf['partial'], 1, { ugly: true })
29
+ conf['partial'] = Tilt.new(conf['partial'], 1)
30
30
  conf
31
31
  end
32
32
 
@@ -34,7 +34,7 @@ module Wire
34
34
  # @param [Hash] conf the raw configuration
35
35
  # @return [Hash] post-processed configuration
36
36
  def self.configure_template(conf)
37
- conf['file'] = Tilt.new(conf['file'], 1, { ugly: true })
37
+ conf['file'] = Tilt.new(conf['file'], 1)
38
38
  conf
39
39
  end
40
40
 
@@ -33,7 +33,7 @@ end
33
33
  # @author Bryan T. Meyers
34
34
  module Wire
35
35
  # Current version of the Wire Gem
36
- VERSION = '0.1.6.2'
36
+ VERSION = '0.1.6.3'
37
37
  end
38
38
 
39
39
  require_relative 'app'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wire-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.2
4
+ version: 0.1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan T. Meyers