alephant-publisher 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 8da5a991ba55b1f73bfb50c0245946af5d064a94
4
- data.tar.gz: feca4233fd3a562f14a9136e202fce887133bb51
3
+ metadata.gz: f7a546293bdb650ca60f791e611b1194265844d9
4
+ data.tar.gz: d057c5d138bf919c99b380d4d6c95f5e9da53a52
5
5
  SHA512:
6
- metadata.gz: 1fbd792a7668e4c01a180d6b6d83503a8cde83dfdb7cd69bccc053f7fcd869698cc64dec3f262d6cb9be40d734d8830e58e8c957d822c3224b55b9f874cb5a91
7
- data.tar.gz: 75ac1a3ad2362271be14bb798b3cf37487d586f51bd9ed64048a05d2f751a6ec803d5a40e6b6a6b3a0e2872c0e16486f98450a35239f527b50e62c90e8832489
6
+ metadata.gz: 7b5dc9fe8145b15ff5770edbf654d579922d701bd8e2d6c1deeecdabbe7048bf921463d5fd562aa70ef8675472516b583df011b2cb34f4cc41edb1161fb11f59
7
+ data.tar.gz: 30c91c4e2d1fac07504c82991f4f93e67b36accfd59901f0e5c7808f9e97b9b8068c0cf78eac6fdb20b0d0f1d8f48088834551230eaac5d8554f3be50498535b
@@ -3,7 +3,9 @@ require 'yaml'
3
3
 
4
4
  config_file = 'config/aws.yaml'
5
5
 
6
+ AWS.eager_autoload!
7
+
6
8
  if File.exists? config_file
7
9
  config = YAML.load(File.read(config_file))
8
10
  AWS.config(config)
9
- end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Publisher
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
@@ -19,20 +19,26 @@ module Alephant
19
19
  def initialize(config, message)
20
20
  @config = config
21
21
  @message = message
22
+ end
23
+
24
+ def mapper
25
+ @mapper ||= RenderMapper.new(
26
+ config[:renderer_id],
27
+ config[:view_path]
28
+ )
29
+ end
22
30
 
23
- @cache = Cache.new(
31
+ def cache
32
+ Cache.new(
24
33
  config[:s3_bucket_id],
25
34
  config[:s3_object_path]
26
35
  )
36
+ end
27
37
 
28
- @parser = Support::Parser.new(
38
+ def parser
39
+ @parser ||= Support::Parser.new(
29
40
  config[:msg_vary_id_path]
30
41
  )
31
-
32
- @mapper = RenderMapper.new(
33
- config[:renderer_id],
34
- config[:view_path]
35
- )
36
42
  end
37
43
 
38
44
  def run!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Integralist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-20 00:00:00.000000000 Z
11
+ date: 2014-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler