wco_email 0.1.1.114 → 0.1.1.115

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: 0e105beeff88e4d6afda0b1242a0980deab1268c55f15ae00c9d4fe73655b2d9
4
- data.tar.gz: 89f19f0a8a03467d591b50035ec491315239023896c92db7e105b20f4925a9c1
3
+ metadata.gz: ad5a7fda1129431bdf8b7cead3eef251a7353bacd59b8e712a958da839eecb0e
4
+ data.tar.gz: fd52a84c71910f342fbe02ec1d977144f756f5d0cab2ffd519c586b0ba91c3b3
5
5
  SHA512:
6
- metadata.gz: ed39ec6ad9f3cbadd7995eb55940f994ee36574ef67ca1737dcc48ea91781aedc79234067e167c3252a23c52d5b7943597d63685cf3392f0386adef3ceab0344
7
- data.tar.gz: 0e6522209237b046f1d7a1387ac5943e857c3544e09268a692a14260859c2a4179973ebf9966f1fc27bdba673c156f4a0e7466b329bcb3638d5536b2f56d8cf5
6
+ metadata.gz: 0d0e43972713af65326114f9d2466046c2eb1cbe32ccfdded8096ed6bfee02de2c595ca059c64fb12b9de35458212fd8de9d8ee645edb38989fb56f7614017cc
7
+ data.tar.gz: e24482a9a0bed6548cc8eac2a00be0e4767d9f1265c8a91f705953223861a7570a50e7afbe437a2e7bec5442916759a4465acb409bf78e36a0d6c832179e32b0
@@ -64,6 +64,9 @@ class WcoEmail::MessageStubsController < WcoEmail::ApplicationController
64
64
  def show
65
65
  @stub = WcoEmail::MessageStub.find params[:id]
66
66
  authorize! :show, @stub
67
+
68
+ @client ||= Aws::S3::Client.new(::SES_S3_CREDENTIALS)
69
+ @json = JSON.parse( @client.get_object( bucket: @stub.bucket, key: @stub.object_key ).body.read )
67
70
  end
68
71
 
69
72
  def update
@@ -1,4 +1,7 @@
1
1
 
2
2
  .message-stubs-show
3
3
  = @stub.inspect
4
- .d-inline-block= button_to 'churn', wco_email.churn_message_stub_path(@stub), data: { confirm: 'Are you sure?' }
4
+ .d-inline-block= button_to 'churn', wco_email.churn_message_stub_path(@stub), data: { confirm: 'Are you sure?' }
5
+
6
+ %hr
7
+ = @json.inspect
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.114
4
+ version: 0.1.1.115
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev