dugway 1.0.9 → 1.0.10

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
  SHA256:
3
- metadata.gz: 8f97af86358fec7f36d3c23b9f128e5bc9d4bb4c14a59ed299fc24cf663697fd
4
- data.tar.gz: 2f384d23090cd675a83a689c9df2be70fd340f91ccbd0eb2094fece3c418fc15
3
+ metadata.gz: 35b25d6267e8587b0d523fd8edf159a89b2f06990e9dd65d6997ff03588b208e
4
+ data.tar.gz: f389c8591877e2c149a09457d0b6706c1ba09379e6e99551891b7de4a636b2c9
5
5
  SHA512:
6
- metadata.gz: 49c1e1d3d002ba1054f3a33692c28deb1a5d27445bf16f29982dad577981f646eecb7cd38bded3992f07d2d19580e0262492b05210ae37d17af1fcaadc4cd752
7
- data.tar.gz: 784f2bf5789523cdebe025401eee40c89cffd4e864d0cea765261c92a912123678262d7d451484113d840124300852ee187baa3805d0fe56b0dac2ee6fcb5a73
6
+ metadata.gz: 1f8838351d64308b7c4faa1b8532f736b7f12a8eb901473d4497350177b065d09dbe7fc31f64a08fa03cc96ffb3248d3046c93204e3fc6dedc6cc09d1771ed97
7
+ data.tar.gz: 26c85d0eb999c2b7478f1c44ffb0b52900e06e5bad03f4846f82e27308af51d91ba5cfbfb47426ae695b81336da873dbd3619fc1d61282e5b7b67447e2094a3d
data/README.md CHANGED
@@ -201,8 +201,7 @@ theme's versatility by utilizing the **.dugway.json** file. This file will be
201
201
  specific to your computer for your own testing, and shouldn't be checked into
202
202
  source control.
203
203
 
204
- *Note:* changing **.dugway.json** will require you to restart the
205
- [server](#running-your-theme).
204
+ *Note:* As of 1.0.9, changing `.dugway.json` will automatically restart the [server](#running-your-theme). Refresh your browser to see your changes reflected.
206
205
 
207
206
  ### Store content
208
207
 
@@ -22,7 +22,17 @@ module Dugway
22
22
  :default => 'thin',
23
23
  :desc => "The server to run"
24
24
 
25
+ class_option :suppress_warnings,
26
+ type: :boolean,
27
+ aliases: '-q',
28
+ default: false,
29
+ desc: "Suppress warnings"
30
+
25
31
  def start
32
+ if options[:suppress_warnings]
33
+ $VERBOSE = nil
34
+ end
35
+
26
36
  listener = Listen.to('.', only: /\.dugway\.json$/) do |modified|
27
37
  puts "Config changed, restarting server..."
28
38
  exec "dugway server"
@@ -1,3 +1,3 @@
1
1
  module Dugway
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
data/lib/dugway.rb CHANGED
@@ -1,9 +1,13 @@
1
1
  # Set our encodings to ensure we're always dealing with UTF-8 data.
2
2
  # Users experiencing problems with their templates should ensure they are saved as UTF-8.
3
- old_verbose, $VERBOSE = $VERBOSE, nil
4
- Encoding.default_external = Encoding::UTF_8
5
- Encoding.default_internal = Encoding::UTF_8
6
- $VERBOSE = old_verbose
3
+ begin
4
+ original_verbose = $VERBOSE
5
+ $VERBOSE = nil if ENV['DUGWAY_QUIET']
6
+ Encoding.default_external = Encoding::UTF_8
7
+ Encoding.default_internal = Encoding::UTF_8
8
+ ensure
9
+ $VERBOSE = original_verbose
10
+ end
7
11
 
8
12
  require 'active_support/all'
9
13
  require 'i18n'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dugway
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Big Cartel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-17 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler