dugway 1.0.9 → 1.0.10
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 +4 -4
- data/README.md +1 -2
- data/lib/dugway/cli/server.rb +10 -0
- data/lib/dugway/version.rb +1 -1
- data/lib/dugway.rb +8 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35b25d6267e8587b0d523fd8edf159a89b2f06990e9dd65d6997ff03588b208e
|
|
4
|
+
data.tar.gz: f389c8591877e2c149a09457d0b6706c1ba09379e6e99551891b7de4a636b2c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
data/lib/dugway/cli/server.rb
CHANGED
|
@@ -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"
|
data/lib/dugway/version.rb
CHANGED
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2024-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|