blazer 3.0.4 → 3.1.0

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: 160f3a7275160ebbeb9446cfacbe2c24d7882820f3548e10239cfdf383b3af87
4
- data.tar.gz: 809bb498a6c00217e10239f87352c3051b3bb95d956910aa8f39a610e6adf58d
3
+ metadata.gz: 5c920d16bb8d06df36944b4fb3b5af8b416e8e630205cd02de9db7babce6ea23
4
+ data.tar.gz: d9020c24eedecf00ee2b1ba6f1bd5bfc90d7b9c08b173561a89cfcff20b83791
5
5
  SHA512:
6
- metadata.gz: 81ad8488e41e590d3deba688200ec253f3d1f42c00794ce4c6819aa9c9e765d54b692f1172116a30d098877d80a2c07c38814adef07650ac6d56c1bd605d79cc
7
- data.tar.gz: 88917858d1aea93202f411f5becd420e49d71b6619fd91cd5580760fbb0a5a8c9bdc8eb0fc604264effd9334ca78d9d111d3bd42067d1b7e1eb5bc8e35562e4e
6
+ metadata.gz: 4c8a438f50c796301e4c8d342c6cc52280f3a77fcfe9bb608acc7042e85cfcdf296173e44cd8223c5bfc87f15b9a8d4126606fe145d9a8c8b2a7aed3eba617e7
7
+ data.tar.gz: 5b8538fa4bff96e674b04e26f2ab7fee1c7cd7559c3946069476e53db3d8fa62ffe305828689456309e2900f747e1081f0be22772acc0fc63d98da425161f2e7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.1.0 (2024-10-14)
2
+
3
+ - Fixed error when Propshaft is installed but not used
4
+ - Dropped support for Ruby < 3.1 and Rails < 7
5
+
1
6
  ## 3.0.4 (2024-09-04)
2
7
 
3
8
  - Improved CSP support
@@ -5,7 +5,7 @@
5
5
 
6
6
  <meta charset="utf-8" />
7
7
  <%= favicon_link_tag "blazer/favicon.png" %>
8
- <% if defined?(Propshaft::Railtie) %>
8
+ <% if defined?(Propshaft::Railtie) && Rails.application.assets.is_a?(Propshaft::Assembly) %>
9
9
  <%= stylesheet_link_tag "blazer/bootstrap-propshaft", "blazer/bootstrap", "blazer/selectize", "blazer/github", "blazer/daterangepicker", "blazer/application" %>
10
10
  <%= javascript_include_tag "blazer/jquery", "blazer/rails-ujs", "blazer/stupidtable", "blazer/stupidtable-custom-settings", "blazer/jquery.stickytableheaders", "blazer/selectize", "blazer/highlight.min", "blazer/moment", "blazer/moment-timezone-with-data", "blazer/daterangepicker", "blazer/chart.umd", "blazer/chartjs-adapter-date-fns.bundle", "blazer/chartkick", "blazer/mapkick.bundle", "blazer/ace/ace", "blazer/ace/ext-language_tools", "blazer/ace/theme-twilight", "blazer/ace/mode-sql", "blazer/ace/snippets/text", "blazer/ace/snippets/sql", "blazer/Sortable", "blazer/bootstrap", "blazer/vue.global.prod", "blazer/routes", "blazer/queries", "blazer/fuzzysearch", "blazer/application", nonce: true %>
11
11
  <% else %>
data/lib/blazer/engine.rb CHANGED
@@ -3,22 +3,24 @@ module Blazer
3
3
  isolate_namespace Blazer
4
4
 
5
5
  initializer "blazer" do |app|
6
- if defined?(Sprockets) && Sprockets::VERSION.to_i >= 4
7
- app.config.assets.precompile += [
8
- "blazer/application.js",
9
- "blazer/application.css",
10
- "blazer/glyphicons-halflings-regular.eot",
11
- "blazer/glyphicons-halflings-regular.svg",
12
- "blazer/glyphicons-halflings-regular.ttf",
13
- "blazer/glyphicons-halflings-regular.woff",
14
- "blazer/glyphicons-halflings-regular.woff2",
15
- "blazer/favicon.png"
16
- ]
17
- else
18
- # use a proc instead of a string
19
- app.config.assets.precompile << proc { |path| path =~ /\Ablazer\/application\.(js|css)\z/ }
20
- app.config.assets.precompile << proc { |path| path =~ /\Ablazer\/.+\.(eot|svg|ttf|woff|woff2)\z/ }
21
- app.config.assets.precompile << proc { |path| path == "blazer/favicon.png" }
6
+ if app.config.respond_to?(:assets) && defined?(Sprockets)
7
+ if Sprockets::VERSION.to_i >= 4
8
+ app.config.assets.precompile += [
9
+ "blazer/application.js",
10
+ "blazer/application.css",
11
+ "blazer/glyphicons-halflings-regular.eot",
12
+ "blazer/glyphicons-halflings-regular.svg",
13
+ "blazer/glyphicons-halflings-regular.ttf",
14
+ "blazer/glyphicons-halflings-regular.woff",
15
+ "blazer/glyphicons-halflings-regular.woff2",
16
+ "blazer/favicon.png"
17
+ ]
18
+ else
19
+ # use a proc instead of a string
20
+ app.config.assets.precompile << proc { |path| path =~ /\Ablazer\/application\.(js|css)\z/ }
21
+ app.config.assets.precompile << proc { |path| path =~ /\Ablazer\/.+\.(eot|svg|ttf|woff|woff2)\z/ }
22
+ app.config.assets.precompile << proc { |path| path == "blazer/favicon.png" }
23
+ end
22
24
  end
23
25
 
24
26
  Blazer.time_zone ||= Blazer.settings["time_zone"] || Time.zone
@@ -1,3 +1,3 @@
1
1
  module Blazer
2
- VERSION = "3.0.4"
2
+ VERSION = "3.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blazer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-04 00:00:00.000000000 Z
11
+ date: 2024-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.1'
19
+ version: '7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '6.1'
26
+ version: '7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -244,14 +244,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
244
244
  requirements:
245
245
  - - ">="
246
246
  - !ruby/object:Gem::Version
247
- version: '3'
247
+ version: '3.1'
248
248
  required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  requirements:
250
250
  - - ">="
251
251
  - !ruby/object:Gem::Version
252
252
  version: '0'
253
253
  requirements: []
254
- rubygems_version: 3.5.11
254
+ rubygems_version: 3.5.16
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: Explore your data with SQL. Easily create charts and dashboards, and share