discourse_subscription_client 0.1.3 → 0.1.4

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: 7100f3f61c70ca7b6c85e41160a7f06c4c1222aa55c69fc4772dc0053b1e381a
4
- data.tar.gz: 63c8355e974192f6642e63699ddc14bbe7fb176cd0456776e04560b04a579657
3
+ metadata.gz: ea189a1e70964148ffbcad4fb0ee45b8274c77d84b0dedf06f785108666090eb
4
+ data.tar.gz: d275e4c8551df79ebace036fbc1550715f1b7220bc4c9c6cb1cb552b7b9cfe25
5
5
  SHA512:
6
- metadata.gz: 07b49001753c66976c6bd4f8aef241813179e7895356a3f776b6d596869fb7904a6d2fdbacc01d8cad3450e9a432a59e8fd2f440a008e356a9a0652eb4f7abc1
7
- data.tar.gz: bfcff448a51fe8b32354d497bc4901edf7839d0ba5e53f304a268762ef9314cae19de0a1ee1e36b87c989f28b2daff2d8485ff38dc238d42dc4ef47e7b2677c0
6
+ metadata.gz: 5c5dd6fe8540cc4644e8e35d2f22b61f91c9f3ae5286c4b7a33e99f2a4c5be8facd9dd260f88c2da92b0d869e090d7cb440a990f87db1330634dd0a4327b8364
7
+ data.tar.gz: 0f8e839f5c58e48c10850917154f7febcec84a3f004f098c672776521889fa29fb8e05d6366664ba9a3326d0816862bb71f70553258c050da016463e9bd3f59d
@@ -47,7 +47,7 @@ module DiscourseSubscriptionClient
47
47
 
48
48
  def destroy
49
49
  if @supplier.destroy_authorization
50
- render json: success_json.merge(supplier: @supplier.reload)
50
+ render json: success_json.merge(supplier_id: @supplier.id)
51
51
  else
52
52
  render json: failed_json
53
53
  end
@@ -4,15 +4,21 @@ class SubscriptionClientResource < ActiveRecord::Base
4
4
  belongs_to :supplier, class_name: "SubscriptionClientSupplier"
5
5
  has_many :notices, class_name: "SubscriptionClientNotice", as: :notice_subject, dependent: :destroy
6
6
  has_many :subscriptions, foreign_key: "resource_id", class_name: "SubscriptionClientSubscription", dependent: :destroy
7
+
8
+ def source_url(bucket)
9
+ "s3://#{access_key_id}:#{secret_access_key}@#{bucket}"
10
+ end
7
11
  end
8
12
 
9
13
  # == Schema Information
10
14
  #
11
15
  # Table name: subscription_client_resources
12
16
  #
13
- # id :bigint not null, primary key
14
- # supplier_id :bigint
15
- # name :string not null
16
- # created_at :datetime not null
17
- # updated_at :datetime not null
17
+ # id :bigint not null, primary key
18
+ # supplier_id :bigint
19
+ # name :string not null
20
+ # created_at :datetime not null
21
+ # updated_at :datetime not null
22
+ # access_key_id :string
23
+ # secret_access_key :string
18
24
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DiscourseSubscriptionClient
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse_subscription_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angus McLeod