rails-server-monitor 0.2.0 → 0.2.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: 033a9d13d063db61dac341da383d08f124f71b1a4a7dcb6c3b971d33c8fb5b7b
4
- data.tar.gz: 9a3cba2a858b60e041783670aedcc2350646aeaee0a8edb5b83980d0ae9303ce
3
+ metadata.gz: cbbd3914b7887f109219d04acc7b936d3ad71bb901f5c18c75e90e4f326190c4
4
+ data.tar.gz: d4b2473f13da832d515eabd4606f37560db5a7deb8c0bd43e2ed63f5d3582c54
5
5
  SHA512:
6
- metadata.gz: da14da9f1a6edbea7dfbadeebba08f0166e4febbe2b8762efa1915d7b703f6c68a9294d2250f9b7e30eb26174182eb15bd530a0b8c6019bf6992515b8e411304
7
- data.tar.gz: a7c82165c201bf319a4a3f31f626f7093c93d42f0a81774dd3513bb3659c3479d0e6e04ea1052e870102b4814a054b2ce3c89253be8d40a2813e76b80375fe60
6
+ metadata.gz: 0e3c3ccb0e85de765b88356816675c23d3e0234ae754a15d76711f033d6d5de043308c13ece8090133a8d350e4038f2bf608912d9ca08ec141bf8ba550928ff9
7
+ data.tar.gz: 30b731d5db195c5dbbd9981f92ac2f68c9afa92954698a8b0ba4aa7c2ef4944fcdb7fe205a6818f90506626e86ad747a5c1667418cd6fd6dc70a63817f5d8b55
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "rails"
4
- require_relative "./engine"
4
+ require_relative "../rails_server_monitor"
5
5
  module RailsServerMonitor
6
6
  class CompileLocally
7
7
  class << self
@@ -21,6 +21,7 @@ module RailsServerMonitor
21
21
  return if Dir.exist?(RailsServerMonitor::Engine.root.join("public", "rails-server-monitor-packs"))
22
22
 
23
23
  RailsServerMonitor.webpacker.commands.compile
24
+ FileUtils.rm_rf(RailsServerMonitor::Engine.root.join("node_modules")) if ENV["KEEP_RAILS_SERVER_MONITOR_FILES"].blank?
24
25
  end
25
26
  end
26
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsServerMonitor
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- namespace :rails_server_monitor do
3
+ namespace :assets do
4
4
  desc "Install rails-server-monitor deps with yarn"
5
- task :yarn_install do
5
+ task :rails_server_monitor_yarn_install do
6
6
  Dir.chdir(File.join(__dir__, "..", "..")) do
7
7
  system "yarn install --no-progress --production"
8
8
  end
9
9
  end
10
10
 
11
11
  desc "Compile rails-server-monitor JavaScript packs using webpack for production with digests"
12
- task compile: [:yarn_install, :environment] do
12
+ task rails_server_monitor_compile: [:rails_server_monitor_yarn_install, :environment] do
13
13
  Webpacker.with_node_env("production") do
14
14
  if RailsServerMonitor.webpacker.commands.compile
15
15
  # Successful compilation!
@@ -21,4 +21,6 @@ namespace :rails_server_monitor do
21
21
  end
22
22
  end
23
23
 
24
- task "assets:precompile" => "rails_server_monitor:compile"
24
+ Rake::Task["assets:precompile"].enhance do
25
+ Rake::Task["assets:rails_server_monitor_compile"].invoke
26
+ end if Rake::Task.task_defined?("assets:precompile")
data/package.json CHANGED
@@ -20,6 +20,7 @@
20
20
  "autoprefixer": "^10.3.1",
21
21
  "axios": "^0.21.1",
22
22
  "axios-case-converter": "^0.8.1",
23
+ "babel-plugin-macros": "^3.1.0",
23
24
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
24
25
  "buffer": "^6.0.3",
25
26
  "chart.js": "^3.5.0",
@@ -27,7 +28,7 @@
27
28
  "chokidar": "^3.5.1",
28
29
  "css-loader": "^6.2.0",
29
30
  "date-fns": "^2.23.0",
30
- "eslint": "^7.31.0",
31
+ "eslint": "^7.32.0",
31
32
  "javascript-time-ago": "^2.3.8",
32
33
  "lodash": "^4.17.21",
33
34
  "mini-css-extract-plugin": "^2.1.0",
@@ -46,7 +47,7 @@
46
47
  "react-textarea-autosize": "^8.3.3",
47
48
  "react-use": "^17.2.4",
48
49
  "react_ujs": "^2.6.1",
49
- "sass": "^1.36.0",
50
+ "sass": "^1.37.0",
50
51
  "sass-loader": "^12.1.0",
