alephant-renderer 1.0.2 → 1.0.3

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: 433bcead6471bc5aa3b54c4fdd0a94655745d9cd
4
- data.tar.gz: 5a7296dcb76cccf92c6e9cdb70e66b6716c7f195
3
+ metadata.gz: df6e0ade1b20534aa2189e0429253dc17a042f16
4
+ data.tar.gz: 65dba06edb78b5d658302da1cd8e6252c42ad514
5
5
  SHA512:
6
- metadata.gz: 43db25edb0c953b15b32a5d21a6357775a8881f007e1dd91df0ab6181f7462daca1af45a061091e7ac33c984c99f99e66d266ed7d88f9048543fcb0cc5341a2c
7
- data.tar.gz: 5897863e16a70e5056c1c83480195577fea62170d09f41b5a5f50a2d0c6b3800ff934ab0aa6dbe4ff695980bdac420070ebe3cb57c44a05a2ab62ff4ea726792
6
+ metadata.gz: 4e6ebe2ff58911f96dc6df0a7ab6948e4d211ad9f22d87dc12aa5387a22466aec7dead9a989fb3d734b6c9c735c967287bc8038107f69ea7f828f2f33eedd2bf
7
+ data.tar.gz: e4919a87490d91d5c6cceefe0402ef35a4d587d39fde1f6465fa259f0266bf4fa22d8b9ff6c9da5d2da6baa6bc3d6d7b18bf1177b102d7645f89a18c436645b0
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Renderer
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -1,11 +1,12 @@
1
- require 'alephant/renderer/views'
2
- require 'hashie'
1
+ require "alephant/renderer/views"
2
+ require "hashie"
3
+ require "pathname"
3
4
 
4
5
  module Alephant
5
6
  module Renderer
6
7
  module Views
7
8
  module Base
8
- def self.included base
9
+ def self.included(base)
9
10
  base.send :include, InstanceMethods
10
11
  base.extend ClassMethods
11
12
  end
@@ -21,11 +22,16 @@ module Alephant
21
22
  end
22
23
 
23
24
  def to_h
24
- whitelist.reduce({}) { |m,s| m.tap { |m| m[s] = self.send(s) } }
25
+ whitelist.reduce({}) do |accum, method_key|
26
+ accum.tap { |a| a[method_key] = send(method_key) }
27
+ end
25
28
  end
26
29
 
27
30
  def setup; end
28
- def whitelist; [] end
31
+
32
+ def whitelist
33
+ []
34
+ end
29
35
  end
30
36
 
31
37
  module ClassMethods
@@ -33,7 +39,7 @@ module Alephant
33
39
 
34
40
  def inherited(subclass)
35
41
  current_dir = File.dirname(caller.first[/\/[^:]+/])
36
- dir_path = Pathname.new(File.join(current_dir,'..')).realdirpath
42
+ dir_path = Pathname.new(File.join(current_dir, "..")).realdirpath
37
43
 
38
44
  subclass.base_path = dir_path.to_s
39
45
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-15 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec