rails_local_analytics 1.0.0 → 1.0.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: 2e1f4be59a2ab3441a9797c4e903262deb94e88f6e0185e18e76675ce3c0c494
4
- data.tar.gz: b64c1f23ff32b3ecf058e972734264b2f435ea09e2db406021b81f5d6bef304b
3
+ metadata.gz: 5be8a8f510948794f47c7def68df1255799c2d6cf0369e7d289ecd8acaea043b
4
+ data.tar.gz: 874791f3d55326f27bd51fe4869d4d543e886ac9fd1ccfd146577c1551e9045c
5
5
  SHA512:
6
- metadata.gz: a6c5290db60c958fbf9fabfd7f65fd9f82fd3a7c8ff39a99aeb2c929e21803fdfac703ae471282874f17fa5bd2c4a5323291275a56e771c244eae784e2de74ba
7
- data.tar.gz: be174afa37617cd178bc1286778384590feda9b7dcd9b856a84e11623c7f6b6995b2d7704d4bbfe82dff3c20803bd74e5ed879f384ec6932a34d51e3a3b30e4f
6
+ metadata.gz: 8c3b5fd990b12e05c06772a5b8762d92386b7be5e56a6322042ad6f16e807a731edbd3b8fd2d1c646f5778a66b62093143ee9a055f0894186c9b28fd610910c3
7
+ data.tar.gz: 2a99293aba47a9d2660d5bf258fe62aa25b2af75b7d001f5e172e2a0936471fa600584a1c6c6bce355acf4cadb1cd124c39c6deddc53dbf6b48b56de056e9949
@@ -0,0 +1,24 @@
1
+ <style>
2
+ body{
3
+ padding-bottom: 20px;
4
+ }
5
+
6
+ table td{
7
+ overflow-wrap: anywhere;
8
+ }
9
+
10
+ input, select {
11
+ border-radius: 5px;
12
+ border: 1px solid #333;
13
+ background: white;
14
+ padding: 2px 5px;
15
+ }
16
+
17
+ button.is-link{
18
+ border: none;
19
+ background: none;
20
+ color: #2780e3;
21
+ text-decoration: underline;
22
+ cursor: pointer;
23
+ }
24
+ </style>
@@ -9,7 +9,7 @@
9
9
  <%= csp_meta_tag %>
10
10
 
11
11
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/cosmo/bootstrap.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
12
- <%= stylesheet_link_tag "rails_local_analytics/application" %>
12
+ <%= render "layouts/rails_local_analytics/app_css" %>
13
13
  </head>
14
14
 
15
15
  <body>
@@ -2,27 +2,6 @@ module RailsLocalAnalytics
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace RailsLocalAnalytics
4
4
 
5
- initializer "rails_local_analytics.assets.precompile" do |app|
6
- # this initializer is only called when sprockets is in use
7
-
8
- app.config.assets.precompile << "rails_local_analytics_manifest.js" ### manifest file required
9
-
10
- ### Automatically precompile assets in specified folders
11
- ["app/assets/images/"].each do |folder|
12
- dir = app.root.join(folder)
13
-
14
- if Dir.exist?(dir)
15
- Dir.glob(File.join(dir, "**/*")).each do |f|
16
- asset_name = f.to_s
17
- .split(folder).last # Remove fullpath
18
- .sub(/^\/*/, '') ### Remove leading '/'
19
-
20
- app.config.assets.precompile << asset_name
21
- end
22
- end
23
- end
24
- end
25
-
26
5
  initializer "rails_local_analytics.load_static_assets" do |app|
27
6
  ### Expose static assets
28
7
  app.middleware.use ::ActionDispatch::Static, "#{root}/public"
@@ -1,3 +1,3 @@
1
1
  module RailsLocalAnalytics
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_local_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weston Ganger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-17 00:00:00.000000000 Z
11
+ date: 2025-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -105,10 +105,6 @@ files:
105
105
  - LICENSE
106
106
  - README.md
107
107
  - Rakefile
108
- - app/assets/config/rails_local_analytics_manifest.js
109
- - app/assets/images/rails_local_analytics/.keep
110
- - app/assets/javascripts/rails_local_analytics/.keep
111
- - app/assets/stylesheets/rails_local_analytics/application.css
112
108
  - app/controllers/rails_local_analytics/application_controller.rb
113
109
  - app/controllers/rails_local_analytics/dashboard_controller.rb
114
110
  - app/jobs/rails_local_analytics/application_job.rb
@@ -116,6 +112,7 @@ files:
116
112
  - app/models/rails_local_analytics/application_record.rb
117
113
  - app/models/tracked_requests_by_day_page.rb
118
114
  - app/models/tracked_requests_by_day_site.rb
115
+ - app/views/layouts/rails_local_analytics/_app_css.html.erb
119
116
  - app/views/layouts/rails_local_analytics/application.html.erb
120
117
  - app/views/rails_local_analytics/dashboard/index.html.erb
121
118
  - config/initializers/browser_monkey_patches.rb
@@ -1,3 +0,0 @@
1
- //= link_tree ../images/rails_local_analytics
2
- //= link_directory ../stylesheets/rails_local_analytics .css
3
- //= link_directory ../javascripts/rails_local_analytics .js
File without changes
File without changes
@@ -1,22 +0,0 @@
1
- body{
2
- padding-bottom: 20px;
3
- }
4
-
5
- table td{
6
- overflow-wrap: anywhere;
7
- }
8
-
9
- input, select {
10
- border-radius: 5px;
11
- border: 1px solid #333;
12
- background: white;
13
- padding: 2px 5px;
14
- }
15
-
16
- button.is-link{
17
- border: none;
18
- background: none;
19
- color: #2780e3;
20
- text-decoration: underline;
21
- cursor: pointer;
22
- }