gouda 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fa853c78222eb23897ccb31ed465fc231aa5894641fe0d1991ade90a5e3fc8d
4
- data.tar.gz: e9680b441d3fe9c3da7fadf50272c033db712296104870d016b278da2c1d92bd
3
+ metadata.gz: a8d5d39b730d429fe834fc88ecfe67e3a1bad397022715f6f52a1aa5e050df8b
4
+ data.tar.gz: b6cb85e539a387f75e3e84ffe756d54a991755dbd3c4335d67b476d70770eb97
5
5
  SHA512:
6
- metadata.gz: 9a64544cd45d14400ab949a848e0325ee5d5305d648f7f38239279f93e1f8d2d32dac368708317aafbf470b48e16f88a0ffe4bad6890798ef53adea0566da5f6
7
- data.tar.gz: e2140d4da50c4afe8edadd51bb3049b60935e4c0273d235dcb1988efa2900362ea81451a58df04ba3f4db58209380ea9a58ccedd42972806bd5be2cd9f19d7d4
6
+ metadata.gz: 919a70fddf01f87880289e977b853aad5b01470e4f9b46ef1e8c5867ee50c4751f1ccd6ddc05146c40af83f8c82106d980feb93e022c4871114d7bb01361cee5
7
+ data.tar.gz: 466fb4a016ff74b481b936445ea66ed85981520147831b4cb11ec08446b7e7f7962974041f153448248558190ff0b0afb427b37e21af8b915337885ceb37f250
data/CHANGELOG.md CHANGED
@@ -11,3 +11,7 @@
11
11
  ## [0.1.2] - 2023-06-11
12
12
 
13
13
  - Updated readme and method renaming in Scheduler
14
+
15
+ ## [0.1.3] - 2023-06-11
16
+
17
+ - Allow the Rails app to boot even if there is no database yet
data/lib/gouda/railtie.rb CHANGED
@@ -52,7 +52,15 @@ module Gouda
52
52
  end
53
53
 
54
54
  Gouda::Scheduler.build_scheduler_entries_list!
55
- Gouda::Scheduler.upsert_workloads_from_entries_list!
55
+ begin
56
+ Gouda::Scheduler.upsert_workloads_from_entries_list!
57
+ rescue ActiveRecord::NoDatabaseError
58
+ # Do nothing. On a freshly checked-out Rails app, running even unrelated Rails tasks
59
+ # (such as asset compilation) - or, more importantly, initial db:create -
60
+ # will cause a NoDatabaseError, as this is a chicken-and-egg problem. That error
61
+ # is safe to ignore in this instance - we should let the outer task proceed,
62
+ # because if there is no database we should allow it to get created.
63
+ end
56
64
  end
57
65
  end
58
66
  end
data/lib/gouda/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gouda
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gouda
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
  - Sebastian van Hesteren