dugway 1.0.8 → 1.0.9

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: 8f97af86358fec7f36d3c23b9f128e5bc9d4bb4c14a59ed299fc24cf663697fd
4
+ data.tar.gz: 2f384d23090cd675a83a689c9df2be70fd340f91ccbd0eb2094fece3c418fc15
5
5
  SHA512:
6
- metadata.gz: d7ffa6f534fcb3d51f14de4168906a2b7dbfab08689ac8d61136df08ffa848458d94fdbdacf17db43611d40c3ebf208759d3ca49a10781d58e02b53c740f295c
7
- data.tar.gz: 32186c12dd6696cf6b41904c253a414cb25a7af2f19f0ff45e29c5dbc7212bb09703bac52b0ba9e9216bce4b645af30a62d77de9d96e3c0b5f075758425d5b45
6
+ metadata.gz: 49c1e1d3d002ba1054f3a33692c28deb1a5d27445bf16f29982dad577981f646eecb7cd38bded3992f07d2d19580e0262492b05210ae37d17af1fcaadc4cd752
7
+ data.tar.gz: 784f2bf5789523cdebe025401eee40c89cffd4e864d0cea765261c92a912123678262d7d451484113d840124300852ee187baa3805d0fe56b0dac2ee6fcb5a73
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
@@ -22,6 +23,13 @@ module Dugway
22
23
  :desc => "The server to run"
23
24
 
24
25
  def start
26
+ listener = Listen.to('.', only: /\.dugway\.json$/) do |modified|
27
+ puts "Config changed, restarting server..."
28
+ exec "dugway server"
29
+ end
30
+
31
+ Thread.new { listener.start }
32
+
25
33
  Rack::Server.start({
26
34
  :config => File.join(Dir.pwd, 'config.ru'),
27
35
  :environment => 'none',
@@ -1,3 +1,3 @@
1
1
  module Dugway
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
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.9
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-17 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.