mihari 4.1.0 → 4.1.1

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: f96f1f1e70601518505d5b48aba5a9e0c60f1555e9d7c96ca307a32f5214a568
4
- data.tar.gz: 87910483603ccf914b867bede2ea287d456c9bde59ccfebd2324c42b8b1c6928
3
+ metadata.gz: 02dcb4c10888bb90fd38fc6ae879eb54d1eea6e06fbe3c7c4f662a76271e85bc
4
+ data.tar.gz: dd146a224d1b280f58ea71a566472a0dd80ad7e676703d6b6240c744ccad7244
5
5
  SHA512:
6
- metadata.gz: 71fc241abdc3c41f28d49e7a2004957edaf0f09adc2f96b634af9dc5ea6de02fb2377fe0f88fbdb3c72816b2f72ebb4f6747e959a0dc7b13fff8377806bc57db
7
- data.tar.gz: 9270f526e57e69df875f5a4cdacc0905cf8e8635f4fcea734f9a52b4f8b2e81a732a1990c4def0c53623ee57b60e7c40ee249a1b9501f866b1aec64fbbc1b47c
6
+ metadata.gz: b23693c762329a79dddfa92699cd55c3d6a566e7753fea87d41a854871eab6ca408491000c7dd944396ac32bab2468e9c00bfed81335f5f5253c701033a53a5e
7
+ data.tar.gz: 3bc90185ef6a9684b05e9d7177a90aec54a73e5d0978e7d0f50c8f56a69e6040db1df567a98d7425ce2656e18e704d5f672fae1b44323c163f2ce913644493f2
data/Rakefile CHANGED
@@ -7,3 +7,8 @@ require "standard/rake"
7
7
  RSpec::Core::RakeTask.new(:spec)
8
8
 
9
9
  task default: :spec
10
+
11
+ desc "run rackup (via rerun)"
12
+ task :rackup do
13
+ sh "rerun --pattern '{Gemfile.lock,lib/**/*.rb,lib/*.rb}' -- rackup config.ru"
14
+ end
data/config.ru CHANGED
@@ -1,4 +1,3 @@
1
- # bundle exec rerun -- rackup config.ru
2
1
  require "./lib/mihari"
3
2
 
4
3
  # set rack env as development
@@ -173,7 +173,7 @@ module Mihari
173
173
  def close
174
174
  return unless ActiveRecord::Base.connected?
175
175
 
176
- ActiveRecord::Base.clear_all_connections!
176
+ ActiveRecord::Base.clear_active_connections!
177
177
  end
178
178
 
179
179
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mihari
4
- VERSION = "4.1.0"
4
+ VERSION = "4.1.1"
5
5
  end
@@ -42,7 +42,7 @@ module Mihari
42
42
  end.to_app
43
43
  end
44
44
 
45
- def run!(port: 9292, host: "localhost", threads: "0:16", verbose: false)
45
+ def run!(port: 9292, host: "localhost", threads: "0:5", verbose: false)
46
46
  url = "http://#{host}:#{port}"
47
47
 
48
48
  Rack::Handler::Puma.run(instance, Port: port, Host: host, Threads: threads, Verbose: verbose) do |_launcher|
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/static/favicon.ico"><title>Mihari</title><link href="/static/js/app.cb1fa7be.js" rel="preload" as="script"></head><body><noscript><strong>We're sorry but Mihari doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/static/js/app.cb1fa7be.js"></script></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/static/favicon.ico"><title>Mihari</title><link href="/static/js/app.b88ce341.js" rel="preload" as="script"></head><body><noscript><strong>We're sorry but Mihari doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/static/js/app.b88ce341.js"></script></body></html>