51
52
  "stimulus": "^2.0.0",
52
53
  "stream-browserify": "^3.0.0",
@@ -56,10 +57,10 @@
56
57
  "turbolinks": "^5.2.0",
57
58
  "typeface-roboto": "^1.1.13",
58
59
  "util": "^0.12.4",
59
- "webpack": "^5.46.0",
60
+ "webpack": "^5.48.0",
60
61
  "webpack-cli": "^4.7.2",
61
62
  "webpack-dev-server": "^3.11.2",
62
- "ws": "^7.5.3"
63
+ "ws": "^8.0.0"
63
64
  },
64
65
  "devDependencies": {
65
66
  "babel-eslint": "^10.1.0",
@@ -69,6 +70,6 @@
69
70
  "eslint-plugin-react": "^7.24.0",
70
71
  "eslint-plugin-react-hooks": "^4.2.0",
71
72
  "eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
72
- "eslint-plugin-sort-keys-fix": "^1.1.1"
73
+ "eslint-plugin-sort-keys-fix": "^1.1.2"
73
74
  }
74
75
  }
data/yarn.lock CHANGED
@@ -1045,7 +1045,6 @@
1045
1045
 
1046
1046
  "@rails/webpacker@https://github.com/rails/webpacker.git":
1047
1047
  version "6.0.0-beta.7"
1048
- uid "5dae8b51956e9cd739bdfae44f8214fa1e0f49b2"
1049
1048
  resolved "https://github.com/rails/webpacker.git#5dae8b51956e9cd739bdfae44f8214fa1e0f49b2"
1050
1049
  dependencies:
1051
1050
  "@babel/core" "^7.12.9"
@@ -1349,6 +1348,16 @@ accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.7:
1349
1348
  mime-types "~2.1.24"
1350
1349
  negotiator "0.6.2"
1351
1350
 
1351
+ acorn-import-assertions@^1.7.6:
1352
+ version "1.7.6"
1353
+ resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.7.6.tgz#580e3ffcae6770eebeec76c3b9723201e9d01f78"
1354
+ integrity sha512-FlVvVFA1TX6l3lp8VjDnYYq7R1nyW6x3svAt4nDgrWQ9SBaSh9CnbwgSUTasgfNfOG5HlM1ehugCvM+hjo56LA==
1355
+
1356
+ acorn-jsx@^5.2.0:
1357
+ version "5.3.2"
1358
+ resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
1359
+ integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
1360
+
1352
1361
  acorn-jsx@^5.3.1:
1353
1362
  version "5.3.1"
1354
1363
  resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.1.tgz#fc8661e11b7ac1539c47dbfea2e72b3af34d267b"
@@ -1368,7 +1377,7 @@ acorn-walk@^7.0.0:
1368
1377
  resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc"
1369
1378
  integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==
1370
1379
 
1371
- acorn@^7.0.0, acorn@^7.4.0:
1380
+ acorn@^7.0.0, acorn@^7.1.1, acorn@^7.4.0:
1372
1381
  version "7.4.1"
1373
1382
  resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
1374
1383
  integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
@@ -1716,6 +1725,15 @@ babel-plugin-dynamic-import-node@^2.3.3:
1716
1725
  dependencies:
1717
1726
  object.assign "^4.1.0"
1718
1727
 
1728
+ babel-plugin-macros@^3.1.0:
1729
+ version "3.1.0"
1730
+ resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz#9ef6dc74deb934b4db344dc973ee851d148c50c1"
1731
+ integrity sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==
1732
+ dependencies:
1733
+ "@babel/runtime" "^7.12.5"
1734
+ cosmiconfig "^7.0.0"
1735
+ resolve "^1.19.0"
1736
+
1719
1737
  babel-plugin-polyfill-corejs2@^0.2.2:
1720
1738
  version "0.2.2"
1721
1739
  resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.2.tgz#e9124785e6fd94f94b618a7954e5693053bf5327"
@@ -2809,11 +2827,14 @@ eslint-plugin-sort-imports-es6-autofix@^0.6.0:
2809
2827
  resolved "https://registry.yarnpkg.com/eslint-plugin-sort-imports-es6-autofix/-/eslint-plugin-sort-imports-es6-autofix-0.6.0.tgz#b8cd8639d7a54cefce6b17898b102fd5ec31e52b"
2810
2828
  integrity sha512-2NVaBGF9NN+727Fyq+jJYihdIeegjXeUUrZED9Q8FVB8MsV3YQEyXG96GVnXqWt0pmn7xfCZOZf3uKnIhBrfeQ==
2811
2829
 
2812
- eslint-plugin-sort-keys-fix@^1.1.1:
2813
- version "1.1.1"
2814
- resolved "https://registry.yarnpkg.com/eslint-plugin-sort-keys-fix/-/eslint-plugin-sort-keys-fix-1.1.1.tgz#2ed201b53fd4a89552c6e2abd38933f330a4b62e"
2815
- integrity sha512-x02SLBg+8OEaoT9vvMbsgeInw17wjHLsa9cOieIVQY+xMNRiXBbyMWw+NiBoxYyJIR4QKDOPDofCjQdoSvltQg==
2830
+ eslint-plugin-sort-keys-fix@^1.1.2:
2831
+ version "1.1.2"
2832
+ resolved "https://registry.yarnpkg.com/eslint-plugin-sort-keys-fix/-/eslint-plugin-sort-keys-fix-1.1.2.tgz#00c8b5791612ec32162b8d7a0563e9c6eb27ec59"
2833
+ integrity sha512-DNPHFGCA0/hZIsfODbeLZqaGY/+q3vgtshF85r+YWDNCQ2apd9PNs/zL6ttKm0nD1IFwvxyg3YOTI7FHl4unrw==
2816
2834
  dependencies:
2835
+ espree "^6.1.2"
2836
+ esutils "^2.0.2"
2837
+ natural-compare "^1.4.0"
2817
2838
  requireindex "~1.2.0"
2818
2839
 
2819
2840
  eslint-rule-composer@^0.3.0:
@@ -2846,10 +2867,10 @@ eslint-visitor-keys@^2.0.0:
2846
2867
  resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303"
2847
2868
  integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==
2848
2869
 
2849
- eslint@^7.31.0:
2850
- version "7.31.0"
2851
- resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.31.0.tgz#f972b539424bf2604907a970860732c5d99d3aca"
2852
- integrity sha512-vafgJpSh2ia8tnTkNUkwxGmnumgckLh5aAbLa1xRmIn9+owi8qBNGKL+B881kNKNTy7FFqTEkpNkUvmw0n6PkA==
2870
+ eslint@^7.32.0:
2871
+ version "7.32.0"
2872
+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d"
2873
+ integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==
2853
2874
  dependencies:
2854
2875
  "@babel/code-frame" "7.12.11"
2855
2876
  "@eslint/eslintrc" "^0.4.3"
@@ -2892,6 +2913,15 @@ eslint@^7.31.0:
2892
2913
  text-table "^0.2.0"
2893
2914
  v8-compile-cache "^2.0.3"
2894
2915
 
2916
+ espree@^6.1.2:
2917
+ version "6.2.1"
2918
+ resolved "https://registry.yarnpkg.com/espree/-/espree-6.2.1.tgz#77fc72e1fd744a2052c20f38a5b575832e82734a"
2919
+ integrity sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==
2920
+ dependencies:
2921
+ acorn "^7.1.1"
2922
+ acorn-jsx "^5.2.0"
2923
+ eslint-visitor-keys "^1.1.0"
2924
+
2895
2925
  espree@^7.3.0, espree@^7.3.1:
2896
2926
  version "7.3.1"
2897
2927
  resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6"
@@ -6124,7 +6154,7 @@ resolve-url@^0.2.1:
6124
6154
  resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
6125
6155
  integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=
6126
6156
 
6127
- resolve@^1.1.7, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.20.0, resolve@^1.9.0:
6157
+ resolve@^1.1.7, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.9.0:
6128
6158
  version "1.20.0"
6129
6159
  resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"
6130
6160
  integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==
@@ -6223,10 +6253,10 @@ sass-loader@^12.1.0:
6223
6253
  klona "^2.0.4"
6224
6254
  neo-async "^2.6.2"
6225
6255
 
6226
- sass@^1.36.0:
6227
- version "1.36.0"
6228
- resolved "https://registry.yarnpkg.com/sass/-/sass-1.36.0.tgz#5912ef9d5d16714171ba11cb17edb274c4bbc07e"
6229
- integrity sha512-fQzEjipfOv5kh930nu3Imzq3ie/sGDc/4KtQMJlt7RRdrkQSfe37Bwi/Rf/gfuYHsIuE1fIlDMvpyMcEwjnPvg==
6256
+ sass@^1.37.0:
6257
+ version "1.37.0"
6258
+ resolved "https://registry.yarnpkg.com/sass/-/sass-1.37.0.tgz#f1b03a9d072ee9053a29d125c8130c78e92827c2"
6259
+ integrity sha512-B+Tu6cSAG8ffs/cqsZl/bgSH2pCmavDaPTYAoW8QA1qNHh/RqndNfVKuABKYkLjUQ5aq/BnCENVpE80cqdSM1w==
6230
6260
  dependencies:
6231
6261
  chokidar ">=3.0.0 <4.0.0"
6232
6262
 
@@ -7472,7 +7502,7 @@ webpack-merge@^5.7.2, webpack-merge@^5.7.3:
7472
7502
  clone-deep "^4.0.1"
7473
7503
  wildcard "^2.0.0"
7474
7504
 
7475
- webpack-sources@^2.2.0, webpack-sources@^2.3.1:
7505
+ webpack-sources@^2.2.0:
7476
7506
  version "2.3.1"
7477
7507
  resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-2.3.1.tgz#570de0af163949fe272233c2cefe1b56f74511fd"
7478
7508
  integrity sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA==
@@ -7480,10 +7510,15 @@ webpack-sources@^2.2.0, webpack-sources@^2.3.1:
7480
7510
  source-list-map "^2.0.1"
7481
7511
  source-map "^0.6.1"
7482
7512
 
7483
- webpack@^5.38.1, webpack@^5.46.0:
7484
- version "5.46.0"
7485
- resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.46.0.tgz#105d20d96f79db59b316b0ae54316f0f630314b5"
7486
- integrity sha512-qxD0t/KTedJbpcXUmvMxY5PUvXDbF8LsThCzqomeGaDlCA6k998D8yYVwZMvO8sSM3BTEOaD4uzFniwpHaTIJw==
7513
+ webpack-sources@^3.2.0:
7514
+ version "3.2.0"
7515
+ resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.0.tgz#b16973bcf844ebcdb3afde32eda1c04d0b90f89d"
7516
+ integrity sha512-fahN08Et7P9trej8xz/Z7eRu8ltyiygEo/hnRi9KqBUs80KeDcnf96ZJo++ewWd84fEf3xSX9bp4ZS9hbw0OBw==
7517
+
7518
+ webpack@^5.38.1, webpack@^5.48.0:
7519
+ version "5.48.0"
7520
+ resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.48.0.tgz#06180fef9767a6fd066889559a4c4d49bee19b83"
7521
+ integrity sha512-CGe+nfbHrYzbk7SKoYITCgN3LRAG0yVddjNUecz9uugo1QtYdiyrVD8nP1PhkNqPfdxC2hknmmKpP355Epyn6A==
7487
7522
  dependencies:
7488
7523
  "@types/eslint-scope" "^3.7.0"
7489
7524
  "@types/estree" "^0.0.50"
@@ -7491,6 +7526,7 @@ webpack@^5.38.1, webpack@^5.46.0:
7491
7526
  "@webassemblyjs/wasm-edit" "1.11.1"
7492
7527
  "@webassemblyjs/wasm-parser" "1.11.1"
7493
7528
  acorn "^8.4.1"
7529
+ acorn-import-assertions "^1.7.6"
7494
7530
  browserslist "^4.14.5"
7495
7531
  chrome-trace-event "^1.0.2"
7496
7532
  enhanced-resolve "^5.8.0"
@@ -7507,7 +7543,7 @@ webpack@^5.38.1, webpack@^5.46.0:
7507
7543
  tapable "^2.1.1"
7508
7544
  terser-webpack-plugin "^5.1.3"
7509
7545
  watchpack "^2.2.0"
7510
- webpack-sources "^2.3.1"
7546
+ webpack-sources "^3.2.0"
7511
7547
 
7512
7548
  websocket-driver@>=0.5.1, websocket-driver@^0.7.4:
7513
7549
  version "0.7.4"
@@ -7604,10 +7640,10 @@ ws@^6.2.1:
7604
7640
  dependencies:
7605
7641
  async-limiter "~1.0.0"
7606
7642
 
7607
- ws@^7.5.3:
7608
- version "7.5.3"
7609
- resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.3.tgz#160835b63c7d97bfab418fc1b8a9fced2ac01a74"
7610
- integrity sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==
7643
+ ws@^8.0.0:
7644
+ version "8.0.0"
7645
+ resolved "https://registry.yarnpkg.com/ws/-/ws-8.0.0.tgz#550605d13dfc1437c9ec1396975709c6d7ffc57d"
7646
+ integrity sha512-6AcSIXpBlS0QvCVKk+3cWnWElLsA6SzC0lkQ43ciEglgXJXiCWK3/CGFEJ+Ybgp006CMibamAsqOlxE9s4AvYA==
7611
7647
 
7612
7648
  xtend@^4.0.2:
7613
7649
  version "4.0.2"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-server-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Personal Social Media
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-02 00:00:00.000000000 Z
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-rails