quince_sinatra 0.1.2 → 0.1.3

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: 917e5c93b9eb481746c6de5d4d3005a24826be74bb59067235ae129c59c68e60
4
- data.tar.gz: 3cad89c670b247e534f2556eeed30343417d1d85f3577368d6bd3aa1dfa31dfd
3
+ metadata.gz: 0a23838c5fcc9ff168baa75efefbed91c9c91625e7ad57c032a7b303a02892b4
4
+ data.tar.gz: 0233e8769a24afcfac50e4acb7c3c5b0a45cb7af1242a0266f6a90d79d0c70f7
5
5
  SHA512:
6
- metadata.gz: e941a438f7a13f4f212529869591471bfd866e654f0954b0cbe4e565da2383f2f79ce33a1bee02ea11e52bf4732a7802ecf0ce0b50811b09e0aca3a39552c895
7
- data.tar.gz: 96f172e5a5f228e3bf57a1b28210e7f9da0a927ec80aad54fa004553487bd72d0e26616745b963d2bbfbedfb347700e5626649471e7d5f355f21cef5cc76f31d
6
+ metadata.gz: bb3807d3f727141a3872e781b310bf436a3a940c3b0bea2b3c12ae2de5b42b438bfbad490223c219046d81fca02cf773c24c76107a960acd512f74efef0e4b7c
7
+ data.tar.gz: e211bbb804fb423a5d3c354b21edc8bfe83488e93ad1a4fe16c82fd238a053467bd03977e72803a41596bc4337e5eeb90ab955f4aaf47f106080461258bdc31c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- quince_sinatra (0.1.2)
4
+ quince_sinatra (0.1.3)
5
5
  quince (~> 0.1)
6
6
  rack-contrib (~> 2.3)
7
7
  sinatra (~> 2.1)
@@ -14,8 +14,8 @@ GEM
14
14
  multi_json (1.15.0)
15
15
  mustermann (1.1.1)
16
16
  ruby2_keywords (~> 0.0.1)
17
- oj (3.13.5)
18
- quince (0.1.0)
17
+ oj (3.13.7)
18
+ quince (0.3.0)
19
19
  oj (~> 3.13)
20
20
  typed_struct (>= 0.1.4)
21
21
  rack (2.2.3)
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # QuinceSinatra
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/quince_sinatra`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ The sinatra adapter for https://github.com/johansenja/quince
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,7 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ See https://github.com/johansenja/quince, or https://github.com/johansenja/quince-demo for samples
26
24
 
27
25
  ## Development
28
26
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QuinceSinatra
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -51,14 +51,16 @@ end
51
51
  Quince.middleware = Quince::SinatraMiddleware.new
52
52
 
53
53
  at_exit do
54
- if Object.const_defined? "Sinatra::Reloader"
55
- app_dir = Pathname(File.expand_path($0)).dirname.to_s
56
- $LOADED_FEATURES.each do |f|
57
- next unless f.start_with? app_dir
54
+ if $!.nil? || ($!.is_a?(SystemExit) && $!.success?)
55
+ if Object.const_defined? "Sinatra::Reloader"
56
+ app_dir = Pathname(File.expand_path($0)).dirname.to_s
57
+ $LOADED_FEATURES.each do |f|
58
+ next unless f.start_with? app_dir
58
59
 
59
- Quince.underlying_app.also_reload f
60
+ Quince.underlying_app.also_reload f
61
+ end
60
62
  end
61
- end
62
63
 
63
- Quince.underlying_app.run!
64
+ Quince.underlying_app.run!
65
+ end
64
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quince_sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Johansen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-09 00:00:00.000000000 Z
11
+ date: 2021-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra