discourse_subscription_client 0.1.0 → 0.1.2

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: 3750d66a3de88f59b270847293b0ded796268e3b3cd9953ed2dfee929b0799dd
4
- data.tar.gz: a40360ba776ce0478877662ca1f001ed0bf156dff8c23d7e5b2f1ce4aa263299
3
+ metadata.gz: 1e9c613aa210fef7c5beacc341e3f704e131d67c5b79af85857458b0386c14a1
4
+ data.tar.gz: 99cd4b1e1f61ad63f1f8d96ecf81091442cea1e4141c9b41a0c3f02da3018418
5
5
  SHA512:
6
- metadata.gz: 8d7e939a6f795d8363025defeea70551d59ffbd86754ba56691ec0fa85a01ae9d35b2cc9fb667b77f689663c7d43998fb443773c32c67ad8b2ea37a6622417cc
7
- data.tar.gz: 4c2cdc67e91ce4b727afc46c30ac8232c0a3da85f7db8bce14d650f4246bdfe19f5bc0d3bbd1f09f6a42b5416bd5b7ece3613be4a71a9e88966f2365a53c9eea
6
+ metadata.gz: 0d2b1d5314c41feaeda861642cd459466861945a9596990353db26c5124ea7f758215bf1b2f9d6beee810ca0400f9fadb3b4da3b8bfe6ec3b609093090bb5339
7
+ data.tar.gz: 8c412d3337fe1c7f6790ada74217bd678d50ab411a20bb908ac829c39ad086d9776880bfc921ecfdd3f250d0511a59c9dbdf96814dff767370a3f6f0dd58c804
@@ -24,7 +24,7 @@ module DiscourseSubscriptionClient
24
24
  config.after_initialize do
25
25
  gem_root = File.expand_path("../..", __dir__)
26
26
 
27
- ActiveRecord::Tasks::DatabaseTasks.migrations_paths << "#{gem_root}/db/migrate"
27
+ ActiveRecord::Tasks::DatabaseTasks.migrations_paths << "#{gem_root}/db/migrate" unless ENV["DISCOURSE_SUBSCRIPTION_CLIENT_SKIP_MIGRATIONS"]
28
28
 
29
29
  %w[
30
30
  ./request
@@ -70,23 +70,6 @@ module DiscourseSubscriptionClient
70
70
  SiteSerializer.prepend DiscourseSubscriptionClient::SiteSerializerExtension
71
71
 
72
72
  User.has_many(:subscription_client_suppliers)
73
-
74
- AdminDashboardData.add_scheduled_problem_check(:subscription_client) do
75
- return unless SiteSetting.subscription_client_warning_notices_on_dashboard
76
-
77
- notices = SubscriptionClientNotice.list(
78
- notice_type: SubscriptionClientNotice.error_types,
79
- visible: true
80
- )
81
- notices.map do |notice|
82
- AdminDashboardData::Problem.new(
83
- "#{notice.title}: #{notice.message}",
84
- priority: "high",
85
- identifier: "subscription_client_notice_#{notice.id}"
86
- )
87
- end
88
- end
89
-
90
73
  DiscourseEvent.trigger(:subscription_client_ready)
91
74
  end
92
75
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DiscourseSubscriptionClient
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse_subscription_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angus McLeod
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-25 00:00:00.000000000 Z
11
+ date: 2024-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers