dugway 1.0.8 → 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: 4c29856362aa6781513881924c2ffdab292d4a1a3a401c91d11e4ef1f7389a43
4
- data.tar.gz: 8676516fc4b26c415f78e31558f1df5814dddb55c80221e0507f5793343f8d2e
3
+ metadata.gz: 35b25d6267e8587b0d523fd8edf159a89b2f06990e9dd65d6997ff03588b208e
4
+ data.tar.gz: f389c8591877e2c149a09457d0b6706c1ba09379e6e99551891b7de4a636b2c9
5
5
  SHA512:
6
- metadata.gz: d7ffa6f534fcb3d51f14de4168906a2b7dbfab08689ac8d61136df08ffa848458d94fdbdacf17db43611d40c3ebf208759d3ca49a10781d58e02b53c740f295c
7
- data.tar.gz: 32186c12dd6696cf6b41904c253a414cb25a7af2f19f0ff45e29c5dbc7212bb09703bac52b0ba9e9216bce4b645af30a62d77de9d96e3c0b5f075758425d5b45
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
 
data/dugway.gemspec CHANGED
@@ -35,6 +35,7 @@ Gem::Specification.new do |s|
35
35
  s.add_dependency('will_paginate', '~> 3.0.4')
36
36
  s.add_dependency('i18n', '1.6')
37
37
  s.add_dependency('htmlentities', '~> 4.3.1')
38
+ s.add_dependency('listen', '~> 3.0')
38
39
  s.add_dependency('thor', '~> 0.20.3')
39
40
  s.add_dependency('rubyzip', '~> 0.9.9')
40
41
  s.add_dependency('terser', '~> 1.1')
@@ -1,4 +1,5 @@
1
1
  require 'rack'
2
+ require 'listen'
2
3
 
3
4
  module Dugway
4
5
  module Cli
@@ -21,7 +22,24 @@ module Dugway
21
22
  :default => 'thin',
22
23
  :desc => "The server to run"
23
24
 
25
+ class_option :suppress_warnings,
26
+ type: :boolean,
27
+ aliases: '-q',
28
+ default: false,
29
+ desc: "Suppress warnings"
30
+
24
31
  def start
32
+ if options[:suppress_warnings]
33
+ $VERBOSE = nil
34
+ end
35
+
36
+ listener = Listen.to('.', only: /\.dugway\.json$/) do |modified|
37
+ puts "Config changed, restarting server..."
38
+ exec "dugway server"
39
+ end
40
+
41
+ Thread.new { listener.start }
42
+
25
43
  Rack::Server.start({
26
44
  :config => File.join(Dir.pwd, 'config.ru'),
27
45
  :environment => 'none',
@@ -1,3 +1,3 @@
1
1
  module Dugway
2
- VERSION = "1.0.8"
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.8
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-02-08 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
@@ -234,6 +234,20 @@ dependencies:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
236
  version: 4.3.1
237
+ - !ruby/object:Gem::Dependency
238
+ name: listen
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: '3.0'
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '3.0'
237
251
  - !ruby/object:Gem::Dependency
238
252
  name: thor
239
253
  requirement: !ruby/object:Gem::Requirement
@@ -578,7 +592,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
578
592
  - !ruby/object:Gem::Version
579
593
  version: '0'
580
594
  requirements: []
581
- rubygems_version: 3.2.3
595
+ rubygems_version: 3.0.3.1
582
596
  signing_key:
583
597
  specification_version: 4
584
598
  summary: Easily build and test Big Cartel themes.