renote_dac 0.0.185 → 0.0.187

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: db6604fd9d2223ed64ddbbaacbbbf0e1b9eea8a3fc7a3c9861d5b2bc1e1eb241
4
- data.tar.gz: 94b1f62976cf6758de52474b22609b2d9968911a357f8e6845b58985b045e1e4
3
+ metadata.gz: 3737d5a263d45623ba03b989b145481feee867336062310175dd9234b54234e0
4
+ data.tar.gz: 465252b04dd529a52d8ff166e9df201a2524511c46e1a2de0ba76119a95b6bd7
5
5
  SHA512:
6
- metadata.gz: 7d68b146e08a15c61a1f213e62fbc99d63d6bd2c9e85d9f9bc436e0f3c2150dca81a093e6c7fbe48e1d0b7ac0a2866dd6376180d8aa7ff93d2baafc6010b7457
7
- data.tar.gz: 7ba69bc12cd9e880b58ae1ca3b911bf19e35bb7c42749dd91007429b4d2a2eadcf92f59901a9ac82dd4a319f60753ca2374ba0ad6dc917d6b25c4685480d2741
6
+ metadata.gz: 98f3b9a18102f82d5234b6e3c4e8be993226d9d99170e66a6669853ccc3094b5031e3b539f1b390e30c9a8669f3c0925bd488f02a5c3fccd4da8b58092df2a2a
7
+ data.tar.gz: 84bffe49ce6782ae4b8c4414d37e3a6093b3069309af9441602cb2518d962e58b04953792785de9c98a9e7220a7e2e392af0e234897f1371a85e6b91f81d10b1
@@ -16,6 +16,7 @@ module RenoteDac
16
16
  @dev_base_url = nil
17
17
  @postmark_api_key = nil
18
18
  @from_address = 'Your App Name <app@name.com>'
19
+ @templates = nil
19
20
  end
20
21
  end
21
22
  end
@@ -5,12 +5,7 @@ module RenoteDac
5
5
  InvalidTemplate = Class.new(StandardError)
6
6
 
7
7
  # extract to configuration block
8
- TEMPLATES = {
9
- winning_bid: { priority: 40, template_id: 7335422 }, # product_name, product_url, user_name, winning_bid, action_url
10
- verify_email: { priority: 45, template_id: 7713025 }, # user_name, hours_valid, action_url, company_name
11
- payment_confirmation: { priority: 50, template_id: 7819917 }, # transaction_id, image_url, full_name, address_1, address_2, city, state, zip, action_url
12
- out_bid_notification: { priority: 55, template_id: 7862420 } # user_name, last_bid, current_high, product_name, action_url
13
- }.freeze
8
+ # TEMPLATES = RenoteDac.configuration.templates
14
9
 
15
10
  BATCH_ID = 0
16
11
  BATCH_TEMPLATE = 1
@@ -39,7 +34,7 @@ module RenoteDac
39
34
  end
40
35
 
41
36
  def self.get_template_meta(template)
42
- meta = TEMPLATES[template.to_sym]
37
+ meta = RenoteDac.configuration.templates[template.to_sym]
43
38
  raise RenoteDac::Mailer::InvalidTemplate unless meta
44
39
  meta
45
40
  end
@@ -1,3 +1,3 @@
1
1
  module RenoteDac
2
- VERSION = '0.0.185'
2
+ VERSION = '0.0.187'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renote_dac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.185
4
+ version: 0.0.187
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sidney Leatherwood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-03 00:00:00.000000000 Z
11
+ date: 2018-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails